X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fafpd%2Ffork.h;h=0e7f7739f231b1e32972fc37f5f5cbddf4974137;hb=9d78f9b52ea18b442fc91c6a1e8d8b607f2f90e8;hp=512f5f2c254c4107720009ccccbc4a18ac4fa101;hpb=60a8d986667706e525a746815917575f732db075;p=netatalk.git diff --git a/etc/afpd/fork.h b/etc/afpd/fork.h index 512f5f2c..0e7f7739 100644 --- a/etc/afpd/fork.h +++ b/etc/afpd/fork.h @@ -1,5 +1,5 @@ /* - * $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. @@ -22,16 +22,14 @@ struct file_key { }; 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; }; @@ -53,6 +51,7 @@ struct ofork { #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, @@ -68,8 +67,11 @@ extern int of_rename __P((const struct vol *, 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 *));