netatalk  4.4.0dev
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
filedir.c File Reference
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/param.h>
#include <bstrlib.h>
#include <atalk/acl.h>
#include <atalk/adouble.h>
#include <atalk/afp.h>
#include <atalk/cnid.h>
#include <atalk/errchk.h>
#include <atalk/fce_api.h>
#include <atalk/globals.h>
#include <atalk/logger.h>
#include <atalk/netatalk_conf.h>
#include <atalk/unix.h>
#include <atalk/util.h>
#include <atalk/vfs.h>
#include "desktop.h"
#include "dircache.h"
#include "directory.h"
#include "file.h"
#include "filedir.h"
#include "fork.h"
#include "unix.h"
#include "volume.h"

Functions

int afp_getfildirparams (AFPObj *obj _U_, char *ibuf, size_t ibuflen _U_, char *rbuf, size_t *rbuflen)
int afp_setfildirparams (AFPObj *obj, char *ibuf, size_t ibuflen _U_, char *rbuf _U_, size_t *rbuflen)
int check_name (const struct vol *vol, char *name)
static int moveandrename (const AFPObj *obj, struct vol *vol, struct dir *sdir, int sdir_fd, char *oldname, char *newname, int isdir)
int afp_rename (AFPObj *obj, char *ibuf, size_t ibuflen _U_, char *rbuf _U_, size_t *rbuflen)
int delete_vetoed_files (struct vol *vol, const char *upath, bool in_vetodir)
int afp_delete (AFPObj *obj, char *ibuf, size_t ibuflen _U_, char *rbuf _U_, size_t *rbuflen)
char * absupath (const struct vol *vol, struct dir *dir, char *u)
char * ctoupath (const struct vol *vol, struct dir *dir, char *name)
int afp_moveandrename (AFPObj *obj, char *ibuf, size_t ibuflen _U_, char *rbuf _U_, size_t *rbuflen)
int veto_file (const char *veto_str, const char *path)

Function Documentation

◆ absupath()

char * absupath ( const struct vol * vol,
struct dir * dir,
char * u )

◆ afp_delete()

int afp_delete ( AFPObj * obj,
char * ibuf,
size_t ibuflen _U_,
char *rbuf _U_,
size_t * rbuflen )

◆ afp_getfildirparams()

int afp_getfildirparams ( AFPObj *obj _U_,
char * ibuf,
size_t ibuflen _U_,
char * rbuf,
size_t * rbuflen )

◆ afp_moveandrename()

int afp_moveandrename ( AFPObj * obj,
char * ibuf,
size_t ibuflen _U_,
char *rbuf _U_,
size_t * rbuflen )

◆ afp_rename()

int afp_rename ( AFPObj * obj,
char * ibuf,
size_t ibuflen _U_,
char *rbuf _U_,
size_t * rbuflen )

◆ afp_setfildirparams()

int afp_setfildirparams ( AFPObj * obj,
char * ibuf,
size_t ibuflen _U_,
char *rbuf _U_,
size_t * rbuflen )

◆ check_name()

int check_name ( const struct vol * vol,
char * name )

◆ ctoupath()

char * ctoupath ( const struct vol * vol,
struct dir * dir,
char * name )

◆ delete_vetoed_files()

int delete_vetoed_files ( struct vol * vol,
const char * upath,
bool in_vetodir )

◆ moveandrename()

int moveandrename ( const AFPObj * obj,
struct vol * vol,
struct dir * sdir,
int sdir_fd,
char * oldname,
char * newname,
int isdir )
static

◆ veto_file()

int veto_file ( const char * veto_str,
const char * path )