| /minix3/minix/tests/ |
| H A D | test29.c | 68 int fd1, fd2, fd3, fd4, fd5; in test29a() local 76 if ((fd3 = dup(0)) != 5) e(3); in test29a() 84 if (close(fd3) != 0) e(11); in test29a() 87 if ((fd3 = dup(0)) != 5) e(14); in test29a() 91 if (close(fd3) != 0) e(18); in test29a() 100 if ((fd3 = dup(fd2)) != 5) e(25); in test29a() 102 if (IS_CLOEXEC(fd3)) e(27); in test29a() 105 if (IS_CLOEXEC(fd3)) e(30); in test29a() 108 if (close(fd3) != 0) e(33); in test29a()
|
| H A D | test90.c | 425 int r, fd, fd2, fd3, tmpfd, val, fl; in unix_connect_sweep() local 435 fd = fd3 = -1; in unix_connect_sweep() 515 if ((fd3 = accept(fd2, (struct sockaddr *)&sunC, &len)) < 0) in unix_connect_sweep() 518 if ((fl = fcntl(fd3, F_GETFL)) == -1) e(0); in unix_connect_sweep() 519 if (fcntl(fd3, F_SETFL, fl | O_NONBLOCK) != 0) e(0); in unix_connect_sweep() 538 case S_SHUT2_R: if (shutdown(fd3, SHUT_RD)) e(0); break; in unix_connect_sweep() 540 case S_SHUT2_W: if (shutdown(fd3, SHUT_WR)) e(0); break; in unix_connect_sweep() 542 case S_SHUT2_RW: if (shutdown(fd3, SHUT_RDWR)) e(0); break; in unix_connect_sweep() 548 fd = fd3; in unix_connect_sweep() 549 fd3 = tmpfd; in unix_connect_sweep() [all …]
|
| H A D | test26.c | 123 int fd1, fd2, fd3; in test26b() local 140 if ((fd3 = open("santa", O_RDWR)) != 5) e(6); in test26b() 145 if (lseek(fd3, (off_t) 7, SEEK_SET) != 7) e(9); in test26b() 154 if (lseek(fd3, (off_t) - 4, SEEK_END) != 7) e(12); in test26b() 164 if (lseek(fd3, (off_t) 0, SEEK_CUR) != 7) e(16); in test26b() 169 if (close(fd3) != 0) e(19); in test26b()
|
| H A D | test94.c | 315 test94_setup(int * fd, int * fd2, int * fd3, uint8_t ** buf, unsigned int size, in test94_setup() argument 367 if ((*fd3 = socket(AF_INET, SOCK_DGRAM, 0)) < 0) e(0); in test94_setup() 369 if (bind(*fd3, (struct sockaddr *)&sinB, sizeof(sinB)) != 0) e(0); in test94_setup() 371 if (connect(*fd3, (struct sockaddr *)&sinA, sizeof(sinA)) != 0) e(0); in test94_setup() 380 test94_cleanup(int fd, int fd2, int fd3, uint8_t * buf) in test94_cleanup() argument 383 if (close(fd3) != 0) e(0); in test94_cleanup() 406 int fd, fd2, fd3, status, bytes, fl; in test94a() local 410 size = test94_setup(&fd, &fd2, &fd3, &buf, 0 /*size*/, in test94a() 737 test94_cleanup(fd, fd2, fd3, buf); in test94a() 754 int fd, fd2, fd3, bytes, status, fl; in test94b() local [all …]
|
| H A D | test20.c | 94 int fd3, fd4, fd5, fd6, fd7, fd8; in test20d() local 115 if ((fd3 = open("file3", O_RDWR)) != 3) e(1); in test20d() 128 if (fcntl(fd3, F_SETLK, &fl) == -1) e(9); in test20d() 145 if (fcntl(fd3, F_GETLK, &fl) == -1) e(12); in test20d() 154 if ((fcntl(fd3, F_GETFD) & FD_CLOEXEC) != 0) e(18); in test20d() 233 if (fcntl(fd3, F_SETLK, &fl) == -1) e(65); in test20d() 236 if (close(fd3) != 0) e(67); in test20d()
|
| H A D | test91.c | 358 int r, fd, fd2, fd3, tmpfd, val; in tcp_sweep() local 417 fd3 = -1; in tcp_sweep() 503 if ((fd3 = accept(fd2, addrC, &len)) < 0) e(0); in tcp_sweep() 522 case S_SHUT2_R: if (shutdown(fd3, SHUT_RD)) e(0); break; in tcp_sweep() 524 case S_SHUT2_W: if (shutdown(fd3, SHUT_WR)) e(0); break; in tcp_sweep() 526 case S_SHUT2_RW: if (shutdown(fd3, SHUT_RDWR)) e(0); break; in tcp_sweep() 532 fd = fd3; in tcp_sweep() 533 fd3 = tmpfd; in tcp_sweep() 565 if ((fd3 = accept(fd2, addrC, &len)) < 0) e(0); in tcp_sweep() 567 if (send(fd3, "", 1, 0) != 1) e(0); in tcp_sweep() [all …]
|
| H A D | test16.c | 240 int fd, fd1, fd2, fd3, fd4; in test16f() local 253 if ( (fd3 = open("T16.j", O_WRONLY|O_CREAT, 0666)) < 0) e(62); in test16f() 284 if (close(fd3) != 0) e(80); in test16f() 316 int fd, fd1, fd2, fd3, fd4; in test16h() local 328 if ( (fd3 = open("T16.p", O_RDWR|O_CREAT, 0666)) < 0) e(92); in test16h() 355 if (close(fd3) != 0) e(107); in test16h()
|
| H A D | test25.c | 93 int fd1, fd2, fd3, fd4, fd5; in test25b() local 112 if ((fd3 = open("../DIR_25/he", O_RDWR)) != 5) e(4); in test25b() 119 if (close(fd3) != 0) e(11); in test25b() 121 if ((fd3 = open("/etc/passwd", O_RDONLY)) != 5) e(13); in test25b() 124 if (close(fd3) != 0) e(16); in test25b() 133 if ((fd3 = open("../././DIR_25/ha", O_WRONLY)) != 5) e(18); in test25b() 141 if (close(fd3) != 0) e(25); in test25b() 148 if ((fd3 = open("./he", O_RDONLY)) != 5) e(29); in test25b() 156 if (close(fd3) != 0) e(36); in test25b()
|
| H A D | test24.c | 62 int fd3, fd4, fd5; in test24a() local 114 if ((fd3 = open("foo/f3", O_WRONLY)) <= 2) e(15); /* Open more files. */ in test24a() 116 if (write(fd3, "Hello", 6) != 6) e(17); in test24a() 126 if (close(fd3) != 0) e(23); /* when we do this */ in test24a()
|
| H A D | test21.c | 297 int fd1, fd2, fd3, fd4, fd5, fd6, fd7, fd8, fd9; in test21d() local 307 if ( (fd3 = creat("D1/D2/z", 0700)) < 0) e(7); in test21d() 329 if (close(fd3) != 0) e(29); in test21d()
|
| H A D | socklib.c | 1498 int r, fd, fd2, fd3, val, sfl, exp, link_state; in socklib_test_addrs() local 1818 if ((fd3 = accept(fd2, in socklib_test_addrs() 1831 if (getpeername(fd3, (struct sockaddr *)&sin6, in socklib_test_addrs() 1842 if (getsockname(fd3, (struct sockaddr *)&sin6, in socklib_test_addrs() 1852 if (close(fd3) != 0) e(0); in socklib_test_addrs()
|
| /minix3/external/bsd/libevent/dist/test/ |
| H A D | regress_listener.c | 82 evutil_socket_t fd1 = -1, fd2 = -1, fd3 = -1; in regress_pick_a_port() local 118 fd1 = fd2 = fd3 = -1; in regress_pick_a_port() 121 evutil_socket_connect(&fd3, (struct sockaddr*)&ss2, slen2); in regress_pick_a_port() 136 if (fd3>=0) in regress_pick_a_port() 137 EVUTIL_CLOSESOCKET(fd3); in regress_pick_a_port()
|
| H A D | regress_http.c | 731 evutil_socket_t fd1, fd2, fd3; in http_allowed_methods_test() local 779 fd3 = http_connect("127.0.0.1", port); in http_allowed_methods_test() 781 bev3 = bufferevent_socket_new(data->base, fd3, 0); in http_allowed_methods_test() 801 evutil_closesocket(fd3); in http_allowed_methods_test()
|
| /minix3/external/bsd/llvm/dist/clang/test/SemaCXX/ |
| H A D | borland-extensions.cpp | 40 int _stdcall fd3();
|
| /minix3/tests/lib/libc/gen/posix_spawn/ |
| H A D | t_fileactions.c | 297 int fd1, fd2, fd3, status, err; in ATF_TC_BODY() local 313 fd3 = open("/dev/null", O_WRONLY); in ATF_TC_BODY() 314 ATF_REQUIRE(fd3 == 5); in ATF_TC_BODY()
|
| /minix3/external/bsd/llvm/dist/clang/test/CXX/special/class.inhctor/ |
| H A D | p3.cpp | 30 D3 fd3() { return 1; } // expected-error {{no viable conversion}} in fd3() function
|
| /minix3/external/bsd/llvm/dist/clang/test/CodeGen/ |
| H A D | atomic-ops.c | 197 void fd3(struct S *a, struct S *b, struct S *c) { in fd3() function
|