Home
last modified time | relevance | path

Searched refs:fd2 (Results 1 – 23 of 23) sorted by relevance

/titanic_51/usr/src/lib/libsocket/socket/
H A Dsocketpair.c91 int fd1, fd2; in _socketpair_create() local
100 fd2 = _socket_create(family, type, protocol, version); in _socketpair_create()
101 if (fd2 < 0) { in _socketpair_create()
109 sv[1] = fd2; in _socketpair_create()
115 (void) close(fd2); in _socketpair_create()
127 if (sv[1] != fd2) in _socketpair_create()
128 (void) close(fd2); in _socketpair_create()
/titanic_51/usr/src/uts/common/syscall/
H A Dpipe.c114 int fd1, fd2; in pipe() local
138 if (error = falloc(vp2, FWRITE|FREAD, &fp2, &fd2)) in pipe()
182 copyout(&fd2, &((int *)arg)[1], sizeof (int))) { in pipe()
193 setf(fd2, fp2); in pipe()
200 f_setfd(fd2, FD_CLOEXEC); in pipe()
208 setf(fd2, NULL); in pipe()
/titanic_51/usr/src/cmd/bnu/
H A Dcpmv.c47 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 Dxio.c180 int fd2; local
187 fd2 = fileno( fp2 );
195 if( ret == SUCCESS && write( fd2, bufr, len ) != len )
H A Ddio.c207 register int fd2; local
214 fd2 = fileno( fp2 );
222 if( ret == SUCCESS && write( fd2, bufr, len ) != len )
H A Dgio.c173 int fd2; local
181 fd2 = fileno( fp2 );
189 if ( ret == SUCCESS && write( fd2, bufr, len ) != len) {
H A Deio.c206 int fd2; local
238 fd2 = fileno( fp2 );
273 if ( ret == SUCCESS && write( fd2, bufr, len ) != len ) {
/titanic_51/usr/src/lib/libbc/libc/gen/common/
H A Dsetlocale.c618 int fd, fd2; in openlocale() local
681 fd2 = open(pathname, O_RDONLY); in openlocale()
682 if ( fd2 == 0 ) { in openlocale()
683 fd2 = dup(fd2); in openlocale()
687 if (fd2 == -1) { in openlocale()
696 if (read (fd2, (char *)&code_header, sizeof (code_header)) != in openlocale()
702 close(fd2); in openlocale()
714 if (read (fd2, (char *)my_info, in openlocale()
717 close(fd2); in openlocale()
[all...]
/titanic_51/usr/src/cmd/print/printmgr/com/sun/admin/pm/server/
H A DNS.c43 void fd_cleanup(int fd1, int fd2);
118 int fd2 = 1; in _dorexec() local
135 passwd, cmd, &fd2); in _dorexec()
147 fd_cleanup(fd, fd2); in _dorexec()
151 ret = read(fd2, glob_stderr, BUFSIZ - 1); in _dorexec()
155 fd_cleanup(fd, fd2); in _dorexec()
178 fd_cleanup(fd, fd2); in _dorexec()
181 fd_cleanup(fd, fd2); in _dorexec()
186 fd_cleanup(int fd, int fd2) in fd_cleanup() argument
191 if (fd2 > in fd_cleanup()
[all...]
/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/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()
160 if(fd2!=SH_FDCLOSE) in fdnotify()
163 service_list[fd2] = service_list[fd1]; in fdnotify()
169 file_list[i] = fd2; 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()
160 if(fd2!=SH_FDCLOSE) in fdnotify()
163 service_list[fd2] = service_list[fd1]; in fdnotify()
169 file_list[i] = fd2; in fdnotify()
/titanic_51/usr/src/cmd/rexd/
H A Drpc.rexd.c838 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);
/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->fd_mask == fd2->fd_mask); in flow_ip_match_fe()
2116 return (fd1->fd_dsfield == fd2->fd_dsfield && in flow_ip_match_fe()
2117 fd1->fd_dsfield_mask == fd2 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.c40 int fd2; in get_attrdirs() local
56 if ((fd2 = attropen(attrfile, ".", O_RDONLY)) == -1) { in get_attrdirs()
61 *tfd = fd2; in get_attrdirs()
/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
864 r = pwrite(fd2, buf1, bufsize, in do_sdtest10()
882 r = pread(fd2, buf2, bufsize, in do_sdtest10()
890 " fd1:%s, fd2:%s fpos:%" NSC_SZFMT ", len:%d\n", in do_sdtest10()
1011 int fd, fd2, r, id, h, i; in sd_diag_lintmain() local
1064 fd2 = nsc_fileno(sdfd2); in sd_diag_lintmain()
1065 if (fd2 == -1) { in sd_diag_lintmain()
1073 r = do_sdtest10(fd, fd2, loops, filesize, filesize2, h); in sd_diag_lintmain()
/titanic_51/usr/src/lib/libpkg/common/
H A Ddstream.c797 int fd2, fd; in ds_ginit() local
811 fd2 = fcntl(fd, F_DUPFD, fd); in ds_ginit()
826 (void) fcntl(fd2, F_DUPFD, fd); in ds_ginit()
827 (void) close(fd2); in ds_ginit()
H A Dkeystore.c1325 int fd1, fd2, len; in resolve_paths() local
1350 if (((fd2 = open(keystore_file, in resolve_paths()
1352 (fstat(fd2, &buf) != -1)) { in resolve_paths()
1375 if (fd2 != -1) in resolve_paths()
1376 (void) close(fd2); in resolve_paths()
/titanic_51/usr/src/cmd/mpathadm/
H A Dmpathadm.c1077 int fd1, fd2; in compareLUName() local
1090 fd1 = fd2 = -1; in compareLUName()
1092 ((fd2 = open(deviceProperty, O_RDONLY|O_NDELAY)) >= 0) && in compareLUName()
1094 (devid_get(fd2, &devid2) == 0) && in compareLUName()
1112 if (fd2 >= 0) { in compareLUName()
1113 (void) close(fd2); in compareLUName()
1761 int fd1, fd2; in getLogicalUnitOid() local
1834 fd1 = fd2 = -1; in getLogicalUnitOid()
1838 ((fd2 = open(luProps.deviceFileName, in getLogicalUnitOid()
1841 (devid_get(fd2, in getLogicalUnitOid()
[all...]
/titanic_51/usr/src/cmd/fs.d/nfs/nfsref/
H A Dnfsref.c196 int fd, fd2; in delref() local
/titanic_51/usr/src/lib/libbc/libc/sys/common/
H A D_open.c72 int fd, fd2, pathl, inspt, ret = 0; in open_com() local
/titanic_51/usr/src/data/hwdata/
H A Dpci.ids724 1028 1fd2 HBA330 MX
7928 2fd2 PCI-7350
11557 0fd2 GK107M [GeForce GT 640M]
[all...]
H A Dusb.ids15686 0fd2 Seac Banche