11#define AFP_LOG_WARNING 2
12#define AFP_LOG_ERROR 3
13#define AFP_LOG_CRITICAL 4
16extern void afp_printf(
int level,
int loglevel,
int color,
const char *fmt,
19#define AFP_PRINTF(level, fmt, ...) afp_printf(level, Loglevel, Color, fmt, ##__VA_ARGS__)
21#define BITERR_NOOBJ (1 << 0)
22#define BITERR_NODIR (1 << 1)
23#define BITERR_PARAM (1 << 2)
24#define BITERR_BUSY (1 << 3)
25#define BITERR_BADTYPE (1 << 4)
26#define BITERR_NOITEM (1 << 5)
27#define BITERR_DENYCONF (1 << 6)
28#define BITERR_NFILE (1 << 7)
29#define BITERR_ACCESS (1 << 8)
30#define BITERR_NOID (1 << 9)
31#define BITERR_BITMAP (1 << 10)
32#define BITERR_MISC (1 << 11)
55extern int not_valid(
unsigned int ret,
int mac_error,
int afpd_error);
62 uint32_t parent_did,
char *dirname);
static DSI * dsi
Definition afparg.c:39
int delete_folder(uint16_t vol, int did, char *name)
Definition afphelper.c:568
int read_only_folder_with_file(uint16_t vol, int did, char *name, char *file)
Use the second user for creating a folder with read only access right.
Definition afphelper.c:484
void clear_volume(uint16_t vol, CONN *conn)
Definition afphelper.c:1247
void write_fork(CONN *conn, uint16_t vol, int dir, char *name, char *data)
Definition afphelper.c:142
int read_only_folder(uint16_t vol, int did, char *name)
Use the second user for creating a folder with read only access right.
Definition afphelper.c:405
void afp_printf(int level, int loglevel, int color, const char *fmt,...)
Definition afphelper.c:930
int delete_directory_tree_by_did(CONN *conn, uint16_t volume, uint32_t dir_id)
depth-first recursively delete a directory tree by DID
Definition afphelper.c:1001
int not_valid(unsigned int ret, int mac_error, int afpd_error)
Definition afphelper.c:727
int get_vol_attrib(uint16_t vol)
Definition afphelper.c:693
int delete_folder_with_file(uint16_t vol, int did, char *name, char *file)
Definition afphelper.c:629
int no_access_folder(uint16_t vol, int did, char *name)
Use the second user for creating a folder with no access right.
Definition afphelper.c:187
int delete_directory_tree(CONN *conn, uint16_t volume, uint32_t parent_did, char *dirname)
depth-first recursively delete a directory tree by parent DID and name
Definition afphelper.c:1214
uint32_t get_forklen(DSI *dsi, int type)
Definition afphelper.c:127
void illegal_fork(DSI *dsi, char cmd, char *name)
Definition afphelper.c:20
int group_folder(uint16_t vol, int did, char *name)
Definition afphelper.c:316
unsigned int get_vol_free(uint16_t vol)
Definition afphelper.c:710
void read_fork(CONN *conn, uint16_t vol, int dir, char *name, int len)
Definition afphelper.c:162
int get_did(CONN *conn, uint16_t vol, int dir, char *name)
Definition afphelper.c:79
int not_valid_bitmap(unsigned int ret, unsigned int bitmap, int afpd_error)
Definition afphelper.c:878
int get_fid(CONN *conn, uint16_t vol, int dir, char *name)
Definition afphelper.c:104
int32_t is_there(CONN *conn, uint16_t volume, int32_t did, char *name)
Definition afphelper.c:949
#define data
Definition hash.c:38
cnid_t did
Definition nad_cp.c:93
static enum op type
Definition nad_cp.c:96
static afpvol_t volume
Definition nad_rm.c:46
Definition afpclient.h:176
Definition include/atalk/dsi.h:58
Definition include/atalk/directory.h:56
Definition include/atalk/volume.h:33
DSI (Data Stream Interface) protocol definitions for the test-suite.