#include <arpa/inet.h>
#include <sys/param.h>
#include <atalk/adouble.h>
#include <atalk/globals.h>
#include "directory.h"
#include "volume.h"
Go to the source code of this file.
Macros | |
#define | FILPBIT_ATTR 0 |
#define | FILPBIT_PDID 1 |
#define | FILPBIT_CDATE 2 |
#define | FILPBIT_MDATE 3 |
#define | FILPBIT_BDATE 4 |
#define | FILPBIT_FINFO 5 |
#define | FILPBIT_LNAME 6 |
#define | FILPBIT_SNAME 7 |
#define | FILPBIT_FNUM 8 |
#define | FILPBIT_DFLEN 9 |
#define | FILPBIT_RFLEN 10 |
#define | FILPBIT_EXTDFLEN 11 |
#define | FILPBIT_PDINFO 13 /* ProDOS Info/ UTF8 name */ |
#define | FILPBIT_EXTRFLEN 14 |
#define | FILPBIT_UNIXPR 15 |
#define | kTextEncodingUTF8 0x08000103 |
Functions | |
char * | set_name (const struct vol *, char *, cnid_t, char *, cnid_t, uint32_t) |
struct extmap * | getextmap (const char *) |
struct extmap * | getdefextmap (void) |
int | getfilparams (const AFPObj *obj, struct vol *, uint16_t, struct path *, struct dir *, char *buf, size_t *, int) |
int | setfilparams (const AFPObj *obj, struct vol *, struct path *, uint16_t, char *) |
int | renamefile (struct vol *, struct dir *, int, char *, char *, char *, struct adouble *) |
int | copyfile (struct vol *, struct vol *, struct dir *, int, char *, char *, char *, struct adouble *) |
int | deletefile (const struct vol *, int, char *, int) |
int | getmetadata (const AFPObj *obj, struct vol *vol, uint16_t bitmap, struct path *path, struct dir *dir, char *buf, size_t *buflen, struct adouble *adp) |
void * | get_finderinfo (const struct vol *, const char *, struct adouble *, void *, int) |
size_t | mtoUTF8 (const struct vol *, const char *, size_t, char *, size_t) |
int | copy_path_name (const struct vol *, char *, char *i) |
uint32_t | get_id (struct vol *, struct adouble *, const struct stat *, cnid_t, const char *, int) |
Get CNID for did/upath args both from database and adouble file. | |
int | afp_exchangefiles (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen) |
int | afp_setfilparams (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen) |
int | afp_copyfile (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen) |
int | afp_createfile (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen) |
int | afp_createid (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen) |
int | afp_resolveid (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen) |
int | afp_deleteid (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen) |
Variables | |
const uint8_t | ufinderi [] |
#define FILPBIT_ATTR 0 |
#define FILPBIT_BDATE 4 |
#define FILPBIT_CDATE 2 |
#define FILPBIT_DFLEN 9 |
#define FILPBIT_EXTDFLEN 11 |
#define FILPBIT_EXTRFLEN 14 |
#define FILPBIT_FINFO 5 |
#define FILPBIT_FNUM 8 |
#define FILPBIT_LNAME 6 |
#define FILPBIT_MDATE 3 |
#define FILPBIT_PDID 1 |
#define FILPBIT_PDINFO 13 /* ProDOS Info/ UTF8 name */ |
#define FILPBIT_RFLEN 10 |
#define FILPBIT_SNAME 7 |
#define FILPBIT_UNIXPR 15 |
#define kTextEncodingUTF8 0x08000103 |
enum kTextEncoding_t |
int afp_copyfile | ( | AFPObj * | obj, |
char * | ibuf, | ||
size_t | ibuflen, | ||
char * | rbuf, | ||
size_t * | rbuflen ) |
int afp_createfile | ( | AFPObj * | obj, |
char * | ibuf, | ||
size_t | ibuflen, | ||
char * | rbuf, | ||
size_t * | rbuflen ) |
int afp_createid | ( | AFPObj * | obj, |
char * | ibuf, | ||
size_t | ibuflen, | ||
char * | rbuf, | ||
size_t * | rbuflen ) |
int afp_deleteid | ( | AFPObj * | obj, |
char * | ibuf, | ||
size_t | ibuflen, | ||
char * | rbuf, | ||
size_t * | rbuflen ) |
int afp_exchangefiles | ( | AFPObj * | obj, |
char * | ibuf, | ||
size_t | ibuflen, | ||
char * | rbuf, | ||
size_t * | rbuflen ) |
int afp_resolveid | ( | AFPObj * | obj, |
char * | ibuf, | ||
size_t | ibuflen, | ||
char * | rbuf, | ||
size_t * | rbuflen ) |
int afp_setfilparams | ( | AFPObj * | obj, |
char * | ibuf, | ||
size_t | ibuflen, | ||
char * | rbuf, | ||
size_t * | rbuflen ) |
|
extern |
|
extern |
|
extern |
|
extern |
Only enter if no appledouble information and no finder information found.
|
extern |
Get CNID for did/upath args both from database and adouble file.
vol | (rw) volume |
adp | (rw) adouble struct of object upath, might be NULL |
st | (r) stat of upath, must NOT be NULL |
did | (r) parent CNID of upath |
upath | (r) name of object |
len | (r) strlen of upath |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |