HomeSort by: relevance | last modified time | path
    Searched defs:fd2 (Results 1 - 25 of 44) sorted by relevancy

1 2

  /src/tests/kernel/kqueue/read/
t_file2.c 56 int fd1, fd2, kq; local
60 RL(fd2 = open("bfile", O_RDONLY|O_CREAT, 0644));
71 RL(dup2(fd2, fd1));
  /src/usr.bin/cmp/
cmp.c 69 int ch, fd1, fd2, special; local
115 fd2 = 0;
118 else if ((fd2 = open(file2, O_RDONLY, 0)) < 0) {
145 if (fstat(fd2, &sb2))
153 c_special(fd1, file1, skip1, fd2, file2, skip2);
156 fd2, file2, skip2, sb2.st_size);
  /src/external/ibm-public/postfix/dist/src/util/
fifo_rdonly_bug.c 80 int fd2; local
93 if ((fd2 = open(FIFO_PATH, O_WRONLY, 0)) < 0)
95 if (write(fd2, "", 1) < 1)
97 if (close(fd2) < 0)
  /src/sbin/nvmectl/
wdc.c 112 int fd2; local
125 fd2 = open(tmpl, O_WRONLY | O_CREAT | O_TRUNC, 0644);
126 if (fd2 < 0)
156 if (write(fd2, buf, resid) != (ssize_t)resid)
162 close(fd2);
  /src/tests/fs/common/
snapshot.c 40 int fd, fd2, i; local
89 fd2 = rump_sys_open("/snap/myfile", O_RDONLY);
90 if (fd2 == -1)
93 if (rump_sys_read(fd2, buf, sizeof(buf)) == -1)
  /src/tests/lib/libc/gen/posix_spawn/
t_fileactions.c 277 int fd1, fd2, fd3, status; local
290 RL(fd2 = open("/dev/null", O_WRONLY, O_CLOEXEC));
291 ATF_REQUIRE(fd2 == 4);
  /src/tests/lib/libc/sys/
t_dup.c 58 int fd, fd1, fd2; local
70 fd2 = open("/etc/passwd", O_RDONLY);
73 ATF_REQUIRE(fd2 >= 0);
78 fd = dup2(fd1, fd2);
80 fd = dup3(fd1, fd2, O_CLOEXEC);
98 (void)close(fd2);
112 int fd, fd1, fd2; local
115 fd2 = open("/etc/passwd", O_RDONLY);
118 ATF_REQUIRE(fd2 >= 0);
120 fd = dup2(fd1, fd2);
    [all...]
  /src/crypto/external/apache2/openssl/dist/ssl/rio/
poll_immediate.c 59 int fd1 = -1, fd2 = -1, fd_nfy = -1; local
98 fd2 = wd.value.fd;
102 if (fd2 == fd1) {
103 fd2 = -1;
111 if (fd2 != -1 && fd2_w)
112 if (!ossl_rio_poll_builder_add_fd(rpb, fd2, /*r = */ 0, fd2_w))
  /src/external/bsd/libevent/dist/test/
regress_listener.c 85 evutil_socket_t fd1, fd2, fd3; local
87 fd1 = fd2 = fd3 = EVUTIL_INVALID_SOCKET;
123 fd1 = fd2 = fd3 = EVUTIL_INVALID_SOCKET;
125 evutil_socket_connect_(&fd2, (struct sockaddr*)&ss1, slen1);
139 if (fd2>=0)
140 EVUTIL_CLOSESOCKET(fd2);
247 evutil_socket_t fd1 = EVUTIL_INVALID_SOCKET, fd2 = EVUTIL_INVALID_SOCKET; local
263 evutil_socket_connect_(&fd2, (struct sockaddr*)&ss, slen);
  /src/external/bsd/ntp/dist/sntp/libevent/test/
regress_listener.c 85 evutil_socket_t fd1, fd2, fd3; local
87 fd1 = fd2 = fd3 = EVUTIL_INVALID_SOCKET;
123 fd1 = fd2 = fd3 = EVUTIL_INVALID_SOCKET;
125 evutil_socket_connect_(&fd2, (struct sockaddr*)&ss1, slen1);
139 if (fd2>=0)
140 EVUTIL_CLOSESOCKET(fd2);
247 evutil_socket_t fd1 = EVUTIL_INVALID_SOCKET, fd2 = EVUTIL_INVALID_SOCKET; local
263 evutil_socket_connect_(&fd2, (struct sockaddr*)&ss, slen);
  /src/bin/sh/
input.c 491 int fd2; local
519 fd2 = to_upper_fd(fd); /* closes fd, returns higher equiv */
520 if (fd2 == fd) {
525 setinputfd(fd2, push);
  /src/sys/compat/linux32/common/
linux32_unistd.c 409 syscallarg(int) fd2;
415 int fd2 = SCARG(uap, fd2); local
421 return do_sys_linkat(l, fd1, name1, fd2, name2, follow, retval);
  /src/tests/modules/
t_kcov.c 63 int fd2; local
65 fd2 = greater_than_fd;
67 ++fd2;
68 } while (fcntl(fd2, F_GETFL) != -1 || errno != EBADF);
70 return fd2;
76 int fd1, fd2; local
79 fd2 = pick_unassigned_fd(fd1);
82 ATF_REQUIRE_EQ(dup2(fd1, fd2), fd2); local
85 close(fd2);
91 int fd1, fd2; local
292 int fd, fd2; local
300 ATF_REQUIRE_EQ(dup2(fd, fd2), fd2); local
389 int fd1, fd2; local
    [all...]
  /src/usr.bin/at/
at.c 178 int fdes, lockdes, fd2; local
256 if ((fd2 = dup(fdes)) == -1)
259 if (fchown(fd2, real_uid, real_gid) == -1)
409 if (fchmod(fd2, S_IRUSR | S_IWUSR | S_IXUSR) == -1)
414 (void)close(fd2);
  /src/external/bsd/liblzf/dist/
lzf.c 368 int fd, fd2; local
407 fd2 = open_out (oname);
408 if (fd2 == -1)
418 rc = compress_fd (fd, fd2);
425 rc = uncompress_fd (fd, fd2);
432 fchmod (fd2, mystat.st_mode);
437 close (fd2);
  /src/crypto/external/apache2/openssl/dist/test/
bio_dgram_test.c 104 int fd1 = -1, fd2 = -1; local
175 fd2 = BIO_socket(af, SOCK_DGRAM, IPPROTO_UDP, 0);
176 if (!TEST_int_ge(fd2, 0))
180 || BIO_bind(fd2, addr2, 0) <= 0) {
190 if (!TEST_int_gt(BIO_sock_info(fd2, BIO_SOCK_INFO_ADDRESS, &info2), 0))
203 b2 = BIO_new_dgram(fd2, 0);
421 if (fd2 >= 0)
422 BIO_closesocket(fd2);
  /src/external/bsd/atf/dist/atf-c/detail/
fs_test.c 945 int fd1, fd2; local
951 fd1 = fd2 = -1;
953 RE(atf_fs_mkstemp(&p2, &fd2));
959 ATF_CHECK(fd2 != -1);
961 ATF_CHECK(write(fd2, "bar", 3) == 3);
963 close(fd2);
  /src/external/gpl2/xcvs/dist/src/
filesubr.c 608 int fd1, fd2; local
652 if ((fd2 = open (file2, O_RDONLY)) < 0)
682 read2 = block_read (fd2, buf2, buf_size);
698 (void) close (fd2);
  /src/external/mit/libuv/dist/src/unix/
process.c 548 int fd2; local
581 for (fd2 = 0; fd2 < stdio_count; fd2++) {
585 if (pipes[fd2][1] == use_fd) {
587 fd2 = 0;
641 for (fd2 = 0; fd2 < fd; fd2++) {
642 if (pipes[fd2][1] == use_fd
    [all...]
  /src/sys/compat/linux/common/
linux_file.c 592 syscallarg(int) fd2;
598 int fd2 = SCARG(uap, fd2); local
604 return do_sys_linkat(l, fd1, name1, fd2, name2, follow, retval);
  /src/tests/fs/vfs/
t_vnops.c 793 int fd, fd2; local
812 RL(fd2 = rump_sys_open(TESTFILE, O_RDWR, 0));
813 ATF_REQUIRE_ERRNO(EAGAIN, rump_sys_fcntl(fd2, F_SETLK, &l));
823 RL(rump_sys_fcntl(fd2, F_SETLK, &l));
825 RL(rump_sys_close(fd2));
  /src/usr.bin/mail/
mime_attach.c 290 int fd2; local
295 if ((fd2 = dup(fd)) == -1 ||
296 (fp = Fdopen(fd2, "ref")) == NULL) {
298 if (fd2 != -1)
299 (void)close(fd2);
613 int fd, fd2; local
624 if ((fd2 = dup(fd)) == -1 ||
625 (*nfi = Fdopen(fd2, "ref")) == NULL) {
  /src/crypto/external/bsd/heimdal/dist/lib/krb5/
fcache.c 1184 int fd1, fd2; local
1193 ret = fcc_open(context, to, "move/to", &fd2,
1199 sz2 = write(fd2, buf, sz1);
1216 fcc_unlock(context, fd2);
1217 close(fd2);
  /src/external/bsd/mdocml/dist/
mandocdb.c 2209 int fd1, fd2; local
2249 fd1 = fd2 = -1;
2259 if ((fd2 = open(tfn, O_RDONLY, 0)) == -1) {
2267 if (fstat(fd2, &sb2) == -1) {
2279 fd2, 0)) == MAP_FAILED) {
2299 if (fd2 != -1)
2300 close(fd2);
  /src/external/gpl3/gcc.old/dist/gcc/d/
decl.cc 546 FuncDeclaration *fd2 = d->vtbl[j]->isFuncDeclaration (); local
547 if (!fd2->ident->equals (fd->ident))
552 if (fd2->isFuture ())
555 if (fd->leastAsSpecialized (fd2) != MATCH::nomatch
556 || fd2->leastAsSpecialized (fd) != MATCH::nomatch)
560 inform (make_location_t (fd2->loc), "is hidden by %qs",
561 fd2->toPrettyChars ());

Completed in 108 milliseconds

1 2