| /src/lib/libc/stdio/ |
| H A D | mkostemp.c | 33 int fd; local in function:mkostemp 35 return GETTEMP(path, &fd, 0, 0, oflags) ? fd : -1;
|
| H A D | mkostemps.c | 33 int fd; local in function:mkostemps 35 return GETTEMP(path, &fd, 0, slen, oflags) ? fd : -1;
|
| H A D | 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/ |
| H A D | 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) argument 62 fd_putfile(fd 67 fget(int fd) argument 73 fd_install(int fd,struct file * fp) argument [all...] |
| /src/sys/lib/libsa/ |
| H A D | 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/ |
| H A D | common_impl.h | 39 #define fd_is_valid(fd) (fcntl((fd), F_GETFL) != -1 || errno != EBADF)
|
| /src/usr.sbin/mopd/common/ |
| H A D | print.c | 46 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...] |
| H A D | rc.c | 39 mopDumpRC(FILE *fd, const u_char *pkt, int trans) argument 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...] |
| H A D | dl.c | 39 mopDumpDL(FILE *fd, const u_char *pkt, int trans) argument 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,"Loa [all...] |
| /src/lib/libutil/ |
| H A D | login_tty.c | 50 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...] |
| /src/tests/compat/linux/ |
| H A D | 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 [all...] |
| /src/usr.sbin/sesd/srcs/ |
| H A D | 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);
|
| H A D | 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...] |
| H A D | 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/ |
| H A D | 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/ |
| H A D | hdaudioctl.h | 1 extern int hdaudioctl_graph(int fd, int argc, char *argv[]);
|
| /src/lib/libcompat/4.1/ |
| H A D | 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));
|
| H A D | 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/games/hack/ |
| H A D | hack.lev.c | 85 savelev(int fd, xchar lev) argument 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, 134 bwrite(int fd,const void * loc,size_t num) argument 142 saveobjchn(int fd,struct obj * otmp) argument 160 savemonchn(int fd,struct monst * mtmp) argument 183 savegoldchn(int fd,struct gold * gold) argument 196 savetrapchn(int fd,struct trap * trap) argument 209 getlev(int fd,int pid,xchar lev) argument 311 mread(int fd,void * buf,size_t len) argument [all...] |
| /src/lib/libc/gen/ |
| H A D | 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/ |
| H A D | 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/ |
| H A D | 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/ |
| H A D | 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 323 common_tail(int fd,kcov_int_t * data) argument 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/regress/sys/kern/kqueue/vnode/ |
| H A D | write.c | 45 int fd, n; local in function:main 51 fd = open(argv[1], O_WRONLY); 52 if (fd < 0) 55 lseek(fd, 0, SEEK_SET); 58 n = write(fd, buffer, sizeof(buffer)); 64 close(fd);
|
| /src/lib/libisns/ |
| H A D | isns_fileio.c | 42 isns_file_writev(int fd, const struct iovec *iov, int iovcnt) argument 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) argument 68 error = wepe_sys_readv(fd, iov, iovcnt, &rval); 72 rval = readv(fd, iov, iovcnt);
|