/openbsd-current/regress/sys/kern/flock/ |
H A D | lockf.c | 33 test1(int fd) argument 43 res = fcntl(fd, F_SETLK, &fl); 50 res = fcntl(fd, F_SETLK, &fl); 65 test2(int fd) argument 72 if (lseek(fd, len, SEEK_SET) == -1) 79 res = fcntl(fd, F_SETLK, &fl); 86 if (lseek(fd, 0, SEEK_SET) == -1) 92 res = fcntl(fd, F_GETLK, &fl); 114 int c, error, fd, i; local 135 fd [all...] |
/openbsd-current/usr.sbin/mopd/common/ |
H A D | loop-bsd.c | 96 if (iflist->fd != -1) 97 if (ioctl(iflist->fd, BIOCGBLEN, (caddr_t)&bufsize) < 0) { 113 if (ii->fd != -1) { 114 FD_SET(ii->fd, &fds); 115 if (ii->fd > maxfd) 116 maxfd = ii->fd; 126 if (ii->fd != -1) { 127 if (!FD_ISSET(ii->fd, &listeners)) 130 cc = read(ii->fd, buf, bufsize); 138 if (errno == EINVAL && (lseek(ii->fd, [all...] |
/openbsd-current/lib/libkeynote/ |
H A D | keynote-sign.c | 51 int fd, flg = 0, buflen; local 106 fd = open(argv[2 + flg], O_RDONLY); 107 if (fd == -1) 113 if (fstat(fd, &sb) == -1) 133 if (read(fd, buf, buflen - 1) == -1) 139 close(fd); 142 fd = open(argv[3 + flg], O_RDONLY); 143 if (fd == -1) 149 if (fstat(fd, &sb) == -1) 168 if (read(fd, buf [all...] |
/openbsd-current/usr.bin/wall/ |
H A D | ttymsg.c | 61 int cnt, fd, left, wret; local 90 if ((fd = open(device, O_WRONLY|O_NONBLOCK)) == -1) { 99 if (fstat(fd, &st) == -1 || 101 close(fd); 110 wret = writev(fd, iov, iovcnt); 138 (void) close(fd); 145 (void) close(fd); 149 (void) close(fd); 163 (void) fcntl(fd, O_NONBLOCK, &off); 172 (void) close(fd); [all...] |
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.law/ |
H A D | operators33.C | 13 FILE *fd; member in struct:fcell 24 tmp->fd = fd1;
|
/openbsd-current/gnu/usr.bin/perl/cpan/autodie/t/ |
H A D | import-into.t | 23 open(my $fd, '<', 'random-file');
|
/openbsd-current/lib/libc/sys/ |
H A D | w_openat.c | 23 openat(int fd, const char *path, int flags, ...) argument 36 ret = HIDDEN(openat)(fd, path, flags, mode);
|
/openbsd-current/sbin/ldattach/ |
H A D | atomicio.c | 44 atomicio(ssize_t (*f) (int, void *, size_t), int fd, void *_s, size_t n) argument 51 pfd.fd = fd; 54 res = (f) (fd, s + pos, n - pos); 78 atomiciov(ssize_t (*f) (int, const struct iovec *, int), int fd, argument 93 pfd.fd = fd; 96 res = (f) (fd, iov, iovcnt);
|
/openbsd-current/regress/lib/libpthread/blocked_shutdown/ |
H A D | blocked_shutdown.c | 46 int fd = *(int *)arg; local 51 n = recvfrom(fd, &readBuf, 1, 0, &remote_addr, &remote_addr_len); 65 int fd, i, j; local 80 CHECKe(fd = socket(AF_INET, SOCK_DGRAM, 0)); 82 CHECKr(bind(fd, (struct sockaddr *)&addr, sizeof(addr))); 85 waiting_read, (void *)&fd)); 87 CHECKr(shutdown(fd, SHUT_RDWR)); 92 CHECKr(close(fd));
|
/openbsd-current/gnu/usr.bin/perl/cpan/OpenBSD-MkTemp/ |
H A D | MkTemp.xs | 30 int fd; 38 fd = mkstemps(SvPV_nolen(template), suffixlen); 40 if (fd != -1) { 42 PerlIO *io = PerlIO_fdopen(fd, "w+");
|
/openbsd-current/lib/libelf/ |
H A D | elf_open.c | 38 elf_open(int fd) argument 45 return (_libelf_open_object(fd, ELF_C_READ, 0));
|
/openbsd-current/usr.bin/ssh/ |
H A D | atomicio.h | 38 atomicio6(ssize_t (*f) (int, void *, size_t), int fd, void *_s, size_t n, 48 atomiciov6(ssize_t (*f) (int, const struct iovec *, int), int fd,
|
/openbsd-current/usr.sbin/unbound/dnstap/ |
H A D | dtstream.h | 142 int fd; member in struct:dt_io_thread 149 /** check for nonblocking connect errors on fd */ 334 void dtio_reconnect_timeout_cb(int fd, short bits, void* arg); 337 void dtio_output_cb(int fd, short bits, void* arg); 340 void dtio_cmd_cb(int fd, short bits, void* arg); 343 void dtio_stop_timer_cb(int fd, short bits, void* arg); 346 void dtio_stop_ev_cb(int fd, short bits, void* arg); 349 void dtio_tap_callback(int fd, short bits, void* arg); 352 void dtio_mainfdcallback(int fd, short bits, void* arg);
|
/openbsd-current/usr.sbin/vmd/ |
H A D | atomicio.h | 38 atomicio6(ssize_t (*f) (int, void *, size_t), int fd, void *_s, size_t n, 48 atomiciov6(ssize_t (*f) (int, const struct iovec *, int), int fd,
|
/openbsd-current/usr.bin/rsync/ |
H A D | session.c | 101 sess_stats_send(struct sess *sess, int fd) argument 113 if (!io_write_ulong(sess, fd, tr)) { 116 } else if (!io_write_ulong(sess, fd, tw)) { 119 } else if (!io_write_ulong(sess, fd, ts)) { 137 sess_stats_recv(struct sess *sess, int fd) argument 144 if (!io_read_ulong(sess, fd, &tw)) { 147 } else if (!io_read_ulong(sess, fd, &tr)) { 150 } else if (!io_read_ulong(sess, fd, &ts)) {
|
/openbsd-current/regress/usr.sbin/syslogd/ |
H A D | args-sendsyslog-flags.pl | 18 qr/GIO fd -1 wrote \d+ bytes/ => 2,
|
/openbsd-current/usr.sbin/ospfd/ |
H A D | control.c | 46 int fd; member in struct:__anon63 53 int fd; local 59 if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) { 64 if (connect(fd, (struct sockaddr *)&sun, sizeof(sun)) == 0) { 66 close(fd); 70 close(fd); 79 int fd; local 82 if ((fd = socket(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC | SOCK_NONBLOCK, 95 close(fd); 100 if (bind(fd, (struc 119 control_listen(int fd) argument 190 control_connbyfd(int fd) argument 216 control_close(int fd) argument 241 control_dispatch_imsg(int fd, short event, void *bula) argument [all...] |
/openbsd-current/usr.sbin/ospf6d/ |
H A D | control.c | 46 int fd; member in struct:__anon408 53 int fd; local 59 if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) { 64 if (connect(fd, (struct sockaddr *)&sun, sizeof(sun)) == 0) { 66 close(fd); 70 close(fd); 79 int fd; local 82 if ((fd = socket(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC | SOCK_NONBLOCK, 95 close(fd); 100 if (bind(fd, (struc 119 control_listen(int fd) argument 190 control_connbyfd(int fd) argument 216 control_close(int fd) argument 241 control_dispatch_imsg(int fd, short event, void *bula) argument [all...] |
/openbsd-current/sbin/fsdb/ |
H A D | fsdb.h | 33 extern int bread(int fd, char *buf, daddr_t blk, long size); 34 extern void bwrite(int fd, char *buf, daddr_t blk, long size);
|
/openbsd-current/gnu/gcc/gcc/config/ |
H A D | host-hpux.c | 56 hpux_gt_pch_get_address (size_t size, int fd) argument 61 MAP_PRIVATE, fd, 0); 88 hpux_gt_pch_use_address (void *base, size_t size, int fd, size_t offset) argument 99 addr = mmap (base, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, offset); 118 if (lseek (fd, offset, SEEK_SET) == (off_t)-1) 125 nbytes = read (fd, base, MIN (size, SSIZE_MAX));
|
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/lib/ |
H A D | scanasm.exp | 48 set fd [open $output_file r] 49 set text [read $fd] 50 close $fd 81 set fd [open $output_file r] 82 set text [read $fd] 83 close $fd 128 set fd [open "| $cxxfilt < $output_file" r] 129 set text [read $fd] 130 close $fd 174 set fd [ope [all...] |
/openbsd-current/gnu/usr.bin/texinfo/info/ |
H A D | doc.h | 80 #define DocInfoCmd(fd) ((fd) && (fd)->func ? (fd) : NULL) 85 #define DocInfoCmd(fd) ((fd)->func)
|
/openbsd-current/regress/lib/libpthread/close_race/ |
H A D | close_race.c | 43 int fd = *(int *)arg; local 46 while(fcntl(fd, F_GETFD, NULL) != -1); 55 int fd, i, j; local 66 CHECKe(fd = socket(AF_INET, SOCK_DGRAM, 0)); 69 busy_thread, (void *)&fd)); 71 CHECKr(close(fd));
|
/openbsd-current/sys/lib/libsa/ |
H A D | open.c | 80 int fd, i, error; local 84 for (fd = 0, f = files; fd < SOPEN_MAX; fd++, f++) 106 return (fd); 115 return (fd);
|
/openbsd-current/regress/sys/kern/mmap2/ |
H A D | mmaptest.c | 27 int fd; local 30 if ((fd = mkstemp(fname)) < 0) 39 if (ftruncate(fd, 2 * page_size) < 0) 45 MAP_SHARED, fd, 0); 52 MAP_SHARED|MAP_FIXED, fd, 0); 67 close(fd);
|