/titanic_50/usr/src/tools/cpcgen/ |
H A D | cpcgen.c | 1175 cpcgen_remove_tmpfile(int dirfd, const char *path) in cpcgen_remove_tmpfile() argument 1178 (void) unlinkat(dirfd, path, 0); in cpcgen_remove_tmpfile() 1187 cpcgen_common_intel_files(int dirfd) in cpcgen_common_intel_files() argument 1199 if ((fd = openat(dirfd, tmpname, O_RDWR | O_CREAT, 0644)) < 0) { in cpcgen_common_intel_files() 1205 cpcgen_remove_tmpfile(dirfd, tmpname); in cpcgen_common_intel_files() 1210 cpcgen_remove_tmpfile(dirfd, tmpname); in cpcgen_common_intel_files() 1225 cpcgen_remove_tmpfile(dirfd, tmpname); in cpcgen_common_intel_files() 1233 cpcgen_remove_tmpfile(dirfd, tmpname); in cpcgen_common_intel_files() 1245 cpcgen_remove_tmpfile(dirfd, tmpname); in cpcgen_common_intel_files() 1251 cpcgen_remove_tmpfile(dirfd, tmpname); in cpcgen_common_intel_files() [all …]
|
/titanic_50/usr/src/cmd/runat/ |
H A D | runat.c | 56 int dirfd; in main() local 75 if ((dirfd = openat64(fd, ".", O_RDONLY|O_XATTR)) == -1) { in main() 84 if (fchdir(dirfd) == -1) { in main()
|
/titanic_50/usr/src/cmd/svc/startd/ |
H A D | log.c | 579 int dirfd, logfd; in log_init() local 662 if ((dirfd = log_dir_writeable(LOG_PREFIX_NORMAL)) == -1) { in log_init() 663 if ((dirfd = log_dir_writeable(LOG_PREFIX_EARLY)) == -1) in log_init() 674 if ((logfd = openat(dirfd, STARTD_DEFAULT_LOG, in log_init() 676 (void) close(dirfd); in log_init() 681 (void) close(dirfd); in log_init()
|
/titanic_50/usr/src/cmd/tar/ |
H A D | tar.c | 459 static void setPathTimes(int dirfd, char *path, timestruc_t modTime); 467 static void resugname(int dirfd, char *name, int symflag); 514 static int getstat(int dirfd, char *longname, char *shortname, 1839 int dirfd = -1; in putfile() local 1861 dirfd = attrinfo->attr_parentfd; in putfile() 1864 dirfd = open(".", O_RDONLY); in putfile() 1867 if (dirfd == -1) { in putfile() 1885 if (getstat(dirfd, longname, shortname, attrparent)) in putfile() 1892 j = fstatat(dirfd, shortname, &sbuf, AT_SYMLINK_NOFOLLOW); in putfile() 2310 if ((infile = openat(dirfd, shortname, 0)) < 0) { in putfile() [all …]
|
/titanic_50/usr/src/lib/libsqlite/src/ |
H A D | os.c | 467 id->dirfd = -1; in sqliteOsOpenReadWrite() 598 id->dirfd = -1; in sqliteOsOpenExclusive() 686 id->dirfd = -1; in sqliteOsOpenReadOnly() 774 assert( id->dirfd<0 ); in sqliteOsOpenDirectory() 775 id->dirfd = open(zDirname, O_RDONLY|O_BINARY, 0644); in sqliteOsOpenDirectory() 776 if( id->dirfd<0 ){ in sqliteOsOpenDirectory() 779 TRACE3("OPENDIR %-3d %s\n", id->dirfd, zDirname); in sqliteOsOpenDirectory() 915 if( id->dirfd>=0 ) close(id->dirfd); in sqliteOsClose() 916 id->dirfd = -1; in sqliteOsClose() 1140 if( id->dirfd>=0 ){ [all …]
|
H A D | os.h | 115 int dirfd; /* File descriptor for the directory */ member
|
/titanic_50/usr/src/cmd/cpio/ |
H A D | cpio.c | 144 static int creat_lnk(int dirfd, char *name1_p, char *name2_p); 145 static int creat_spec(int dirfd); 162 static int openout(int dirfd); 167 static void rstfiles(int over, int dirfd); 170 static void set_tym(int dirfd, char *nam_p, time_t atime, time_t mtime); 1722 creat_lnk(int dirfd, char *name1_p, char *name2_p) in creat_lnk() argument 1769 else if (unlinkat(dirfd, get_component(name2_p), 0) < 0) in creat_lnk() 1821 creat_spec(int dirfd) in creat_spec() argument 1847 if (fchownat(dirfd, ".", Rpw_p->pw_uid, in creat_spec() 1854 } else if ((fchownat(dirfd, ".", G_p->g_uid, in creat_spec() [all …]
|
/titanic_50/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | smb_quota.c | 1128 int newfd, dirfd, afd; in smb_quota_add_ctrldir() local 1143 if ((dirfd = open(dir, O_RDONLY)) < 0) { in smb_quota_add_ctrldir() 1149 if (fgetattr(dirfd, XATTR_VIEW_READWRITE, &attr) != 0) { in smb_quota_add_ctrldir() 1150 (void) close(dirfd); in smb_quota_add_ctrldir() 1159 (void) close(dirfd); in smb_quota_add_ctrldir() 1178 (fsetattr(dirfd, XATTR_VIEW_READWRITE, attr))) { in smb_quota_add_ctrldir() 1180 (void) close(dirfd); in smb_quota_add_ctrldir() 1189 (void) close(dirfd); in smb_quota_add_ctrldir()
|
/titanic_50/usr/src/grub/grub-0.97/stage2/ |
H A D | dir.h | 135 #define dirfd(dirp) ((dirp)->dd_fd) macro
|
/titanic_50/usr/src/lib/libc/port/gen/ |
H A D | fdopendir.c | 90 dirfd(DIR *dirp) in dirfd() function
|
/titanic_50/usr/src/cmd/chmod/ |
H A D | chmod.c | 1000 int dirfd; in set_named_attrs() local 1031 if (((dirfd = dup(parentfd)) == -1) || in set_named_attrs() 1032 ((dirp = fdopendir(dirfd)) == NULL)) { in set_named_attrs() 1035 if (dirfd > 0) { in set_named_attrs() 1036 (void) close(dirfd); in set_named_attrs()
|
/titanic_50/usr/src/head/ |
H A D | dirent.h | 102 extern int dirfd(DIR *);
|
/titanic_50/usr/src/cmd/rm/ |
H A D | rm.c | 241 opendirat(int dirfd, const char *entry, struct dlist *frm) in opendirat() argument 248 while ((fd = openat(dirfd, entry, O_RDONLY|O_NONBLOCK)) == -1 && in opendirat()
|
/titanic_50/usr/src/cmd/sendmail/src/ |
H A D | map.c | 1506 int dirfd; 1515 dirfd = safeopen(dirfile, mode, DBMMODE, sff); 1518 if (dirfd < 0 || pagfd < 0) 1521 if (dirfd >= 0) 1522 (void) close(dirfd); 1530 if (ftruncate(dirfd, (off_t) 0) < 0 || 1534 (void) close(dirfd); 1544 (fstat(dirfd, &std) < 0 || fstat(pagfd, &stp) < 0)) 1547 (void) close(dirfd); 1556 map->map_lockfd = dirfd;
|
H A D | deliver.c | 950 int dirfd; local 968 dirfd = open(dirp, O_RDONLY, 0700); 971 dirp, dirfd); 972 if (dirfd >= 0) 974 if (fsync(dirfd) < 0) 984 (void) close(dirfd);
|
/titanic_50/usr/src/lib/c_synonyms/ |
H A D | syn_common | 230 dirfd
|
/titanic_50/usr/src/lib/libc/port/ |
H A D | mapfile-vers | 456 dirfd;
|
/titanic_50/usr/src/man/man3c/ |
H A D | Makefile | 90 dirfd.3c \
|
/titanic_50/usr/src/pkg/manifests/ |
H A D | system-library.man3c.inc | 85 file path=usr/share/man/man3c/dirfd.3c
|