/illumos-gate/usr/src/lib/libsocket/socket/ |
H A D | socketpair.c | 91 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);
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | link.c | 34 linkat(int fd1, const char *path1, int fd2, const char *path2, int flag) argument 36 return (syscall(SYS_linkat, fd1, path1, fd2, path2, flag));
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | pipe.c | 114 int fd1, fd2; local 138 if (error = falloc(vp2, FWRITE|FREAD, &fp2, &fd2)) 182 copyout(&fd2, &((int *)arg)[1], sizeof (int))) { 193 setf(fd2, fp2); 200 f_setfd(fd2, FD_CLOEXEC); 208 setf(fd2, NULL);
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | cpmv.c | 47 register int fd1, fd2; local 70 if ((fd2 = mkstemp(temp_p)) == -1) { 74 if ((fd2 = open(temp_p, O_CREAT | O_TRUNC | O_WRONLY, 86 (nw = write(fd2, buf, nr)) == nr) 90 close(fd2);
|
H A D | gio.c | 173 int fd2; local 181 fd2 = fileno( fp2 ); 189 if ( ret == SUCCESS && write( fd2, bufr, len ) != len) {
|
H A D | xio.c | 180 int fd2; local 187 fd2 = fileno( fp2 ); 195 if( ret == SUCCESS && write( fd2, bufr, len ) != len )
|
H A D | dio.c | 207 register int fd2; local 214 fd2 = fileno( fp2 ); 222 if( ret == SUCCESS && write( fd2, bufr, len ) != len )
|
H A D | eio.c | 206 int fd2; local 238 fd2 = fileno( fp2 ); 273 if ( ret == SUCCESS && write( fd2, bufr, len ) != len ) {
|
/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | setlocale.c | 618 int fd, fd2; local 681 fd2 = open(pathname, O_RDONLY); 682 if ( fd2 == 0 ) { 683 fd2 = dup(fd2); 687 if (fd2 == -1) { 696 if (read (fd2, (char *)&code_header, sizeof (code_header)) != 702 close(fd2); 714 if (read (fd2, (char *)my_info, 717 close(fd2); [all...] |
/illumos-gate/usr/src/cmd/print/printmgr/com/sun/admin/pm/server/ |
H A D | NS.c | 43 void fd_cleanup(int fd1, int fd2); 118 int fd2 = 1; local 135 passwd, cmd, &fd2); 147 fd_cleanup(fd, fd2); 151 ret = read(fd2, glob_stderr, BUFSIZ - 1); 155 fd_cleanup(fd, fd2); 178 fd_cleanup(fd, fd2); 181 fd_cleanup(fd, fd2); 186 fd_cleanup(int fd, int fd2) argument 191 if (fd2 > [all...] |
/illumos-gate/usr/src/lib/libshell/common/bltins/ |
H A D | mkservice.c | 155 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;
|
/illumos-gate/usr/src/lib/libcmdutils/common/ |
H A D | process_xattrs.c | 40 int fd2; local 56 if ((fd2 = attropen(attrfile, ".", O_RDONLY)) == -1) { 61 *tfd = fd2;
|
/illumos-gate/usr/src/uts/common/io/mac/ |
H A D | mac_flow.c | 1797 flow_desc_t *fd1 = &f1->fe_flow_desc, *fd2 = &f2->fe_flow_desc; local 1799 ASSERT(fd1->fd_mac_len == fd2->fd_mac_len && fd1->fd_mac_len != 0); 1800 return (bcmp(&fd1->fd_dst_mac, &fd2->fd_dst_mac, 1801 fd1->fd_mac_len) == 0 && fd1->fd_vid == fd2->fd_vid); 2102 flow_desc_t *fd1 = &f1->fe_flow_desc, *fd2 = &f2->fe_flow_desc; local 2104 return (fd1->fd_protocol == fd2->fd_protocol); 2111 flow_desc_t *fd1 = &f1->fe_flow_desc, *fd2 = &f2->fe_flow_desc; local 2114 ASSERT(fd1->fd_mask == fd2->fd_mask); 2116 return (fd1->fd_dsfield == fd2->fd_dsfield && 2117 fd1->fd_dsfield_mask == fd2 2430 flow_desc_t *fd1 = &f1->fe_flow_desc, *fd2 = &f2->fe_flow_desc; local [all...] |
/illumos-gate/usr/src/cmd/rexd/ |
H A D | rpc.rexd.c | 838 int fd0, fd1, fd2; local 1137 fd2 = fd1; 1142 fd2 = socket(AF_INET, SOCK_STREAM, 0); 1143 fd2 = doconnect(calleraddr, rst->rst_port2, fd2); 1144 shutdown(fd2, 0); /* 0=>further receives disallowed */ 1152 DoHelper(&fd0, &fd1, &fd2); 1158 dup2(fd2, 2);
|
/illumos-gate/usr/src/cmd/avs/sdbc/ |
H A D | sd_diag.c | 837 do_sdtest10(int fd1, int fd2, nsc_size_t loops, nsc_size_t filesize1, argument 864 r = pwrite(fd2, buf1, bufsize, 882 r = pread(fd2, buf2, bufsize, 890 " fd1:%s, fd2:%s fpos:%" NSC_SZFMT ", len:%d\n", 1011 int fd, fd2, r, id, h, i; local 1064 fd2 = nsc_fileno(sdfd2); 1065 if (fd2 == -1) { 1073 r = do_sdtest10(fd, fd2, loops, filesize, filesize2, h);
|
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | dstream.c | 797 int fd2, fd; local 811 fd2 = fcntl(fd, F_DUPFD, fd); 826 (void) fcntl(fd2, F_DUPFD, fd); 827 (void) close(fd2);
|
H A D | keystore.c | 1325 int fd1, fd2, len; local 1350 if (((fd2 = open(keystore_file, 1352 (fstat(fd2, &buf) != -1)) { 1375 if (fd2 != -1) 1376 (void) close(fd2);
|
/illumos-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_check.c | 524 int fd2 = -1; local 646 if ((fd2 = open(name2, O_RDONLY | O_NDELAY)) < 0) { 649 rc2 = devid_get(fd2, &devid2); 650 (void) close(fd2);
|
/illumos-gate/usr/src/cmd/mpathadm/ |
H A D | mpathadm.c | 1077 int fd1, fd2; local 1090 fd1 = fd2 = -1; 1092 ((fd2 = open(deviceProperty, O_RDONLY|O_NDELAY)) >= 0) && 1094 (devid_get(fd2, &devid2) == 0) && 1112 if (fd2 >= 0) { 1113 (void) close(fd2); 1761 int fd1, fd2; local 1834 fd1 = fd2 = -1; 1838 ((fd2 = open(luProps.deviceFileName, 1841 (devid_get(fd2, [all...] |
/illumos-gate/usr/src/cmd/fs.d/nfs/nfsref/ |
H A D | nfsref.c | 196 int fd, fd2; local
|
/illumos-gate/usr/src/tools/scripts/ |
H A D | wsdiff.py | 278 fd2 = open(tmpFile2, "w") 284 fd2.write(d2) 286 fd2.close()
|
/illumos-gate/usr/src/lib/libbc/libc/sys/common/ |
H A D | _open.c | 72 int fd, fd2, pathl, inspt, ret = 0; local
|