HomeSort by: relevance | last modified time | path
    Searched defs:fd1 (Results 1 - 24 of 24) sorted by relevancy

  /src/tests/kernel/kqueue/read/
t_file2.c 56 int fd1, fd2, kq; local
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
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/usr.sbin/altq/altqd/
altqd.c 294 int fd1; local
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
287 RL(fd1 = open("/dev/null", O_RDONLY));
288 ATF_REQUIRE(fd1 == 3);
296 RZ(posix_spawn_file_actions_addclose(&fa, fd1));
  /src/tests/lib/libc/sys/
t_dup.c 58 int fd, fd1, fd2; local
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
114 fd1 = open("/etc/passwd", O_RDONLY)
    [all...]
  /src/sys/compat/linux32/common/
linux32_unistd.c 407 syscallarg(int) fd1;
413 int fd1 = SCARG(uap, fd1); local
421 return do_sys_linkat(l, fd1, name1, fd2, name2, follow, retval);
  /src/tests/modules/
t_kcov.c 76 int fd1, fd2; local
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
92 fd1 = open_kcov();
97 close(fd1);
389 int fd1, fd2; local
392 buf1 = common_head(&fd1);
    [all...]
  /src/usr.bin/mail/
popen.c 240 int myside, hisside, fd0, fd1; local
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
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
604 return do_sys_linkat(l, fd1, name1, fd2, name2, follow, retval);
  /src/sys/compat/linux/arch/aarch64/
linux_syscallargs.h 220 syscallarg(int) fd1; member in struct:linux_sys_linkat_args
  /src/sys/compat/linux32/arch/aarch64/
linux32_syscallargs.h 977 syscallarg(int) fd1; member in struct:linux32_sys_linkat_args
  /src/sys/compat/linux32/arch/amd64/
linux32_syscallargs.h 986 syscallarg(int) fd1; member in struct:linux32_sys_linkat_args
  /src/sys/kern/
vfs_syscalls.c 2687 syscallarg(int) fd1;
2693 int fd1 = SCARG(uap, fd1); local
2701 return do_sys_linkat(l, fd1, name1, fd2, name2, follow, retval);
  /src/sys/compat/linux/arch/alpha/
linux_syscallargs.h 1187 syscallarg(int) fd1; member in struct:linux_sys_linkat_args
  /src/sys/compat/linux/arch/amd64/
linux_syscallargs.h 1077 syscallarg(int) fd1; member in struct:linux_sys_linkat_args
  /src/sys/compat/linux/arch/arm/
linux_syscallargs.h 1151 syscallarg(int) fd1; member in struct:linux_sys_linkat_args
  /src/sys/compat/linux/arch/i386/
linux_syscallargs.h 1190 syscallarg(int) fd1; member in struct:linux_sys_linkat_args
  /src/sys/compat/linux/arch/m68k/
linux_syscallargs.h 1128 syscallarg(int) fd1; member in struct:linux_sys_linkat_args
  /src/sys/compat/linux/arch/mips/
linux_syscallargs.h 1189 syscallarg(int) fd1; member in struct:linux_sys_linkat_args
  /src/sys/compat/linux/arch/powerpc/
linux_syscallargs.h 1094 syscallarg(int) fd1; member in struct:linux_sys_linkat_args
  /src/tests/dev/audio/
audiotest.c 1797 int fd0, fd1; local
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
2328 int fd1; local
2436 int fd1; local
2851 int fd1; local
4178 int fd0, fd1; local
4322 int fd1; local
4722 int fd, fd1; local
5117 int fd1; local
6951 int fd1; local
    [all...]
  /src/sys/compat/netbsd32/
netbsd32_syscallargs.h 2469 syscallarg(int) fd1; member in struct:netbsd32_linkat_args
  /src/sys/sys/
syscallargs.h 3004 syscallarg(int) fd1; member in struct:sys_linkat_args

Completed in 101 milliseconds