1/* 2 * $Id: filedir.h,v 1.11 2009-10-15 10:43:13 didg Exp $ 3 */ 4 5#ifndef AFPD_FILEDIR_H 6#define AFPD_FILEDIR_H 1 7 8#include <sys/cdefs.h> 9#include <sys/stat.h> 10#include <atalk/globals.h> 11#include "volume.h" 12 13extern struct afp_options default_options; 14 15extern char *ctoupath (const struct vol *, struct dir *, 16 char *); 17extern char *absupath (const struct vol *, struct dir *, 18 char *); 19extern int veto_file (const char *veto_str, const char *path); 20extern int check_name (const struct vol *vol, char *name); 21 22extern int matchfile2dirperms (char *, struct vol *, int); 23 24/* FP functions */ 25int afp_moveandrename (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen); 26int afp_rename (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen); 27int afp_delete (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen); 28int afp_getfildirparams (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen); 29int afp_setfildirparams (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen); 30 31#endif 32