#include <arpa/inet.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <atalk/adouble.h>
#include <atalk/afp.h>
#include <atalk/compat.h>
#include <atalk/ea.h>
#include <atalk/logger.h>
#include <atalk/unix.h>
#include <atalk/util.h>
#include <atalk/vfs.h>
#include <atalk/volume.h>
Functions | |
static mode_t | ea_header_mode (mode_t mode) |
static mode_t | ea_mode (mode_t mode) |
static char * | mtoupath (const struct vol *vol, const char *mpath) |
static int | unpack_header (struct ea *restrict ea) |
static int | pack_header (struct ea *restrict ea) |
static int | ea_addentry (struct ea *restrict ea, const char *restrict attruname, size_t attrsize, int bitmap) |
static int | create_ea_header (const char *restrict uname, struct ea *restrict ea) |
static int | write_ea (const struct ea *restrict ea, const char *restrict attruname, const char *restrict ibuf, size_t attrsize) |
static int | ea_delentry (struct ea *restrict ea, const char *restrict attruname) |
static int | delete_ea_file (const struct ea *restrict ea, const char *eaname) |
char * | ea_path (const struct ea *restrict ea, const char *restrict eaname, int macname) |
int | ea_open (const struct vol *restrict vol, const char *restrict uname, eaflags_t eaflags, struct ea *restrict ea) |
int | ea_openat (const struct vol *restrict vol, int dirfd, const char *restrict uname, eaflags_t eaflags, struct ea *restrict ea) |
int | ea_close (struct ea *restrict ea) |
int | get_easize (VFS_FUNC_ARGS_EA_GETSIZE) |
int | get_eacontent (VFS_FUNC_ARGS_EA_GETCONTENT) |
int | list_eas (VFS_FUNC_ARGS_EA_LIST) |
int | set_ea (VFS_FUNC_ARGS_EA_SET) |
int | remove_ea (VFS_FUNC_ARGS_EA_REMOVE) |
int | ea_deletefile (VFS_FUNC_ARGS_DELETEFILE) |
int | ea_renamefile (VFS_FUNC_ARGS_RENAMEFILE) |
int | ea_copyfile (VFS_FUNC_ARGS_COPYFILE) |
int | ea_chown (VFS_FUNC_ARGS_CHOWN) |
int | ea_chmod_file (VFS_FUNC_ARGS_SETFILEMODE) |
int | ea_chmod_dir (VFS_FUNC_ARGS_SETDIRUNIXMODE) |
|
static |
|
static |
|
static |
int ea_chmod_dir | ( | VFS_FUNC_ARGS_SETDIRUNIXMODE | ) |
int ea_chmod_file | ( | VFS_FUNC_ARGS_SETFILEMODE | ) |
int ea_chown | ( | VFS_FUNC_ARGS_CHOWN | ) |
int ea_close | ( | struct ea *restrict | ea | ) |
int ea_copyfile | ( | VFS_FUNC_ARGS_COPYFILE | ) |
|
static |
int ea_deletefile | ( | VFS_FUNC_ARGS_DELETEFILE | ) |
|
inlinestatic |
|
inlinestatic |
int ea_open | ( | const struct vol *restrict | vol, |
const char *restrict | uname, | ||
eaflags_t | eaflags, | ||
struct ea *restrict | ea ) |
int ea_openat | ( | const struct vol *restrict | vol, |
int | dirfd, | ||
const char *restrict | uname, | ||
eaflags_t | eaflags, | ||
struct ea *restrict | ea ) |
char * ea_path | ( | const struct ea *restrict | ea, |
const char *restrict | eaname, | ||
int | macname ) |
int ea_renamefile | ( | VFS_FUNC_ARGS_RENAMEFILE | ) |
int get_eacontent | ( | VFS_FUNC_ARGS_EA_GETCONTENT | ) |
int get_easize | ( | VFS_FUNC_ARGS_EA_GETSIZE | ) |
int list_eas | ( | VFS_FUNC_ARGS_EA_LIST | ) |
|
static |
|
static |
int remove_ea | ( | VFS_FUNC_ARGS_EA_REMOVE | ) |
int set_ea | ( | VFS_FUNC_ARGS_EA_SET | ) |
|
static |
|
static |