/*
- * $Id: file.h,v 1.2 2001-06-20 18:33:04 rufustfirefly Exp $
+ * $Id: file.h,v 1.9 2002-08-21 07:52:03 didg Exp $
*
* Copyright (c) 1990,1991 Regents of The University of Michigan.
* All Rights Reserved.
#define ATTRBIT_SYSTEM (1<<2) /* system (d) */
#define ATTRBIT_DOPEN (1<<3) /* data fork already open */
#define ATTRBIT_ROPEN (1<<4) /* resource fork already open */
+#define ATTRBIT_SHARED (1<<4) /* shared area (d) */
#define ATTRBIT_NOWRITE (1<<5) /* write inhibit(v2)/read-only(v1) bit */
#define ATTRBIT_BACKUP (1<<6) /* backup needed (d) */
#define ATTRBIT_NORENAME (1<<7) /* rename inhibit (d) */
char em_type[ 4 ];
};
-extern struct extmap *extmap;
extern struct extmap *getextmap __P((const char *));
+extern struct extmap *getdefextmap __P((void));
-extern int getfilparams __P((struct vol *, u_int16_t, char *,
- struct dir *, struct stat *, char *buf,
- int *));
+extern int getfilparams __P((struct vol *, u_int16_t, char *,
+ struct dir *, struct stat *, char *buf,
+ int *));
extern int setfilparams __P((struct vol *, char *, u_int16_t, char *));
-extern int renamefile __P((char *, char *, char *, const int));
+extern int renamefile __P((char *, char *, char *, const int, struct adouble *));
extern int copyfile __P((char *, char *, char *, const int));
-extern int deletefile __P((char *));
+extern int deletefile __P((char *, int));
/* FP functions */
extern int afp_exchangefiles __P((AFPObj *, char *, int, char *, int *));
extern int afp_setfilparams __P((AFPObj *, char *, int, char *, int *));
extern int afp_copyfile __P((AFPObj *, char *, int, char *, int *));
extern int afp_createfile __P((AFPObj *, char *, int, char *, int *));
-#if AD_VERSION > AD_VERSION1
+#ifdef CNID_DB
extern int afp_createid __P((AFPObj *, char *, int, char *, int *));
extern int afp_resolveid __P((AFPObj *, char *, int, char *, int *));
extern int afp_deleteid __P((AFPObj *, char *, int, char *, int *));
-#else /* AD_VERSION > AD_VERSION1 */
+#else /* CNID_DB */
#define afp_createid afp_null
#define afp_resolveid afp_null
#define afp_deleteid afp_null