netatalk 4.4.3
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
filedir.h
Go to the documentation of this file.
1#ifndef AFPD_FILEDIR_H
2#define AFPD_FILEDIR_H 1
3
4#include <sys/stat.h>
5
6#include <atalk/globals.h>
7
8#include "volume.h"
9
10 extern struct afp_options default_options;
11
12 extern char *ctoupath(const struct vol *, struct dir *, char *);
13 extern char *absupath(const struct vol *, struct dir *, char *);
14 extern int veto_file(const char *veto_str, const char *path);
15 extern int check_name(const struct vol *vol, char *name);
16
17 extern int delete_vetoed_files(struct vol *vol, const char *upath,
18 bool in_vetodir);
19
20/* FP functions */
21 int afp_moveandrename(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,
22 size_t *rbuflen);
23 int afp_rename(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,
24 size_t *rbuflen);
25 int afp_delete(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,
26 size_t *rbuflen);
27 int afp_getfildirparams(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,
28 size_t *rbuflen);
29 int afp_setfildirparams(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,
30 size_t *rbuflen);
31
32#endif
rbuflen
static size_t rbuflen
Definition afpfunc_helpers.c:45
rbuf
static char rbuf[rbufsize]
Definition afpfunc_helpers.c:44
volume.h
ctoupath
char * ctoupath(const struct vol *, struct dir *, char *)
Definition filedir.c:913
afp_moveandrename
int afp_moveandrename(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen)
Definition filedir.c:924
afp_rename
int afp_rename(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen)
Definition filedir.c:510
afp_setfildirparams
int afp_setfildirparams(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen)
Definition filedir.c:151
afp_delete
int afp_delete(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen)
Definition filedir.c:681
check_name
int check_name(const struct vol *vol, char *name)
Definition filedir.c:226
afp_getfildirparams
int afp_getfildirparams(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen)
Definition filedir.c:40
default_options
struct afp_options default_options
veto_file
int veto_file(const char *veto_str, const char *path)
given a veto_str like "abc/zxc/" and path "abc", return 1
Definition filedir.c:1053
absupath
char * absupath(const struct vol *, struct dir *, char *)
Definition filedir.c:881
delete_vetoed_files
int delete_vetoed_files(struct vol *vol, const char *upath, bool in_vetodir)
Recursivley delete vetoed files and directories if the volume option is set.
Definition filedir.c:606
globals.h
obj
static AFPObj obj
Definition netatalk.c:62
AFPObj
Definition globals.h:158
afp_options
Definition globals.h:96
dir
Definition include/atalk/directory.h:55
path
Definition include/atalk/directory.h:82
vol
Definition include/atalk/volume.h:30