Searched refs:dirfd (Results 1 - 25 of 33) sorted by relevance

12

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.5/libatalk/compat/
H A Dmisc.c7 int dirfd(DIR *dir) function
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.0/include/atalk/
H A Dunix.h28 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 Dvfs.h38 #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 Dea.h102 int dirfd; /* for *at (cf openat) semantics, -1 means ignore */ member in struct:ea
159 int dirfd,
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.5/include/atalk/
H A Dunix.h28 extern int netatalk_unlinkat(int dirfd, const char *name);
29 extern int statat(int dirfd, const char *path, struct stat *st);
30 extern DIR *opendirat(int dirfd, const char *path);
33 extern int netatalk_rmdir(int dirfd, const char *name);
34 extern int netatalk_rmdir_all_errors(int dirfd, const char *name);
H A Dvfs.h38 #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 Dea.h102 int dirfd; /* for *at (cf openat) semantics, -1 means ignore */ member in struct:ea
159 int dirfd,
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.0/libatalk/vfs/
H A Dunix.c104 * 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 Dvfs.c283 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 Dea.c667 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-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.5/libatalk/vfs/
H A Dunix.c108 * Supports *at semantics (cf openat) if HAVE_ATFUNCS. Pass dirfd=-1 to ignore this.
110 int netatalk_rmdir_all_errors(int dirfd, const char *name) argument
115 if (dirfd == -1)
116 dirfd = AT_FDCWD;
117 err = unlinkat(dirfd, name, AT_REMOVEDIR);
143 * Supports *at semantics (cf openat) if HAVE_ATFUNCS. Pass dirfd=-1 to ignore this.
145 int netatalk_rmdir(int dirfd, const char *name) argument
147 int ret = netatalk_rmdir_all_errors(dirfd, name);
180 * Supports *at semantics if HAVE_ATFUNCS, pass dirfd=-1 to ignore this
182 int copy_file(int dirfd, cons argument
257 netatalk_unlinkat(int dirfd, const char *name) argument
323 statat(int dirfd, const char *path, struct stat *st) argument
345 opendirat(int dirfd, const char *path) argument
[all...]
H A Dvfs.c283 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 (ostatat(dirfd, adsrc, &st, vol_syml_opt(vol))) /* source has no ressource fork, */
313 if (!unix_rename(dirfd, adsrc, -1, vol->ad_path(dst, 0 )) )
800 if (dirfd != -1) {
801 if (((cwd = open(".", O_RDONLY)) == -1) || (fchdir(dirfd) != 0)) {
809 if (dirfd != -1 && fchdir(cwd) != 0) {
828 if (unix_rename(dirfd, adsrc, -1, ad_dir(vol->ad_path(dst, 0 ))) < 0) {
835 if (ostatat(dirfd, adsrc, &st, vol_syml_opt(vol))) /* source has no ressource fork, */
851 if (!unix_rename(dirfd, adsr
[all...]
H A Dea.c669 ea->dirfd = -1; /* no *at (cf openat) semantics by default */
824 int dirfd,
832 if (dirfd != -1) {
833 if (((cwdfd = open(".", O_RDONLY)) == -1) || (fchdir(dirfd) != 0)) {
840 ea->dirfd = dirfd;
842 if (dirfd != -1) {
897 if ((statat(ea->dirfd, eaname, &st)) == 0) {
898 if ((netatalk_unlinkat(ea->dirfd, eaname)) != 0) {
1324 if ((ea_openat(vol, dirfd, fil
823 ea_openat(const struct vol * restrict vol, int dirfd, const char * restrict uname, eaflags_t eaflags, struct ea * restrict ea) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.5/libatalk/util/
H A Dunix.c235 * ostatat mulitplexes ostat and fstatat. If we dont HAVE_ATFUNCS, dirfd is ignored.
237 * @param dirfd (r) Only used if HAVE_ATFUNCS, ignored else, -1 gives AT_FDCWD
241 int ostatat(int dirfd, const char *path, struct stat *st, int options) argument
244 if (dirfd == -1)
245 dirfd = AT_FDCWD;
246 return fstatat(dirfd, path, st, (options & O_NOFOLLOW) ? AT_SYMLINK_NOFOLLOW : 0);
H A Dftw.c371 dirp->streamfd = dirfd (dirp->stream);
524 if (__fchdir (dirfd (dir.stream)) < 0)
606 if (__fchdir (dirfd (old_dir->stream)) == 0)
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/db-4.7.25.NC/clib/
H A Dgetcwd.c64 #ifndef dirfd
65 #define dirfd(dirp) ((dirp)->dd_fd) macro
179 if (!(dir = opendir(up)) || fstat(dirfd(dir), &s))
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.0/etc/afpd/
H A Dfork.h78 extern struct ofork *of_findnameat(int dirfd, struct path *path);
79 extern int of_fstatat(int dirfd, struct path *path);
H A Dofork.c269 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 Ddirectory.c178 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...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.5/etc/afpd/
H A Dfork.h78 extern struct ofork *of_findnameat(int dirfd, struct path *path);
79 extern int of_fstatat(int dirfd, struct path *path);
H A Dofork.c269 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 Ddirectory.c178 static int deletedir(const struct vol *vol, int dirfd, char *dir) argument
192 if ((dp = opendirat(dirfd, dir)) == NULL)
209 if (ostatat(dirfd, path, &st, vol_syml_opt(vol))) {
213 err = deletedir(vol, 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 (ostatat(dirfd, spath, &st, vol_syml_opt(vol)) == 0) {
283 if (AFP_OK != (err = copydir(vol, dirfd, spat
2446 renamedir(const struct vol *vol, int dirfd, char *src, char *dst, struct dir *dir, struct dir *newparent, char *newname) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.0/libatalk/adouble/
H A Dad_open.c1587 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-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.5/libatalk/adouble/
H A Dad_open.c1597 int ad_metadataat(int dirfd, const char *name, int flags, struct adouble *adp) argument
1602 if (dirfd != -1) {
1603 if ((cwdfd = open(".", O_RDONLY) == -1) || (fchdir(dirfd) != 0)) {
1614 if (dirfd != -1) {
1697 int ad_openat(int dirfd, /* dir fd openat like */ argument
1707 if (dirfd != -1) {
1708 if ((cwdfd = open(".", O_RDONLY) == -1) || (fchdir(dirfd) != 0)) {
1719 if (dirfd != -1) {
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.0/libatalk/util/
H A Dftw.c371 dirp->streamfd = dirfd (dirp->stream);
524 if (__fchdir (dirfd (dir.stream)) < 0)
606 if (__fchdir (dirfd (old_dir->stream)) == 0)

Completed in 269 milliseconds

12