Home
last modified time | relevance | path

Searched refs:_fd (Results 1 – 25 of 37) sorted by relevance

12

/third_party/node/deps/npm/node_modules/fs-minipass/
Dindex.js15 const _fd = Symbol('_fd') constant
50 this[_fd] = typeof opt.fd === 'number' ? opt.fd : null
59 if (typeof this[_fd] === 'number')
65 get fd () { return this[_fd] }
84 this[_fd] = fd
100 fs.read(this[_fd], buf, 0, buf.length, null, (er, br, buf) =>
114 if (this[_autoClose] && typeof this[_fd] === 'number') {
115 fs.close(this[_fd], _ => this.emit('close'))
116 this[_fd] = null
149 if (typeof this[_fd] === 'number')
[all …]
/third_party/python/Lib/multiprocessing/
Dresource_tracker.py58 self._fd = None
63 if self._fd is None:
68 os.close(self._fd)
69 self._fd = None
76 return self._fd
84 if self._fd is not None:
90 os.close(self._fd)
101 self._fd = None
137 self._fd = w
147 os.write(self._fd, b'PROBE:0:noop\n')
[all …]
Dshared_memory.py67 _fd = -1 variable in SharedMemory
92 self._fd = _posixshmem.shm_open(
103 self._fd = _posixshmem.shm_open(
111 os.ftruncate(self._fd, size)
112 stats = os.fstat(self._fd)
114 self._mmap = mmap.mmap(self._fd, size)
229 if _USE_POSIX and self._fd >= 0:
230 os.close(self._fd)
231 self._fd = -1
Dspawn.py113 resource_tracker._resource_tracker._fd = tracker_fd
Dforkserver.py308 resource_tracker._resource_tracker._fd,
/third_party/skia/third_party/externals/angle2/third_party/logdog/logdog/
Dstream.py180 self._fd = fd
184 return self._fd
187 return self._fd.fileno()
190 return self._fd.write(data)
193 return self._fd.close()
200 self._fd = fd
208 return self._fd.write(data)
210 return self._fd.write(data.encode('utf-8'))
212 return self._fd.write(data.encode('utf-8'))
224 self._fd = fd
[all …]
/third_party/alsa-utils/alsactl/
Dlock.c33 static int state_lock_(const char *file, int lock, int timeout, int _fd) in state_lock_() argument
53 fd = _fd; in state_lock_()
133 int state_unlock(int _fd, const char *file) in state_unlock() argument
137 err = state_lock_(file, 0, 10, _fd); in state_unlock()
/third_party/libwebsockets/lib/misc/
Ddiskcache.c177 const char *hash_hex, int *_fd, char *cache, int cache_len, in lws_diskcache_query() argument
195 *_fd = open(cache, O_RDONLY); in lws_diskcache_query()
196 if (*_fd >= 0) { in lws_diskcache_query()
202 if (fstat(*_fd, &s)) { in lws_diskcache_query()
203 close(*_fd); in lws_diskcache_query()
227 *_fd = open(cache, O_RDWR | O_CREAT | O_TRUNC, 0600); in lws_diskcache_query()
228 if (*_fd < 0) { in lws_diskcache_query()
/third_party/python/Lib/
D_pyio.py1501 _fd = -1 variable in FileIO
1522 if self._fd >= 0:
1526 os.close(self._fd)
1528 self._fd = -1
1628 self._fd = fd
1631 if self._fd >= 0 and self._closefd and not self.closed:
1649 (class_name, self._fd, self.mode, self._closefd))
1674 return os.read(self._fd, size)
1688 pos = os.lseek(self._fd, 0, SEEK_CUR)
1689 end = os.fstat(self._fd).st_size
[all …]
/third_party/libwebsockets/include/libwebsockets/
Dlws-diskcache.h142 const char *hash_hex, int *_fd, char *cache, int cache_len,
/third_party/node/deps/npm/node_modules/write-file-atomic/
Dindex.js103 fs.open(tmpfile, 'w', options.mode, function (err, _fd) { argument
104 fd = _fd
/third_party/rust/crates/rustix/src/backend/libc/time/
Dsyscalls.rs168 DynamicClockId::Dynamic(_fd) => { in clock_gettime_dynamic()
/third_party/rust/crates/rustix/src/backend/libc/io/
Dsyscalls.rs395 pub(crate) fn is_read_write(_fd: BorrowedFd<'_>) -> io::Result<(bool, bool)> { in is_read_write()
/third_party/rust/crates/libc/src/vxworks/
Dmod.rs1853 pub fn pread(_fd: ::c_int, _buf: *mut ::c_void, _count: ::size_t, _offset: off64_t) -> ::ssize_t { in pread()
1858 _fd: ::c_int, in pwrite()
/third_party/rust/crates/libc/src/unix/haiku/
Dmod.rs2008 pub fn login_tty(_fd: ::c_int) -> ::c_int; in login_tty()
/third_party/rust/crates/linux-raw-sys/src/riscv64/
Dgeneral.rs3552 pub _fd: crate::ctypes::c_int, field
/third_party/rust/crates/linux-raw-sys/src/aarch64/
Dgeneral.rs3554 pub _fd: crate::ctypes::c_int, field
/third_party/rust/crates/linux-raw-sys/src/sparc64/
Dgeneral.rs3886 pub _fd: crate::ctypes::c_int, field
/third_party/rust/crates/linux-raw-sys/src/powerpc64/
Dgeneral.rs3677 pub _fd: crate::ctypes::c_int, field
/third_party/rust/crates/linux-raw-sys/src/powerpc/
Dgeneral.rs3705 pub _fd: crate::ctypes::c_int, field
/third_party/rust/crates/linux-raw-sys/src/sparc/
Dgeneral.rs3916 pub _fd: crate::ctypes::c_int, field
/third_party/rust/crates/linux-raw-sys/src/s390x/
Dgeneral.rs3612 pub _fd: crate::ctypes::c_int, field
/third_party/rust/crates/linux-raw-sys/src/x86_64/
Dgeneral.rs3590 pub _fd: crate::ctypes::c_int, field
/third_party/rust/crates/linux-raw-sys/src/mips64/
Dgeneral.rs3737 pub _fd: crate::ctypes::c_int, field
/third_party/rust/crates/linux-raw-sys/src/arm/
Dgeneral.rs3638 pub _fd: crate::ctypes::c_int, field

12