/openbsd-current/lib/libc/gen/ |
H A D | fdatasync.c | 10 fdatasync(int fd) argument 12 return (fsync(fd));
|
H A D | daemon.c | 39 int fd; local 56 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR)) != -1) { 57 (void)dup2(fd, STDIN_FILENO); 58 (void)dup2(fd, STDOUT_FILENO); 59 (void)dup2(fd, STDERR_FILENO); 60 if (fd > 2) 61 (void)close(fd);
|
H A D | isatty.c | 35 isatty(int fd) argument 37 return fcntl(fd, F_ISATTY) != -1;
|
/openbsd-current/sys/arch/alpha/include/ |
H A D | conf.h | 20 bdev_decl(fd); variable 21 cdev_decl(fd); variable
|
/openbsd-current/lib/libutil/ |
H A D | login_tty.c | 38 login_tty(int fd) argument 41 if (ioctl(fd, TIOCSCTTY, (char *)NULL) == -1) 43 (void) dup2(fd, STDIN_FILENO); 44 (void) dup2(fd, STDOUT_FILENO); 45 (void) dup2(fd, STDERR_FILENO); 46 if (fd > STDERR_FILENO) 47 (void) close(fd);
|
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.mike/ |
H A D | net28.C | 13 typedef int ( test ::* test2)(int fd); 19 int inputReady(int fd); 25 int ivFileBrowserImpl_IOCallback ::inputReady(int fd) argument 27 return (_obj->*_input)(fd);
|
/openbsd-current/regress/sys/kern/open/ |
H A D | open.c | 30 int fd; local 32 fd = open(path, O_WRONLY | O_TRUNC | O_SHLOCK); 33 if (fd == -1) 35 close(fd);
|
/openbsd-current/gnu/llvm/lldb/tools/debugserver/source/ |
H A D | libdebugserver.h | 12 int debug_server_main(int fd);
|
/openbsd-current/usr.sbin/mopd/common/ |
H A D | print.c | 40 mopPrintHWA(FILE *fd, u_char *ap) argument 42 fprintf(fd, "%x:%x:%x:%x:%x:%x", ap[0], ap[1], ap[2], ap[3], ap[4], 44 if (ap[0] < 16) fprintf(fd, " "); 45 if (ap[1] < 16) fprintf(fd, " "); 46 if (ap[2] < 16) fprintf(fd, " "); 47 if (ap[3] < 16) fprintf(fd, " "); 48 if (ap[4] < 16) fprintf(fd, " "); 49 if (ap[5] < 16) fprintf(fd, " "); 53 mopPrintBPTY(FILE *fd, u_char bpty) argument 57 fprintf(fd, "Syste 69 mopPrintPGTY(FILE *fd, u_char pgty) argument 91 mopPrintOneline(FILE *fd, u_char *pkt, int trans) argument 236 mopPrintHeader(FILE *fd, u_char *pkt, int trans) argument 295 mopPrintMopHeader(FILE *fd, u_char *pkt, int trans) argument 401 mopPrintDevice(FILE *fd, u_char device) argument 412 mopPrintTime(FILE *fd, u_char *ap) argument 420 mopPrintInfo(FILE *fd, u_char *pkt, int *idx, u_short moplen, u_char mopcode, int trans) argument [all...] |
H A D | rc.c | 33 mopDumpRC(FILE *fd, u_char *pkt, int trans) argument 57 fprintf(fd, "Reserved : %02x\n", tmpc); 60 fprintf(fd, "Receipt Nbr : %04x\n", tmps); 67 fprintf(fd, "Verification : %04x\n", tmps); 71 fprintf(fd, "Verification : %08lx\n", tmpl); 74 fprintf(fd, "Processor : %02x ", tmpc); 75 mopPrintBPTY(fd, tmpc); fprintf(fd, "\n"); 78 fprintf(fd, "Control : %02x ", control); 80 fprintf(fd, "Bootserve [all...] |
/openbsd-current/sys/lib/libsa/ |
H A D | stat.c | 40 int fd, rv; local 43 if ((fd = oopen(str, 0)) < 0) 45 if ((fd = open(str, O_RDONLY)) < 0) 48 rv = fstat(fd, sb); 50 (void)oclose(fd); 52 (void)close(fd);
|
H A D | readdir.c | 43 int fd; local 55 if ((fd = oopen(name, O_RDONLY)) >= 0) 56 olseek(fd, 0, 0); 58 if ((fd = open(name, O_RDONLY)) >= 0) 59 lseek(fd, 0, SEEK_SET); 62 return fd; 66 readdir(int fd, char *dest) argument 70 if (fd < 0 || fd >= SOPEN_MAX) { 74 f = &files[fd]; 90 closedir(int fd) argument [all...] |
/openbsd-current/regress/sys/kern/ftruncate/ |
H A D | ftruncate.c | 32 int fd; local 34 fd = open(path, O_RDWR); 35 if (fd == -1) 37 if (ftruncate(fd, 0) == -1) 39 close(fd);
|
/openbsd-current/regress/sys/kern/fchown/ |
H A D | fchown.c | 30 int fd; local 32 fd = open(path, O_WRONLY); 33 if (fd == -1) 35 if (fchown(fd, 0, -1) == -1) 37 close(fd);
|
/openbsd-current/usr.sbin/mopd/otherOS/ |
H A D | loop.c | 46 int fd; local 48 fd = (*(p->iopen))(p->if_name, 52 if (fd >= 0) { 53 pfAddMulti(fd, p->if_name, rc_mcst); 54 pfEthAddr(fd, p->eaddr); 57 return fd; 69 int fd; local 71 fd = (*(p->iopen))(p->if_name, 75 if (fd >= 0) { 76 pfAddMulti(fd, [all...] |
/openbsd-current/regress/sys/kern/pwrite/ |
H A D | pwrite.c | 22 int fd, ret; local 24 if ((fd = mkstemp(temp)) < 0) 28 if (write(fd, zeroes, sizeof(zeroes)) != sizeof(zeroes)) 31 if (lseek(fd, 5, SEEK_SET) != 5) 34 if (pwrite(fd, &magic[1], 4, 4) != 4) 37 if (read(fd, &c, 1) != 1) 44 if (write(fd, &c, 1) != 1) 47 if (write(fd, &c, 0) != 0) 50 if (pread(fd, buf, 10, 0) != 10) 56 if ((ret = pwrite(fd, [all...] |
/openbsd-current/gnu/usr.bin/cvs/lib/ |
H A D | ftruncate.c | 13 ftruncate (fd, length) 14 int fd; 17 return fcntl (fd, F_CHSIZE, length); 29 ftruncate (fd, length) 30 int fd; 36 if (fstat (fd, &filebuf) < 0) 42 if (lseek (fd, (length - 1), SEEK_SET) < 0) 46 if (write (fd, "", 1) != 1) 61 if (fcntl (fd, F_FREESP, &fl) < 0) 69 ftruncate (fd, lengt [all...] |
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.brendan/ |
H A D | overload5.C | 16 Foo fd; local 22 fd << (signed char) 0;
|
/openbsd-current/gnu/usr.bin/perl/cpan/autodie/t/lib/my/ |
H A D | pragma.pm | 13 open(my $fd, '<', 'random-file'); 14 return $fd;
|
/openbsd-current/lib/libc/sys/ |
H A D | w_close.c | 22 close(int fd) argument 27 ret = HIDDEN(close)(fd);
|
H A D | w_closefrom.c | 22 closefrom(int fd) argument 27 ret = HIDDEN(closefrom)(fd);
|
H A D | w_fsync.c | 22 fsync(int fd) argument 27 ret = HIDDEN(fsync)(fd);
|
/openbsd-current/lib/libc/termios/ |
H A D | tcgetpgrp.c | 35 tcgetpgrp(int fd) argument 39 if (ioctl(fd, TIOCGPGRP, &s) == -1)
|
H A D | tcgetsid.c | 35 tcgetsid(int fd) argument 39 if (ioctl(fd, TIOCGSID, &s) == -1)
|
/openbsd-current/sbin/unwind/ |
H A D | control.h | 20 int control_listen(int fd);
|