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

123456789

/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/nanopb-c/tests/common/
H A Dtest_helpers.h9 #define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
/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/catapult_base/catapult_base/
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.c116 setmode(fileno(stdin), O_BINARY);
119 if ((input_file = fdopen(fileno(stdin), READ_BINARY)) == NULL) {
134 setmode(fileno(stdout), O_BINARY);
137 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/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/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/autotest/client/tests/kvm/deps/
H A Dheartbeat_slu.py26 sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0)
27 sys.stderr = os.fdopen(sys.stderr.fileno(), 'w', 0)
32 os.dup2(output_handle.fileno(), sys.stdout.fileno())
33 os.dup2(output_handle.fileno(), sys.stderr.fileno())
34 os.dup2(stdin_handle.fileno(), sys.stdin.fileno())
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/mashups/
H A Dinteractive.py44 tty.setraw(sys.stdin.fileno())
45 tty.setcbreak(sys.stdin.fileno())
/external/skia/src/ports/
H A DSkOSFile_win.cpp37 int fileno = _fileno((FILE*)f); local
38 if (fileno < 0) {
42 HANDLE file = (HANDLE)_get_osfhandle(fileno);
82 void* sk_fdmmap(int fileno, size_t* length) { argument
83 HANDLE file = (HANDLE)_get_osfhandle(fileno);
119 int fileno = sk_fileno(f); local
120 if (fileno < 0) {
124 return sk_fdmmap(fileno, length);
/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/curl/docs/examples/
H A Dfileupload.c42 if(fstat(fileno(fd), &file_info) != 0) {
/external/autotest/server/site_tests/autoupdate_EndToEndTest/
H A Dupdate_engine_performance_monitor.py201 os.dup2(si.fileno(), sys.stdin.fileno())
202 os.dup2(so.fileno(), sys.stdout.fileno())
203 os.dup2(se.fileno(), sys.stderr.fileno())
/external/curl/tests/
H A Dhttp_pipe.py365 fileno = self.request.fileno()
367 rlist.append(fileno)
369 wlist.append(fileno)
380 if fileno in rlist:
391 elif fileno in wlist:
/external/autotest/scheduler/
H A Dstatus_server.py106 old_flags = fcntl.fcntl(self.fileno(), fcntl.F_GETFD)
107 fcntl.fcntl(self.fileno(), fcntl.F_SETFD, old_flags | fcntl.FD_CLOEXEC)
/external/bzip2/
H A Ddlltest.c132 if((fn_r == NULL && (BZ2fp_r = BZ2_bzdopen(fileno(stdin),"rb"))==NULL)
159 if((fn_w == NULL && (BZ2fp_w = BZ2_bzdopen(fileno(stdout),mode))==NULL)
/external/autotest/client/site_tests/firmware_TouchMTB/
H A Dcommon_util.py48 tty.setraw(fin.fileno())

Completed in 887 milliseconds

123456789