/src/tests/kernel/kqueue/read/ |
t_file2.c | 56 int fd1, fd2, kq; local in function:ATF_TC_BODY 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 in function:main 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);
|
regular.c | 56 int fd2, const char *file2, off_t skip2, off_t len2) 85 fd2, skip2); 130 c_special(fd1, file1, skip1, fd2, file2, skip2);
|
special.c | 50 c_special(int fd1, const char *file1, off_t skip1, int fd2, const char *file2, off_t skip2) 60 if ((fp2 = fdopen(fd2, "r")) == NULL)
|
/src/tests/modules/ |
t_kcov.c | 63 int fd2; local in function:pick_unassigned_fd 65 fd2 = greater_than_fd; 67 ++fd2; 68 } while (fcntl(fd2, F_GETFL) != -1 || errno != EBADF); 70 return fd2; 76 int fd1, fd2; local in function:ATF_TC_BODY 79 fd2 = pick_unassigned_fd(fd1); 82 ATF_REQUIRE_EQ(dup2(fd1, fd2), fd2); 85 close(fd2); 91 int fd1, fd2; local in function:ATF_TC_BODY 292 int fd, fd2; local in function:common_head_raw 389 int fd1, fd2; local in function:ATF_TC_BODY [all...] |
/src/tests/lib/libc/sys/ |
t_dup.c | 58 int fd, fd1, fd2; local in function:check_mode 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 in function:ATF_TC_BODY 115 fd2 = open("/etc/passwd", O_RDONLY); 118 ATF_REQUIRE(fd2 >= 0); 120 fd = dup2(fd1, fd2); [all...] |
/src/sbin/nvmectl/ |
wdc.c | 112 int fd2; local in function:wdc_do_dump 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/etc/etc.x68k/ |
MAKEDEV.conf | 9 makedev cd0 ss0 fd0 fd1 fd2 fd3
|
/src/etc/etc.amiga/ |
MAKEDEV.conf | 4 makedev wscons std_amiga fd0 fd1 fd2 fd3 kbd mouse0 mouse1 par0 21 makedev std std_amiga fd0 fd1 fd2 fd3 kbd opty tun0 tun1
|
/src/etc/etc.amigappc/ |
MAKEDEV.conf | 4 makedev wscons std_amiga fd0 fd1 fd2 fd3 kbd mouse0 mouse1 par0 20 makedev std std_amiga fd0 fd1 fd2 fd3 kbd opty tun0 tun1
|
/src/tests/fs/common/ |
snapshot.c | 40 int fd, fd2, i; local in function:ATF_TC_BODY 89 fd2 = rump_sys_open("/snap/myfile", O_RDONLY); 90 if (fd2 == -1) 93 if (rump_sys_read(fd2, buf, sizeof(buf)) == -1)
|
/src/etc/etc.atari/ |
MAKEDEV.conf | 8 makedev vnd5 vnd6 cd0 fd0 fd1 fd2 fd3
|
/src/usr.bin/at/ |
at.c | 178 int fdes, lockdes, fd2; local in function:writefile 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/bin/pax/ |
buf_subs.c | 782 cp_file(ARCHD *arcn, int fd1, int fd2) 817 if (fstat(fd2, &sb) == 0) { 832 res = xwrite(fd2, buf, cnt); 834 res = file_write(fd2, buf, cnt, &rem, &isem, sz, fnm); 867 if (file_flush(fd2, fnm, isem) < 0)
|
/src/bin/sh/ |
input.c | 491 int fd2; local in function:setinputfile 519 fd2 = to_upper_fd(fd); /* closes fd, returns higher equiv */ 520 if (fd2 == fd) { 525 setinputfd(fd2, push);
|
/src/usr.bin/mail/ |
mime_attach.c | 290 int fd2; local in function:content_encoding_by_fileno 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 in function:mktemp_file 624 if ((fd2 = dup(fd)) == -1 || 625 (*nfi = Fdopen(fd2, "ref")) == NULL) {
|
/src/tests/lib/libc/gen/posix_spawn/ |
t_fileactions.c | 277 int fd1, fd2, fd3, status; local in function:ATF_TC_BODY 290 RL(fd2 = open("/dev/null", O_WRONLY, O_CLOEXEC)); 291 ATF_REQUIRE(fd2 == 4);
|
/src/tests/fs/vfs/ |
t_vnops.c | 793 int fd, fd2; local in function:fcntl_lock 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/sys/compat/linux32/common/ |
linux32_unistd.c | 409 syscallarg(int) fd2; 415 int fd2 = SCARG(uap, fd2); local in function:linux32_sys_linkat 421 return do_sys_linkat(l, fd1, name1, fd2, name2, follow, retval);
|
/src/sys/compat/linux/common/ |
linux_file.c | 592 syscallarg(int) fd2; 598 int fd2 = SCARG(uap, fd2); local in function:linux_sys_linkat 604 return do_sys_linkat(l, fd1, name1, fd2, name2, follow, retval);
|
/src/tests/dev/audio/ |
audiotest.c | 4323 int fd2; local in function:DEF 4345 fd2 = OPEN(devaudio, O_WRONLY); 4346 REQUIRED_SYS_OK(fd2); 4348 /* Pause fd2 */ 4351 r = IOCTL(fd2, AUDIO_SETINFO, &ai, "pause"); 4377 /* Child enables ASYNC on fd2 */ 4379 r = IOCTL(fd2, FIOASYNC, &val, "on"); 4385 * But fd2 is paused so it should never raise. 4396 close(fd2); 4428 r = CLOSE(fd2); 6952 int fd2; local in function:try_audioctl_open_multiuser [all...] |
/src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/ |
sanitizer_common_interceptors.inc | 2825 int fd2 = REAL(accept)(fd, addr, addrlen); 2826 if (fd2 >= 0) { 2827 if (fd >= 0) COMMON_INTERCEPTOR_FD_SOCKET_ACCEPT(ctx, fd, fd2); 2831 return fd2; 2850 int fd2 = REAL(accept4)(fd, addr, addrlen, f); 2851 if (fd2 >= 0) { 2852 if (fd >= 0) COMMON_INTERCEPTOR_FD_SOCKET_ACCEPT(ctx, fd, fd2); 2856 return fd2; 2874 int fd2 = REAL(paccept)(fd, addr, addrlen, set, f); 2875 if (fd2 >= 0) [all...] |
/src/sys/external/bsd/compiler_rt/dist/include/sanitizer/ |
netbsd_syscall_hooks.h | 2517 #define __sanitizer_syscall_pre_linkat(fd1, name1, fd2, name2, flags) \ 2519 (long long)(fd2), (long long)(name2), \ 2521 #define __sanitizer_syscall_post_linkat(res, fd1, name1, fd2, name2, flags) \ 2523 (long long)(name1), (long long)(fd2), \ 4586 long long fd2, long long name2, 4589 long long name1, long long fd2,
|
/src/sys/arch/m68k/060sp/dist/ |
ftest.sa | 69 dc.l $42aefea0,$487b0170,$00000fd2,$61ff0000
|
/src/sys/compat/linux32/arch/aarch64/ |
linux32_syscallargs.h | 979 syscallarg(int) fd2;
|