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

Functions

static int pathcmp (char *p, int plen, char *q, int qlen)
static int applopen (struct vol *vol, uint8_t creator[4], int flags, int mode)
static int copyapplfile (int sfd, int dfd, char *mpath, u_short mplen)
static char * makemacpath (const struct vol *vol, char *mpath, int mpathlen, struct dir *dir, char *path)
int afp_addappl (AFPObj *obj, char *ibuf, size_t ibuflen _U_, char *rbuf _U_, size_t *rbuflen)
int afp_rmvappl (AFPObj *obj, char *ibuf, size_t ibuflen _U_, char *rbuf _U_, size_t *rbuflen)
int afp_getappl (AFPObj *obj, char *ibuf, size_t ibuflen _U_, char *rbuf, size_t *rbuflen)

Variables

static struct savedt sa = { { 0, 0, 0, 0 }, -1, 0, 0}

Function Documentation

◆ afp_addappl()

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

◆ afp_getappl()

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

◆ afp_rmvappl()

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

◆ applopen()

int applopen ( struct vol * vol,
uint8_t creator[4],
int flags,
int mode )
static

◆ copyapplfile()

int copyapplfile ( int sfd,
int dfd,
char * mpath,
u_short mplen )
static

◆ makemacpath()

char * makemacpath ( const struct vol * vol,
char * mpath,
int mpathlen,
struct dir * dir,
char * path )
static

◆ pathcmp()

int pathcmp ( char * p,
int plen,
char * q,
int qlen )
static

Variable Documentation

◆ sa

struct savedt sa = { { 0, 0, 0, 0 }, -1, 0, 0}
static