Home
last modified time | relevance | path

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

1234567891011

/netbsd/tests/modules/
H A Dt_kcov.c63 int fd2; in pick_unassigned_fd() local
67 ++fd2; in pick_unassigned_fd()
70 return fd2; in pick_unassigned_fd()
76 int fd1, fd2; in ATF_TC_BODY() local
82 ATF_REQUIRE_EQ(dup2(fd1, fd2), fd2); in ATF_TC_BODY()
85 close(fd2); in ATF_TC_BODY()
91 int fd1, fd2; in ATF_TC_BODY() local
98 close(fd2); in ATF_TC_BODY()
292 int fd, fd2; in common_head_raw() local
300 ATF_REQUIRE_EQ(dup2(fd, fd2), fd2); in common_head_raw()
[all …]
/netbsd/tests/lib/libc/sys/
H A Dt_dup.c58 int fd, fd1, fd2; in check_mode() local
73 ATF_REQUIRE(fd2 >= 0); in check_mode()
78 fd = dup2(fd1, fd2); in check_mode()
80 fd = dup3(fd1, fd2, O_CLOEXEC); in check_mode()
98 (void)close(fd2); in check_mode()
112 int fd, fd1, fd2; in ATF_TC_BODY() local
115 fd2 = open("/etc/passwd", O_RDONLY); in ATF_TC_BODY()
118 ATF_REQUIRE(fd2 >= 0); in ATF_TC_BODY()
120 fd = dup2(fd1, fd2); in ATF_TC_BODY()
123 if (fd != fd2) in ATF_TC_BODY()
[all …]
/netbsd/usr.bin/cmp/
H A Dcmp.c69 int ch, fd1, fd2, special; in main() local
115 fd2 = 0; in main()
118 else if ((fd2 = open(file2, O_RDONLY, 0)) < 0) { in main()
145 if (fstat(fd2, &sb2)) in main()
153 c_special(fd1, file1, skip1, fd2, file2, skip2); in main()
156 fd2, file2, skip2, sb2.st_size); in main()
H A Dregular.c55 int fd2, const char *file2, off_t skip2, off_t len2) in c_regular() argument
84 fd2, skip2); in c_regular()
117 c_special(fd1, file1, skip1, fd2, file2, skip2); in c_regular()
/netbsd/external/bsd/pcc/dist/pcc/cc/ccom/
H A Dsoftfloat.c71 rv.fd1 = rv.fd2 = rv.fd3 = rv.fd4 = 0; in nulldf()
94 rv.fd2 = ll >> 40; in soft_cast()
114 a1[1] = p1.fd2 | DMANTH(p1) << 16 | 0x800000; in soft_mul()
117 a2[1] = p2.fd2 | DMANTH(p2) << 16 | 0x800000; in soft_mul()
143 rv.fd2 = res[3]; in soft_mul()
158 SHL(t.fd2, 32) | SHL(t.fd3, 16) | t.fd4; in soft_div()
160 SHL(n.fd2, 32) | SHL(n.fd3, 16) | n.fd4; in soft_div()
175 rv.fd2 = K >> 32; in soft_div()
253 SHL(sf.fd2, 32) | SHL(sf.fd3, 16) | sf.fd4; in soft_val()
/netbsd/external/bsd/pcc/dist/pcc/cc/cxxcom/
H A Dsoftfloat.c71 rv.fd1 = rv.fd2 = rv.fd3 = rv.fd4 = 0; in nulldf()
94 rv.fd2 = ll >> 40; in soft_cast()
114 a1[1] = p1.fd2 | DMANTH(p1) << 16 | 0x800000; in soft_mul()
117 a2[1] = p2.fd2 | DMANTH(p2) << 16 | 0x800000; in soft_mul()
143 rv.fd2 = res[3]; in soft_mul()
158 SHL(t.fd2, 32) | SHL(t.fd3, 16) | t.fd4; in soft_div()
160 SHL(n.fd2, 32) | SHL(n.fd3, 16) | n.fd4; in soft_div()
175 rv.fd2 = K >> 32; in soft_div()
253 SHL(sf.fd2, 32) | SHL(sf.fd3, 16) | sf.fd4; in soft_val()
/netbsd/external/gpl3/gdb/dist/gas/testsuite/gas/mn10300/
H A Dam33-2.s432 fmov (e1), fd2
454 fmov (sp), fd2
461 fmov fd2, (r8)
468 fmov fd2, (e6)
485 fmov fd2, (sp)
500 fmov fd20, fd2
1055 fabs fd2
1063 fabs fd4, fd2
1081 fneg fd4, fd2
1096 frsqrt fd2
[all …]
/netbsd/external/gpl3/gdb.old/dist/gas/testsuite/gas/mn10300/
H A Dam33-2.s432 fmov (e1), fd2
454 fmov (sp), fd2
461 fmov fd2, (r8)
468 fmov fd2, (e6)
485 fmov fd2, (sp)
500 fmov fd20, fd2
1055 fabs fd2
1063 fabs fd4, fd2
1081 fneg fd4, fd2
1096 frsqrt fd2
[all …]
/netbsd/external/bsd/libevent/dist/test/
H A Dregress_listener.c85 evutil_socket_t fd1, fd2, fd3; in regress_pick_a_port() local
87 fd1 = fd2 = fd3 = EVUTIL_INVALID_SOCKET; in regress_pick_a_port()
123 fd1 = fd2 = fd3 = EVUTIL_INVALID_SOCKET; in regress_pick_a_port()
125 evutil_socket_connect_(&fd2, (struct sockaddr*)&ss1, slen1); in regress_pick_a_port()
139 if (fd2>=0) in regress_pick_a_port()
140 EVUTIL_CLOSESOCKET(fd2); in regress_pick_a_port()
247 evutil_socket_t fd1 = EVUTIL_INVALID_SOCKET, fd2 = EVUTIL_INVALID_SOCKET; in regress_listener_immediate_close() local
263 evutil_socket_connect_(&fd2, (struct sockaddr*)&ss, slen); in regress_listener_immediate_close()
/netbsd/external/ibm-public/postfix/dist/src/util/
H A Dfifo_rdonly_bug.c80 int fd2; in main() local
93 if ((fd2 = open(FIFO_PATH, O_WRONLY, 0)) < 0) in main()
95 if (write(fd2, "", 1) < 1) in main()
97 if (close(fd2) < 0) in main()
/netbsd/sbin/nvmectl/
H A Dwdc.c112 int fd2; in wdc_do_dump() local
125 fd2 = open(tmpl, O_WRONLY | O_CREAT | O_TRUNC, 0644); in wdc_do_dump()
126 if (fd2 < 0) in wdc_do_dump()
156 if (write(fd2, buf, resid) != (ssize_t)resid) in wdc_do_dump()
162 close(fd2); in wdc_do_dump()
/netbsd/external/bsd/ntp/dist/sntp/libevent/test/
H A Dregress_listener.c83 evutil_socket_t fd1 = -1, fd2 = -1, fd3 = -1; in regress_pick_a_port() local
119 fd1 = fd2 = fd3 = -1; in regress_pick_a_port()
121 evutil_socket_connect_(&fd2, (struct sockaddr*)&ss1, slen1); in regress_pick_a_port()
135 if (fd2>=0) in regress_pick_a_port()
136 EVUTIL_CLOSESOCKET(fd2); in regress_pick_a_port()
/netbsd/tests/kernel/kqueue/read/
H A Dt_file2.c56 int fd1, fd2, kq; in ATF_TC_BODY() local
60 RL(fd2 = open("bfile", O_RDONLY|O_CREAT, 0644)); in ATF_TC_BODY()
71 RL(dup2(fd2, fd1)); in ATF_TC_BODY()
/netbsd/external/bsd/liblzf/dist/
H A Dlzf.c368 int fd, fd2; in run_file() local
407 fd2 = open_out (oname); in run_file()
408 if (fd2 == -1) in run_file()
418 rc = compress_fd (fd, fd2); in run_file()
425 rc = uncompress_fd (fd, fd2); in run_file()
432 fchmod (fd2, mystat.st_mode); in run_file()
437 close (fd2); in run_file()
/netbsd/external/mit/libuv/dist/src/unix/
H A Dprocess.c518 int fd2; in uv__spawn_set_posix_spawn_file_actions() local
551 for (fd2 = 0; fd2 < stdio_count; fd2++) { in uv__spawn_set_posix_spawn_file_actions()
555 if (pipes[fd2][1] == use_fd) { in uv__spawn_set_posix_spawn_file_actions()
557 fd2 = 0; in uv__spawn_set_posix_spawn_file_actions()
611 for (fd2 = 0; fd2 < fd; fd2++) { in uv__spawn_set_posix_spawn_file_actions()
612 if (pipes[fd2][1] == use_fd) in uv__spawn_set_posix_spawn_file_actions()
615 if (fd2 < fd) in uv__spawn_set_posix_spawn_file_actions()
/netbsd/tests/fs/common/
H A Dsnapshot.c40 int fd, fd2, i; in ATF_TC_BODY() local
89 fd2 = rump_sys_open("/snap/myfile", O_RDONLY); in ATF_TC_BODY()
90 if (fd2 == -1) in ATF_TC_BODY()
93 if (rump_sys_read(fd2, buf, sizeof(buf)) == -1) in ATF_TC_BODY()
/netbsd/external/gpl3/gdb/dist/libiberty/
H A Dfdmatch.c52 int fdmatch (int fd1, int fd2) in fdmatch() argument
58 (fstat (fd2, &sbuf2) == 0) && in fdmatch()
/netbsd/external/gpl3/binutils.old/dist/libiberty/
H A Dfdmatch.c52 int fdmatch (int fd1, int fd2) in fdmatch() argument
58 (fstat (fd2, &sbuf2) == 0) && in fdmatch()
/netbsd/external/gpl3/binutils/dist/libiberty/
H A Dfdmatch.c52 int fdmatch (int fd1, int fd2) in fdmatch() argument
58 (fstat (fd2, &sbuf2) == 0) && in fdmatch()
/netbsd/external/gpl3/gcc.old/dist/libiberty/
H A Dfdmatch.c52 int fdmatch (int fd1, int fd2) in fdmatch() argument
58 (fstat (fd2, &sbuf2) == 0) && in fdmatch()
/netbsd/external/gpl3/gdb.old/dist/libiberty/
H A Dfdmatch.c52 int fdmatch (int fd1, int fd2) in fdmatch() argument
58 (fstat (fd2, &sbuf2) == 0) && in fdmatch()
/netbsd/external/gpl3/gcc/dist/libiberty/
H A Dfdmatch.c52 int fdmatch (int fd1, int fd2) in fdmatch() argument
58 (fstat (fd2, &sbuf2) == 0) && in fdmatch()
/netbsd/usr.bin/mail/
H A Dmime_attach.c290 int fd2; in content_encoding_by_fileno() local
295 if ((fd2 = dup(fd)) == -1 || in content_encoding_by_fileno()
296 (fp = Fdopen(fd2, "ref")) == NULL) { in content_encoding_by_fileno()
298 if (fd2 != -1) in content_encoding_by_fileno()
299 (void)close(fd2); in content_encoding_by_fileno()
613 int fd, fd2; in mktemp_file() local
624 if ((fd2 = dup(fd)) == -1 || in mktemp_file()
625 (*nfi = Fdopen(fd2, "ref")) == NULL) { in mktemp_file()
/netbsd/usr.bin/at/
H A Dat.c178 int fdes, lockdes, fd2; in writefile() local
256 if ((fd2 = dup(fdes)) == -1) in writefile()
259 if (fchown(fd2, real_uid, real_gid) == -1) in writefile()
409 if (fchmod(fd2, S_IRUSR | S_IWUSR | S_IXUSR) == -1) in writefile()
414 (void)close(fd2); in writefile()
/netbsd/bin/pax/
H A Dbuf_subs.c782 cp_file(ARCHD *arcn, int fd1, int fd2) in cp_file() argument
817 if (fstat(fd2, &sb) == 0) { in cp_file()
832 res = xwrite(fd2, buf, cnt); in cp_file()
834 res = file_write(fd2, buf, cnt, &rem, &isem, sz, fnm); in cp_file()
867 if (file_flush(fd2, fnm, isem) < 0) in cp_file()

1234567891011