netatalk 4.5.0
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#define TO_UTC 0
13#define TO_LOCALTIME 1
14
15 extern int set_utc_offset(uint32_t *aint_p, int offset_dir);
16 extern char *ctoupath(const struct vol *, struct dir *, char *);
17 extern char *absupath(const struct vol *, struct dir *, char *);
18 extern int veto_file(const char *veto_str, const char *path);
19 extern int check_name(const struct vol *vol, char *name);
20
21 extern int delete_vetoed_files(struct vol *vol, const char *upath,
22 bool in_vetodir);
23
24/* FP functions */
25 int afp_moveandrename(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,
26 size_t *rbuflen);
27 int afp_rename(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,
28 size_t *rbuflen);
29 int afp_delete(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,
30 size_t *rbuflen);
31 int afp_getfildirparams(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,
32 size_t *rbuflen);
33 int afp_setfildirparams(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,
34 size_t *rbuflen);
35
36#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:1126
afp_moveandrename
int afp_moveandrename(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen)
Definition filedir.c:1137
afp_rename
int afp_rename(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen)
Definition filedir.c:663
afp_setfildirparams
int afp_setfildirparams(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen)
Definition filedir.c:243
afp_delete
int afp_delete(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen)
Definition filedir.c:844
check_name
int check_name(const struct vol *vol, char *name)
Definition filedir.c:326
afp_getfildirparams
int afp_getfildirparams(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen)
Definition filedir.c:118
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:1274
absupath
char * absupath(const struct vol *, struct dir *, char *)
Definition filedir.c:1094
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:769
set_utc_offset
int set_utc_offset(uint32_t *aint_p, int offset_dir)
Convert an AFP date-time value between local time and UTC.
Definition filedir.c:51
globals.h
obj
static AFPObj obj
Definition netatalk.c:69
AFPObj
Definition globals.h:166
afp_options
Definition globals.h:98
dir
Definition include/atalk/directory.h:56
path
Definition include/atalk/directory.h:123
vol
Definition include/atalk/volume.h:33