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

1 2 3 4 5 6 7 8 91011>>

  /src/lib/libc/stdio/
mkostemp.c 33 int fd; local in function:mkostemp
35 return GETTEMP(path, &fd, 0, 0, oflags) ? fd : -1;
mkostemps.c 33 int fd; local in function:mkostemps
35 return GETTEMP(path, &fd, 0, slen, oflags) ? fd : -1;
mkstemps.c 35 int fd; local in function:mkstemps
37 return GETTEMP(path, &fd, 0, slen, 0) ? fd : -1;
  /src/sys/external/bsd/drm2/include/linux/
file.h 42 struct fd { struct
47 static inline struct fd
50 struct fd fd; local in function:fdget
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 in function:stat
41 fd = open(str, 0);
42 if (fd < 0)
44 rv = fstat(fd, sb);
45 (void)close(fd);
  /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...]
rc.c 39 mopDumpRC(FILE *fd, const u_char *pkt, int trans)
63 (void)fprintf(fd,"Reserved : %02x\n",tmpc);
66 (void)fprintf(fd,"Receipt Nbr : %04x\n",tmps);
73 (void)fprintf(fd,"Verification : %04x\n",tmps);
77 (void)fprintf(fd,"Verification : %08x\n",tmpl);
80 (void)fprintf(fd,"Processor : %02x ",tmpc);
81 mopPrintBPTY(fd, tmpc); (void)fprintf(fd, "\n");
84 (void)fprintf(fd,"Control : %02x ",control);
86 (void)fprintf(fd,
    [all...]
dl.c 39 mopDumpDL(FILE *fd, const u_char *pkt, int trans)
64 (void)fprintf(fd,"Load Number : %02x\n",tmpc);
68 (void)fprintf(fd,"Load Address : %08x\n", tmpl);
76 (void)fprintf(fd,
80 (void)fprintf(fd,
85 (void)fprintf(fd, "%02x ",
88 (void)fprintf(fd,"\n");
92 (void)fprintf(fd,"\n");
99 (void)fprintf(fd,"Xfer Address : %08x\n", tmpl);
110 (void)fprintf(fd,"Load Number : %02x\n",tmpc)
    [all...]
  /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/tests/compat/linux/
h_inotify_init.c 44 int fd; local in function:_start
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 in function:main
50 fd = open(*v, O_RDWR);
51 if (fd < 0) {
55 if (ioctl(fd, SESIOC_INIT, NULL) < 0) {
58 (void) close(fd);
getobjmap.c 50 int nobj, fd, i; local in function:main
53 fd = open(*v, O_RDONLY);
54 if (fd < 0) {
58 if (ioctl(fd, SESIOC_GETNOBJ, (caddr_t) &nobj) < 0) {
60 (void) close(fd);
65 (void) close(fd);
71 (void) close(fd);
74 if (ioctl(fd, SESIOC_GETOBJMAP, (caddr_t) objp) < 0) {
76 (void) close(fd);
84 (void) close(fd);
    [all...]
getnobj.c 48 int fd; local in function:main
52 fd = open(name, O_RDONLY);
53 if (fd < 0) {
57 if (ioctl(fd, SESIOC_GETNOBJ, (caddr_t) &nobj) < 0) {
62 close (fd);
  /src/sys/stand/
cat.c 48 register int fd; local in function:main
51 fd = getfile("File", 0);
52 while (read(fd, &c, 1) == 1)
  /src/usr.sbin/hdaudioctl/
hdaudioctl.h 1 extern int hdaudioctl_graph(int fd, int argc, char *argv[]);
  /src/games/hack/
hack.lev.c 85 savelev(int fd, xchar lev)
92 if (fd < 0)
97 bwrite(fd, &hackpid, sizeof(hackpid));
98 bwrite(fd, &lev, sizeof(lev));
99 bwrite(fd, levl, sizeof(levl));
100 bwrite(fd, &moves, sizeof(long));
101 bwrite(fd, &xupstair, sizeof(xupstair));
102 bwrite(fd, &yupstair, sizeof(yupstair));
103 bwrite(fd, &xdnstair, sizeof(xdnstair));
104 bwrite(fd, &ydnstair, sizeof(ydnstair))
    [all...]
  /src/lib/libcompat/4.1/
gtty.c 49 * #define gtty(fd, tty) ioctl(fd, TIOCGETP, tty)
52 gtty(fd, tty)
53 int fd;
57 _DIAGASSERT(fd != -1);
60 return (ioctl(fd, TIOCGETP, tty));
stty.c 49 * #define stty(fd, tty) ioctl(fd, TIOCSETP, tty)
52 stty(fd, tty)
53 int fd;
57 _DIAGASSERT(fd != -1);
60 return (ioctl(fd, TIOCSETP, tty));
  /src/lib/libc/gen/
daemon.c 54 int fd; local in function:__weak_alias
71 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
72 (void)dup2(fd, STDIN_FILENO);
73 (void)dup2(fd, STDOUT_FILENO);
74 (void)dup2(fd, STDERR_FILENO);
75 if (fd > STDERR_FILENO)
76 (void)close(fd);
  /src/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/
tsan_fd.h 42 void FdAcquire(ThreadState *thr, uptr pc, int fd);
43 void FdRelease(ThreadState *thr, uptr pc, int fd);
44 void FdAccess(ThreadState *thr, uptr pc, int fd);
45 void FdClose(ThreadState *thr, uptr pc, int fd, bool write = true);
46 void FdFileCreate(ThreadState *thr, uptr pc, int fd);
49 void FdEventCreate(ThreadState *thr, uptr pc, int fd);
50 void FdSignalCreate(ThreadState *thr, uptr pc, int fd);
51 void FdInotifyCreate(ThreadState *thr, uptr pc, int fd);
52 void FdPollCreate(ThreadState *thr, uptr pc, int fd);
53 void FdSocketCreate(ThreadState *thr, uptr pc, int fd);
    [all...]
  /src/games/trek/
dumpgame.c 86 int fd; local in function:dumpgame
90 if ((fd = creat("trek.dump", 0644)) < 0) {
95 write(fd, &version, sizeof version);
99 write(fd, &d->area, sizeof d->area);
101 write(fd, d->area, i);
104 close(fd);
122 int fd; local in function:restartgame
125 if ((fd = open("trek.dump", O_RDONLY)) < 0 ||
126 read(fd, &version, sizeof version) != sizeof version ||
128 readdump(fd)) {
152 int fd; local in function:readdump
    [all...]
  /src/tests/modules/
t_kcov.c 51 int fd; local in function:open_kcov
53 fd = open("/dev/kcov", O_RDWR);
54 if (fd == -1)
57 return fd;
104 int fd; local in function:ATF_TC_BODY
106 fd = open_kcov();
107 close(fd);
108 fd = open("/dev/kcov", O_RDWR);
109 ATF_REQUIRE(fd != -1);
111 close(fd);
117 int fd; local in function:ATF_TC_BODY
133 int fd; local in function:ATF_TC_BODY
155 int fd; local in function:ATF_TC_BODY
171 int fd; local in function:ATF_TC_BODY
187 int fd; local in function:kcov_mmap_enable_thread
210 int fd; local in function:ATF_TC_BODY
225 int fd; local in function:ATF_TC_BODY
264 int fd; local in function:ATF_TC_BODY
278 int fd; local in function:ATF_TC_BODY
292 int fd, fd2; local in function:common_head_raw
336 int fd; local in function:kcov_basic
422 int fd; local in function:ATF_TC_BODY
460 int fd; local in function:ATF_TC_BODY
491 int fd; local in function:multiple_threads_helper
517 int fd; local in function:kcov_multiple_threads
    [all...]
  /src/lib/libisns/
isns_fileio.c 42 isns_file_writev(int fd, const struct iovec *iov, int iovcnt)
48 error = wepe_sys_writev(fd, iov, iovcnt, &rval);
52 rval = writev(fd, iov, iovcnt);
62 isns_file_readv(int fd, const struct iovec *iov, int iovcnt)
68 error = wepe_sys_readv(fd, iov, iovcnt, &rval);
72 rval = readv(fd, iov, iovcnt);
  /src/lib/libossaudio/
oss_ioctl.c 7 _oss_ioctl(int fd, unsigned long com, ...)
17 return _oss_dsp_ioctl(fd, com, argp);
19 return _oss3_mixer_ioctl(fd, com, argp);
21 return _oss4_mixer_ioctl(fd, com, argp);
23 return _oss4_global_ioctl(fd, com, argp);
25 return ioctl(fd, com, argp);

Completed in 21 milliseconds

1 2 3 4 5 6 7 8 91011>>