HomeSort by: relevance | last modified time | path
    Searched refs:fd (Results 1 - 25 of 4669) sorted by relevancy

1 2 3 4 5 6 7 8 91011>>

  /src/lib/libc/stdio/
mkostemp.c 33 int fd; local
35 return GETTEMP(path, &fd, 0, 0, oflags) ? fd : -1;
mkostemps.c 33 int fd; local
35 return GETTEMP(path, &fd, 0, slen, oflags) ? fd : -1;
mkstemps.c 35 int fd; local
37 return GETTEMP(path, &fd, 0, slen, 0) ? fd : -1;
  /src/external/bsd/libfido2/dist/openbsd-compat/
posix_ioctl_check.c 4 posix_ioctl_check(int fd)
6 return ioctl(fd, -1, 0);
  /src/sys/external/bsd/drm2/include/linux/
file.h 42 struct fd { struct
47 static inline struct fd
50 struct fd fd; local
52 fd.file = fd_getfile(number);
53 fd.fd_number = number;
55 return fd;
59 fdput(struct fd fd)
62 fd_putfile(fd.fd_number)
    [all...]
  /src/sys/lib/libsa/
stat.c 39 int fd, rv; local
41 fd = open(str, 0);
42 if (fd < 0)
44 rv = fstat(fd, sb);
45 (void)close(fd);
  /src/external/gpl3/gdb/dist/gnulib/import/
fd-safer-flag.c 29 /* Return FD, unless FD would be a copy of standard input, output, or
30 error; in that case, return a duplicate of FD, closing FD. If FLAG
31 contains O_CLOEXEC, the returned FD will have close-on-exec
32 semantics. On failure to duplicate, close FD, set errno, and
33 return -1. Preserve errno if FD is negative, so that the caller
40 fd_safer_flag (int fd, int flag)
42 if (STDIN_FILENO <= fd && fd <= STDERR_FILENO
    [all...]
fd-safer.c 27 /* Return FD, unless FD would be a copy of standard input, output, or
28 error; in that case, return a duplicate of FD, closing FD. On
29 failure to duplicate, close FD, set errno, and return -1. Preserve
30 errno if FD is negative, so that the caller can always inspect
37 fd_safer (int fd)
39 if (STDIN_FILENO <= fd && fd <= STDERR_FILENO)
41 int f = dup_safer (fd);
    [all...]
pipe-safer.c 31 pipe_safer (int fd[2])
33 if (pipe (fd) == 0)
38 fd[i] = fd_safer (fd[i]);
39 if (fd[i] < 0)
42 close (fd[1 - i]);
  /src/external/gpl3/gdb.old/dist/gnulib/import/
fd-safer-flag.c 29 /* Return FD, unless FD would be a copy of standard input, output, or
30 error; in that case, return a duplicate of FD, closing FD. If FLAG
31 contains O_CLOEXEC, the returned FD will have close-on-exec
32 semantics. On failure to duplicate, close FD, set errno, and
33 return -1. Preserve errno if FD is negative, so that the caller
40 fd_safer_flag (int fd, int flag)
42 if (STDIN_FILENO <= fd && fd <= STDERR_FILENO
    [all...]
fd-safer.c 27 /* Return FD, unless FD would be a copy of standard input, output, or
28 error; in that case, return a duplicate of FD, closing FD. On
29 failure to duplicate, close FD, set errno, and return -1. Preserve
30 errno if FD is negative, so that the caller can always inspect
37 fd_safer (int fd)
39 if (STDIN_FILENO <= fd && fd <= STDERR_FILENO)
41 int f = dup_safer (fd);
    [all...]
pipe-safer.c 31 pipe_safer (int fd[2])
33 if (pipe (fd) == 0)
38 fd[i] = fd_safer (fd[i]);
39 if (fd[i] < 0)
42 close (fd[1 - i]);
  /src/sys/external/bsd/libnv/dist/
common_impl.h 39 #define fd_is_valid(fd) (fcntl((fd), F_GETFL) != -1 || errno != EBADF)
  /src/usr.sbin/mopd/common/
print.c 46 mopPrintHWA(FILE *fd, const u_char *ap)
48 (void)fprintf(fd, "%x:%x:%x:%x:%x:%x",
50 if (ap[0] < 10) (void)fprintf(fd, " ");
51 if (ap[1] < 10) (void)fprintf(fd, " ");
52 if (ap[2] < 10) (void)fprintf(fd, " ");
53 if (ap[3] < 10) (void)fprintf(fd, " ");
54 if (ap[4] < 10) (void)fprintf(fd, " ");
55 if (ap[5] < 10) (void)fprintf(fd, " ");
59 mopPrintBPTY(FILE *fd, u_char bpty)
63 (void)fprintf(fd, "System Processor")
    [all...]
  /src/external/gpl3/gdb/dist/gdb/testsuite/gdb.base/
warning.exp 21 set fd [open $tname w]
22 puts $fd "anything"
23 close $fd
  /src/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.base/
warning.exp 21 set fd [open $tname w]
22 puts $fd "anything"
23 close $fd
  /src/lib/libutil/
login_tty.c 50 login_tty(int fd)
53 _DIAGASSERT(fd != -1);
56 if (ioctl(fd, TIOCSCTTY, NULL) == -1)
58 (void) dup2(fd, STDIN_FILENO);
59 (void) dup2(fd, STDOUT_FILENO);
60 (void) dup2(fd, STDERR_FILENO);
61 if (fd != STDIN_FILENO && fd != STDOUT_FILENO && fd != STDERR_FILENO)
62 (void) close(fd);
    [all...]
  /src/external/bsd/libbind/dist/bsd/
daemon.c 55 int fd; local
72 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
73 (void)dup2(fd, STDIN_FILENO);
74 (void)dup2(fd, STDOUT_FILENO);
75 (void)dup2(fd, STDERR_FILENO);
76 if (fd > 2)
77 (void)close (fd);
  /src/external/gpl2/xcvs/dist/lib/
fd-safer.c 19 __RCSID("$NetBSD: fd-safer.c,v 1.2 2016/05/17 14:00:09 christos Exp $");
40 /* Return FD, unless FD would be a copy of standard input, output, or
41 error; in that case, return a duplicate of FD, closing FD. On
42 failure to duplicate, close FD, set errno, and return -1. Preserve
43 errno if FD is negative, so that the caller can always inspect
50 fd_safer (int fd)
52 if (STDIN_FILENO <= fd && fd <= STDERR_FILENO
    [all...]
  /src/external/gpl3/gdb/dist/gdb/testsuite/gdb.python/
py-doc-reformat.exp 66 set fd [open $python_filename w]
68 puts $fd "class test_cmd (gdb.Command):"
69 puts $fd $input_docs
70 puts $fd ""
71 puts $fd " def __init__ (self):"
72 puts $fd " super ().__init__ (\"test-cmd\", gdb.COMMAND_OBSCURE)"
73 puts $fd ""
74 puts $fd " def invoke (self, arg, from_tty):"
75 puts $fd " print (\"In test-cmd\")"
76 puts $fd ""
    [all...]
  /src/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.python/
py-doc-reformat.exp 66 set fd [open $python_filename w]
68 puts $fd "class test_cmd (gdb.Command):"
69 puts $fd $input_docs
70 puts $fd ""
71 puts $fd " def __init__ (self):"
72 puts $fd " super ().__init__ (\"test-cmd\", gdb.COMMAND_OBSCURE)"
73 puts $fd ""
74 puts $fd " def invoke (self, arg, from_tty):"
75 puts $fd " print (\"In test-cmd\")"
76 puts $fd ""
    [all...]
  /src/tests/compat/linux/
h_inotify_init.c 44 int fd; local
47 RS(fd = syscall(LINUX_SYS_inotify_init));
48 REQUIRE(fcntl(fd, LINUX_F_GETFD) == 0);
49 REQUIRE((fcntl(fd, LINUX_F_GETFL) & LINUX_O_NONBLOCK) == 0);
50 RS(close(fd));
53 RS(fd = syscall(LINUX_SYS_inotify_init1, LINUX_IN_NONBLOCK));
54 REQUIRE(fcntl(fd, LINUX_F_GETFD) == 0);
55 REQUIRE((fcntl(fd, LINUX_F_GETFL) & LINUX_O_NONBLOCK) != 0);
56 RS(close(fd));
59 RS(fd = syscall(LINUX_SYS_inotify_init1, LINUX_IN_CLOEXEC))
    [all...]
  /src/usr.sbin/sesd/srcs/
inienc.c 47 int fd; local
50 fd = open(*v, O_RDWR);
51 if (fd < 0) {
55 if (ioctl(fd, SESIOC_INIT, NULL) < 0) {
58 (void) close(fd);
  /src/external/gpl2/lvm2/dist/lib/misc/
lvm-wrappers.c 29 int fd; local
33 if ((fd = open("/dev/urandom", O_RDONLY)) < 0) {
38 if (read(fd, buf, len) != (ssize_t) len) {
40 if (close(fd))
45 if (close(fd))
  /src/external/gpl3/binutils/dist/libiberty/
filedescriptor.c 34 /* Return true when FD file descriptor exists. */
37 is_valid_fd (int fd)
40 HANDLE h = (HANDLE) _get_osfhandle (fd);
43 return fcntl (fd, F_GETFD) >= 0;
45 return dup2 (fd, fd) < 0;

Completed in 75 milliseconds

1 2 3 4 5 6 7 8 91011>>