Searched refs:fd (Results 126 - 150 of 1892) sorted by relevance

1234567891011>>

/openbsd-current/sys/arch/hppa/include/
H A Dconf.h35 cdev_decl(fd); variable
36 bdev_decl(fd); variable
/openbsd-current/lib/libc/stdio/
H A Ddprintf.c39 dprintf(int fd, const char * __restrict fmt, ...) argument
45 ret = vdprintf(fd, fmt, ap);
/openbsd-current/lib/libc/sys/
H A Dw_pread.c22 pread(int fd, void *buf, size_t nbyte, off_t offset) argument
27 ret = HIDDEN(pread)(fd, buf, nbyte, offset);
H A Dw_preadv.c23 preadv(int fd, const struct iovec *iovp, int iovcnt, off_t offset) argument
28 ret = HIDDEN(preadv)(fd, iovp, iovcnt, offset);
H A Dw_pwrite.c22 pwrite(int fd, const void *buf, size_t nbyte, off_t offset) argument
27 ret = HIDDEN(pwrite)(fd, buf, nbyte, offset);
H A Dw_pwritev.c23 pwritev(int fd, const struct iovec *iovp, int iovcnt, off_t offset) argument
28 ret = HIDDEN(pwritev)(fd, iovp, iovcnt, offset);
H A Dw_read.c22 read(int fd, void *buf, size_t nbytes) argument
27 ret = HIDDEN(read)(fd, buf, nbytes);
H A Dw_readv.c22 readv(int fd, const struct iovec *iov, int iovcnt) argument
27 ret = HIDDEN(readv)(fd, iov, iovcnt);
H A Dw_recvfrom.c22 recvfrom(int fd, void *buf, size_t len, int flags, struct sockaddr *addr, argument
28 ret = HIDDEN(recvfrom)(fd, buf, len, flags, addr, addrlen);
H A Dw_recvmsg.c22 recvmsg(int fd, struct msghdr *msg, int flags) argument
27 ret = HIDDEN(recvmsg)(fd, msg, flags);
H A Dw_sendto.c22 sendto(int fd, const void *msg, size_t len, int flags, argument
28 ret = HIDDEN(sendto)(fd, msg, len, flags, to, tolen);
H A Dw_write.c22 write(int fd, const void *buf, size_t nbytes) argument
27 ret = HIDDEN(write)(fd, buf, nbytes);
H A Dw_writev.c22 writev(int fd, const struct iovec *iov, int iovcnt) argument
27 ret = HIDDEN(writev)(fd, iov, iovcnt);
H A Dw_recvmmsg.c22 recvmmsg(int fd, struct mmsghdr *mmsg, unsigned int vlen, int flags, argument
28 ret = HIDDEN(recvmmsg)(fd, mmsg, vlen, flags, ts);
/openbsd-current/lib/libc/termios/
H A Dtcflush.c37 tcflush(int fd, int which) argument
55 return (ioctl(fd, TIOCFLUSH, &com));
/openbsd-current/sys/arch/sparc64/dev/
H A Dfdvar.h33 #define FD_BSIZE(fd) (128 << fd->sc_type->secsize)
/openbsd-current/regress/usr.sbin/syslogd/
H A Dargs-sendsyslog-native.pl16 qr/GIO fd -1 wrote \d+ bytes/ => 2,
H A Dargs-sendsyslog-syscall.pl17 qr/GIO fd -1 wrote \d+ bytes/ => 2,
/openbsd-current/regress/sys/kern/kqueue/
H A Dkqueue-pipe.c49 int fd[2]; local
54 ASS(pipe(fd) == 0,
56 ASS(fcntl(fd[1], F_SETFL, O_NONBLOCK) == 0,
63 ev.ident = fd[1];
70 while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
78 read(fd[0], buf, sizeof(buf));
85 close(fd[0]);
86 close(fd[1]);
/openbsd-current/lib/libutil/
H A Dlogin.c46 int fd, tty; local
50 if (tty > 0 && (fd = open(_PATH_UTMP, O_RDWR|O_CREAT|O_CLOEXEC, 0644))
59 pread(fd, &old_ut, sizeof(struct utmp), pos) ==
65 (void)pwrite(fd, utp, sizeof(struct utmp), pos);
66 (void)close(fd);
68 if ((fd = open(_PATH_WTMP, O_WRONLY|O_APPEND|O_CLOEXEC)) >= 0) {
69 (void)write(fd, utp, sizeof(struct utmp));
70 (void)close(fd);
/openbsd-current/regress/sys/dev/wscons/
H A Dwscons.c33 test_ioctl_unknown(int fd) argument
35 if (ioctl(fd, TIOCSCTTY) == -1) {
/openbsd-current/gnu/llvm/lldb/third_party/Python/module/ptyprocess-0.6.0/ptyprocess/
H A D_fork_pty.py54 fd = os.open("/dev/tty", os.O_RDWR | os.O_NOCTTY)
55 os.close(fd)
65 fd = os.open("/dev/tty", os.O_RDWR | os.O_NOCTTY)
66 os.close(fd)
73 fd = os.open(child_name, os.O_RDWR)
74 os.close(fd)
77 fd = os.open("/dev/tty", os.O_WRONLY)
78 os.close(fd)
/openbsd-current/sbin/unwind/
H A Dcontrol.c45 int fd; member in struct:__anon5
46 } control_state = {.fd = -1};
63 int fd; local
66 if ((fd = socket(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC | SOCK_NONBLOCK,
79 close(fd);
84 if (bind(fd, (struct sockaddr *)&sun, sizeof(sun)) == -1) {
86 close(fd);
95 close(fd);
100 return (fd);
104 control_listen(int fd) argument
170 control_connbyfd(int fd) argument
196 control_close(int fd) argument
221 control_dispatch_imsg(int fd, short event, void *bula) argument
[all...]
/openbsd-current/usr.bin/vi/ex/
H A Dex_source.c36 ex_sourcefd(SCR *sp, EXCMD *cmdp, int fd) argument
43 if (fstat(fd, &sb))
63 (void)close(fd);
69 len = read(fd, bp, (int)sb.st_size);
70 (void)close(fd);
93 int fd; local
96 if ((fd = open(name, O_RDONLY)) >= 0)
97 return (ex_sourcefd(sp, cmdp, fd));
/openbsd-current/gnu/llvm/lldb/tools/debugserver/source/
H A DTTYState.cpp23 bool TTYState::GetTTYState(int fd, bool saveProcessGroup) { argument
24 if (fd >= 0 && ::isatty(fd)) {
25 m_fd = fd;
26 m_tflags = fcntl(fd, F_GETFL, 0);
27 m_ttystateErr = tcgetattr(fd, &m_ttystate);
67 bool TTYStateSwitcher::GetState(uint32_t idx, int fd, bool saveProcessGroup) { argument
69 return m_ttystates[idx].GetTTYState(fd, saveProcessGroup);

Completed in 212 milliseconds

1234567891011>>