Searched defs:fd2 (Results 1 - 8 of 8) sorted by relevance

/osnet-11/usr/src/lib/libfedfs/common/
H A Dget_rp_data.c62 int fd1, fd2; local
67 fd2 = openat(fd1, REFERRAL_EA, O_RDONLY | O_XATTR);
69 if (fd2 == -1)
71 err = fstat(fd2, &stbuf);
73 (void) close(fd2);
78 (void) close(fd2);
81 sz = read(fd2, res, stbuf.st_size);
82 (void) close(fd2);
/osnet-11/usr/src/lib/libc/port/sys/
H A Dlink.c34 linkat(int fd1, const char *path1, int fd2, const char *path2, int flag) argument
36 return (syscall(SYS_linkat, fd1, path1, fd2, path2, flag));
/osnet-11/usr/src/lib/libsocket/socket/
H A Dsocketpair.c91 int fd1, fd2; local
100 fd2 = _socket_create(family, type, protocol, version);
101 if (fd2 < 0) {
109 sv[1] = fd2;
115 (void) close(fd2);
127 if (sv[1] != fd2)
128 (void) close(fd2);
/osnet-11/usr/src/lib/libcmdutils/common/
H A Dprocess_xattrs.c39 int fd2; local
55 if ((fd2 = attropen(attrfile, ".", O_RDONLY)) == -1) {
60 *tfd = fd2;
/osnet-11/usr/src/lib/libshell/common/bltins/
H A Dmkservice.c155 static int fdnotify(int fd1, int fd2) argument
159 (*covered_fdnotify)(fd1, fd2);
160 if(fd2!=SH_FDCLOSE)
163 service_list[fd2] = service_list[fd1];
169 file_list[i] = fd2;
/osnet-11/usr/src/lib/lvm/libmeta/common/
H A Dmeta_check.c523 int fd2 = -1; local
645 if ((fd2 = open(name2, O_RDONLY | O_NDELAY)) < 0) {
648 rc2 = devid_get(fd2, &devid2);
649 (void) close(fd2);
/osnet-11/usr/src/lib/libpkg/common/
H A Ddstream.c831 int fd2, fd; local
835 int fd2, fd; local
946 fd2 = fcntl(fd, F_DUPFD, fd);
961 fcntl(fd2, F_DUPFD, fd);
962 (void) close(fd2);
H A Dkeystore.c1325 int fd1, fd2, len; local
1350 if (((fd2 = open(keystore_file,
1352 (fstat(fd2, &buf) != -1)) {
1375 if (fd2 != -1)
1376 (void) close(fd2);

Completed in 72 milliseconds