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

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dopendir.c54 if ((fd = openat(AT_FDCWD, filename,
H A D_xftw.c83 * during the call to openat(), therefore if the depth argument
84 * is less than 2 _xftw will not use openat(), and it will fail with
271 * depth arg >= 2, use openat() to make sure that it doesn't fail with
284 * Traverse the path using openat() to get the fd for
292 if ((fd = openat(AT_FDCWD, dirp, O_RDONLY)) < 0) {
298 if ((cfd = openat(fd, token, O_RDONLY)) < 0) {
319 * use openat() to make sure that it doesn't fail with ENAMETOOLONG.
333 /* Traverse path using openat() to get fd for fstatat(). */
339 if ((fd = openat(AT_FDCWD, dirp, O_RDONLY)) < 0) {
347 if ((cfd = openat(f
[all...]
H A Dattropen.c96 if ((attrfd = openat(fd, attr, oflag | O_XATTR,
H A Dattrat.c167 xattrfd = openat(basefd, xattrname, oflag);
H A Dnftw.c91 * descriptors to be open during the call to openat(), therefore if
92 * the depth argument is less than 2 nftw will not use openat(), and
555 * requires a depth arg >= 2 so that nocdopendir() can use openat()
701 if ((fd = openat(AT_FDCWD, dirp, O_RDONLY)) < 0) {
707 if ((cfd = openat(fd, token, O_RDONLY)) < 0) {
/illumos-gate/usr/src/head/
H A Dfcntl.h85 #pragma redefine_extname openat openat64
97 #define openat openat64 macro
113 #pragma redefine_extname openat64 openat
125 #define openat64 openat
140 extern int openat(int, const char *, int, ...);
/illumos-gate/usr/src/lib/libcmdutils/common/
H A Dprocess_xattrs.c104 if ((indfd = openat(srcfd, ".", O_RDONLY|O_XATTR)) == -1) {
105 etext = dgettext(TEXT_DOMAIN, "cannot openat source");
129 if ((sattrfd = openat(indfd, dp->d_name,
140 if ((tattrfd = openat(outdfd, dp->d_name,
/illumos-gate/usr/src/man/man2/
H A DMakefile218 openat.2 \
351 openat.2 := LINKSRC = open.2
/illumos-gate/usr/src/uts/common/syscall/
H A Dopen.c55 * Common code for openat(). Check permissions, allocate an open
94 * We're here via openat()
295 openat(int fd, char *path, int fmode, int cmode) function
303 return (openat(AT_FDCWD, path, fmode, cmode));
/illumos-gate/usr/src/test/zfs-tests/cmd/mktree/
H A Dmktree.c177 if ((afd = openat(fd, "xattr", O_CREAT | O_RDWR | O_XATTR, 0777)) < 0) {
178 (void) fprintf(stderr, "openat failed.\n[%d]: %s.\n",
/illumos-gate/usr/src/boot/sys/sys/
H A Dfcntl.h199 * to determine the target of relative file paths in the openat() and
323 int openat(int, const char *, int, ...);
/illumos-gate/usr/src/cmd/mv/
H A Dmv.c2030 if ((sourcedirfd = openat(srcfd, ".", O_RDONLY|O_XATTR)) == -1) {
2061 if ((targetdirfd = openat(targfd, ".", O_RDONLY|O_XATTR)) == -1) {
2141 if ((srcattrfd = openat(sourcedirfd, dp->d_name,
2167 if ((targattrfd = openat(targetdirfd, dp->d_name,
2180 if ((targattrfd = openat(targetdirfd, dp->d_name,
/illumos-gate/usr/src/cmd/sgs/rtld.4.x/
H A Drtldlib.s88 mov %o2, %o3 ! openat(AT_FDCWD, path, oflag, mode)
/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A Dexternal.c649 openat(int fd, const char *path, int oflag, ...) function
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/
H A Dfake_vop.c353 fd = openat(dvp->v_fd, name, omode, 0);
423 fd = openat(dvp->v_fd, name, omode, mode);
554 if ((fd = openat(dvp->v_fd, name, O_RDONLY)) == -1)
/illumos-gate/usr/src/cmd/rm/
H A Drm.c248 while ((fd = openat(dirfd, entry, O_RDONLY|O_NONBLOCK)) == -1 &&
/illumos-gate/usr/src/cmd/svc/startd/
H A Dlog.c674 if ((logfd = openat(dirfd, STARTD_DEFAULT_LOG,
/illumos-gate/usr/src/lib/libc/port/threads/
H A Dscalls.c64 #pragma weak _openat = openat
822 openat(int fd, const char *path, int oflag, ...) function
/illumos-gate/usr/src/cmd/backup/restore/
H A Dutilities.c603 if ((fd = openat(dfd, filename,
624 if ((fd = openat(dfd, filename, working_mode)) < 0) {
/illumos-gate/usr/src/lib/libpkg/common/
H A Dpkgserv.c129 fd = openat(dir, PKGDOOR, O_RDWR);
/illumos-gate/usr/src/uts/common/os/
H A Dsysent.c109 int openat(int, char *, int, int);
521 /* 68 */ SYSENT_CI("openat", openat, 4),
892 /* 68 */ SYSENT_CI("openat", openat32, 4),
/illumos-gate/usr/src/cmd/cpio/
H A Dcpio.c548 * such as openat, fchownat(), unlinkat()...
559 * fd = openat(dfd, <name>,....);
3266 if ((Ifile = openat(G_p->g_dirfd, get_component(namep), 0)) < 0) {
3955 if ((dirfd = openat(cwd, (pattr == NULL) ? fullname : pattr,
3997 ofilefd = openat(pdirfd, name, oflag, mode);
5673 if ((result = openat(dirfd, get_component(nam_p),
8434 filefd = openat(Gen.g_dirfd, dp->d_name, O_RDONLY);
8720 return (openat(G_p->g_dirfd, G_p->g_attrnam_p, omode));
8722 return (openat(G_p->g_dirfd,
8730 return (openat(G_
9691 openat(int fd, char *name, int oflag, mode_t cmode) function
[all...]
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_mount.c206 if ((dirfd = openat(AT_FDCWD, dirname,
/illumos-gate/usr/src/cmd/tar/
H A Dtar.c107 static int openat();
238 * such as openat, fchownat(), unlinkat()...
249 * fd = openat(dfd, <name>,....);
2311 if ((infile = openat(dirfd, shortname, 0)) < 0) {
3473 ofile = openat(dirfd, comp, O_RDWR|O_CREAT|O_TRUNC,
8440 if ((dirfd = openat(cwd, (pattr == NULL) ? dirp : pattr,
8483 ofilefd = openat(pdirfd, name, oflag, mode);
8533 openat(int fd, const char *name, int oflag, mode_t cmode) function
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Ddfs.c1201 xfd = openat(dfd, DFS_ROOT_XATTR, oflag | O_XATTR, 0600);

Completed in 491 milliseconds