Searched refs:fileno (Results 1 - 25 of 358) sorted by path

1234567891011>>

/openbsd-current/games/atc/
H A Dlog.c147 if (flock(fileno(score_fp), LOCK_EX) == -1)
242 flock(fileno(score_fp), LOCK_UN);
244 fsync(fileno(score_fp));
/openbsd-current/games/banner/
H A Dbanner.c1159 if (isatty(fileno(stdin)))
/openbsd-current/games/boggle/boggle/
H A Dword.c131 if (fstat(fileno(fp), &statb) < 0) {
/openbsd-current/games/hack/
H A Dhack.ioctl.c77 (void) tcgetattr(fileno(stdin), &termios);
83 (void) tcsetattr(fileno(stdin), TCSADRAIN, &termios);
/openbsd-current/games/hangman/
H A Dsetup.c79 fstat(fileno(Dict), &sbuf);
/openbsd-current/games/sail/
H A Dmisc.c206 if (flock(fileno(fp), LOCK_EX) == -1)
239 (void) flock(fileno(fp), LOCK_UN);
H A Dsync.c215 if (flock(fileno(sync_fp), LOCK_EX|LOCK_NB) >= 0)
289 (void) flock(fileno(sync_fp), LOCK_UN);
/openbsd-current/gnu/gcc/fixincludes/
H A Dfixincl.c115 have_tty = isatty (fileno (stderr));
H A Dsystem.h97 # undef fileno macro
98 # define fileno(Stream) fileno_unlocked (Stream) macro
/openbsd-current/gnu/gcc/gcc/
H A Dgcov-io.c532 if (fstat (fileno (gcov_var.file), &status))
H A Dgcov.c1809 if (!fstat (fileno (source_file), &status)
H A Dggc-common.c468 mmi.preferred_base = host_hooks.gt_pch_get_address (mmi.size, fileno (f));
579 fileno (f), mmi.offset);
H A Dmips-tfile.c4359 if (fstat (fileno (obj_in_stream), &stat_buf) != 0
H A Dsys-protos.h358 extern int fileno(FILE *);
H A Dsystem.h105 # undef fileno macro
106 # define fileno(Stream) fileno_unlocked (Stream) macro
/openbsd-current/gnu/gcc/libcpp/
H A Dsystem.h97 # undef fileno macro
98 # define fileno(Stream) fileno_unlocked (Stream) macro
/openbsd-current/gnu/gcc/libmudflap/
H A Dmf-hooks2.c626 bufmode = fileno (f) == 2 ? _IONBF : (isatty (fileno (f)) ? _IOLBF : _IOFBF);
991 WRAPPER2(int, fileno, FILE *stream)
995 "fileno stream");
996 return fileno (stream);
H A Dmf-runtime.h156 #pragma redefine_extname fileno __mfwrap_fileno
/openbsd-current/gnu/gcc/libstdc++-v3/config/io/
H A Dbasic_file_stdio.cc256 { return fileno(_M_cfile); }
/openbsd-current/gnu/lib/libiberty/src/
H A Dconfigure6667 _exit(close(fileno(stdout)) != 0);
6685 || fstat(fileno(stdout), &st) != 0
/openbsd-current/gnu/lib/libreadline/examples/
H A Dexcallback.c122 FD_SET(fileno(stdin), &fds);
124 if( select(fileno(stdin) + 1, &fds, NULL, NULL, NULL) < 0) {
129 if( FD_ISSET(fileno(stdin), &fds) ) {
/openbsd-current/gnu/lib/libreadline/
H A Dinput.c178 tty = fileno (rl_instream);
275 tty = fileno (rl_instream);
433 result = read (fileno (stream), &c, sizeof (unsigned char));
462 if (sh_unset_nodelay_mode (fileno (stream)) < 0)
H A Dparens.c128 FD_SET (fileno (rl_instream), &readfds);
H A Drltty.c643 tty = fileno (rl_instream);
685 tty = fileno (rl_instream);
715 int fildes = fileno (rl_outstream);
748 int fildes = fileno (rl_instream);
785 int tty = fileno (rl_instream);
878 if (_get_tty_settings (fileno (rl_instream), &sigstty) < 0)
886 if (_set_tty_settings (fileno (rl_instream), &nosigstty) < 0)
887 return (_set_tty_settings (fileno (rl_instream), &sigstty));
901 r = _set_tty_settings (fileno (rl_instream), &sigstty);
H A Dterminal.c287 _rl_get_screen_size (fileno (rl_instream), 1);
367 tty = rl_instream ? fileno (rl_instream) : 0;

Completed in 270 milliseconds

1234567891011>>