]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/directory.h
.AppleDxxx folders were user accessible if option 'usedots' was set
[netatalk.git] / etc / afpd / directory.h
index b9e061643a4b0cbd50e2101223d748376f788b7e..aae48aec2b74c8a698faacca3850732b8084e7cb 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: directory.h,v 1.22 2008-09-01 15:18:37 didg Exp $
+ * $Id: directory.h,v 1.25 2009-06-19 13:38:33 franklahm Exp $
  *
  * Copyright (c) 1990,1991 Regents of The University of Michigan.
  * All Rights Reserved.
@@ -57,6 +57,7 @@ struct dir {
 
     char       *d_m_name;            /* mac name */
     char        *d_u_name;            /* unix name */
+    ucs2_t     *d_m_name_ucs2;       /* mac name as UCS2 */
 };
 
 struct path {
@@ -71,7 +72,7 @@ struct path {
 };
 
 #ifndef ATACC
-static __inline__ int path_isadir(struct path *o_path)
+static inline int path_isadir(struct path *o_path)
 {
     return o_path->d_dir != NULL;
 #if 0
@@ -124,11 +125,6 @@ extern int path_isadir(struct path *o_path);
 #define DIRPBIT_PDINFO  13         /* ProDOS Info */
 #define DIRPBIT_UNIXPR  15
 
-/* directory attribute bits (see file.h for other bits) */
-#define ATTRBIT_EXPFOLDER   (1 << 1) /* shared point */
-#define ATTRBIT_MOUNTED     (1 << 3) /* mounted share point by non-admin */
-#define ATTRBIT_INEXPFOLDER (1 << 4) /* folder in a shared area */
-
 #define FILDIRBIT_ISDIR        (1 << 7) /* is a directory */
 #define FILDIRBIT_ISFILE       (0)      /* is a file */
 
@@ -205,6 +201,8 @@ extern int file_access   __P((struct path *path, int mode));
 extern int netatalk_rmdir __P((const char *name));
 extern int netatalk_unlink __P((const char *name));
 
+extern int caseenumerate __P((const struct vol *, struct path *, struct dir *));
+
 extern hash_t *dirhash __P((void));
 /* from enumerate.c */
 extern char *check_dirent __P((const struct vol *, char *));