Home
last modified time | relevance | path

Searched refs:fd1 (Results 1 – 22 of 22) sorted by relevance

/titanic_51/usr/src/lib/libsocket/socket/
H A Dsocketpair.c91 int fd1, fd2; in _socketpair_create() local
97 fd1 = _socket_create(family, type, protocol, version); in _socketpair_create()
98 if (fd1 < 0) in _socketpair_create()
104 (void) close(fd1); in _socketpair_create()
108 sv[0] = fd1; in _socketpair_create()
114 (void) close(fd1); in _socketpair_create()
125 if (sv[0] != fd1) in _socketpair_create()
126 (void) close(fd1); in _socketpair_create()
/titanic_51/usr/src/uts/common/syscall/
H A Dpipe.c114 int fd1, fd2; in pipe() local
132 if (error = falloc(vp1, FWRITE|FREAD, &fp1, &fd1)) { in pipe()
181 if (copyout(&fd1, &((int *)arg)[0], sizeof (int)) || in pipe()
192 setf(fd1, fp1); in pipe()
199 f_setfd(fd1, FD_CLOEXEC); in pipe()
211 setf(fd1, NULL); in pipe()
/titanic_51/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 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 Dgio.c144 int fd1; local
152 fd1 = fileno( fp1 );
153 while ((len = read( fd1, bufr, BUFSIZ )) > 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) {
/titanic_51/usr/src/lib/libshell/common/bltins/
H A Dmkservice.c155 static int fdnotify(int fd1, int fd2) in fdnotify() argument
159 (*covered_fdnotify)(fd1, fd2); in fdnotify()
163 service_list[fd2] = service_list[fd1]; in fdnotify()
164 service_list[fd1] = 0; in fdnotify()
167 if(file_list[i]==fd1) in fdnotify()
174 else if(sp = service_list[fd1]) in fdnotify()
176 fdclose(sp,fd1); in fdnotify()
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dmkservice.c155 static int fdnotify(int fd1, int fd2) in fdnotify() argument
159 (*covered_fdnotify)(fd1, fd2); in fdnotify()
163 service_list[fd2] = service_list[fd1]; in fdnotify()
164 service_list[fd1] = 0; in fdnotify()
167 if(file_list[i]==fd1) in fdnotify()
174 else if(sp = service_list[fd1]) in fdnotify()
176 fdclose(sp,fd1); in fdnotify()
/titanic_51/usr/src/lib/libc/port/sys/
H A Dlink.c34 linkat(int fd1, const char *path1, int fd2, const char *path2, int flag) in linkat() argument
36 return (syscall(SYS_linkat, fd1, path1, fd2, path2, flag)); in linkat()
/titanic_51/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...]
/titanic_51/usr/src/uts/common/io/mac/
H A Dmac_flow.c1797 flow_desc_t *fd1 = &f1->fe_flow_desc, *fd2 = &f2->fe_flow_desc; in flow_l2_match_fe() local
1799 ASSERT(fd1->fd_mac_len == fd2->fd_mac_len && fd1->fd_mac_len != 0); in flow_l2_match_fe()
1800 return (bcmp(&fd1->fd_dst_mac, &fd2->fd_dst_mac, in flow_l2_match_fe()
1801 fd1->fd_mac_len) == 0 && fd1->fd_vid == fd2->fd_vid); in flow_l2_match_fe()
2102 flow_desc_t *fd1 = &f1->fe_flow_desc, *fd2 = &f2->fe_flow_desc; in flow_ip_proto_match_fe() local
2104 return (fd1->fd_protocol == fd2->fd_protocol); in flow_ip_proto_match_fe()
2111 flow_desc_t *fd1 = &f1->fe_flow_desc, *fd2 = &f2->fe_flow_desc; in flow_ip_match_fe() local
2114 ASSERT(fd1 in flow_ip_match_fe()
2430 flow_desc_t *fd1 = &f1->fe_flow_desc, *fd2 = &f2->fe_flow_desc; flow_transport_match_fe() local
[all...]
/titanic_51/usr/src/lib/libcmdutils/common/
H A Dprocess_xattrs.c39 int fd1; in get_attrdirs() local
44 if ((fd1 = attropen(attrfile, ".", O_RDONLY)) == -1) { in get_attrdirs()
49 *sfd = fd1; in get_attrdirs()
/titanic_51/usr/src/cmd/luxadm/
H A Dfcalupdate.c137 int fbuf_idx, fd1, bytes_read; in fcal_update() local
151 if ((fd1 = open(file, O_RDONLY)) == -1) { in fcal_update()
164 while (!strfound && ((bytes_read = read(fd1, in fcal_update()
177 (void) close(fd1); in fcal_update()
/titanic_51/usr/src/cmd/mpathadm/
H A Dmpathadm.c1077 int fd1, fd2; in compareLUName() local
1090 fd1 = fd2 = -1; in compareLUName()
1091 if (((fd1 = open(cmpString, O_RDONLY|O_NDELAY)) >= 0) && in compareLUName()
1093 (devid_get(fd1, &devid1) == 0) && in compareLUName()
1109 if (fd1 >= 0) { in compareLUName()
1110 (void) close(fd1); in compareLUName()
1761 int fd1, fd2; in getLogicalUnitOid() local
1834 fd1 = fd2 = -1; in getLogicalUnitOid()
1836 if (((fd1 = open(luFileName, in getLogicalUnitOid()
1840 (devid_get(fd1, in getLogicalUnitOid()
[all...]
/titanic_51/usr/src/cmd/csh/
H A Dsh.dol.c639 int fd1; in heredoc() local
644 if ((fd1 = mkstemp_(shtemp)) < 0) in heredoc()
647 unsetfd(fd1); in heredoc()
/titanic_51/usr/src/lib/libpkg/common/
H A Dkeystore.c1325 int fd1, fd2, len; in resolve_paths() local
1340 if (((fd1 = open(storepath, O_NONBLOCK|O_RDONLY)) == -1) || in resolve_paths()
1341 (fstat(fd1, &buf) == -1) || in resolve_paths()
1373 if (fd1 != -1) in resolve_paths()
1374 (void) close(fd1); in resolve_paths()
1378 if (((fd1 = open(keystore_file, in resolve_paths()
1380 (fstat(fd1, &buf) != -1) && in resolve_paths()
1388 if (fd1 != -1) in resolve_paths()
1389 (void) close(fd1); in resolve_paths()
/titanic_51/usr/src/cmd/avs/sdbc/
H A Dsd_diag.c837 do_sdtest10(int fd1, int fd2, nsc_size_t loops, nsc_size_t filesize1, in do_sdtest10() argument
858 r = pread(fd1, buf1, bufsize, in do_sdtest10()
875 r = pread(fd1, buf1, bufsize, in do_sdtest10()
890 " fd1:%s, fd2:%s fpos:%" NSC_SZFMT ", len:%d\n", in do_sdtest10()
/titanic_51/usr/src/cmd/print/printmgr/com/sun/admin/pm/server/
H A DNS.c43 void fd_cleanup(int fd1, int fd2);
/titanic_51/usr/src/data/hwdata/
H A Dpci.ids503 1028 1fd1 PERC H730P MX
7927 2fd1 PCI-7334
11551 0fd1 GK107M [GeForce GT 650M]
[all...]
H A Dusb.ids15685 0fd1 Giant Electronics Ltd.
22487 3fd1 Fireface UFX+
/titanic_51/usr/src/grub/grub-0.97/
H A DChangeLog8549 * grub/asmstub.c (grub_stage2) [__linux__]: Don't use /dev/fd1.