#include <errno.h>#include <stdlib.h>#include <string.h>#include <sys/param.h>#include <sys/stat.h>#include <sys/types.h>#include <unistd.h>#include <atalk/acl.h>#include <atalk/afp.h>#include <atalk/compat.h>#include <atalk/directory.h>#include <atalk/ea.h>#include <atalk/errchk.h>#include <atalk/logger.h>#include <atalk/unix.h>#include <atalk/util.h>#include <atalk/volume.h>Functions | |
| int | dir_rx_set (mode_t mode) |
| int | setfilmode (const struct vol *vol, const char *name, mode_t mode, struct stat *st) |
| int | netatalk_rmdir_all_errors (int dirfd, const char *name) |
| system rmdir with afp error code. | |
| int | netatalk_rmdir (int dirfd, const char *name) |
| System rmdir with afp error code, but ENOENT is not an error. | |
| int | netatalk_unlink (const char *name) |
| system unlink with afp error code. | |
| int | copy_file_fd (int sfd, int dfd) |
| int | copy_file (int dirfd, const char *src, const char *dst, mode_t mode) |
| int | copy_ea (const char *ea, int dirfd, const char *src, const char *dst, mode_t mode) |
| Copy an EA from one file to another. | |
| int | netatalk_unlinkat (int dirfd, const char *name) |
| int | unix_rename (int sfd, const char *oldpath, int dfd, const char *newpath) |
| This is equivalent of unix rename(). | |
| int | statat (int dirfd, const char *path, struct stat *st) |
| stat/fsstatat multiplexer | |
| DIR * | opendirat (int dirfd, const char *path) |
| opendir wrapper for *at semantics support | |
| int copy_ea | ( | const char * | ea, |
| int | dirfd, | ||
| const char * | src, | ||
| const char * | dst, | ||
| mode_t | mode ) |
Copy an EA from one file to another.
| int copy_file | ( | int | dirfd, |
| const char * | src, | ||
| const char * | dst, | ||
| mode_t | mode ) |
Supports *at semantics, pass dirfd=-1 to ignore this
| int copy_file_fd | ( | int | sfd, |
| int | dfd ) |
Copy all file data from one file fd to another
| int dir_rx_set | ( | mode_t | mode | ) |
| int netatalk_rmdir | ( | int | dirfd, |
| const char * | name ) |
System rmdir with afp error code, but ENOENT is not an error.
| int netatalk_rmdir_all_errors | ( | int | dirfd, |
| const char * | name ) |
system rmdir with afp error code.
| int netatalk_unlink | ( | const char * | name | ) |
system unlink with afp error code.
| int netatalk_unlinkat | ( | int | dirfd, |
| const char * | name ) |
at wrapper for netatalk_unlink
| DIR * opendirat | ( | int | dirfd, |
| const char * | path ) |
opendir wrapper for *at semantics support
opendirat chdirs to dirfd if dirfd != -1 before calling opendir on path.
| [in] | dirfd | if != -1, chdir(dirfd) before opendir(path) |
| [in] | path | pathname |
| int setfilmode | ( | const struct vol * | vol, |
| const char * | name, | ||
| mode_t | mode, | ||
| struct stat * | st ) |
| int statat | ( | int | dirfd, |
| const char * | path, | ||
| struct stat * | st ) |
stat/fsstatat multiplexer
statat mulitplexes stat and fstatat.
| [in] | dirfd | -1 gives AT_FDCWD |
| [in] | path | pathname |
| [in,out] | st | pointer to struct stat |
| int unix_rename | ( | int | sfd, |
| const char * | oldpath, | ||
| int | dfd, | ||
| const char * | newpath ) |
This is equivalent of unix rename().
unix_rename mulitplexes rename and renameat.
| [in] | sfd | -1 gives AT_FDCWD |
| [in] | oldpath | guess what |
| [in] | dfd | same as sfd |
| [in] | newpath | guess what |