Home
last modified time | relevance | path

Searched refs:FIONREAD (Results 1 – 25 of 56) sorted by relevance

123

/freebsd-13.1/contrib/capsicum-test/
H A Dioctl.cc28 EXPECT_OK(ioctl(fd, FIONREAD, &bytes)); in TEST()
45 cap_ioctl_t ioctl_nread = FIONREAD; in TEST()
48 EXPECT_OK(ioctl(fd, FIONREAD, &bytes)); in TEST()
63 EXPECT_EQ((cap_ioctl_t)FIONREAD, ioctls[0]); in TEST()
78 cap_ioctl_t ioctl_nread = FIONREAD; in TEST()
89 EXPECT_EQ((cap_ioctl_t)FIONREAD, ioctls[0]); in TEST()
97 EXPECT_EQ((cap_ioctl_t)FIONREAD, ioctls[0]); in TEST()
131 EXPECT_OK(ioctl(fd, FIONREAD, &bytes)); in TEST()
138 EXPECT_OK(ioctl(fd, FIONREAD, &bytes)); in TEST()
155 cap_ioctl_t ioctl_nread = FIONREAD; in TEST()
[all …]
H A Dopenat.cc66 cap_ioctl_t ioctl_nread = FIONREAD; in FORK_TEST()
108 EXPECT_EQ((cap_ioctl_t)FIONREAD, ioctls[0]); in FORK_TEST()
/freebsd-13.1/usr.bin/tip/libacu/
H A Dhayes.c274 ioctl(FD, FIONREAD, &len); in goodbye()
284 ioctl(FD, FIONREAD, &len); in goodbye()
306 ioctl(FD, FIONREAD, &len); in hay_sync()
H A Dbiz31.c227 #ifdef FIONREAD in bizsync()
230 # define IOCTL FIONREAD in bizsync()
H A Dt3000.c298 ioctl(FD, FIONREAD, &len); in t3000_sync()
354 if (ioctl(FD, FIONREAD, &n) < 0) in t3000_verbose_read()
H A Dcourier.c283 ioctl(FD, FIONREAD, &len); in coursync()
336 if (ioctl(FD, FIONREAD, &n) < 0) in cour_verbose_read()
H A Dventel.c247 if (ioctl(fd, FIONREAD, (caddr_t)&nread) < 0) { in vensync()
/freebsd-13.1/libexec/bootpd/
H A Drtmsg.c98 ioctl(s, FIONREAD, &n); in getsocket()
101 ioctl(s, FIONREAD, &n); in getsocket()
/freebsd-13.1/contrib/file/src/
H A Dseccomp.c190 #ifdef FIONREAD in enable_sandbox_full()
192 ALLOW_IOCTL_RULE(FIONREAD); in enable_sandbox_full()
H A Dcompress.c383 #ifdef FIONREAD in sread()
391 #ifdef FIONREAD in sread()
392 if (canbepipe && (ioctl(fd, FIONREAD, &t) == -1 || t == 0)) { in sread()
417 (void)ioctl(fd, FIONREAD, &t); in sread()
/freebsd-13.1/sys/sys/
H A Dfilio.h49 #define FIONREAD _IOR('f', 127, int) /* get # bytes to read */ macro
/freebsd-13.1/usr.sbin/watch/
H A Dwatch.c359 if ((res = ioctl(std_in, FIONREAD, &nread)) != 0) in main()
396 if ((res = ioctl(snp_io, FIONREAD, &nread)) != 0) in main()
/freebsd-13.1/tests/sys/capsicum/
H A Dioctls_test.c72 u_long cmds[] = { FIONREAD }; in ATF_TC_BODY()
/freebsd-13.1/contrib/pf/libevent/
H A Dbuffer.c353 #ifdef FIONREAD in evbuffer_read()
354 if (ioctl(fd, FIONREAD, &n) == -1 || n == 0) { in evbuffer_read()
/freebsd-13.1/libexec/tftpd/
H A Dtftp-file.c292 (void) ioctl(peer, FIONREAD, &i); in synchnet()
/freebsd-13.1/contrib/libedit/
H A Dread.c492 #ifdef FIONREAD in el_wgets()
496 (void) ioctl(el->el_infd, FIONREAD, &chrs); in el_wgets()
/freebsd-13.1/sys/kern/
H A Dsubr_log.c262 case FIONREAD: in logioctl()
/freebsd-13.1/contrib/tcsh/
H A Ded.inputl.c112 #if defined(FIONREAD) && !defined(OREO) in Inputl()
124 (void) ioctl(SHIN, FIONREAD, (ioctl_t) & chrs); in Inputl()
H A Ded.init.c622 #if defined(FIONREAD) && !defined(OREO) in Load_input_line()
623 (void) ioctl(SHIN, FIONREAD, (ioctl_t) &chrs); in Load_input_line()
/freebsd-13.1/sys/dev/snp/
H A Dsnp.c288 case FIONREAD: in snp_ioctl()
/freebsd-13.1/stand/userboot/test/
H A Dtest.c88 if (ioctl(0, FIONREAD, &n) >= 0) in test_poll()
/freebsd-13.1/sys/compat/linux/
H A Dlinux_ioctl.h368 #define LINUX_TIOCINQ FIONREAD
/freebsd-13.1/usr.sbin/bhyve/
H A Dgdb.c1710 if (ioctl(fd, FIONREAD, &pending) == -1) { in gdb_readable()
1809 unsigned long ioctls[] = { FIONREAD }; in limit_gdb_socket()
/freebsd-13.1/usr.sbin/bhyveload/
H A Dbhyveload.c143 if (ioctl(consin_fd, FIONREAD, &n) >= 0) in cb_poll()
/freebsd-13.1/crypto/heimdal/lib/krb5/
H A Dsend_to_kdc.c83 if (rk_SOCK_IOCTL (fd, FIONREAD, &nbytes) < 0) { in recv_loop()

123