/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);
|
/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/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/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/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/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/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/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/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/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/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/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/sys/kern/ |
vfs_syscalls.c | 2688 syscallarg(int) fd2; 2694 int fd2 = SCARG(uap, fd2); local in function:sys_linkat 2700 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...] |