Searched refs:fd1 (Results 1 - 20 of 20) sorted by relevance

/illumos-gate/usr/src/lib/libsocket/socket/
H A Dsocketpair.c91 int fd1, fd2; local
97 fd1 = _socket_create(family, type, protocol, version);
98 if (fd1 < 0)
104 (void) close(fd1);
108 sv[0] = fd1;
114 (void) close(fd1);
125 if (sv[0] != fd1)
126 (void) close(fd1);
/illumos-gate/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));
/illumos-gate/usr/src/uts/common/syscall/
H A Dpipe.c114 int fd1, fd2; local
132 if (error = falloc(vp1, FWRITE|FREAD, &fp1, &fd1)) {
181 if (copyout(&fd1, &((int *)arg)[0], sizeof (int)) ||
192 setf(fd1, fp1);
199 f_setfd(fd1, FD_CLOEXEC);
211 setf(fd1, NULL);
/illumos-gate/usr/src/cmd/bnu/
H A Dcpmv.c47 register int fd1, fd2; local
52 if ((fd1 = open(f1, O_RDONLY)) == -1)
77 (void) close(fd1);
85 while ((nr = read(fd1, buf, sizeof (buf))) > 0 &&
89 close(fd1);
H A Dgio.c144 int fd1; local
152 fd1 = fileno( fp1 );
153 while ((len = read( fd1, bufr, BUFSIZ )) > 0) {
H A Dxio.c146 int fd1; local
152 fd1 = fileno( fp1 );
153 while ((len = read( fd1, bufr, XBUFSIZ )) > 0) {
H A Ddio.c169 register int fd1; local
175 fd1 = fileno( fp1 );
176 while ((len = read( fd1, bufr, XBUFSIZ )) > 0) {
H A Deio.c135 int fd1; local
152 fd1 = fileno(fp1);
153 fstat(fd1, &statbuf);
154 startPoint = lseek(fd1, 0L, 1);
175 while ((len = read( fd1, bufr, EBUFSIZ )) > 0) {
/illumos-gate/usr/src/lib/libshell/common/bltins/
H A Dmkservice.c155 static int fdnotify(int fd1, int fd2) argument
159 (*covered_fdnotify)(fd1, fd2);
163 service_list[fd2] = service_list[fd1];
164 service_list[fd1] = 0;
167 if(file_list[i]==fd1)
174 else if(sp = service_list[fd1])
176 fdclose(sp,fd1);
/illumos-gate/usr/src/uts/common/io/mac/
H A Dmac_flow.c1797 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
2430 flow_desc_t *fd1 = &f1->fe_flow_desc, *fd2 = &f2->fe_flow_desc; local
[all...]
/illumos-gate/usr/src/lib/libcmdutils/common/
H A Dprocess_xattrs.c39 int fd1; local
44 if ((fd1 = attropen(attrfile, ".", O_RDONLY)) == -1) {
49 *sfd = fd1;
/illumos-gate/usr/src/cmd/rexd/
H A Drpc.rexd.c838 int fd0, fd1, fd2; local
1029 fd1 = fd0;
1042 if (AllocatePty(fd0, fd1)) {
1088 close(fd1);
1124 fd1 = socket(AF_INET, SOCK_STREAM, 0);
1126 fd1 = doconnect(calleraddr, rst->rst_port1, fd1);
1127 shutdown(fd1, 0); /* 0=>further receives disallowed */
1137 fd2 = fd1;
1152 DoHelper(&fd0, &fd1,
[all...]
/illumos-gate/usr/src/cmd/csh/
H A Dsh.dol.c639 int fd1; local
644 if ((fd1 = mkstemp_(shtemp)) < 0)
647 unsetfd(fd1);
/illumos-gate/usr/src/cmd/luxadm/
H A Dfcalupdate.c137 int fbuf_idx, fd1, bytes_read; local
151 if ((fd1 = open(file, O_RDONLY)) == -1) {
164 while (!strfound && ((bytes_read = read(fd1,
177 (void) close(fd1);
/illumos-gate/usr/src/lib/lvm/libmeta/common/
H A Dmeta_check.c523 int fd1 = -1; local
635 if ((fd1 = open(name1, O_RDONLY | O_NDELAY)) < 0) {
638 rc1 = devid_get(fd1, &devid1);
639 (void) close(fd1);
/illumos-gate/usr/src/lib/libpkg/common/
H A Dkeystore.c1325 int fd1, fd2, len; local
1340 if (((fd1 = open(storepath, O_NONBLOCK|O_RDONLY)) == -1) ||
1341 (fstat(fd1, &buf) == -1) ||
1373 if (fd1 != -1)
1374 (void) close(fd1);
1378 if (((fd1 = open(keystore_file,
1380 (fstat(fd1, &buf) != -1) &&
1388 if (fd1 != -1)
1389 (void) close(fd1);
/illumos-gate/usr/src/cmd/mpathadm/
H A Dmpathadm.c1077 int fd1, fd2; local
1090 fd1 = fd2 = -1;
1091 if (((fd1 = open(cmpString, O_RDONLY|O_NDELAY)) >= 0) &&
1093 (devid_get(fd1, &devid1) == 0) &&
1109 if (fd1 >= 0) {
1110 (void) close(fd1);
1761 int fd1, fd2; local
1834 fd1 = fd2 = -1;
1836 if (((fd1 = open(luFileName,
1840 (devid_get(fd1,
[all...]
/illumos-gate/usr/src/cmd/avs/sdbc/
H A Dsd_diag.c837 do_sdtest10(int fd1, int fd2, nsc_size_t loops, nsc_size_t filesize1, argument
858 r = pread(fd1, buf1, bufsize,
875 r = pread(fd1, buf1, bufsize,
890 " fd1:%s, fd2:%s fpos:%" NSC_SZFMT ", len:%d\n",
/illumos-gate/usr/src/tools/scripts/
H A Dwsdiff.py272 fd1 = open(tmpFile1, "w")
283 fd1.write(d1)
285 fd1.close()
/illumos-gate/usr/src/cmd/print/printmgr/com/sun/admin/pm/server/
H A DNS.c43 void fd_cleanup(int fd1, int fd2);

Completed in 135 milliseconds