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

1234567891011>>

/openbsd-current/lib/libc/gen/
H A Dfdatasync.c10 fdatasync(int fd) argument
12 return (fsync(fd));
H A Ddaemon.c39 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 Disatty.c35 isatty(int fd) argument
37 return fcntl(fd, F_ISATTY) != -1;
/openbsd-current/sys/arch/alpha/include/
H A Dconf.h20 bdev_decl(fd); variable
21 cdev_decl(fd); variable
/openbsd-current/lib/libutil/
H A Dlogin_tty.c38 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 Dnet28.C13 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 Dopen.c30 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 Dlibdebugserver.h12 int debug_server_main(int fd);
/openbsd-current/usr.sbin/mopd/common/
H A Dprint.c40 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 Drc.c33 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 Dstat.c40 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 Dreaddir.c43 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 Dftruncate.c32 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 Dfchown.c30 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 Dloop.c46 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 Dpwrite.c22 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 Dftruncate.c13 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 Doverload5.C16 Foo fd; local
22 fd << (signed char) 0;
/openbsd-current/gnu/usr.bin/perl/cpan/autodie/t/lib/my/
H A Dpragma.pm13 open(my $fd, '<', 'random-file');
14 return $fd;
/openbsd-current/lib/libc/sys/
H A Dw_close.c22 close(int fd) argument
27 ret = HIDDEN(close)(fd);
H A Dw_closefrom.c22 closefrom(int fd) argument
27 ret = HIDDEN(closefrom)(fd);
H A Dw_fsync.c22 fsync(int fd) argument
27 ret = HIDDEN(fsync)(fd);
/openbsd-current/lib/libc/termios/
H A Dtcgetpgrp.c35 tcgetpgrp(int fd) argument
39 if (ioctl(fd, TIOCGPGRP, &s) == -1)
H A Dtcgetsid.c35 tcgetsid(int fd) argument
39 if (ioctl(fd, TIOCGSID, &s) == -1)
/openbsd-current/sbin/unwind/
H A Dcontrol.h20 int control_listen(int fd);

Completed in 160 milliseconds

1234567891011>>