Searched refs:fd (Results 1 - 25 of 4947) sorted by relevance

1234567891011>>

/netbsd-current/lib/libc/stdio/
H A Dmkostemp.c33 int fd; local
35 return GETTEMP(path, &fd, 0, 0, oflags) ? fd : -1;
H A Dmkstemps.c33 int fd; local
35 return GETTEMP(path, &fd, 0, slen, 0) ? fd : -1;
H A Dmkostemps.c33 int fd; local
35 return GETTEMP(path, &fd, 0, slen, oflags) ? fd : -1;
/netbsd-current/external/bsd/libfido2/dist/openbsd-compat/
H A Dposix_ioctl_check.c4 posix_ioctl_check(int fd) argument
6 return ioctl(fd, -1, 0);
/netbsd-current/external/gpl3/gdb.old/dist/ld/testsuite/ld-xtensa/
H A Drelax-static.s3 movi a2, fd@plt
4 movi a2, fd
8 movi a2, fd@plt
9 movi a2, fd
H A Drelax-undef-weak.s1 .type fd,@function
2 .weak fd
6 movi a5, fd@plt
7 movi a6, fd
11 movi a5, fd@plt
12 movi a6, fd
/netbsd-current/sys/external/bsd/drm2/include/linux/
H A Dfile.h42 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) argument
62 fd_putfile(fd
67 fget(int fd) argument
73 fd_install(int fd, struct file *fp) argument
[all...]
/netbsd-current/sys/lib/libsa/
H A Dstat.c39 int fd, rv; local
41 fd = open(str, 0);
42 if (fd < 0)
44 rv = fstat(fd, sb);
45 (void)close(fd);
/netbsd-current/external/gpl3/gdb.old/dist/gnulib/import/
H A Dfd-safer-flag.c40 fd_safer_flag (int fd, int flag) argument
42 if (STDIN_FILENO <= fd && fd <= STDERR_FILENO)
44 int f = dup_safer_flag (fd, flag);
46 close (fd);
48 fd = f;
51 return fd;
H A Dfd-safer.c37 fd_safer (int fd) argument
39 if (STDIN_FILENO <= fd && fd <= STDERR_FILENO)
41 int f = dup_safer (fd);
43 close (fd);
45 fd = f;
48 return fd;
H A Dpipe-safer.c31 pipe_safer (int fd[2]) argument
34 if (pipe (fd) == 0)
39 fd[i] = fd_safer (fd[i]);
40 if (fd[i] < 0)
43 close (fd[1 - i]);
/netbsd-current/external/gpl3/gdb/dist/gnulib/import/
H A Dfd-safer-flag.c40 fd_safer_flag (int fd, int flag) argument
42 if (STDIN_FILENO <= fd && fd <= STDERR_FILENO)
44 int f = dup_safer_flag (fd, flag);
46 close (fd);
48 fd = f;
51 return fd;
H A Dfd-safer.c37 fd_safer (int fd) argument
39 if (STDIN_FILENO <= fd && fd <= STDERR_FILENO)
41 int f = dup_safer (fd);
43 close (fd);
45 fd = f;
48 return fd;
H A Dpipe-safer.c31 pipe_safer (int fd[2]) argument
33 if (pipe (fd) == 0)
38 fd[i] = fd_safer (fd[i]);
39 if (fd[i] < 0)
42 close (fd[1 - i]);
/netbsd-current/sys/external/bsd/libnv/dist/
H A Dcommon_impl.h39 #define fd_is_valid(fd) (fcntl((fd), F_GETFL) != -1 || errno != EBADF)
/netbsd-current/usr.sbin/mopd/common/
H A Dprint.c46 mopPrintHWA(FILE *fd, const u_char *ap) argument
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) argument
63 (void)fprintf(fd, "Syste
75 mopPrintPGTY(FILE *fd, u_char pgty) argument
97 mopPrintOneline(FILE *fd, const u_char *pkt, int trans) argument
245 mopPrintHeader(FILE *fd, const u_char *pkt, int trans) argument
306 mopPrintMopHeader(FILE *fd, const u_char *pkt, int trans) argument
415 mopPrintDevice(FILE *fd, u_char device) argument
426 mopPrintTime(FILE *fd, const u_char *ap) argument
435 mopPrintInfo(FILE *fd, const u_char *pkt, int *idx, u_short moplen, u_char mopcode, int trans) argument
[all...]
/netbsd-current/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.base/
H A Dwarning.exp24 set fd [open $tname w]
25 puts $fd "anything"
26 close $fd
/netbsd-current/external/gpl3/gdb/dist/gdb/testsuite/gdb.base/
H A Dwarning.exp24 set fd [open $tname w]
25 puts $fd "anything"
26 close $fd
/netbsd-current/lib/libutil/
H A Dlogin_tty.c50 login_tty(int fd) argument
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...]
/netbsd-current/external/bsd/libbind/dist/bsd/
H A Ddaemon.c55 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);
/netbsd-current/external/gpl2/xcvs/dist/lib/
H A Dfd-safer.c19 __RCSID("$NetBSD: fd-safer.c,v 1.2 2016/05/17 14:00:09 christos Exp $");
50 fd_safer (int fd) argument
52 if (STDIN_FILENO <= fd && fd <= STDERR_FILENO)
54 int f = dup_safer (fd);
56 close (fd);
58 fd = f;
61 return fd;
/netbsd-current/external/gpl3/gdb.old/dist/gas/testsuite/gas/rx/
H A DXtod.d10 0: fd 77 80 0a ftod r0, dr0
11 4: fd 77 8f 0a ftod r15, dr0
12 8: fd 77 80 fa ftod r0, dr15
13 c: fd 77 8f fa ftod r15, dr15
14 10: fd 77 80 09 itod r0, dr0
15 14: fd 77 8f 09 itod r15, dr0
16 18: fd 77 80 f9 itod r0, dr15
17 1c: fd 77 8f f9 itod r15, dr15
18 20: fd 77 80 0d utod r0, dr0
19 24: fd 7
[all...]
/netbsd-current/external/gpl3/gdb/dist/gdb/testsuite/gdb.python/
H A Dpy-doc-reformat.exp66 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...]
/netbsd-current/tests/compat/linux/
H A Dh_inotify_init.c44 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
[all...]
/netbsd-current/external/gpl2/lvm2/dist/lib/misc/
H A Dlvm-wrappers.c29 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))

Completed in 277 milliseconds

1234567891011>>