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

1234567891011>>

/freebsd-10-stable/contrib/xz/src/xz/
H A Dprivate.h37 # define STDIN_FILENO (fileno(stdin))
41 # define STDOUT_FILENO (fileno(stdout))
45 # define STDERR_FILENO (fileno(stderr))
/freebsd-10-stable/lib/libc/stdio/
H A Dfileno.c34 static char sccsid[] = "@(#)fileno.c 8.1 (Berkeley) 6/4/93";
44 #undef fileno macro
48 fileno(FILE *fp) function
/freebsd-10-stable/sys/fs/msdosfs/
H A Dmsdosfs_fileno.c59 static MALLOC_DEFINE(M_MSDOSFSFILENO, "msdosfs_fileno", "MSDOSFS fileno mapping node");
101 msdosfs_fileno_map(mp, fileno)
103 uint64_t fileno;
110 KASSERT((uint32_t)fileno == fileno,
111 ("fileno >32 bits but not a large fs?"));
112 return ((uint32_t)fileno);
114 if (fileno < FILENO_FIRST_DYN)
115 return ((uint32_t)fileno);
117 key.mf_fileno64 = fileno;
[all...]
/freebsd-10-stable/contrib/ncurses/ncurses/base/
H A Dlib_initscr.c78 if (isatty(fileno(stdout))) {
80 if (fp != 0 && isatty(fileno(fp))) {
82 dup2(fileno(fp), STDOUT_FILENO);
H A Dlib_newterm.c140 if (setupterm(name, fileno(ofp), &errret) != ERR) {
179 SP->_ifd = fileno(ifp);
180 typeahead(fileno(ifp));
/freebsd-10-stable/usr.bin/tip/tip/
H A Dlog.c60 if (flock(fileno(flog), LOCK_EX) < 0) {
82 (void) flock(fileno(flog), LOCK_UN);
/freebsd-10-stable/usr.sbin/fstyp/
H A Dgeli.c49 error = ioctl(fileno(fp), DIOCGMEDIASIZE, &mediasize);
52 error = ioctl(fileno(fp), DIOCGSECTORSIZE, &sectorsize);
/freebsd-10-stable/crypto/heimdal/lib/roken/
H A Dcloexec.c56 rk_cloexec(fileno(f));
/freebsd-10-stable/crypto/openssh/
H A Dsshtty.c61 if (tcsetattr(fileno(stdin), TCSADRAIN, &_saved_tio) == -1) {
73 if (tcgetattr(fileno(stdin), &tio) == -1) {
91 if (tcsetattr(fileno(stdin), TCSADRAIN, &tio) == -1) {
/freebsd-10-stable/crypto/heimdal/appl/login/
H A Dread_string.c83 tcgetattr(fileno(tty), &t_old);
86 tcsetattr(fileno(tty), TCSANOW, &t_new);
109 tcsetattr(fileno(tty), TCSANOW, &t_old);
/freebsd-10-stable/contrib/gdb/gdb/config/rs6000/
H A Dxm-rs6000.h83 int fd = fileno (stdout); \
/freebsd-10-stable/contrib/binutils/binutils/
H A Dbin2c.c40 # define fileno(_fp) _fileno (_fp) macro
89 SET_BINARY (fileno (stdin));
/freebsd-10-stable/contrib/libreadline/examples/
H A Dexcallback.c125 FD_SET(fileno(stdin), &fds);
132 if( FD_ISSET(fileno(stdin), &fds) ) {
/freebsd-10-stable/usr.bin/mail/
H A Dtty.c83 if (tcgetattr(fileno(stdin), &ttybuf) < 0) {
101 if (ioctl(fileno(stdin), TIOCEXT, &flag) < 0)
112 ttyset++, tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf);
120 ttyset++, tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf);
127 ttyset++, tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf);
135 ttyset++, tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf);
148 tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf);
154 if (ioctl(fileno(stdin), TIOCEXT, &flag) < 0)
/freebsd-10-stable/sys/boot/userboot/userboot/
H A Dhost.c113 uint32_t fileno; local
118 rc = CALLBACK(readdir, f->f_fsdata, &fileno, &type, &namelen,
123 d->d_fileno = fileno;
/freebsd-10-stable/usr.bin/tail/
H A Dtail.c184 fstat(fileno(file->fp), &file->st)) {
201 fstat(fileno(fp), &sb)) {
218 if (fstat(fileno(stdin), &sb)) {
227 if (lseek(fileno(stdin), (off_t)0, SEEK_CUR) == -1 &&
H A Dforward.c200 map.fd = fileno(fp);
279 if (fstatfs(fileno(file->fp), &sf) == 0 &&
285 if (Fflag && fileno(file->fp) != STDIN_FILENO) {
286 EV_SET(&ev[n], fileno(file->fp), EVFILT_VNODE,
291 EV_SET(&ev[n], fileno(file->fp), EVFILT_READ,
325 if (Fflag && fileno(file->fp) != STDIN_FILENO)
349 fstat(fileno(file->fp), &file->st)
358 if (fileno(file->fp) == STDIN_FILENO)
/freebsd-10-stable/crypto/openssl/crypto/bio/
H A Dbio_lcl.h29 # define UP_fileno fileno
/freebsd-10-stable/contrib/tcp_wrappers/
H A Drfc931.c166 if (bind(fileno(fp), (struct sockaddr *) & our_query_sin,
168 connect(fileno(fp), (struct sockaddr *) & rmt_query_sin,
176 if (bind(fileno(fp), (struct sockaddr *) & our_query_sin,
178 connect(fileno(fp), (struct sockaddr *) & rmt_query_sin,
/freebsd-10-stable/crypto/openssl/crypto/rc4/
H A Drc4.c139 setmode(fileno(in), O_BINARY);
140 setmode(fileno(out), O_BINARY);
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/gen/posix_spawn/
H A Dt_fileactions.c110 posix_spawn_file_actions_addopen(&fa, fileno(stdin),
112 posix_spawn_file_actions_addopen(&fa, fileno(stdout),
136 posix_spawn_file_actions_addopen(&fa, fileno(stdin),
138 posix_spawn_file_actions_addopen(&fa, fileno(stdout),
162 posix_spawn_file_actions_addopen(&fa, fileno(stdout),
164 posix_spawn_file_actions_addopen(&fa, fileno(stdin),
206 posix_spawn_file_actions_addopen(&fa, fileno(stdin),
310 closefrom(fileno(stderr)+1);
/freebsd-10-stable/usr.bin/write/
H A Dwrite.c90 if (isatty(fileno(stdin)))
91 myttyfd = fileno(stdin);
92 else if (isatty(fileno(stdout)))
93 myttyfd = fileno(stdout);
94 else if (isatty(fileno(stderr)))
95 myttyfd = fileno(stderr);
/freebsd-10-stable/contrib/ofed/management/opensm/opensm/
H A Dosm_log.c85 int fd = fileno(p_log->out_port);
272 if (fstat(fileno(p_log->out_port), &st) == 0)
278 dup2(fileno(p_log->out_port), 0);
279 dup2(fileno(p_log->out_port), 1);
280 dup2(fileno(p_log->out_port), 2);
/freebsd-10-stable/crypto/heimdal/appl/ftp/ftp/
H A Dftp.c604 if (fstat (fileno (from), &st) == 0 && S_ISREG (st.st_mode)) {
619 chunk = mmap (0, len, PROT_READ, MAP_SHARED, fileno (from), off);
626 res = sec_write (fileno (to), chunk, len);
642 fstat (fileno (from), &st) >= 0 ? &st : NULL);
646 while ((n = read (fileno (from), buf, bufsize)) > 0) {
647 werr = sec_write (fileno (to), buf, n);
734 if (fstat (fileno (fin), &st) < 0 || !S_ISREG(st.st_mode)) {
764 rc = lseek (fileno (fin), restart_point, SEEK_SET);
806 set_buffer_size (fileno (dout), 0);
1009 set_buffer_size (fileno (di
[all...]
/freebsd-10-stable/cddl/compat/opensolaris/misc/
H A Dfsshare.c196 error = flock(fileno(oldfd), LOCK_EX);
234 flock(fileno(oldfd), LOCK_UN);
238 flock(fileno(newfd), LOCK_UN);

Completed in 150 milliseconds

1234567891011>>