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

12345678910

/external/curl/src/
H A Dtool_main.h32 # define STDIN_FILENO fileno(stdin)
36 # define STDOUT_FILENO fileno(stdout)
40 # define STDERR_FILENO fileno(stderr)
H A Dtool_binmode.c44 (void)setmode(fileno(stream), O_BINARY);
/external/syslinux/com32/lib/
H A Dfclose.c10 return close(fileno(__f));
H A Dfread.c16 rv = read(fileno(f), p, count);
H A Dfwrite.c16 rv = write(fileno(f), p, count);
/external/nanopb-c/tests/common/
H A Dtest_helpers.h9 #define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
/external/syslinux/com32/lib/sys/
H A Dftell.c12 int fd = fileno(stream);
/external/bison/lib/
H A Dbinary-io.h24 /* The MSVC7 <stdio.h> doesn't like to be included after '#define fileno ...',
42 # undef fileno
43 # define fileno _fileno
H A Dfopen-safer.c37 int fd = fileno (fp);
/external/google-breakpad/src/tools/solaris/dump_syms/
H A Ddump_syms.cc48 if (!dumper.WriteSymbolFile(binary, fileno(stdout))) {
/external/chromium-trace/catapult/common/py_utils/py_utils/
H A Dlock.py80 hfile = win32file._get_osfhandle(target_file.fileno())
92 hfile = win32file._get_osfhandle(target_file.fileno())
107 fcntl.flock(target_file.fileno(), flags)
117 fcntl.flock(target_file.fileno(), fcntl.LOCK_UN)
/external/compiler-rt/test/msan/
H A Dgetc_unlocked.c20 int res = dup2(fileno(stream), 0);
/external/compiler-rt/test/tsan/Linux/
H A Duser_fopen.cc16 extern "C" int fileno(FILE *f) { function
19 printf("user fileno\n");
/external/libjpeg-turbo/
H A Dcdjpeg.c117 setmode(fileno(stdin), O_BINARY);
120 if ((input_file = fdopen(fileno(stdin), READ_BINARY)) == NULL) {
135 setmode(fileno(stdout), O_BINARY);
138 if ((output_file = fdopen(fileno(stdout), WRITE_BINARY)) == NULL) {
/external/autotest/client/bin/
H A Dautotestd24 os.dup2(stdout.fileno(), 1)
25 os.dup2(stdout.fileno(), 2)
26 os.dup2(stderr.fileno(), 3)
/external/ltp/lib/tests/
H A Dtrerrno.c50 stdout_fd = dup(fileno(stdout));
52 TEST(dup2(fd, fileno(stdout)));
63 TEST(dup2(stdout_fd, fileno(stdout)));
/external/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) {
/external/fio/
H A Dblktrace.c117 static void trace_add_open_close_event(struct thread_data *td, int fileno, enum file_log_act action) argument
125 ipo->fileno = fileno;
150 last_fileno = f->fileno;
156 int fileno; local
166 fileno = add_file_exclusive(td, dev);
168 td->files[fileno]->major = maj;
169 td->files[fileno]->minor = min;
170 trace_add_open_close_event(td, fileno, FIO_LOG_OPEN_FILE);
171 last_fileno = fileno;
180 store_ipo(struct thread_data *td, unsigned long long offset, unsigned int bytes, int rw, unsigned long long ttime, int fileno) argument
231 int fileno; local
265 int fileno; local
[all...]
/external/skia/src/ports/
H A DSkOSFile_win.cpp38 int fileno = _fileno((FILE*)f); local
39 if (fileno < 0) {
43 HANDLE file = (HANDLE)_get_osfhandle(fileno);
83 void* sk_fdmmap(int fileno, size_t* length) { argument
84 HANDLE file = (HANDLE)_get_osfhandle(fileno);
120 int fileno = sk_fileno(f); local
121 if (fileno < 0) {
125 return sk_fdmmap(fileno, length);
129 int fileno = sk_fileno(file); local
130 HANDLE fileHandle = (HANDLE)_get_osfhandle(fileno);
[all...]
/external/autotest/client/site_tests/network_WlanHasIP/
H A Dnetwork_WlanHasIP.py35 s.fileno(),
/external/toybox/toys/pending/
H A Duserdel.c45 if (fcntl(fileno(exfp), F_SETLK, &lock) < 0)
52 while ((line = get_line(fileno(exfp))) != NULL){
78 fcntl(fileno(exfp), F_SETLK, &lock);
82 fsync(fileno(newfp));
/external/ltp/testcases/kernel/fs/fs_di/
H A Dfrag.c96 fd1 = fileno(fp_frag1);
97 fd2 = fileno(fp_frag2);
/external/valgrind/coregrind/
H A Dlink_tool_exe_solaris.in67 my $cmd="$cc -Wl,-M/proc/$$/fd/" . fileno($fh);
/external/autotest/client/cros/cellular/wardmodem/
H A Dat_channel_unittest.py40 flags = fcntl.fcntl(self._channel_file.fileno(), fcntl.F_GETFL)
42 fcntl.fcntl(self._channel_file.fileno(), fcntl.F_SETFL, flags)
43 self._at_channel._channel = self._channel_file.fileno()
93 self._at_channel._handle_channel_cb(self._channel_file.fileno(),
117 self._at_channel._handle_channel_cb(self._channel_file.fileno(),
138 self._at_channel._handle_channel_cb(self._channel_file.fileno(),
162 self._at_channel._handle_channel_cb(self._channel_file.fileno(),
/external/fmtlib/test/
H A Dposix-test.cc35 #ifdef fileno
36 # undef fileno macro
107 int old_fd = bf2.fileno();
127 int old_fd = f.fileno();
136 fd = f.fileno();
148 FMT_POSIX(close(f->fileno()));
155 int fd = f.fileno();
163 FMT_POSIX(close(f.fileno()));
171 // fileno on a null FILE pointer either crashes or returns an error.
175 f.fileno();
[all...]

Completed in 886 milliseconds

12345678910