/external/python/cpython2/Lib/hotshot/ |
D | log.py | 50 def fileno(self): member in LogReader 52 return self._reader.fileno() 68 def get_filename(self, fileno): argument 70 return self._filemap[fileno] 79 for fileno, name in self._filemap.items(): 81 return fileno 84 def get_funcname(self, fileno, lineno): argument 86 return self._funcmap[(fileno, lineno)] 98 what, tdelta, fileno, lineno = self._nextitem() 103 filename, funcname = self._decode_location(fileno, lineno) [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_epoll.py | 73 self.assertTrue(ep.fileno() > 0, ep.fileno()) 77 self.assertRaises(ValueError, ep.fileno) 92 ep.register(server.fileno(), select.EPOLLIN | select.EPOLLOUT) 93 ep.register(client.fileno(), select.EPOLLIN | select.EPOLLOUT) 129 ep2 = select.epoll.fromfd(ep.fileno()) 131 ep2.register(server.fileno(), select.EPOLLIN | select.EPOLLOUT) 132 ep2.register(client.fileno(), select.EPOLLIN | select.EPOLLOUT) 151 ep.register(server.fileno(), 153 ep.register(client.fileno(), 162 expected = [(client.fileno(), select.EPOLLOUT), [all …]
|
D | test_kqueue.py | 18 self.assertTrue(kq.fileno() > 0, kq.fileno()) 22 self.assertRaises(ValueError, kq.fileno) 25 fd = sys.stderr.fileno() 125 kq2 = select.kqueue.fromfd(kq.fileno()) 127 ev = select.kevent(server.fileno(), 131 ev = select.kevent(server.fileno(), 135 ev = select.kevent(client.fileno(), 139 ev = select.kevent(client.fileno(), 147 (client.fileno(), select.KQ_FILTER_WRITE), 148 (server.fileno(), select.KQ_FILTER_WRITE)])) [all …]
|
D | test_mmap.py | 33 m = mmap.mmap(f.fileno(), 2 * PAGESIZE) 124 m = mmap.mmap(f.fileno(), mapsize, access=mmap.ACCESS_READ) 179 m = mmap.mmap(f.fileno(), mapsize+1) 201 m = mmap.mmap(f.fileno(), mapsize, access=mmap.ACCESS_WRITE) 217 m = mmap.mmap(f.fileno(), mapsize, access=mmap.ACCESS_COPY) 232 self.assertRaises(ValueError, mmap.mmap, f.fileno(), mapsize, access=4) 238 self.assertRaises(ValueError, mmap.mmap, f.fileno(), mapsize, 246 m = mmap.mmap(f.fileno(), mapsize, prot=prot) 264 m = mmap.mmap(f.fileno(), n) 281 m = mmap.mmap(f.fileno(), n) [all …]
|
D | test_largefile.py | 49 self.assertEqual(os.fstat(f.fileno())[stat.ST_SIZE], size+1) 93 self.assertEqual(os.lseek(f.fileno(), 0, 0), 0) 94 self.assertEqual(os.lseek(f.fileno(), 42, 0), 42) 95 self.assertEqual(os.lseek(f.fileno(), 42, 1), 84) 96 self.assertEqual(os.lseek(f.fileno(), 0, 1), 84) 97 self.assertEqual(os.lseek(f.fileno(), 0, 2), size+1+0) 98 self.assertEqual(os.lseek(f.fileno(), -10, 2), size+1-10) 99 self.assertEqual(os.lseek(f.fileno(), -size-1, 2), 0) 100 self.assertEqual(os.lseek(f.fileno(), size, 0), size)
|
D | test_select.py | 15 def fileno(self): member in SelectTestCase.Almost 56 def fileno(self): member in SelectTestCase.test_select_mutated.F 58 return sys.__stdout__.fileno()
|
/external/fio/ |
D | blktrace.c | 119 static void trace_add_open_close_event(struct thread_data *td, int fileno, enum file_log_act action) in trace_add_open_close_event() argument 127 ipo->fileno = fileno; in trace_add_open_close_event() 172 last_fileno = f->fileno; in trace_add_file() 181 int fileno; in trace_add_file() local 191 fileno = add_file_exclusive(td, dev); in trace_add_file() 197 td->files[fileno]->major = maj; in trace_add_file() 198 td->files[fileno]->minor = min; in trace_add_file() 199 td->files[fileno]->bs = this_bs; in trace_add_file() 200 trace_add_open_close_event(td, fileno, FIO_LOG_OPEN_FILE); in trace_add_file() 202 last_fileno = fileno; in trace_add_file() [all …]
|
/external/skia/src/ports/ |
D | SkOSFile_win.cpp | 38 int fileno = _fileno((FILE*)f); in sk_ino() local 39 if (fileno < 0) { in sk_ino() 43 HANDLE file = (HANDLE)_get_osfhandle(fileno); in sk_ino() 83 void* sk_fdmmap(int fileno, size_t* length) { in sk_fdmmap() argument 84 HANDLE file = (HANDLE)_get_osfhandle(fileno); in sk_fdmmap() 120 int fileno = sk_fileno(f); in sk_fmmap() local 121 if (fileno < 0) { in sk_fmmap() 125 return sk_fdmmap(fileno, length); in sk_fmmap() 129 int fileno = sk_fileno(file); in sk_qread() local 130 HANDLE fileHandle = (HANDLE)_get_osfhandle(fileno); in sk_qread()
|
/external/python/cpython2/Lib/ |
D | posixfile.py | 105 return posix.fdopen(posix.dup(self._file_.fileno()), self._file_.mode) 113 posix.dup2(self._file_.fileno(), fd) 133 cur_fl = fcntl.fcntl(file.fileno(), fcntl.F_GETFL, 0) 137 l_flags = fcntl.fcntl(file.fileno(), fcntl.F_SETFL, l_flags) 141 l_flags = fcntl.fcntl(file.fileno(), fcntl.F_SETFD, arg) 145 l_flags = fcntl.fcntl(file.fileno(), fcntl.F_GETFL, 0) 147 if fcntl.fcntl(file.fileno(), fcntl.F_GETFD, 0) & 1: 195 flock = fcntl.fcntl(self._file_.fileno(), cmd, flock)
|
/external/fmtlib/test/ |
D | posix-test.cc | 35 #ifdef fileno 36 # undef fileno 107 int old_fd = bf2.fileno(); in TEST() 127 int old_fd = f.fileno(); in TEST() 136 fd = f.fileno(); in TEST() 148 FMT_POSIX(close(f->fileno())); in TEST() 155 int fd = f.fileno(); in TEST() 163 FMT_POSIX(close(f.fileno())); in TEST() 175 f.fileno(); in TEST() 182 EXPECT_TRUE(f.fileno() != -1); in TEST() [all …]
|
D | posix-mock-test.cc | 192 int (test::fileno)(FILE *stream) { 193 EMULATE_EINTR(fileno, -1); 194 #ifdef fileno 195 return FMT_POSIX(fileno(stream)); 197 return ::FMT_POSIX(fileno(stream)); 364 int stdout_fd = FMT_POSIX(fileno(stdout)); in TEST() 372 int stdout_fd = FMT_POSIX(fileno(stdout)); in TEST() 380 int stdout_fd = FMT_POSIX(fileno(stdout)); in TEST() 451 EXPECT_SYSTEM_ERROR((f.fileno)(), EINTR, "cannot get file descriptor"); in TEST()
|
/external/autotest/client/cros/cellular/wardmodem/ |
D | at_channel_unittest.py | 40 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/src/ |
D | tool_main.h | 32 # define STDIN_FILENO fileno(stdin) 36 # define STDOUT_FILENO fileno(stdout) 40 # define STDERR_FILENO fileno(stderr)
|
/external/python/cpython2/Modules/ |
D | _hotshot.c | 141 return PyInt_FromLong(fileno(self->logfp)); in logreader_fileno() 392 int fileno = -1; in logreader_tp_iternext() local 421 err = unpack_packed_int(self, &fileno, 2); in logreader_tp_iternext() 440 err = unpack_packed_int(self, &fileno, 0); in logreader_tp_iternext() 450 err = unpack_packed_int(self, &fileno, 0); in logreader_tp_iternext() 488 PyTuple_SET_ITEM(result, 2, PyInt_FromLong(fileno)); in logreader_tp_iternext() 515 fileno = ((self->buffer[self->index + 2] << 8) in logreader_tp_iternext() 660 pack_define_file(ProfilerObject *self, int fileno, const char *filename) in pack_define_file() argument 670 if (pack_packed_int(self, fileno) < 0) in pack_define_file() 676 pack_define_func(ProfilerObject *self, int fileno, int lineno, in pack_define_func() argument [all …]
|
/external/chromium-trace/catapult/common/py_utils/py_utils/ |
D | lock.py | 80 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/autotest/server/site_tests/autoupdate_EndToEndTest/ |
D | update_engine_performance_monitor.py | 201 os.dup2(si.fileno(), sys.stdin.fileno()) 202 os.dup2(so.fileno(), sys.stdout.fileno()) 203 os.dup2(se.fileno(), sys.stderr.fileno())
|
/external/libjpeg-turbo/ |
D | cdjpeg.c | 117 setmode(fileno(stdin), O_BINARY); in read_stdin() 120 if ((input_file = fdopen(fileno(stdin), READ_BINARY)) == NULL) { in read_stdin() 135 setmode(fileno(stdout), O_BINARY); in write_stdout() 138 if ((output_file = fdopen(fileno(stdout), WRITE_BINARY)) == NULL) { in write_stdout()
|
/external/toybox/toys/pending/ |
D | userdel.c | 45 if (fcntl(fileno(exfp), F_SETLK, &lock) < 0) in update_groupfiles() 52 while ((line = get_line(fileno(exfp))) != NULL){ in update_groupfiles() 78 fcntl(fileno(exfp), F_SETLK, &lock); in update_groupfiles() 82 fsync(fileno(newfp)); in update_groupfiles()
|
/external/openssh/ |
D | sshtty.c | 61 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()
|
D | clientloop.c | 205 unset_nonblock(fileno(stdin)); in leave_non_blocking() 216 set_nonblock(fileno(stdin)); in enter_non_blocking() 487 len = read(fileno(stdin), buf, 1); in client_check_initial_eof_on_stdin() 564 if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) < 0) in client_check_window_change() 637 FD_SET(fileno(stdin), *readsetp); in client_wait_until_can_do_something() 641 FD_SET(fileno(stdout), *writesetp); in client_wait_until_can_do_something() 643 FD_SET(fileno(stderr), *writesetp); in client_wait_until_can_do_something() 725 atomicio(vwrite, fileno(stdout), buffer_ptr(bout), in client_suspend_self() 728 atomicio(vwrite, fileno(stderr), buffer_ptr(berr), in client_suspend_self() 1335 if (FD_ISSET(fileno(stdin), readset)) { in client_process_input() [all …]
|
/external/autotest/client/bin/ |
D | autotestd | 24 os.dup2(stdout.fileno(), 1) 25 os.dup2(stdout.fileno(), 2) 26 os.dup2(stderr.fileno(), 3)
|
/external/python/cpython2/Lib/multiprocessing/ |
D | reduction.py | 80 _multiprocessing.sendfd(conn.fileno(), handle) 83 return _multiprocessing.recvfd(conn.fileno()) 166 rh = reduce_handle(conn.fileno()) 188 reduced_handle = reduce_handle(s.fileno()) 206 rh = reduce_handle(conn.fileno())
|
/external/ltp/lib/tests/ |
D | trerrno.c | 50 stdout_fd = dup(fileno(stdout)); in main() 52 TEST(dup2(fd, fileno(stdout))); in main() 63 TEST(dup2(stdout_fd, fileno(stdout))); in main()
|
/external/curl/tests/server/ |
D | sockfilt.c | 283 if(fd == fileno(stdin)) { in read_wincon() 315 if(fd == fileno(stdout)) { in write_wincon() 318 else if(fd == fileno(stderr)) { in write_wincon() 443 ssize_t nread = fullread(fileno(stdin), buffer, nbytes); in read_stdin() 460 ssize_t nwrite = fullwrite(fileno(stdout), buffer, nbytes); in write_stdout() 755 if(fds == fileno(stdin)) { in select_ws() 762 else if(fds == fileno(stdout)) { in select_ws() 765 else if(fds == fileno(stderr)) { in select_ws() 817 if(fds == fileno(stdin)) { in select_ws() 822 else if(fds == fileno(stdout) || fds == fileno(stderr)) { in select_ws() [all …]
|
/external/toybox/lib/ |
D | password.c | 138 ret = fcntl(fileno(exfp), F_SETLK, &lock); in update_password() 153 while ((line = get_line(fileno(exfp))) != NULL) in update_password() 183 fcntl(fileno(exfp), F_SETLK, &lock); in update_password() 188 fsync(fileno(newfp)); in update_password()
|