Home
last modified time | relevance | path

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

12345678910>>...12

/freebsd/sys/contrib/openzfs/contrib/pyzfs/libzfs_core/test/
H A Dtest_libzfs_core.py158 yield fd.fileno()
197 lzc.lzc_send(snaps[1], None, full.fileno())
201 lzc.lzc_send(snaps[2], snaps[1], incremental.fileno())
1637 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()
[all …]
/freebsd/usr.bin/mail/
H A Dtty.c77 if (tcgetattr(fileno(stdin), &ttybuf) < 0) { in grabh()
95 if (ioctl(fileno(stdin), TIOCEXT, &flag) < 0) in grabh()
106 ttyset++, tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf); in grabh()
114 ttyset++, tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf); in grabh()
121 ttyset++, tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf); in grabh()
129 ttyset++, tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf); in grabh()
144 tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf); in grabh()
150 if (ioctl(fileno(stdin), TIOCEXT, &flag) < 0) in grabh()
/freebsd/usr.bin/tail/
H A Dforward.c199 map.fd = fileno(fp); in rlines()
278 if (fstatfs(fileno(file->fp), &sf) == 0 && in set_events()
284 if (Fflag && fileno(file->fp) != STDIN_FILENO) { in set_events()
285 EV_SET(&ev[n], fileno(file->fp), EVFILT_VNODE, in set_events()
290 EV_SET(&ev[n], fileno(file->fp), EVFILT_READ, in set_events()
350 fstat(fileno(file->fp), &file->st) in follow()
359 if (fileno(file->fp) == STDIN_FILENO) in follow()
363 fstat(fileno(ftmp), &sb2) == -1) { in follow()
H A Dtail.c212 fstat(fileno(filep->fp), &filep->st)) { in main()
226 fstat(fileno(fp), &sb)) { in main()
243 if (fstat(fileno(stdin), &sb)) { in main()
252 if (lseek(fileno(stdin), (off_t)0, SEEK_CUR) == -1 && in main()
/freebsd/contrib/ncurses/ncurses/base/
H A Dlib_initscr.c84 if (NC_ISATTY(fileno(stdout))) { in NCURSES_EXPORT()
86 if (fp != 0 && NC_ISATTY(fileno(fp))) { in NCURSES_EXPORT()
88 dup2(fileno(fp), STDOUT_FILENO); in NCURSES_EXPORT()
H A Dlib_newterm.c205 _setmode(fileno(_ifp), _O_BINARY); in NCURSES_SP_NAME()
206 _setmode(fileno(_ofp), _O_BINARY); in NCURSES_SP_NAME()
213 fileno(_ofp), &errret, FALSE) != ERR) { in NCURSES_SP_NAME()
293 SP_PARM->_ifd = fileno(_ifp); in NCURSES_SP_NAME()
294 NCURSES_SP_NAME(typeahead) (NCURSES_SP_ARGx fileno(_ifp)); in NCURSES_SP_NAME()
/freebsd/crypto/openssh/
H A Dsshtty.c61 if (tcsetattr(fileno(stdin), TCSADRAIN, &_saved_tio) == -1) { in leave_raw_mode()
73 if (tcgetattr(fileno(stdin), &tio) == -1) { in enter_raw_mode()
91 if (tcsetattr(fileno(stdin), TCSADRAIN, &tio) == -1) { in enter_raw_mode()
/freebsd/usr.bin/write/
H A Dwrite.c134 if (isatty(fileno(stdin))) in main()
135 myttyfd = fileno(stdin); in main()
136 else if (isatty(fileno(stdout))) in main()
137 myttyfd = fileno(stdout); in main()
138 else if (isatty(fileno(stderr))) in main()
139 myttyfd = fileno(stderr); in main()
/freebsd/crypto/heimdal/appl/ftp/ftp/
H A Dftp.c604 if (fstat (fileno (from), &st) == 0 && S_ISREG (st.st_mode)) { in copy_stream()
619 chunk = mmap (0, len, PROT_READ, MAP_SHARED, fileno (from), off); in copy_stream()
626 res = sec_write (fileno (to), chunk, len); in copy_stream()
642 fstat (fileno (from), &st) >= 0 ? &st : NULL); in copy_stream()
646 while ((n = read (fileno (from), buf, bufsize)) > 0) { in copy_stream()
647 werr = sec_write (fileno (to), buf, n); in copy_stream()
734 if (fstat (fileno (fin), &st) < 0 || !S_ISREG(st.st_mode)) { in sendrequest()
764 rc = lseek (fileno (fin), restart_point, SEEK_SET); in sendrequest()
806 set_buffer_size (fileno (dout), 0); in sendrequest()
1009 set_buffer_size (fileno (din), 1); in recvrequest()
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/gen/posix_spawn/
H A Dt_fileactions.c110 posix_spawn_file_actions_addopen(&fa, fileno(stdin), in ATF_TC_BODY()
112 posix_spawn_file_actions_addopen(&fa, fileno(stdout), in ATF_TC_BODY()
136 posix_spawn_file_actions_addopen(&fa, fileno(stdin), in ATF_TC_BODY()
138 posix_spawn_file_actions_addopen(&fa, fileno(stdout), in ATF_TC_BODY()
162 posix_spawn_file_actions_addopen(&fa, fileno(stdout), in ATF_TC_BODY()
164 posix_spawn_file_actions_addopen(&fa, fileno(stdin), in ATF_TC_BODY()
206 posix_spawn_file_actions_addopen(&fa, fileno(stdin), in ATF_TC_BODY()
405 posix_spawn_file_actions_addopen(&fa, fileno(stdout), in t_spawn_chdir_impl()
/freebsd/usr.bin/diff/
H A Ddiffreg_new.c183 if (caph_rights_limit(fileno(f1), &rights_ro) < 0) in diffreg_new()
185 if (caph_rights_limit(fileno(f2), &rights_ro) < 0) in diffreg_new()
187 if (fileno(f1) == STDIN_FILENO || fileno(f2) == STDIN_FILENO) { in diffreg_new()
302 if (fstat(fileno(f), st) == -1) in openfile()
306 *p = mmap(NULL, st->st_size, PROT_READ, MAP_PRIVATE, fileno(f), 0); in openfile()
/freebsd/contrib/tcp_wrappers/
H A Drfc931.c159 if (bind(fileno(fp), (struct sockaddr *) & our_query_sin,
161 connect(fileno(fp), (struct sockaddr *) & rmt_query_sin,
169 if (bind(fileno(fp), (struct sockaddr *) & our_query_sin,
171 connect(fileno(fp), (struct sockaddr *) & rmt_query_sin,
/freebsd/crypto/heimdal/appl/login/
H A Dread_string.c83 tcgetattr(fileno(tty), &t_old); in read_string()
86 tcsetattr(fileno(tty), TCSANOW, &t_new); in read_string()
109 tcsetattr(fileno(tty), TCSANOW, &t_old); in read_string()
/freebsd/stand/userboot/userboot/
H A Dhost.c92 uint32_t fileno; in host_readdir() local
97 rc = CALLBACK(readdir, f->f_fsdata, &fileno, &type, &namelen, in host_readdir()
102 d->d_fileno = fileno; in host_readdir()
/freebsd/lib/libc/stdio/
H A Dfileno.c40 #undef fileno
44 fileno(FILE *fp) in fileno() function
/freebsd/contrib/llvm-project/libcxx/src/
H A Dprint.cpp37 intptr_t __handle = _get_osfhandle(fileno(__stream)); in __is_windows_terminal()
49 if (WriteConsoleW(reinterpret_cast<void*>(_get_osfhandle(fileno(__stream))), // clang-format aid in __write_to_windows_console()
61 _LIBCPP_EXPORTED_FROM_ABI bool __is_posix_terminal(FILE* __stream) { return isatty(fileno(__stream)); }
/freebsd/usr.sbin/fstyp/
H A Dgeli.c47 error = ioctl(fileno(fp), DIOCGMEDIASIZE, &mediasize); in fstyp_geli()
50 error = ioctl(fileno(fp), DIOCGSECTORSIZE, &sectorsize); in fstyp_geli()
/freebsd/contrib/libarchive/libarchive/
H A Darchive_read_open_file.c89 if (fstat(fileno(mine->f), &st) == 0 && S_ISREG(st.st_mode)) { in archive_read_open_FILE()
97 setmode(fileno(mine->f), O_BINARY); in archive_read_open_FILE()
155 if (lseek(fileno(mine->f), skip, SEEK_CUR) < 0) in file_skip()
/freebsd/contrib/tnftp/src/
H A Dprogressbar.c78 return (tcgetpgrp(fileno(ttyout)) == pgrp); in foregroundproc()
186 (void)write(fileno(ttyout), buf, len);
297 (void)write(fileno(ttyout), buf, len);
378 (void)write(siginfo ? STDERR_FILENO : fileno(ttyout), buf, len);
391 write(fileno(ttyout), "\n", 1);
/freebsd/usr.bin/tip/tip/
H A Dlog.c52 if (flock(fileno(flog), LOCK_EX) < 0) { in logent()
74 (void) flock(fileno(flog), LOCK_UN); in logent()
/freebsd/crypto/heimdal/appl/ftp/ftpd/
H A Dftpd.c377 if (fcntl(fileno(stdin), F_SETOWN, getpid()) == -1) in main()
1033 if(fstat(fileno(fin), &st) < 0 || !S_ISREG(st.st_mode)) { in retrieve()
1053 } else if (lseek(fileno(fin), restart_point, SEEK_SET) < 0) { in retrieve()
1061 set_buffer_size(fileno(dout), 0); in retrieve()
1153 } else if (lseek(fileno(fout), restart_point, SEEK_SET) < 0) { in do_store()
1161 set_buffer_size(fileno(din), 1); in do_store()
1315 data = fileno(file); in dataconn()
1378 int in = fileno(instr); in send_data()
1388 sec_write(fileno(outstr), chunk + restart_point, cnt); in send_data()
1403 netfd = fileno(outstr); in send_data()
[all …]
/freebsd/contrib/dialog/
H A Dutil.c291 if (!isatty(fileno(stderr)) in open_terminal()
292 || (device = ttyname(fileno(stderr))) == 0) { in open_terminal()
293 if (!isatty(fileno(stdout)) in open_terminal()
294 || (device = ttyname(fileno(stdout))) == 0) { in open_terminal()
295 if (!isatty(fileno(stdin)) in open_terminal()
296 || (device = ttyname(fileno(stdin))) == 0) { in open_terminal()
310 int fd = fileno(dialog_state.screen_output); in my_putc()
362 if (fileno(input) != fileno(stdin)) { in init_dialog()
363 if ((fd1 = dup(fileno(input))) >= 0 in init_dialog()
364 && (fd2 = dup(fileno(stdin))) >= 0) { in init_dialog()
[all …]
/freebsd/contrib/libedit/
H A Del.c66 return el_init_fd(prog, fin, fout, ferr, fileno(fin), fileno(fout), in el_init()
67 fileno(ferr)); in el_init()
363 el->el_infd = fileno(fp); in el_wset()
367 el->el_outfd = fileno(fp); in el_wset()
371 el->el_errfd = fileno(fp); in el_wset()
/freebsd/sys/contrib/zlib/test/
H A Dminigzip.c38 # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
54 # define fileno(file) file->__file macro
311 int ifd = fileno(in); in gz_compress_mmap()
536 file = gzdopen(fileno(stdin), "rb"); in main()
540 file = gzdopen(fileno(stdout), outmode); in main()
566 file = gzdopen(fileno(stdout), outmode); in main()
/freebsd/lib/libdiff/tests/
H A Dlibdiff_test.c44 ATF_REQUIRE(fsync(fileno(f)) == 0); in ATF_TC_BODY()
47 ATF_REQUIRE((p = mmap(NULL, size, PROT_READ, MAP_PRIVATE, fileno(f), 0)) != MAP_FAILED); in ATF_TC_BODY()

12345678910>>...12