Home
last modified time | relevance | path

Searched refs:fileno (Results 26 - 50 of 405) sorted by relevance

12345678910>>...17

/third_party/skia/third_party/icu/
H A DSkLoadICU.cpp31 int fileno = _fileno(stream.get()); in win_mmap() local
32 if (fileno < 0) { in win_mmap()
33 fprintf(stderr, "SkIcuLoader: datafile fileno error.\n"); in win_mmap()
36 HANDLE file = (HANDLE)_get_osfhandle(fileno); in win_mmap()
/third_party/toybox/toys/pending/
H A Duserdel.c46 if (fcntl(fileno(exfp), F_SETLK, &lock) < 0) in update_groupfiles()
77 fcntl(fileno(exfp), F_SETLK, &lock); in update_groupfiles()
81 fsync(fileno(newfp)); in update_groupfiles()
/third_party/python/Lib/test/
H A Dtest_ossaudiodev.py62 dsp.fileno()
170 self.assertGreaterEqual(mixer.fileno(), 0)
180 self.assertRaises(ValueError, dsp.fileno)
192 self.assertRaises(ValueError, mixer.fileno)
H A Dtest_devpoll.py94 fd = open_file.fileno()
97 # test fileno() method and closed attribute
98 self.assertIsInstance(devpoll.fileno(), int)
104 self.assertRaises(ValueError, devpoll.fileno)
118 self.assertEqual(os.get_inheritable(devpoll.fileno()), False)
H A Dtest_selectors.py73 self.assertEqual(key.fd, rd.fileno())
87 self.assertRaises(KeyError, s.register, rd.fileno(),
109 r, w = rd.fileno(), wr.fileno()
122 r, w = rd.fileno(), wr.fileno()
128 os.dup2(rd2.fileno(), r)
129 os.dup2(wr2.fileno(), w)
253 self.assertEqual(list(keys), [rd.fileno()])
299 if hasattr(s, 'fileno')
[all...]
/third_party/curl/tests/server/
H A Dsockfilt.c165 if(fd == fileno(stdin)) { in read_wincon()
197 if(fd == fileno(stdout)) { in write_wincon()
200 else if(fd == fileno(stderr)) { in write_wincon()
325 ssize_t nread = fullread(fileno(stdin), buffer, nbytes); in read_stdin()
342 ssize_t nwrite = fullwrite(fileno(stdout), buffer, nbytes); in write_stdout()
714 if(fd == fileno(stdin)) { in select_ws()
731 else if(fd == fileno(stdout)) { in select_ws()
735 else if(fd == fileno(stderr)) { in select_ws()
821 if(fd == fileno(stdin)) { in select_ws()
826 else if(fd == fileno(stdou in select_ws()
[all...]
/third_party/python/Lib/
H A Dfileinput.py73 "fileno", "isfirstline", "isstdin", "FileInput", "hook_compressed",
144 def fileno(): function
151 return _state.fileno()
175 filename(), lineno(), fileline(), isfirstline(), isstdin(), fileno(),
341 perm = os.fstat(self._file.fileno()).st_mode
383 def fileno(self): member in FileInput
386 return self._file.fileno()
H A Dselectors.py37 fd = int(fileobj.fileno())
86 A file object is a file descriptor or any object with a `fileno()` method.
448 def fileno(self): member in _PollLikeSelector.EpollSelector
449 return self._selector.fileno()
496 def fileno(self): member in _PollLikeSelector.DevpollSelector
497 return self._selector.fileno()
513 def fileno(self): member in _PollLikeSelector.KqueueSelector
514 return self._selector.fileno()
/third_party/python/Parser/
H A Dmyreadline.c36 handle = (HANDLE)_get_osfhandle(fileno(fp)); in my_fgets()
39 /* bpo-40826: fgets(fp) does crash if fileno(fp) is closed */ in my_fgets()
253 hStdIn = _Py_get_osfhandle_noraise(fileno(sys_stdin)); in PyOS_StdioReadline()
254 hStdErr = _Py_get_osfhandle_noraise(fileno(stderr)); in PyOS_StdioReadline()
389 if (!isatty (fileno (sys_stdin)) || !isatty (fileno (sys_stdout))) in PyOS_Readline()
/third_party/ltp/testcases/kernel/fs/fs_di/
H A Dfrag.c96 fd1 = fileno(fp_frag1); in main()
97 fd2 = fileno(fp_frag2); in main()
/third_party/node/deps/v8/tools/wasm-compilation-hints/
H A Dinject-compilation-hints.py32 in_wasm_file = args.in_wasm_file if args.in_wasm_file else sys.stdin.fileno()
33 out_wasm_file = args.out_wasm_file if args.out_wasm_file else sys.stdout.fileno()
/third_party/littlefs/scripts/
H A Dteepipe.py22 return os.fdopen(os.dup(sys.stdin.fileno()), mode, buffering)
24 return os.fdopen(os.dup(sys.stdout.fileno()), mode, buffering)
/third_party/musl/libc-test/src/functionalext/supplement/mman/
H A Dmremap.c37 int fd = fileno(fp); in mremap_0100()
69 int fd = fileno(fp); in mremap_0200()
/third_party/python/Lib/test/test_asyncio/
H A Dtest_unix_events.py559 f.fileno.return_value = -1
570 fileno = self.file.fileno()
571 self.loop._sock_sendfile_native_impl(fut, None, sock, fileno,
583 fileno = self.file.fileno()
584 self.loop._sock_sendfile_native_impl(fut, None, sock, fileno,
587 self.loop._sock_sendfile_native_impl(fut, sock.fileno(), sock, fileno,
595 fileno
[all...]
/third_party/toybox/lib/
H A Dpassword.c138 ret = fcntl(fileno(exfp), F_SETLK, &lock); in update_password()
183 fcntl(fileno(exfp), F_SETLK, &lock); in update_password()
188 fsync(fileno(newfp)); in update_password()
/third_party/backends/backend/escl/
H A Descl_tiff.c65 lseek(fileno(scanner->tmp), 0, SEEK_SET); in get_TIFF_data()
66 tif = TIFFFdOpen(fileno(scanner->tmp), "temp", "r"); in get_TIFF_data()
/third_party/alsa-utils/topology/
H A Dtopology.c94 fd = fileno(stdin); in load()
127 if (fd != fileno(stdin)) in load()
137 if (fd != fileno(stdin)) in load()
172 fd = fileno(stdout); in save()
198 if (fd != fileno(stdout)) { in save()
207 if (fd != fileno(stdout)) in save()
/third_party/mesa3d/src/util/
H A Dfossilize_db.c184 int fd = fileno(f); in lock_file_with_timeout()
251 flock(fileno(foz_db->file[file_idx]), LOCK_UN); in load_foz_dbs()
259 flock(fileno(foz_db->file[file_idx]), LOCK_UN); in load_foz_dbs()
462 flock(fileno(foz_db->file[0]), LOCK_UN); in foz_write_entry()
525 flock(fileno(foz_db->file[0]), LOCK_UN); in foz_write_entry()
533 flock(fileno(foz_db->file[0]), LOCK_UN); in foz_write_entry()
/third_party/zlib/test/
H A Dminigzip.c38 # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
54 # define fileno(file) file->__file macro
57 # include <unix.h> /* for fileno */
322 int ifd = fileno(in); in gz_compress_mmap()
612 file = gzdopen(fileno(stdin), "rb"); in main()
619 file = gzdopen(fileno(stdout), outmode); in main()
652 file = gzdopen(fileno(stdout), outmode); in main()
/foundation/filemanagement/storage_service/services/storage_daemon/mtpfs/src/
H A Dmtpfs_util.cpp55 dup2(stdOut_, fileno(stdout)); in On()
56 dup2(stdErr_, fileno(stderr)); in On()
75 stdOut_ = dup(fileno(stdout)); in Off()
76 stdErr_ = dup(fileno(stderr)); in Off()
/third_party/cups-filters/filter/foomatic-rip/
H A Drenderer.c423 if (in && dup2(fileno(in), fileno(stdin)) < 0) { in exec_kid3()
429 if (dup2(fileno(kid4in), fileno(stdout)) < 0) { in exec_kid3()
/third_party/icu/icu4c/source/io/
H A Dufile.cpp25 /* GCC on cygwin (not msys2) with -std=c++11 or newer has stopped defining fileno,
27 fileno is POSIX, but is not standard ANSI C.
35 #define fileno(__F) _fileno(__F) macro
54 #if U_PLATFORM_USES_ONLY_WIN32_API && !defined(fileno)
57 https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/posix-fileno?view=msvc-170
59 #define fileno _fileno macro
80 result->fFileno = fileno(f); in finit_owner()
/third_party/python/Lib/multiprocessing/
H A Dreduction.py183 with socket.fromfd(conn.fileno(), socket.AF_UNIX, socket.SOCK_STREAM) as s:
188 with socket.fromfd(conn.fileno(), socket.AF_UNIX, socket.SOCK_STREAM) as s:
243 df = DupFd(s.fileno())
247 return socket.socket(family, type, proto, fileno=fd)
/third_party/skia/third_party/externals/libjpeg-turbo/
H A Dwrjpgcom.c501 setmode(fileno(stdin), O_BINARY); in main()
504 if ((infile = fdopen(fileno(stdin), READ_BINARY)) == NULL) { in main()
532 setmode(fileno(stdout), O_BINARY); in main()
535 if ((outfile = fdopen(fileno(stdout), WRITE_BINARY)) == NULL) { in main()
/third_party/zlib/contrib/iostream2/
H A Dzstream.h35 # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
73 m_fp = ::gzdopen(fileno(fp), "rb"); in open()
191 m_fp = ::gzdopen(fileno(fp), mode); in open()

Completed in 15 milliseconds

12345678910>>...17