Home
last modified time | relevance | path

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

/f-stack/freebsd/contrib/openzfs/contrib/pyzfs/libzfs_core/test/
H A Dtest_libzfs_core.py1637 fd = output.fileno()
1658 fd = output.fileno()
1685 fd = output.fileno()
1697 fd = output.fileno()
1709 fd = output.fileno()
1721 fd = output.fileno()
1732 fd = output.fileno()
1752 fd = output.fileno()
1774 fd = output.fileno()
1785 fd = output.fileno()
[all …]
/f-stack/freebsd/contrib/zlib/test/
H A Dminigzip.c38 # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
54 # define fileno(file) file->__file macro
401 int ifd = fileno(in);
608 file = gzdopen(fileno(stdin), "rb");
612 file = gzdopen(fileno(stdout), outmode);
638 file = gzdopen(fileno(stdout), outmode);
/f-stack/freebsd/contrib/zstd/zlibWrapper/examples/
H A Dminigzip.c43 # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
59 # define fileno(file) file->__file macro
406 int ifd = fileno(in);
597 file = gzdopen(fileno(stdin), "rb");
601 file = gzdopen(fileno(stdout), outmode);
627 file = gzdopen(fileno(stdout), outmode);
/f-stack/freebsd/contrib/zstd/programs/
H A Dplatform.h135 # define IS_CONSOLE(stdStream) isatty(fileno(stdStream))
164 # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
/f-stack/app/redis-5.0.5/src/
H A Dredis-check-aof.c172 if (redis_fstat(fileno(fp),&sb) == -1) { in redis_check_aof_main()
216 if (ftruncate(fileno(fp), pos) == -1) { in redis_check_aof_main()
H A Drio.c119 redis_fsync(fileno(r->io.file.fp)); in rioFileWrite()
H A Daof.c716 if (fp && redis_fstat(fileno(fp),&sb) != -1 && sb.st_size == 0) { in loadAppendOnlyFile()
1405 if (fsync(fileno(fp)) == -1) goto werr; in rewriteAppendOnlyFile()
1449 if (fsync(fileno(fp)) == -1) goto werr; in rewriteAppendOnlyFile()
H A Dredis-cli.c1454 int nread = read(fileno(stdin),buf,1024); in readArgFromStdin()
1564 int nread = read(fileno(stdin),buf,4); in confirmWithYes()
1688 if (isatty(fileno(stdin))) { in repl()
5069 int nread = read(fileno(stdin),buf,6); in clusterManagerCommandReshard()
5086 int nread = read(fileno(stdin),buf,255); in clusterManagerCommandReshard()
5110 int nread = read(fileno(stdin),buf,255); in clusterManagerCommandReshard()
5205 int nread = read(fileno(stdin),buf,4); in clusterManagerCommandReshard()
7050 if (!isatty(fileno(stdout)) && (getenv("FAKETTY") == NULL)) in main()
H A Drdb.c1251 if (fsync(fileno(fp)) == -1) goto werr; in rdbSave()
1811 if (fstat(fileno(fp), &sb) == -1) { in startLoading()
H A Dserver.c3801 isatty(fileno(stdout))) || in redisAsciiArt()
H A Dcluster.c109 if (fstat(fileno(fp),&sb) != -1 && sb.st_size == 0) { in clusterLoadConfig()
/f-stack/freebsd/contrib/openzfs/lib/libspl/os/freebsd/
H A Dmnttab.c201 nfs = (int)lseek(fileno(fp), 0, SEEK_CUR); in getmntent()
213 if (lseek(fileno(fp), 1, SEEK_CUR) == -1) in getmntent()
/f-stack/tools/libutil/
H A Dlogin_auth.c104 (void)write(fileno(stdout), buf, count); in auth_cat()
/f-stack/dpdk/lib/librte_cmdline/
H A Dcmdline_os_unix.c28 tcsetattr(fileno(stdin), TCSANOW, &cl->oldterm); in terminal_restore()
/f-stack/freebsd/contrib/openzfs/tests/test-runner/bin/
H A Dtest-runner.py.in121 def fileno(self): member in Output
122 return self.stream.fileno()
139 fd = self.fileno()
356 os.write(out.fileno(), b'%s\n' % line)
360 os.write(err.fileno(), b'%s\n' % line)
364 os.write(merged.fileno(), b'%s\n' % line)
870 os.write(sys.stdout.fileno(), bytearray(msg, encoding='utf-8'))
872 os.write(sys.stderr.fileno(), bytearray(msg, encoding='utf-8'))
874 os.write(LOG_FILE_OBJ.fileno(), msg)
/f-stack/dpdk/examples/ipsec-secgw/test/
H A Dpkttest.py59 …info = fcntl.ioctl(self.s.fileno(), Interface.IOCTL_GET_INFO, struct.pack('256s', bytes(ifname[:1…
/f-stack/freebsd/contrib/openzfs/lib/libzfs/
H A Dlibzfs_crypto.c301 (void) tcgetattr(fileno(f), &old_term); in libzfs_getpassphrase()
306 ret = tcsetattr(fileno(f), TCSAFLUSH, &new_term); in libzfs_getpassphrase()
330 (void) tcsetattr(fileno(f), TCSAFLUSH, &old_term); in libzfs_getpassphrase()
353 ASSERT(isatty(fileno(stdin))); in get_key_interactive()
520 if (isatty(fileno(stdin))) { in get_key_material()
/f-stack/freebsd/kern/
H A Dvfs_default.c831 ino_t fileno; in vop_stdvptocnp() local
878 fileno = va.va_fileid; in vop_stdvptocnp()
900 (dp->d_fileno == fileno)) { in vop_stdvptocnp()
/f-stack/tools/ipfw/
H A Dmain.c597 if (dup2(fileno(f), 0) == -1
/f-stack/freebsd/contrib/openzfs/cmd/arcstat/
H A Darcstat.in300 data = fcntl.ioctl(sys.stdout.fileno(), termios.TIOCGWINSZ, '1234')
/f-stack/dpdk/buildtools/pmdinfogen/
H A Dpmdinfogen.c56 fd = dup(fileno(infile)); in grab_file()
/f-stack/freebsd/contrib/libnv/
H A Dnvlist.c633 nvlist_dump(nvl, fileno(fp)); in nvlist_fdump()
/f-stack/freebsd/contrib/zlib/
H A DChangeLog244 - Add comment to gzdopen() in zlib.h to use dup() when using fileno()
1285 - port to RISCOS (no fdopen, no multiple dots, no unlink, no fileno)
/f-stack/tools/libxo/libxo/
H A Dlibxo.c597 if (isatty(fileno(stream))) in xo_is_line_buffered()
/f-stack/freebsd/contrib/openzfs/cmd/zdb/
H A Dzdb.c7600 VERIFY(write(fileno(stdout), buf, size) == size); in zdb_dump_block_raw()