/netbsd-current/external/gpl3/gdb/dist/sim/testsuite/cris/c/ |
H A D | seek3.c | 21 int fd; local 35 fd = open (fname, O_RDONLY); 36 if (fd < 0 37 || read (fd, buf, strlen (tsttxt)) != strlen (tsttxt) 39 || lseek (fd, -30L, SEEK_CUR) != 36 40 || read (fd, buf2, strlen (correct)) != strlen (correct)
|
/netbsd-current/external/bsd/libbind/dist/bsd/ |
H A D | readv.c | 21 __readv(fd, vp, vpcount) 22 int fd; 29 int bytes = read(fd, vp->iov_base, vp->iov_len);
|
/netbsd-current/external/ibm-public/postfix/dist/src/util/ |
H A D | open_as.c | 54 int fd; local 64 fd = open(path, flags, mode); 71 return (fd);
|
H A D | stream_listen.c | 16 /* int stream_accept(fd) 17 /* int fd; 36 /* .IP fd 89 int stream_accept(int fd) argument 98 if (ioctl(fd, I_RECVFD, &fdinfo) < 0) 100 return (fdinfo.fd);
|
H A D | timed_read.c | 11 /* ssize_t timed_read(fd, buf, len, timeout, context) 12 /* int fd; 22 /* .IP fd 62 ssize_t timed_read(int fd, void *buf, size_t len, argument 75 if (timeout > 0 && read_wait(fd, timeout) < 0) 77 if ((ret = read(fd, buf, len)) < 0 && timeout > 0 && errno == EAGAIN) {
|
H A D | timed_write.c | 11 /* ssize_t timed_write(fd, buf, len, timeout, context) 12 /* int fd; 22 /* .IP fd 62 ssize_t timed_write(int fd, const void *buf, size_t len, argument 81 if (timeout > 0 && write_wait(fd, timeout) < 0) 83 if ((ret = write(fd, buf, len)) < 0 && timeout > 0 && errno == EAGAIN) {
|
/netbsd-current/lib/libc/compat/sys/ |
H A D | compat_getdirentries.c | 51 getdirentries(int fd, char *buf, int nbytes, long *basep) argument 53 *basep = (long)lseek(fd, (off_t)0, SEEK_CUR); 54 return getdents(fd, buf, (size_t)nbytes);
|
/netbsd-current/lib/libc/termios/ |
H A D | tcgetsid.c | 55 tcgetsid(int fd) 59 _DIAGASSERT(fd != -1); 61 if (ioctl(fd, TIOCGSID, &s) < 0)
|
H A D | tcsetpgrp.c | 55 tcsetpgrp(int fd, pid_t pgrp) 59 _DIAGASSERT(fd != -1); 62 return (ioctl(fd, TIOCSPGRP, &s));
|
H A D | tcsendbreak.c | 57 tcsendbreak(int fd, int len) 61 _DIAGASSERT(fd != -1); 63 if (ioctl(fd, TIOCSBRK, 0) == -1) 66 if (ioctl(fd, TIOCCBRK, 0) == -1)
|
/netbsd-current/external/lgpl3/mpc/dist/tests/ |
H A D | tpl_native.c | 38 ungetc (datafile_context->nextchar, datafile_context->fd); 39 n = fscanf (datafile_context->fd, "%i", nread); 40 if (ferror (datafile_context->fd) || n == 0 || n == EOF) 46 datafile_context->nextchar = getc (datafile_context->fd); 70 ungetc (datafile_context->nextchar, datafile_context->fd); 71 n = fscanf (datafile_context->fd, "%lu", ui); 72 if (ferror (datafile_context->fd) || n == 0 || n == EOF) 78 datafile_context->nextchar = getc (datafile_context->fd); 103 ungetc (datafile_context->nextchar, datafile_context->fd); 104 n = fscanf (datafile_context->fd, " [all...] |
/netbsd-current/lib/libc/db/db/ |
H A D | dbfile.c | 51 int fd; local 58 if ((fd = open(file, flags | O_CLOEXEC, mode)) == -1) 62 if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) 66 if (sb && fstat(fd, sb) == -1) 69 return fd; 72 close(fd); 83 int fd, serrno; local 102 if ((fd = mkstemp(path)) != -1) { 106 if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) 109 if (sb && fstat(fd, s [all...] |
/netbsd-current/crypto/external/bsd/openssh/dist/ |
H A D | sshbuf-io.c | 33 /* Load a file from a fd into a buffer */ 35 sshbuf_load_fd(int fd, struct sshbuf **blobp) argument 45 if (fstat(fd, &st) == -1) 53 if ((len = atomicio(read, fd, buf, sizeof(buf))) == 0) { 84 int r, fd, oerrno; local 87 if ((fd = open(path, O_RDONLY)) == -1) 89 if ((r = sshbuf_load_fd(fd, bufp)) != 0) 95 close(fd); 104 int fd, oerrno; local 106 if ((fd [all...] |
H A D | pfilter.c | 31 int fd; local 39 fd = ssh_packet_connection_is_on_socket(the_active_state) ? 41 (void)blocklist_r(blstate, a, fd, "ssh");
|
/netbsd-current/external/bsd/tmux/dist/ |
H A D | osdep-haiku.c | 27 osdep_get_name(int fd, __unused char *tty) argument 32 if ((tid = tcgetpgrp(fd)) == -1) 43 osdep_get_cwd(int fd) argument
|
/netbsd-current/external/gpl3/gdb.old/dist/gas/testsuite/gas/rx/ |
H A D | dtoX.d | 12 8: 76 90 fd 0c dtof dr15, dr0 13 c: 76 90 fd fc dtof dr15, dr15 16 18: 76 90 fd 08 dtoi dr15, dr0 17 1c: 76 90 fd f8 dtoi dr15, dr15 20 28: 76 90 fd 09 dtou dr15, dr0 21 2c: 76 90 fd f9 dtou dr15, dr15
|
/netbsd-current/sys/arch/arc/jazz/ |
H A D | fd.c | 1 /* $NetBSD: fd.c,v 1.52 2023/08/29 21:55:11 andvar Exp $ */ 2 /* $OpenBSD: fd.c,v 1.6 1998/10/03 21:18:57 millert Exp $ */ 3 /* NetBSD: fd.c,v 1.78 1995/07/04 07:23:09 mycroft Exp */ 65 * @(#)fd.c 7.4 (Berkeley) 5/25/91 69 __KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.52 2023/08/29 21:55:11 andvar Exp $"); 180 CFATTACH_DECL_NEW(fd, sizeof(struct fd_softc), fdprobe, fdattach, NULL, NULL); 337 struct fd_softc *fd = device_private(self); local 342 fd->sc_dev = self; 344 callout_init(&fd->sc_motoron_ch, 0); 345 callout_init(&fd 378 struct fd_softc *fd; local 424 fd_dev_to_type(struct fd_softc *fd, dev_t dev) argument 436 struct fd_softc *fd = device_lookup_private(&fd_cd, FDUNIT(bp->b_dev)); local 504 fdstart(struct fd_softc *fd) argument 519 fdfinish(struct fd_softc *fd, struct buf *bp) argument 563 struct fd_softc *fd; local 582 struct fd_softc *fd = arg; local 595 struct fd_softc *fd = arg; local 652 struct fd_softc *fd; local 678 struct fd_softc *fd = device_lookup_private(&fd_cd, FDUNIT(dev)); local 749 struct fd_softc *fd = TAILQ_FIRST(&fdc->sc_drives); local 784 struct fd_softc *fd; local 1044 struct fd_softc *fd; local 1082 struct fd_softc *fd = device_lookup_private(&fd_cd, FDUNIT(dev)); local [all...] |
/netbsd-current/external/bsd/ipf/dist/ipsend/ |
H A D | sirix.c | 36 int fd; local 39 if ((fd = socket(PF_RAW, SOCK_RAW, RAWPROTO_DRAIN)) < 0) 49 if (bind(fd, &sr, sizeof(sr)) < 0) 52 close(fd); 55 return fd; 62 int sendip(int fd, char *pkt, int len) argument 69 if (getsockname(fd, &sr, &srlen) == -1) 78 if (ioctl(fd, SIOCGIFADDR, &ifr) == -1) 86 if (write(fd, pkt, len) == -1)
|
/netbsd-current/external/ibm-public/postfix/dist/src/global/ |
H A D | file_id.c | 11 /* const char *get_file_id_fd(fd, long_flag) 12 /* int fd; 19 /* const char *get_file_id(fd) 20 /* int fd; 35 /* .IP fd 75 const char *get_file_id(int fd) argument 77 return (get_file_id_fd(fd, 0)); 82 const char *get_file_id_fd(int fd, int long_flag) argument 86 if (fstat(fd, &st) < 0)
|
/netbsd-current/lib/libc/gen/ |
H A D | rewinddir.c | 58 int fd; local 65 fd = dirp->dd_fd; 67 dirp->dd_seek = lseek(fd, (off_t)0, SEEK_SET); 68 _initdir(dirp, fd, NULL);
|
/netbsd-current/lib/libc/stdio/ |
H A D | dprintf.c | 52 dprintf(int fd, const char * __restrict fmt, ...) 58 ret = vdprintf(fd, fmt, ap); 64 dprintf_l(int fd, locale_t loc, const char * __restrict fmt, ...) argument 70 ret = vdprintf_l(fd, loc, fmt, ap);
|
/netbsd-current/sys/arch/atari/stand/tostools/libtos/ |
H A D | eprintf.c | 45 int fd; local 47 fd = creat(fn, 0666); 48 if (fd < 0 || dup2(fd, STDOUT_FILENO) < 0)
|
/netbsd-current/lib/libpci/ |
H A D | pci_device.c | 58 pcidev_conf_read(int fd, u_int reg, uint32_t *valp) argument 65 rv = ioctl(fd, PCI_IOC_CFGREAD, &r); 81 pcidev_conf_write(int fd, u_int reg, uint32_t val) argument 88 return (ioctl(fd, PCI_IOC_CFGWRITE, &r));
|
/netbsd-current/sys/arch/x68k/usr.bin/loadfont/ |
H A D | loadfont.c | 39 int fd; local 41 if ((fd = open(file, O_RDONLY)) >= 0) { 42 if (read (fd, buf, sizeof(buf)) == sizeof (buf)) { 51 close(fd);
|
/netbsd-current/sys/arch/newsmips/stand/boot/ |
H A D | promdev.h | 2 int fd; member in struct:romdev
|