netatalk  4.4.0dev
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
unix.c File Reference
#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 _U_, const char *name)
int netatalk_rmdir (int dirfd, const char *name)
int netatalk_unlink (const char *name)
int copy_file_fd (int sfd, int dfd)
int copy_file (int dirfd _U_, const char *src, const char *dst, mode_t mode)
int copy_ea (const char *ea, int dirfd _U_, const char *src, const char *dst, mode_t mode)
int netatalk_unlinkat (int dirfd _U_, const char *name)
int unix_rename (int sfd _U_, const char *oldpath, int dfd _U_, const char *newpath)
int statat (int dirfd _U_, const char *path, struct stat *st)
DIR * opendirat (int dirfd, const char *path)

Function Documentation

◆ copy_ea()

int copy_ea ( const char * ea,
int dirfd _U_,
const char * src,
const char * dst,
mode_t mode )

Copy an EA from one file to another

Supports *at semantics, pass dirfd=-1 to ignore this

◆ copy_file()

int copy_file ( int dirfd _U_,
const char * src,
const char * dst,
mode_t mode )

◆ copy_file_fd()

int copy_file_fd ( int sfd,
int dfd )

◆ dir_rx_set()

int dir_rx_set ( mode_t mode)

◆ netatalk_rmdir()

int netatalk_rmdir ( int dirfd,
const char * name )

◆ netatalk_rmdir_all_errors()

int netatalk_rmdir_all_errors ( int dirfd _U_,
const char * name )

◆ netatalk_unlink()

int netatalk_unlink ( const char * name)

◆ netatalk_unlinkat()

int netatalk_unlinkat ( int dirfd _U_,
const char * name )

◆ opendirat()

DIR * opendirat ( int dirfd,
const char * path )

◆ setfilmode()

int setfilmode ( const struct vol * vol,
const char * name,
mode_t mode,
struct stat * st )

◆ statat()

int statat ( int dirfd _U_,
const char * path,
struct stat * st )

◆ unix_rename()

int unix_rename ( int sfd _U_,
const char * oldpath,
int dfd _U_,
const char * newpath )