/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/netatalk-2.2.0/include/atalk/ |
H A D | unix.h | 28 extern int netatalk_unlinkat(int dirfd, const char *name); 30 extern int statat(int dirfd, const char *path, struct stat *st); 31 extern int lstatat(int dirfd, const char *path, struct stat *st); 32 extern DIR *opendirat(int dirfd, const char *path); 35 extern int netatalk_rmdir(int dirfd, const char *name); 36 extern int netatalk_rmdir_all_errors(int dirfd, const char *name);
|
H A D | vfs.h | 38 #define VFS_FUNC_ARGS_RENAMEDIR const struct vol *vol, int dirfd, const char *oldpath, const char *newpath 39 #define VFS_FUNC_VARS_RENAMEDIR vol, dirfd, oldpath, newpath 56 #define VFS_FUNC_ARGS_DELETEFILE const struct vol *vol, int dirfd, const char *file 57 #define VFS_FUNC_VARS_DELETEFILE vol, dirfd, file 59 #define VFS_FUNC_ARGS_RENAMEFILE const struct vol *vol, int dirfd, const char *src, const char *dst 60 #define VFS_FUNC_VARS_RENAMEFILE vol, dirfd, src, dst
|
H A D | ea.h | 102 int dirfd; /* for *at (cf openat) semantics, -1 means ignore */ member in struct:ea 159 int dirfd,
|
H A D | adouble.h | 477 extern int ad_openat (int dirfd, const char *, int, int, int, struct adouble *);
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/netatalk-2.2.0/libatalk/vfs/ |
H A D | unix.c | 104 * Supports *at semantics (cf openat) if HAVE_ATFUNCS. Pass dirfd=-1 to ignore this. 106 int netatalk_rmdir_all_errors(int dirfd, const char *name) argument 111 if (dirfd == -1) 112 dirfd = AT_FDCWD; 113 err = unlinkat(dirfd, name, AT_REMOVEDIR); 139 * Supports *at semantics (cf openat) if HAVE_ATFUNCS. Pass dirfd=-1 to ignore this. 141 int netatalk_rmdir(int dirfd, const char *name) argument 143 int ret = netatalk_rmdir_all_errors(dirfd, name); 191 * Supports *at semantics if HAVE_ATFUNCS, pass dirfd=-1 to ignore this 193 int copy_file(int dirfd, cons argument 268 netatalk_unlinkat(int dirfd, const char *name) argument 334 statat(int dirfd, const char *path, struct stat *st) argument 357 lstatat(int dirfd, const char *path, struct stat *st) argument 379 opendirat(int dirfd, const char *path) argument [all...] |
H A D | vfs.c | 283 return netatalk_unlinkat(dirfd, vol->ad_path(file, ADFLAGS_HF)); 293 if (unix_rename(dirfd, adsrc, -1, vol->ad_path(dst, 0 )) < 0) { 300 if (lstatat(dirfd, adsrc, &st)) /* source has no ressource fork, */ 313 if (!unix_rename(dirfd, adsrc, -1, vol->ad_path(dst, 0 )) ) 790 if (dirfd != -1) { 791 if (((cwd = open(".", O_RDONLY)) == -1) || (fchdir(dirfd) != 0)) { 799 if (dirfd != -1 && fchdir(cwd) != 0) { 818 if (unix_rename(dirfd, adsrc, -1, ad_dir(vol->ad_path(dst, 0 ))) < 0) { 825 if (lstatat(dirfd, adsrc, &st)) /* source has no ressource fork, */ 841 if (!unix_rename(dirfd, adsr [all...] |
H A D | ea.c | 667 ea->dirfd = -1; /* no *at (cf openat) semantics by default */ 822 int dirfd, 830 if (dirfd != -1) { 831 if (((cwdfd = open(".", O_RDONLY)) == -1) || (fchdir(dirfd) != 0)) { 838 ea->dirfd = dirfd; 840 if (dirfd != -1) { 895 if ((lstatat(ea->dirfd, eaname, &st)) == 0) { 896 if ((netatalk_unlinkat(ea->dirfd, eaname)) != 0) { 1322 if ((ea_openat(vol, dirfd, fil 821 ea_openat(const struct vol * __restrict vol, int dirfd, const char * __restrict uname, eaflags_t eaflags, struct ea * __restrict ea) argument [all...] |
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/db-4.7.25.NC/clib/ |
H A D | getcwd.c | 64 #ifndef dirfd 65 #define dirfd(dirp) ((dirp)->dd_fd) macro 179 if (!(dir = opendir(up)) || fstat(dirfd(dir), &s))
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/netatalk-2.2.0/etc/afpd/ |
H A D | fork.h | 78 extern struct ofork *of_findnameat(int dirfd, struct path *path); 79 extern int of_fstatat(int dirfd, struct path *path);
|
H A D | ofork.c | 269 int of_fstatat(int dirfd, struct path *path) argument 276 if ((ret = fstatat(dirfd, path->u_name, &path->st, AT_SYMLINK_NOFOLLOW)) < 0) 353 * @brief Search for open fork by dirfd/name 355 * Function call of_fstatat with dirfd and path and uses dev and ino 358 * @param dirfd (r) directory fd 362 struct ofork *of_findnameat(int dirfd, struct path *path) argument 368 of_fstatat(dirfd, path);
|
H A D | directory.c | 178 static int deletedir(int dirfd, char *dir) argument 192 if ((dp = opendirat(dirfd, dir)) == NULL) 209 if (lstatat(dirfd, path, &st)) { 213 err = deletedir(dirfd, path); 215 err = netatalk_unlinkat(dirfd, path); 223 err = netatalk_rmdir(dirfd, dir); 229 static int copydir(const struct vol *vol, int dirfd, char *src, char *dst) argument 243 ((dp = opendirat(dirfd, src)) == NULL)) 275 if (lstatat(dirfd, spath, &st) == 0) { 283 if (AFP_OK != (err = copydir(vol, dirfd, spat 2431 renamedir(const struct vol *vol, int dirfd, char *src, char *dst, struct dir *dir, struct dir *newparent, char *newname) argument [all...] |
H A D | file.c | 1651 * dirfd can be used for unlinkat semantics 1653 int deletefile(const struct vol *vol, int dirfd, char *file, int checkAttrib) argument 1669 if ( ad_metadataat(dirfd, file, ADFLAGS_OPENFORKS, &ad) == 0 ) { 1680 if ( ad_openat(dirfd, file, adflags |ADFLAGS_HF|ADFLAGS_NOHF, O_RDONLY, 0, &ad ) < 0 ) { 1718 } else if (!(err = vol->vfs->vfs_deletefile(vol, dirfd, file)) && !(err = netatalk_unlinkat(dirfd, file )) ) {
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/netatalk-2.2.0/libatalk/adouble/ |
H A D | ad_open.c | 1587 int ad_metadataat(int dirfd, const char *name, int flags, struct adouble *adp) argument 1592 if (dirfd != -1) { 1593 if ((cwdfd = open(".", O_RDONLY) == -1) || (fchdir(dirfd) != 0)) { 1604 if (dirfd != -1) { 1699 int ad_openat(int dirfd, /* dir fd openat like */ argument 1709 if (dirfd != -1) { 1710 if ((cwdfd = open(".", O_RDONLY) == -1) || (fchdir(dirfd) != 0)) { 1721 if (dirfd != -1) {
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/netatalk-2.2.0/libatalk/util/ |
H A D | ftw.c | 371 dirp->streamfd = dirfd (dirp->stream); 524 if (__fchdir (dirfd (dir.stream)) < 0) 606 if (__fchdir (dirfd (old_dir->stream)) == 0)
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/libdaemon-0.14/libdaemon/ |
H A D | dfork.c | 527 if (fd == dirfd(d))
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/minidlna/sqlite-3.6.22/ |
H A D | sqlite3.c | 21453 int dirfd; /* File descriptor for the directory */ member in struct:unixFile 23139 if( pFile->dirfd>=0 ){ 23140 int err = close(pFile->dirfd); 23145 pFile->dirfd=-1; 24552 if( pFile->dirfd>=0 ){ 24554 OSTRACE4("DIRSYNC %-3d (have_fullfsync=%d fullsync=%d)\n", pFile->dirfd, 24561 if( (!HAVE_FULLFSYNC || !isFullsync) && full_fsync(pFile->dirfd,0,0) ){ 24572 err = close(pFile->dirfd); /* Only need to sync once, so close the */ 24574 pFile->dirfd = -1; 24997 int dirfd, /* Director 24994 fillInUnixFile( sqlite3_vfs *pVfs, int h, int dirfd, sqlite3_file *pId, const char *zFilename, int noLock, int isDelete ) argument 25339 int dirfd = -1; /* Directory file descriptor */ local [all...] |
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/netatalk-2.2.0/ |
H A D | configure | 24542 for ac_func in backtrace_symbols setlocale nl_langinfo strlcpy strlcat setlinebuf dirfd pselect access pread pwrite [all...] |