netatalk  4.4.0dev
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
enumerate.c File Reference
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/file.h>
#include <sys/param.h>
#include <bstrlib.h>
#include <atalk/adouble.h>
#include <atalk/afp.h>
#include <atalk/cnid.h>
#include <atalk/globals.h>
#include <atalk/logger.h>
#include <atalk/netatalk_conf.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 "volume.h"

Data Structures

struct  savedir

Macros

#define min(a, b)
#define SDBUFBRK   2048
#define REPLY_PARAM_MAXLEN   (4 + 104 + 1 + MACFILELEN + 4 + 2 + UTF8FILELEN_EARLY + 1)

Functions

static int enumerate_loop (struct dirent *de, char *mname _U_, void *data)
char * check_dirent (const struct vol *vol, char *name)
int for_each_dirent (const struct vol *vol, char *name, dir_loop fn, void *data)
static int enumerate (AFPObj *obj _U_, char *ibuf, size_t ibuflen _U_, char *rbuf, size_t *rbuflen, int ext)
int afp_enumerate (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen)
int afp_enumerate_ext (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen)
int afp_enumerate_ext2 (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen)

Macro Definition Documentation

◆ min

#define min ( a,
b )
Value:
((a)<(b)?(a):(b))

◆ REPLY_PARAM_MAXLEN

#define REPLY_PARAM_MAXLEN   (4 + 104 + 1 + MACFILELEN + 4 + 2 + UTF8FILELEN_EARLY + 1)

◆ SDBUFBRK

#define SDBUFBRK   2048

Function Documentation

◆ afp_enumerate()

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

◆ afp_enumerate_ext()

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

◆ afp_enumerate_ext2()

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

◆ check_dirent()

char * check_dirent ( const struct vol * vol,
char * name )

◆ enumerate()

int enumerate ( AFPObj *obj _U_,
char * ibuf,
size_t ibuflen _U_,
char * rbuf,
size_t * rbuflen,
int ext )
static

◆ enumerate_loop()

int enumerate_loop ( struct dirent * de,
char *mname _U_,
void * data )
static

◆ for_each_dirent()

int for_each_dirent ( const struct vol * vol,
char * name,
dir_loop fn,
void * data )