]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/unix.h
netatalk: fix a crash on Solaris when registering with mDNS
[netatalk.git] / etc / afpd / unix.h
index a3d234ba9abc378a3442e7635b11313a5f1544fe..3b3c281b528c57dd4c035243796340823c35ec8f 100644 (file)
@@ -53,6 +53,7 @@ typedef int   mode_t;
 
 
 #ifndef NO_QUOTA_SUPPORT
+#if !defined(HAVE_LIBQUOTA)
 
 #if !(defined(__svr4__) || defined(HAVE_DQB_BTIMELIMIT))
 #define dqb_btimelimit  dqb_btime
@@ -205,21 +206,19 @@ extern long quotactl (unsigned int, const char *, int, caddr_t);
 extern int getnfsquota (struct vol *, const int, const uint32_t,
                         struct dqblk *);
 
-extern int uquota_getvolspace (struct vol *, VolSpace *, VolSpace *,
+#endif /* ! HAVE_LIBQUOTA */
+extern int uquota_getvolspace (const AFPObj *obj, struct vol *, VolSpace *, VolSpace *,
                                const uint32_t);
 #endif /* NO_QUOTA_SUPPORT */
 
 extern struct afp_options default_options;
 
-extern int gmem            (const gid_t);
-extern int setdeskmode      (const mode_t);
-extern int setdirunixmode   (const struct vol *, const char *, mode_t);
+extern int setdirunixmode   (const struct vol *, char *, mode_t);
 extern int setdirmode       (const struct vol *, const char *, mode_t);
-extern int setdeskowner     (const uid_t, const gid_t);
 extern int setdirowner      (const struct vol *, const char *, const uid_t, const gid_t);
 extern int setfilunixmode   (const struct vol *, struct path*, const mode_t);
 extern int setfilowner      (const struct vol *, const uid_t, const gid_t, struct path*);
-extern void accessmode      (char *, struct maccess *, struct dir *, struct stat *);
+extern void accessmode      (const AFPObj *obj, const struct vol *, char *, struct maccess *, struct dir *, struct stat *);
 
 #ifdef AFS     
     #define accessmode afsmode