/src/tests/kernel/kqueue/read/ |
t_file2.c | 56 int fd1, fd2, kq; local in function:ATF_TC_BODY 59 RL(fd1 = open("afile", O_RDONLY|O_CREAT, 0644)); 63 RL(lseek(fd1, 0, SEEK_END)); 68 EV_SET(&event[0], fd1, EVFILT_READ, EV_ADD|EV_ENABLE, 0, 0, 0); 71 RL(dup2(fd2, fd1));
|
/src/usr.bin/cmp/ |
cmp.c | 69 int ch, fd1, fd2, special; local in function:main 102 fd1 = 0; 105 else if ((fd1 = open(file1, O_RDONLY, 0)) < 0) { 140 if (fstat(fd1, &sb1)) 153 c_special(fd1, file1, skip1, fd2, file2, skip2); 155 c_regular(fd1, file1, skip1, sb1.st_size,
|
/src/tests/lib/libc/sys/ |
t_dup.c | 58 int fd, fd1, fd2; local in function:check_mode 69 fd1 = open(path, mode[i] | O_CREAT, perm[j]); 72 ATF_REQUIRE(fd1 >= 0); 76 fd = dup(fd1); 78 fd = dup2(fd1, fd2); 80 fd = dup3(fd1, fd2, O_CLOEXEC); 91 ATF_REQUIRE(fstat(fd1, &st1) == 0); 97 (void)close(fd1); 112 int fd, fd1, fd2; local in function:ATF_TC_BODY 114 fd1 = open("/etc/passwd", O_RDONLY) [all...] |
/src/tests/modules/ |
t_kcov.c | 76 int fd1, fd2; local in function:ATF_TC_BODY 77 fd1 = open_kcov(); 79 fd2 = pick_unassigned_fd(fd1); 82 ATF_REQUIRE_EQ(dup2(fd1, fd2), fd2); 84 close(fd1); 91 int fd1, fd2; local in function:ATF_TC_BODY 92 fd1 = open_kcov(); 97 close(fd1); 389 int fd1, fd2; local in function:ATF_TC_BODY 392 buf1 = common_head(&fd1); [all...] |
/src/usr.sbin/altq/altqd/ |
altqd.c | 294 int fd1; local in function:main 298 fd1 = fileno(client[i]); 299 if (FD_ISSET(fd1, &rfds)) { 305 FD_CLR(fd1, &fds);
|
/src/tests/lib/libc/gen/posix_spawn/ |
t_fileactions.c | 277 int fd1, fd2, fd3, status; local in function:ATF_TC_BODY 287 RL(fd1 = open("/dev/null", O_RDONLY)); 288 ATF_REQUIRE(fd1 == 3); 296 RZ(posix_spawn_file_actions_addclose(&fa, fd1));
|
/src/sys/compat/linux32/common/ |
linux32_unistd.c | 407 syscallarg(int) fd1; 413 int fd1 = SCARG(uap, fd1); local in function:linux32_sys_linkat 421 return do_sys_linkat(l, fd1, name1, fd2, name2, follow, retval);
|
/src/usr.bin/mail/ |
popen.c | 240 int myside, hisside, fd0, fd1; local in function:Popen 250 hisside = fd0 = fd1 = p[WRITE]; 254 fd1 = -1; 259 pid = start_command(shellcmd, &nset, fd0, fd1, "-c", cmd, NULL);
|
/src/sbin/newfs_msdos/ |
mkfs_msdos.c | 264 int ch, fd, fd1; local in function:mkfs_msdos 461 fd1 = -1; 471 if ((fd1 = open(bname, O_RDONLY)) == -1 || fstat(fd1, &sb)) { 660 if (!x && lseek(fd1, o.offset, SEEK_SET)) { 666 if ((n = read(fd1, img, bpb.bps)) == -1) {
|
/src/sys/compat/linux/common/ |
linux_file.c | 590 syscallarg(int) fd1; 596 int fd1 = SCARG(uap, fd1); local in function:linux_sys_linkat 604 return do_sys_linkat(l, fd1, name1, fd2, name2, follow, retval);
|
/src/sys/kern/ |
vfs_syscalls.c | 2686 syscallarg(int) fd1; 2692 int fd1 = SCARG(uap, fd1); local in function:sys_linkat 2700 return do_sys_linkat(l, fd1, name1, fd2, name2, follow, retval);
|
/src/tests/dev/audio/ |
audiotest.c | 1797 int fd0, fd1; local in function:test_open_simul 1806 /* expected fd0 expected fd1 (-errno expects error) */ 1818 /* expected fd0 expected fd1 (-errno expects error) */ 1862 fd1 = OPEN(devaudio, mode1); 1865 REQUIRED_SYS_OK(fd1); 1866 r = IOCTL(fd1, AUDIO_GETBUFINFO, &ai, ""); 1874 XP_SYS_NG(ENODEV, fd1); 1875 if (fd1 == -1) { 1878 r = IOCTL(fd1, AUDIO_GETBUFINFO, &ai, ""); 1887 if (fd1 >= 0) 1912 int fd1; local in function:try_open_multiuser 2328 int fd1; local in function:test_rdwr_two 2436 int fd1; local in function:DEF 2851 int fd1; local in function:DEF 4178 int fd0, fd1; local in function:DEF 4322 int fd1; local in function:DEF 4722 int fd, fd1; local in function:DEF 5117 int fd1; local in function:DEF 6951 int fd1; local in function:try_audioctl_open_multiuser [all...] |