/*
- * $Id: fork.h,v 1.7 2003-01-16 20:06:33 didg Exp $
+ * $Id: fork.h,v 1.8.6.2.2.3 2008-11-25 15:16:33 didg Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
};
struct ofork {
+ struct file_key key;
struct adouble *of_ad;
struct vol *of_vol;
struct dir *of_dir;
- char *of_name;
- int of_namelen;
u_int16_t of_refnum;
int of_flags;
- struct file_key key;
struct ofork **prevp, *next;
struct ofork *of_d_prev, *of_d_next;
};
#define AFPFORK_ACCWR (1<<5)
#define AFPFORK_ACCMASK (AFPFORK_ACCRD | AFPFORK_ACCWR)
+#define of_name(a) (a)->of_ad->ad_m_name
/* in ofork.c */
extern struct ofork *of_alloc __P((struct vol *, struct dir *,
char *, u_int16_t *, const int,
extern int of_flush __P((const struct vol *));
extern void of_pforkdesc __P((FILE *));
extern int of_stat __P((struct path *));
+extern int of_statdir __P((const struct vol *vol, struct path *));
+extern struct adouble *of_ad __P((const struct vol *, struct path *, struct adouble *));
/* in fork.c */
extern int flushfork __P((struct ofork *));
+extern int getforkmode __P((struct adouble *, int , int ));
/* FP functions */
extern int afp_openfork __P((AFPObj *, char *, int, char *, int *));