Home
last modified time | relevance | path

Searched refs:fd (Results 1 – 25 of 1941) sorted by relevance

12345678910>>...78

/openbsd/usr.sbin/mopd/common/
H A Dprint.c135 mopPrintHWA(fd, src); fprintf(fd, " > "); in mopPrintOneline()
136 mopPrintHWA(fd, dst); in mopPrintOneline()
229 fprintf(fd, "??? "); in mopPrintOneline()
232 fprintf(fd, "\n"); in mopPrintOneline()
246 mopPrintHWA(fd, dst); in mopPrintHeader()
251 fprintf(fd, "\n"); in mopPrintHeader()
255 fprintf(fd, "\n"); in mopPrintHeader()
287 fprintf(fd, "\n"); in mopPrintHeader()
472 fprintf(fd, "\n"); in mopPrintInfo()
605 fprintf(fd, in mopPrintInfo()
[all …]
H A Drc.c75 mopPrintBPTY(fd, tmpc); fprintf(fd, "\n"); in mopDumpRC()
87 fprintf(fd, "\n"); in mopDumpRC()
111 fprintf(fd, "'"); in mopDumpRC()
115 fprintf(fd, "'"); in mopDumpRC()
190 fprintf(fd, "\n"); in mopDumpRC()
203 fprintf(fd, "\n"); in mopDumpRC()
234 fprintf(fd, "\n"); in mopDumpRC()
240 fprintf(fd, in mopDumpRC()
244 fprintf(fd, in mopDumpRC()
270 fprintf(fd, in mopDumpRC()
[all …]
H A Ddl.c67 fprintf(fd, in mopDumpDL()
71 fprintf(fd, in mopDumpDL()
81 fprintf(fd, "\n"); in mopDumpDL()
101 fprintf(fd, in mopDumpDL()
105 fprintf(fd, in mopDumpDL()
131 fprintf(fd, "\n"); in mopDumpDL()
139 fprintf(fd, "\n"); in mopDumpDL()
153 fprintf(fd, "\n"); in mopDumpDL()
176 fprintf(fd, "\n"); in mopDumpDL()
199 fprintf(fd, in mopDumpDL()
[all …]
/openbsd/usr.sbin/ldpd/
H A Dsocket.c76 close(fd); in ldp_create_socket()
82 close(fd); in ldp_create_socket()
87 close(fd); in ldp_create_socket()
95 close(fd); in ldp_create_socket()
101 close(fd); in ldp_create_socket()
105 close(fd); in ldp_create_socket()
111 close(fd); in ldp_create_socket()
117 close(fd); in ldp_create_socket()
124 close(fd); in ldp_create_socket()
129 close(fd); in ldp_create_socket()
[all …]
/openbsd/sys/dev/isa/
H A Dfd.c299 fd->sc_dk.dk_name = fd->sc_dev.dv_xname; in fdattach()
301 disk_attach(&fd->sc_dev, &fd->sc_dk); in fdattach()
306 timeout_set(&fd->fdtimeout_to, fdtimeout, fd); in fdattach()
465 fd->sc_bp = bufq_dequeue(&fd->sc_bufq); in fdstart()
481 fd->sc_bp = bufq_dequeue(&fd->sc_bufq); in fdfinish()
592 fdgetdisklabel(dev, fd, fd->sc_dk.dk_label, 0); in fdopen()
848 (long long)fd->sc_blkno, fd->sc_nblks); in fdintr()
862 fd->sc_blkno += fd->sc_nblks; in fdintr()
863 fd->sc_skip += fd->sc_nbytes; in fdintr()
864 fd->sc_bcount -= fd->sc_nbytes; in fdintr()
[all …]
/openbsd/regress/sys/kern/select/
H A Dselect_iocond.c299 proc_barrier(int fd) in proc_barrier() argument
316 FD_SET(fd, rfd); in fdset_init()
317 FD_SET(fd, wfd); in fdset_init()
318 FD_SET(fd, efd); in fdset_init()
367 FD_SET(fd, &wfd); in proc_child()
472 close(fd); in proc_child()
497 FD_CLR(fd, &wfd); in proc_parent()
528 FD_CLR(fd, &wfd); in proc_parent()
574 FD_SET(fd, &rfd); in proc_parent()
777 FD_CLR(fd, &wfd); in proc_parent()
[all …]
/openbsd/games/hack/
H A Dhack.lev.c83 savelev(int fd, xchar lev) in savelev() argument
90 if (fd < 0) in savelev()
103 savemonchn(fd, fmon); in savelev()
104 savegoldchn(fd, fgold); in savelev()
105 savetrapchn(fd, ftrap); in savelev()
106 saveobjchn(fd, fobj); in savelev()
107 saveobjchn(fd, billobjs); in savelev()
109 save_engravings(fd); in savelev()
236 fmon = restmonchn(fd); in getlev()
285 fobj = restobjchn(fd); in getlev()
[all …]
H A Dhack.save.c99 int fd, ofd; in dosave0() local
127 savenames(fd); in dosave0()
147 (void) close(fd); in dosave0()
156 dorecover(int fd) in dorecover() argument
165 getlev(fd, 0, 0); in dorecover()
174 (void) close(fd); in dorecover()
190 restnames(fd); in dorecover()
202 getlev(fd, 0, 0); in dorecover()
203 (void) close(fd); in dorecover()
238 restobjchn(int fd) in restobjchn() argument
[all …]
/openbsd/sys/miscfs/fuse/
H A Dfuse_device.c137 return (fd); in fuse_lookup()
151 if (fd == NULL) in fuse_device_cleanup()
195 if (fd == NULL) in fuse_device_queue_fbuf()
211 if (fd == NULL) in fuse_device_set_fmp()
235 fd = malloc(sizeof(*fd), M_DEVBUF, M_WAITOK | M_ZERO); in fuseopen()
240 klist_init_rwlock(&fd->fd_rklist, &fd->fd_lock); in fuseopen()
255 if (fd == NULL) in fuseclose()
272 free(fd, M_DEVBUF, sizeof(*fd)); in fuseclose()
291 if (fd == NULL) in fuseioctl()
415 if (fd == NULL) in fuseread()
[all …]
/openbsd/regress/sys/dev/wscons/
H A Dsigio.c52 test_getown_fcntl(int fd) in test_getown_fcntl() argument
58 test_getown_ioctl(int fd) in test_getown_ioctl() argument
64 test_gpgrp(int fd) in test_gpgrp() argument
85 test_setown_fcntl(int fd) in test_setown_fcntl() argument
91 test_setown_ioctl(int fd) in test_setown_ioctl() argument
97 test_sigio(int fd) in test_sigio() argument
158 n = read(fd, &ev, len); in test_sigio()
173 test_spgrp(int fd) in test_spgrp() argument
199 pgrp = fcntl(fd, F_GETOWN); in test_common_getown()
287 syncrecv(int fd, int id) in syncrecv() argument
[all …]
/openbsd/sys/arch/sparc64/dev/
H A Dfd.c652 fd->sc_dk.dk_name = fd->sc_dv.dv_xname; in fdattach()
654 disk_attach(&fd->sc_dv, &fd->sc_dk); in fdattach()
767 fd->sc_bp = bufq_dequeue(&fd->sc_bufq); in fdstart()
781 fd->sc_bp = bufq_dequeue(&fd->sc_bufq); in fdfinish()
1276 (FD_BSIZE(fd) * fd->sc_type->seccyl); in fdcstate()
1572 fd->sc_skip / FD_BSIZE(fd), in fdcstate()
1592 fd->sc_blkno += fd->sc_nblks; in fdcstate()
1593 fd->sc_skip += fd->sc_nbytes; in fdcstate()
1594 fd->sc_bcount -= fd->sc_nbytes; in fdcstate()
1597 cylin = fd->sc_blkno / fd->sc_type->seccyl; in fdcstate()
[all …]
/openbsd/sbin/ipsecctl/
H A Dike.c186 fprintf(fd, "IPSEC_ESP"); in ike_section_p2()
189 fprintf(fd, "IPSEC_AH"); in ike_section_p2()
195 fprintf(fd, " force\n"); in ike_section_p2()
639 char *p2xid, FILE *fd) in ike_section_p2ids_net() argument
688 r->p2lid, fd); in ike_section_p2ids()
700 r->p2nid, fd); in ike_section_p2ids()
712 r->p2rid, fd); in ike_section_p2ids()
758 ike_section_peer(r, fd); in ike_gen_config()
762 ike_section_ids(r, fd); in ike_gen_config()
763 ike_section_ipsec(r, fd); in ike_gen_config()
[all …]
/openbsd/gnu/llvm/lldb/examples/interposing/darwin/fd_interposing/
H A DFDInterposing.cpp492 fd); in save_backtrace()
547 return fd; in socket$__interposed__()
602 return fd; in open$__interposed__()
623 return fd; in open$NOCANCEL$__interposed__()
646 return fd; in __open_extended$__interposed__()
664 return fd; in kqueue$__interposed__()
684 return fd; in shm_open$__interposed__()
704 return fd; in accept$__interposed__()
725 return fd; in accept$NOCANCEL$__interposed__()
744 return fd; in dup$__interposed__()
[all …]
/openbsd/gnu/llvm/compiler-rt/lib/tsan/rtl/
H A Dtsan_fd.cpp53 return fd < 0 || fd >= kTableSize; in bogusfd()
81 CHECK_GE(fd, 0); in fddesc()
179 if (bogusfd(fd)) in FdAcquire()
190 if (bogusfd(fd)) in FdRelease()
204 if (bogusfd(fd)) in FdAccess()
212 if (bogusfd(fd)) in FdClose()
255 if (bogusfd(fd)) in FdFileCreate()
281 if (bogusfd(fd)) in FdEventCreate()
288 if (bogusfd(fd)) in FdSignalCreate()
295 if (bogusfd(fd)) in FdInotifyCreate()
[all …]
/openbsd/gnu/usr.bin/perl/dist/IO/lib/IO/
H A DPoll.pm47 my $fd = fileno($io);
48 return unless defined $fd;
66 return unless exists $self->[0]{$fd} and exists $self->[0]{$fd}{$io};
67 return $self->[0]{$fd}{$io};
76 my($fd,$mask,$iom);
82 push(@poll,$fd => $mask);
92 $self->[1]{$fd} = $got if $got;
101 my $fd = fileno($io);
102 exists $self->[1]{$fd} and exists $self->[0]{$fd}{$io}
103 ? $self->[1]{$fd} & ($self->[0]{$fd}{$io}|POLLHUP|POLLERR|POLLNVAL)
[all …]
/openbsd/usr.sbin/mopd/otherOS/
H A Dloop.c46 int fd; local
52 if (fd >= 0) {
57 return fd;
69 int fd; local
75 if (fd >= 0) {
80 return fd;
87 mopReadRC(p, fd) in mopReadRC() argument
89 int fd;
106 mopReadDL(p, fd) in mopReadDL() argument
108 int fd;
[all …]
/openbsd/usr.bin/rsync/
H A Dio.c36 io_read_check(int fd) in io_read_check() argument
40 pfd.fd = fd; in io_read_check()
68 pfd.fd = fd; in io_write_nonblocking()
92 if ((wsz = write(fd, buf, bsz)) == -1) { in io_write_nonblocking()
140 c = io_write_blocking(fd, buf, sz); in io_write_buf()
199 pfd.fd = fd; in io_read_nonblocking()
348 c = io_read_blocking(fd, buf, sz); in io_read_buf()
376 if (!io_read_flush(sess, fd)) { in io_read_buf()
409 if (!io_write_int(sess, fd, -1)) in io_write_ulong()
585 if (!io_read_int(sess, fd, &sval)) { in io_read_ulong()
[all …]
/openbsd/regress/sys/fifofs/
H A Dfifotest.out8 0 fd(s) ready
12 0 fd(s) ready
16 0 fd(s) ready
20 0 fd(s) ready
30 0 fd(s) ready
38 0 fd(s) ready
86 0 fd(s) ready
90 0 fd(s) ready
94 0 fd(s) ready
98 0 fd(s) ready
[all …]
H A Dfifotest.c86 int fd; in runtest() local
111 doselect(-1, fd, fd, timeout); in runtest()
126 doselect(-1, fd, fd, timeout); in runtest()
142 int fd; in eof_writer() local
173 if (fd == -1) { in eof_writer()
183 close(fd); in eof_writer()
204 if (fd != -1) in eoftest()
205 close(fd); in eoftest()
253 doselect(writer, fd, fd, timeout); in eoftest()
277 close(fd); in eoftest()
[all …]
/openbsd/usr.sbin/tcpdump/
H A Dprivsep.c490 write_zero(fd); in impl_gethostbyaddr()
506 write_zero(fd); in impl_ether_ntohost()
522 write_zero(fd); in impl_getrpcbynumber()
537 write_zero(fd); in impl_getserventries()
558 write_zero(fd); in impl_getprotoentries()
591 write_zero(fd); in impl_localtime()
604 write_zero(fd); in impl_pcap_stats()
771 int fd, err = 0; in priv_open_pfosfp() local
776 if (fd < 0) { in priv_open_pfosfp()
781 return (fd); in priv_open_pfosfp()
[all …]
/openbsd/regress/sys/kern/pwrite/
H A Dpwrite.c22 int fd, ret; in main() local
24 if ((fd = mkstemp(temp)) < 0) in main()
31 if (lseek(fd, 5, SEEK_SET) != 5) in main()
37 if (read(fd, &c, 1) != 1) in main()
44 if (write(fd, &c, 1) != 1) in main()
47 if (write(fd, &c, 0) != 0) in main()
50 if (pread(fd, buf, 10, 0) != 10) in main()
69 if (fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) | O_APPEND)) in main()
78 close(fd); in main()
81 fd = open("/dev/tty", O_RDWR); in main()
[all …]
/openbsd/usr.sbin/makefs/cd9660/
H A Dcd9660_write.c59 FILE *fd; in cd9660_write_image() local
63 if ((fd = fopen(image, "w+")) == NULL) in cd9660_write_image()
110 fclose(fd); in cd9660_write_image()
114 fclose(fd); in cd9660_write_image()
301 if (fseeko(fd, working_sector * in cd9660_write_file()
312 if (fseeko(fd, working_sector * in cd9660_write_file()
319 temp->su_tail_size, fd); in cd9660_write_file()
320 if (ferror(fd)) { in cd9660_write_file()
359 curpos = ftello(fd); in cd9660_write_filedata()
415 fwrite(buf,1,bytes_read,fd); in cd9660_copy_file()
[all …]
/openbsd/regress/lib/libpthread/blocked_fifo/
H A Dblocked_fifo.c49 int fd; in fifo_deadlocker() local
56 CHECKe(close(fd)); in fifo_deadlocker()
61 CHECKe(close(fd)); in fifo_deadlocker()
69 int fd; in fifo_closer() local
77 CHECKe(close(fd)); in fifo_closer()
83 CHECKe(close(fd)); in fifo_closer()
94 int fd; in main() local
112 CHECKe(fstat(fd, &st)); in main()
119 CHECKe(close(fd)); in main()
135 ASSERT(fd == expected_fd); in main()
[all …]
/openbsd/regress/sys/kern/poll/
H A Dpoll_iocond.c322 pfd[0].fd = fd; in proc_child()
351 pfd[0].fd = fd; in proc_child()
439 pfd[0].fd = fd; in proc_child()
441 pfd[1].fd = fd; in proc_child()
481 pfd[0].fd = fd; in proc_child()
502 pfd[0].fd = fd; in proc_parent()
554 pfd[0].fd = fd; in proc_parent()
611 pfd[0].fd = fd; in proc_parent()
613 pfd[1].fd = fd; in proc_parent()
792 pfd[0].fd = fd; in proc_parent()
[all …]
/openbsd/regress/sys/kern/flock/
H A Dflock.c76 test1(int fd) in test1() argument
105 test2(int fd) in test2() argument
176 test3(int fd) in test3() argument
246 test4(int fd) in test4() argument
320 test5(int fd) in test5() argument
414 test6(int fd) in test6() argument
517 test7(int fd) in test7() argument
589 test8(int fd) in test8() argument
666 test9(int fd) in test9() argument
738 test10(int fd) in test10() argument
[all …]

12345678910>>...78