Go to the source code of this file.
Macros | |
| #define | AFP_LOG_DEBUG 0 |
| #define | AFP_LOG_INFO 1 |
| #define | AFP_LOG_WARNING 2 |
| #define | AFP_LOG_ERROR 3 |
| #define | AFP_LOG_CRITICAL 4 |
| #define | AFP_LOG_MAX 5 |
| #define | AFP_PRINTF(level, fmt, ...) |
| #define | BITERR_NOOBJ (1 << 0) |
| #define | BITERR_NODIR (1 << 1) |
| #define | BITERR_PARAM (1 << 2) |
| #define | BITERR_BUSY (1 << 3) |
| #define | BITERR_BADTYPE (1 << 4) |
| #define | BITERR_NOITEM (1 << 5) |
| #define | BITERR_DENYCONF (1 << 6) |
| #define | BITERR_NFILE (1 << 7) |
| #define | BITERR_ACCESS (1 << 8) |
| #define | BITERR_NOID (1 << 9) |
| #define | BITERR_BITMAP (1 << 10) |
| #define | BITERR_MISC (1 << 11) |
Functions | |
| void | afp_printf (int level, int loglevel, int color, const char *fmt,...) |
| void | illegal_fork (DSI *dsi, char cmd, char *name) |
| int | no_access_folder (uint16_t vol, int did, char *name) |
| Use the second user for creating a folder with no access right. | |
| int | read_only_folder (uint16_t vol, int did, char *name) |
| Use the second user for creating a folder with read only access right. | |
| int | delete_folder (uint16_t vol, int did, char *name) |
| int | get_did (CONN *conn, uint16_t vol, int dir, char *name) |
| int | get_fid (CONN *conn, uint16_t vol, int dir, char *name) |
| uint32_t | get_forklen (DSI *dsi, int type) |
| void | write_fork (CONN *conn, uint16_t vol, int dir, char *name, char *data) |
| void | read_fork (CONN *conn, uint16_t vol, int dir, char *name, int len) |
| 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. | |
| int | delete_folder_with_file (uint16_t vol, int did, char *name, char *file) |
| int | get_vol_attrib (uint16_t vol) |
| int | group_folder (uint16_t vol, int did, char *name) |
| unsigned int | get_vol_free (uint16_t vol) |
| int | not_valid (unsigned int ret, int mac_error, int afpd_error) |
| int | not_valid_bitmap (unsigned int ret, unsigned int bitmap, int afpd_error) |
| int32_t | is_there (CONN *conn, uint16_t volume, int32_t did, char *name) |
| int | delete_directory_tree (CONN *conn, uint16_t volume, uint32_t parent_did, char *dirname) |
| depth-first recursively delete a directory tree | |
| void | clear_volume (uint16_t vol, CONN *conn) |
| #define AFP_LOG_CRITICAL 4 |
| #define AFP_LOG_DEBUG 0 |
| #define AFP_LOG_ERROR 3 |
| #define AFP_LOG_INFO 1 |
| #define AFP_LOG_MAX 5 |
| #define AFP_LOG_WARNING 2 |
| #define AFP_PRINTF | ( | level, | |
| fmt, | |||
| ... ) |
| #define BITERR_ACCESS (1 << 8) |
| #define BITERR_BADTYPE (1 << 4) |
| #define BITERR_BITMAP (1 << 10) |
| #define BITERR_BUSY (1 << 3) |
| #define BITERR_DENYCONF (1 << 6) |
| #define BITERR_MISC (1 << 11) |
| #define BITERR_NFILE (1 << 7) |
| #define BITERR_NODIR (1 << 1) |
| #define BITERR_NOID (1 << 9) |
| #define BITERR_NOITEM (1 << 5) |
| #define BITERR_NOOBJ (1 << 0) |
| #define BITERR_PARAM (1 << 2) |
|
extern |
|
extern |
|
extern |
depth-first recursively delete a directory tree
Algorithm:
| conn | AFP connection |
| volume | Volume ID |
| parent_did | Parent directory ID |
| dirname | Directory name to delete |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
Use the second user for creating a folder with no access right.
|
extern |
|
extern |
|
extern |
|
extern |
Use the second user for creating a folder with read only access right.
|
extern |
Use the second user for creating a folder with read only access right.
|
extern |