Searched refs:fileno (Results 126 - 150 of 358) sorted by relevance

1234567891011>>

/openbsd-current/lib/libcurses/tinfo/
H A Dlib_baudrate.c283 && !NC_ISATTY(fileno((SP_PARM && SP_PARM->_ofp) ? SP_PARM->_ofp : stdout))
H A Dlib_tputs.c191 if (write(fileno(NC_OUTPUT(SP_PARM)), &tmp, (size_t) 1) == -1)
196 if (write(fileno(stdout), &tmp, (size_t) 1) == -1)
/openbsd-current/bin/pax/
H A Dpax.c443 listfd = fileno(listf);
/openbsd-current/libexec/talkd/
H A Dannounce.c63 if (fstat(fileno(tf), &stbuf) == -1) {
/openbsd-current/gnu/usr.bin/perl/t/op/
H A Dsselect.t125 my $fd = POSIX::dup(fileno \*STDOUT);
/openbsd-current/gnu/usr.bin/perl/t/io/
H A Dsocket.t90 my $acceptfd = fileno($accept);
278 my $sockfd = fileno($sock);
H A Dopen.t18 my $fd = fileno($_[0]);
263 ok( open(my $stdin, "<&", fileno STDIN), 'dup fileno(STDIN) into lexical fh') or _diag $!;
266 fileno(STDIN) =~ /(.)/;
/openbsd-current/gnu/lib/libreadline/
H A Dterminal.c287 _rl_get_screen_size (fileno (rl_instream), 1);
367 tty = rl_instream ? fileno (rl_instream) : 0;
/openbsd-current/gnu/usr.bin/cvs/vms/
H A Dpipe.c215 if (fileno (this->file) == fd)
237 if (fileno (this->file) == fd)
H A Dpiped_child.c297 *fromfdp = fileno(siop->read_fp);
298 *tofdp = fileno(siop->write_fp);
/openbsd-current/usr.bin/mail/
H A Dcollect.c480 0, fileno(fp), fileno(nf), "-c", cmd, NULL) < 0) {
H A Dpopen.c72 (void)fcntl(fileno(fp), F_SETFD, FD_CLOEXEC);
84 (void)fcntl(fileno(fp), F_SETFD, FD_CLOEXEC);
/openbsd-current/usr.bin/tail/
H A Dforward.c310 EV_SET(&(ke[0]), fileno(tf->fp), EVFILT_READ,
315 EV_SET(&(ke[1]), fileno(tf->fp), EVFILT_VNODE,
/openbsd-current/gnu/llvm/llvm/utils/lit/lit/builtin_commands/
H A Ddiff.py36 stdin_fileno = sys.stdin.fileno()
190 msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
/openbsd-current/usr.sbin/smtpd/
H A Dcrypto.c73 if (fstat(fileno(in), &sb) == -1)
139 if (fstat(fileno(in), &sb) == -1)
H A Dmakemap.c264 if (!isatty(fileno(fp)) && flock(fileno(fp), LOCK_SH|LOCK_NB) == -1) {
H A Denqueue.c828 ftruncate(fileno(ofile), 0);
845 ftruncate(fileno(ofile), 0);
855 ftruncate(fileno(ofile), 0);
/openbsd-current/usr.bin/sed/
H A Dmain.c406 fchown(fileno(outfile), sb.st_uid, sb.st_gid);
407 fchmod(fileno(outfile), sb.st_mode & ALLPERMS);
/openbsd-current/gnu/llvm/compiler-rt/lib/profile/
H A DInstrProfilingFile.c131 int Fileno = fileno(File);
208 MAP_SHARED, fileno(File), 0);
352 fileno(ProfileFile), 0);
1151 fileno(File));
1170 PROF_ERR("Failed to write file \"%d\": %s\n", fileno(File),
/openbsd-current/lib/libcurses/base/
H A Dlib_set_term.c433 _setmode(fileno(output), _O_BINARY);
440 sp->_ofd = output ? fileno(output) : -1;
444 _setmode(fileno(output), _O_BINARY);
/openbsd-current/sbin/pflogd/
H A Dpflogd.c360 if (fstat(fileno(fp), &st) == -1) {
493 ftruncate(fileno(f), pos - sizeof(*h))) {
534 ftruncate(fileno(f), offset);
/openbsd-current/sbin/quotacheck/
H A Dquotacheck.c395 (void) fchown(fileno(qfo), getuid(), getquotagid());
396 (void) fchmod(fileno(qfo), MODE);
463 ftruncate(fileno(qfo),
/openbsd-current/sbin/isakmpd/
H A Dlog.c215 if (fileno(log_output) != -1 &&
216 fileno(stdout) == fileno(log_output))
/openbsd-current/gnu/usr.bin/binutils/gdb/
H A Dui-file.c477 return read (fileno (stdio->file), buf, length_buf);
507 return (isatty (fileno (stdio->file)));
/openbsd-current/usr.bin/skeyinit/
H A Dskeyinit.c287 if (fchown(fileno(skey.keyfile), pp->pw_uid, -1) != 0 ||
288 fchmod(fileno(skey.keyfile), S_IRUSR | S_IWUSR) != 0)

Completed in 193 milliseconds

1234567891011>>