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

123

/xsrc/external/mit/MesaLib/dist/src/gallium/frontends/d3d10umd/
H A DDriverIncludes.h40 #undef fileno /* we redefine this in vm_basic_defs.h */
/xsrc/external/mit/xmh/dist/
H A Dcommand.c146 old_stdin = dup(fileno(stdin));
147 (void) dup2(inputfd, fileno(stdin));
180 old_stderr = dup(fileno(stderr));
181 (void) dup2(status->error_pipe[1], fileno(stderr));
191 old_stdout = dup(fileno(stdout));
192 (void) dup2(outputfd, fileno(stdout));
203 if (pid != 0) dup2(old_stdin, fileno(stdin));
207 if (pid != 0) dup2(old_stdout, fileno(stdout));
211 if (pid != 0) dup2(old_stderr, fileno(stderr));
428 fd_in = dup(fileno(fil
[all...]
H A Dutil.c81 if (result) DEBUG2("# %d : %s\n", fileno(result), path)
96 int fid = fileno(file);
/xsrc/external/mit/xsm/dist/
H A Dauth.c163 fcntl(fileno(addfp), F_SETFD, FD_CLOEXEC);
170 fcntl(fileno(removefp), F_SETFD, FD_CLOEXEC);
177 fcntl(fileno(addfp), F_SETFD, FD_CLOEXEC);
184 fcntl(fileno(removefp), F_SETFD, FD_CLOEXEC);
H A Dlock.c125 fcntl(fileno(fp), F_SETFD, FD_CLOEXEC);
H A Dsaveutil.c77 fcntl(fileno(f), F_SETFD, FD_CLOEXEC);
326 fcntl(fileno(f), F_SETFD, FD_CLOEXEC);
440 fcntl(fileno(f), F_SETFD, FD_CLOEXEC);
/xsrc/external/mit/brotli/dist/python/
H A Dbro.py34 stdio = os.fdopen(stdio.fileno(), mode, 0)
38 msvcrt.setmode(stdio.fileno(), os.O_BINARY)
/xsrc/external/mit/iceauth/dist/
H A Diceauth.c142 verbose = (isatty(fileno(stdout)) != 0);
H A Dprocess.c505 * fileno() might not be reentrant, avoid it if possible, and use
511 if (verbose && iceauth_modified) WRITES(fileno(stderr), "\r\n");
669 * fileno() might not be reentrant, avoid it if possible, and use
677 WRITES(fileno(stderr), "\nAborting changes to authority file ");
678 WRITES(fileno(stderr), iceauth_filename);
679 WRITES(fileno(stderr), "\n");
1561 if (verbose && used_stdin && isatty (fileno (fp))) prompt = True;
/xsrc/external/mit/xauth/dist/
H A Dxauth.c152 verbose = (isatty(fileno(stdout)) != 0);
H A Dprocess.c679 * fileno() might not be reentrant, avoid it if possible, and use
685 if (verbose && xauth_modified) WRITES(fileno(stderr), "\r\n");
891 * fileno() might not be reentrant, avoid it if possible, and use
899 WRITES(fileno(stderr), "\nAborting changes to authority file ");
900 WRITES(fileno(stderr), xauth_filename);
901 WRITES(fileno(stderr), "\n");
1835 if (verbose && used_stdin && isatty (fileno (fp))) prompt = True;
/xsrc/external/mit/MesaLib/dist/src/util/
H A Dfossilize_db.c184 int fd = fileno(f);
251 flock(fileno(foz_db->file[file_idx]), LOCK_UN);
259 flock(fileno(foz_db->file[file_idx]), LOCK_UN);
462 flock(fileno(foz_db->file[0]), LOCK_UN);
525 flock(fileno(foz_db->file[0]), LOCK_UN);
533 flock(fileno(foz_db->file[0]), LOCK_UN);
/xsrc/external/mit/xorg-server.old/dist/os/
H A Dosinit.c233 if (err && (fileno(err) != 2)) {
234 dup2 (fileno (err), 2);
H A Dlog.c214 fsync(fileno(logFile));
298 fsync(fileno(logFile));
/xsrc/external/mit/xorg-server/dist/os/
H A Dosinit.c253 if (err && (fileno(err) != 2)) {
254 dup2(fileno(err), 2);
H A Dlog.c272 logFileFd = fileno(logFile);
279 fsync(fileno(logFile));
623 fsync(fileno(logFile));
/xsrc/external/mit/xorgproto/dist/include/X11/
H A DXw32defs.h31 # define fileno _fileno macro
/xsrc/external/mit/xtrap/dist/
H A Dchparse.c388 fdmask = 1 << fileno(stdin);
391 count = select(fileno(stdin) + 1, (fd_set *)&fdmask, NULL, NULL, &timeout);
398 count = read(fileno(stdin), buffer, count);
/xsrc/external/mit/xterm/dist/
H A Dprint.c435 close(fileno(stdout));
436 dup2(fileno(stderr), 1);
438 if (fileno(stderr) != 2) {
439 dup2(fileno(stderr), 2);
440 close(fileno(stderr));
/xsrc/external/mit/ctwm/dist/
H A Dparse_m4.c57 dup2(fileno(fraw), 0); /* stdin = fraw */
/xsrc/external/mit/libXfont/dist/src/fontfile/
H A Ddirfile.c106 if (fstat (fileno(file), &statb) == -1)
312 if (fstat (fileno (file), &statb) == -1)
/xsrc/external/mit/libXfont2/dist/src/fontfile/
H A Ddirfile.c112 if (fstat (fileno(file), &statb) == -1)
318 if (fstat (fileno (file), &statb) == -1)
/xsrc/external/mit/imake/dist/
H A Dimake.c773 dup2(fileno(outfd), 1);
796 dup2(fileno(outfd), 1);
1737 if (fstat(fileno(inFile), &st) < 0)
1854 ftruncate (fileno(tmpfd), (off_t)ftell(tmpfd));
1959 if (fstat(fileno(tmpfd), &st) < 0)
1977 ftruncate(fileno(tmpfd), (off_t) 0);
/xsrc/external/mit/MesaLib/dist/src/vulkan/overlay-layer/
H A Dmesa-overlay-control.py47 if fd != self.sock.fileno():
/xsrc/external/mit/xdm/dist/xdm/
H A Dauth.c443 if (ftruncate(fileno(auth_file), ftell(auth_file)))
1208 if (fstat (fileno (old), &statb) != -1)
1293 if (fstat (fileno (old), &statb) != -1)

Completed in 27 milliseconds

123