Searched refs:fileno (Results 51 - 75 of 302) sorted by relevance

1234567891011>>

/freebsd-9.3-release/contrib/ntp/ntpd/
H A Drefclock_hopfpci.c45 #undef fileno macro
47 #undef fileno macro
/freebsd-9.3-release/contrib/dialog/
H A Dutil.c199 if (!isatty(fileno(stderr))
200 || (device = ttyname(fileno(stderr))) == 0) {
201 if (!isatty(fileno(stdout))
202 || (device = ttyname(fileno(stdout))) == 0) {
203 if (!isatty(fileno(stdin))
204 || (device = ttyname(fileno(stdin))) == 0) {
249 * test that case first (differing fileno's for input/stdin). If the
250 * fileno's are equal, but we're not reading from a tty, see if we can open
254 if (fileno(input) != fileno(stdi
[all...]
/freebsd-9.3-release/contrib/groff/src/utils/lookbib/
H A Dlookbib.cpp108 int interactive = isatty(fileno(stdin));
/freebsd-9.3-release/crypto/openssl/demos/ssl/
H A Dinetdsrv.cpp52 SSL_set_fd (ssl, fileno(stdin));
/freebsd-9.3-release/gnu/usr.bin/rcs/lib/
H A Dmerger.c138 if (run(fileno(f), (char*)0, ED, "-", a[0], (char*)0))
/freebsd-9.3-release/lib/libc/stdio/
H A DMakefile.inc11 fileno.c findfp.c flags.c fmemopen.c fopen.c fprintf.c fpurge.c \
49 ferror.3 fileno.3 ferror.3 fileno_unlocked.3
/freebsd-9.3-release/usr.bin/dc/
H A Ddc.c68 if (fstat(fileno(file), &st) == -1)
/freebsd-9.3-release/contrib/ntp/lib/isc/unix/
H A Dstdio.c119 r = fsync(fileno(f));
/freebsd-9.3-release/libexec/rbootd/
H A Drbootd.c92 if (i != fileno(stdin) && i != fileno(stdout) &&
93 i != fileno(stderr))
/freebsd-9.3-release/contrib/texinfo/info/
H A Dterminal.c466 if (ioctl (fileno (stdout), TIOCGWINSZ, &window_size) == 0)
561 if (tcgetattr (fileno(stdout), &ti) != -1)
571 if (ioctl (fileno (stdout), TIOCGETP, &sg) != -1)
706 tty = fileno (stdin);
844 tty = fileno (stdin);
/freebsd-9.3-release/crypto/heimdal/appl/ftp/ftpd/
H A Dftpd.c391 if (fcntl(fileno(stdin), F_SETOWN, getpid()) == -1)
1068 if(fstat(fileno(fin), &st) < 0 || !S_ISREG(st.st_mode)) {
1088 } else if (lseek(fileno(fin), restart_point, SEEK_SET) < 0) {
1096 set_buffer_size(fileno(dout), 0);
1184 } else if (lseek(fileno(fout), restart_point, SEEK_SET) < 0) {
1192 set_buffer_size(fileno(din), 1);
1350 data = fileno(file);
1413 int in = fileno(instr);
1423 sec_write(fileno(outstr), chunk + restart_point, cnt);
1438 netfd = fileno(outst
[all...]
/freebsd-9.3-release/crypto/openssl/apps/
H A Ds_client.c125 * needed to have fileno() declared correctly... So let's define u_int
145 * Windows CE incorrectly defines fileno as returning void*, so to avoid
148 # ifdef fileno
149 # undef fileno macro
151 # define fileno(a) (int)_fileno(a) macro
1069 FD_SET(fileno(stdin), &readfds);
1071 FD_SET(fileno(stdout), &writefds);
1215 else if (!ssl_pending && FD_ISSET(fileno(stdout), &writefds))
1221 i = write(fileno(stdout), &(sbuf[sbuf_off]), sbuf_len);
1306 else if (FD_ISSET(fileno(stdi
[all...]
/freebsd-9.3-release/contrib/tnftp/src/
H A Dftp.c297 write(fileno(ttyout), "\n", 1);
311 write(fileno(ttyout), "\n", 1);
525 pfd[nfd].fd = fileno(ecin);
530 pfd[nfd].fd = fileno(din);
570 write(fileno(ttyout), msgbuf, len);
727 if (fstat(fileno(fin), &st) < 0 || !S_ISREG(st.st_mode)) {
752 rc = lseek(fileno(fin), restart_point, SEEK_SET);
790 c = copy_bytes(fileno(fin), fileno(dout), buf, bufsize,
1032 if (fstat(fileno(fou
[all...]
/freebsd-9.3-release/lib/libz/test/
H A Dminigzip.c38 # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
54 # define fileno(file) file->__file macro
57 # include <unix.h> /* for fileno */
401 int ifd = fileno(in);
608 file = gzdopen(fileno(stdin), "rb");
612 file = gzdopen(fileno(stdout), outmode);
638 file = gzdopen(fileno(stdout), outmode);
/freebsd-9.3-release/contrib/libreadline/
H A Dterminal.c348 _rl_get_screen_size (fileno (rl_instream), 0);
356 _rl_get_screen_size (fileno (rl_instream), 1);
431 tty = rl_instream ? fileno (rl_instream) : 0;
H A Dparens.c132 FD_SET (fileno (rl_instream), &readfds);
/freebsd-9.3-release/crypto/heimdal/appl/ftp/ftp/
H A Dmain.c128 fromatty = isatty(fileno(stdin));
188 shutdown(fileno(cout), SHUT_RDWR);
202 shutdown(fileno(cout), SHUT_RDWR);
/freebsd-9.3-release/include/
H A Dstdio.h115 short _file; /* (*) fileno, if Unix descriptor, else -1 */
302 int fileno(FILE *);
494 #define fileno(p) (!__isthreaded ? __sfileno(p) : (fileno)(p)) macro
/freebsd-9.3-release/sys/compat/linux/
H A Dlinux_getcwd.c124 ino_t fileno; local
184 fileno = va.va_fileid;
255 (dp->d_fileno == fileno)) {
/freebsd-9.3-release/usr.bin/mail/
H A Dfio.c237 (void)lseek(fileno(f), (off_t)sizeof(*message), 0);
238 if (read(fileno(f), (char *)&message[omsgCount], size) != size)
310 if (fstat(fileno(iob), &sbuf) < 0)
/freebsd-9.3-release/contrib/ntp/adjtimed/
H A Dadjtimed.c137 close(fileno(stdin));
138 close(fileno(stdout));
139 close(fileno(stderr));
/freebsd-9.3-release/crypto/openssl/crypto/des/
H A Dread_pwd.c311 if (TTY_get(fileno(tty), &tty_orig) == -1) {
349 if (is_a_tty && (TTY_set(fileno(tty), &tty_new) == -1))
412 TTY_set(fileno(tty), &tty_orig);
/freebsd-9.3-release/crypto/openssl/crypto/bio/
H A Dbss_file.c286 int fd = fileno((FILE *)ptr);
295 int fd = fileno((FILE *)ptr);
308 int fd = fileno((FILE *)ptr);
/freebsd-9.3-release/contrib/bind9/lib/isc/unix/
H A Dstdio.c134 r = fsync(fileno(f));
/freebsd-9.3-release/contrib/gdb/gdb/
H A Dser-pipe.c99 close (fileno (old->fp)); /* don't allow a flush */

Completed in 322 milliseconds

1234567891011>>