|
| 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) |
| | build mac. path (backwards) by traversing the directory tree
|
| int | afp_addappl (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen) |
| int | afp_rmvappl (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen) |
| int | afp_getappl (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen) |
| char * makemacpath |
( |
const struct vol * | vol, |
|
|
char * | mpath, |
|
|
int | mpathlen, |
|
|
struct dir * | dir, |
|
|
char * | path ) |
|
static |
build mac. path (backwards) by traversing the directory tree
The old way: dir and path refer to an app, path is a mac format pathname. makemacpath() builds something that looks like a cname, but uses upaths instead of mac format paths.
The new way: dir and path refer to an app, path is a mac format pathname. makemacpath() builds a cname. (zero is a path separator and it's not \0 terminated).
- See also
- afp_getappl() for the backward compatiblity code.