Searched refs:fileno (Results 176 - 200 of 588) sorted by relevance

1234567891011>>

/netbsd-current/sys/fs/msdosfs/
H A Dmsdosfs_vnops.c964 ino_t fileno; local
1146 fileno = getushort(dentp->deStartCluster);
1148 fileno |= ((ino_t)getushort(dentp->deHighClust)) << 16;
1150 if (fileno == MSDOSFSROOT)
1152 fileno = cntobn(pmp,
1156 fileno = 1;
1158 fileno = cntobn(pmp, fileno) * dirsperblk;
1159 dirbuf->d_fileno = fileno;
/netbsd-current/lib/libc/gen/
H A Dutmpx.c134 if (fstat(fileno(fp), &st) == -1)
273 if (lockf(fileno(fp), F_LOCK, (off_t)0) == -1)
298 if (lockf(fileno(fp), F_ULOCK, (off_t)0) == -1)
/netbsd-current/usr.bin/mail/
H A Dquit.c313 if (flock(fileno(fbuf), LOCK_EX) == -1) {
322 if (fstat(fileno(fbuf), &minfo) >= 0 && minfo.st_size > mailsize) {
481 (void)fchmod(fileno(obuf), 0600);
H A Dcollect.c182 NULL, fileno(fp), fileno(nf), "-c", cmd, NULL) < 0) {
648 rc2 = run_command(shellcmd, NULL, nullfd, fileno(fbuf), "-c", cp + 1, NULL);
H A Dedit.c100 if (fstat(fileno(nf), &statb) < 0)
/netbsd-current/sys/kern/
H A Dvfs_getcwd.c101 ino_t fileno; local
148 fileno = va.va_fileid;
224 (dp->d_fileno == fileno)) {
/netbsd-current/external/bsd/am-utils/dist/amd/
H A Dinfo_file.c202 if (fstat(fileno(mapf), &stb) < 0)
/netbsd-current/external/bsd/am-utils/dist/conf/mtab/
H A Dmtab_svr4.c281 ftruncate(fileno(fp), ftell(fp));
/netbsd-current/external/bsd/kyua-testers/dist/
H A Dstacktrace.c132 const int output_fd = fileno(output);
/netbsd-current/external/public-domain/xz/dist/src/lzmainfo/
H A Dlzmainfo.c180 setmode(fileno(stdin), O_BINARY);
/netbsd-current/usr.bin/tail/
H A Dreverse.c124 MAP_FILE|MAP_SHARED, fileno(fp), (off_t)0)) == MAP_FAILED) {
/netbsd-current/usr.bin/lastcomm/
H A Dlastcomm.c103 if ((fp = fopen(acctfile, "r")) == NULL || fstat(fileno(fp), &sb))
/netbsd-current/usr.sbin/timed/timedc/
H A Dtimedc.c99 fromatty = isatty(fileno(stdin));
/netbsd-current/external/gpl3/gdb.old/dist/zlib/examples/
H A Dzpipe.c23 # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
/netbsd-current/external/gpl3/binutils/dist/zlib/examples/
H A Dzpipe.c23 # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
/netbsd-current/external/gpl2/groff/dist/src/utils/pfbtops/
H A Dpfbtops.c204 SET_BINARY(fileno(stdin));
/netbsd-current/external/gpl3/gdb/dist/zlib/examples/
H A Dzpipe.c23 # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
/netbsd-current/usr.sbin/autofs/
H A Dpopen.c131 close(fileno(p->outfp));
/netbsd-current/external/gpl3/binutils.old/dist/zlib/examples/
H A Dzpipe.c23 # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
/netbsd-current/sys/external/bsd/compiler_rt/dist/lib/fuzzer/
H A DFuzzerIOPosix.cpp106 dup2(fileno(Temp), Fd);
/netbsd-current/common/dist/zlib/examples/
H A Dzpipe.c23 # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
/netbsd-current/crypto/external/bsd/heimdal/dist/lib/roken/
H A Diruserok.c268 else if (fstat(fileno(hostf), &sbuf) < 0)
/netbsd-current/external/bsd/cron/dist/
H A Dcrontab.c385 if (fstat(fileno(f), &statbuf) < 0) {
600 if (fstat(fileno(fp), &statbuf)) {
727 (void)ftruncate(fileno(tmp), ftell(tmp));
776 error = fchown(fileno(tmp), file_owner, (uid_t)-1);
/netbsd-current/crypto/external/cpl/tpm-tools/dist/src/tpm_mgmt/
H A Dtpm_version.c51 if (0 > dup2(fileno(f), STDERR_FILENO)) {
/netbsd-current/usr.bin/msgs/
H A Dmsgs.c364 if (isatty(fileno(stdin))) {
407 totty = (isatty(fileno(stdout)) != 0);
458 if (ioctl(fileno(stdout), TIOCGWINSZ, &win) != -1)
674 tcdrain(fileno(stdout));

Completed in 306 milliseconds

1234567891011>>