Home
last modified time | relevance | path

Searched refs:fh (Results 1 – 25 of 152) sorted by relevance

1234567

/third_party/node/test/parallel/
Dtest-worker-message-port-transfer-filehandle.js10 const fh = await fs.open(__filename);
15 port1.postMessage(fh);
22 assert.notStrictEqual(fh.fd, -1);
23 port1.postMessage(fh, [ fh ]);
24 assert.strictEqual(fh.fd, -1);
27 assert.strictEqual(Object.getPrototypeOf(fh2), Object.getPrototypeOf(fh));
32 assert.rejects(() => fh.readFile(), { code: 'EBADF' });
37 const fh = await fs.open(__filename);
41 assert.notStrictEqual(fh.fd, -1);
42 port1.postMessage(fh, [ fh ]);
[all …]
Dtest-worker-message-port-transfer-fake-js-transferable-internal.js12 const fh = await fs.open(__filename);
13 assert.strictEqual(fh.constructor.name, 'FileHandle');
15 const kTransfer = Object.getOwnPropertySymbols(Object.getPrototypeOf(fh))
18 fh[kTransfer] = () => { function
26 port1.postMessage(fh, [ fh ]);
Dtest-worker-message-port-transfer-fake-js-transferable.js16 const fh = await fs.open(__filename);
17 assert.strictEqual(fh.constructor.name, 'FileHandle');
19 const kTransfer = Object.getOwnPropertySymbols(Object.getPrototypeOf(fh))
22 fh[kTransfer] = () => { function
30 port1.postMessage(fh, [ fh ]);
/third_party/boost/libs/beast/include/boost/beast/websocket/impl/
Dstream_impl.hpp278 parse_fh(detail::frame_header& fh,
699 detail::frame_header& fh, in parse_fh() argument
717 fh.len = tmp[1] & 0x7f; in parse_fh()
718 switch(fh.len) in parse_fh()
725 fh.mask = (tmp[1] & 0x80) != 0; in parse_fh()
726 if(fh.mask) in parse_fh()
734 fh.op = static_cast< in parse_fh()
736 fh.fin = (tmp[0] & 0x80) != 0; in parse_fh()
737 fh.rsv1 = (tmp[0] & 0x40) != 0; in parse_fh()
738 fh.rsv2 = (tmp[0] & 0x20) != 0; in parse_fh()
[all …]
Dwrite.hpp622 detail::frame_header fh; in write_some() local
626 fh.rsv1 = impl.wr_compress; in write_some()
630 fh.rsv1 = false; in write_some()
632 fh.rsv2 = false; in write_some()
633 fh.rsv3 = false; in write_some()
634 fh.op = impl.wr_cont ? in write_some()
636 fh.mask = impl.role == role_type::client; in write_some()
659 fh.fin = false; in write_some()
662 if(fh.mask) in write_some()
664 fh.key = this->impl_->create_mask(); in write_some()
[all …]
/third_party/boost/boost/beast/websocket/impl/
Dstream_impl.hpp278 parse_fh(detail::frame_header& fh,
699 detail::frame_header& fh, in parse_fh() argument
717 fh.len = tmp[1] & 0x7f; in parse_fh()
718 switch(fh.len) in parse_fh()
725 fh.mask = (tmp[1] & 0x80) != 0; in parse_fh()
726 if(fh.mask) in parse_fh()
734 fh.op = static_cast< in parse_fh()
736 fh.fin = (tmp[0] & 0x80) != 0; in parse_fh()
737 fh.rsv1 = (tmp[0] & 0x40) != 0; in parse_fh()
738 fh.rsv2 = (tmp[0] & 0x20) != 0; in parse_fh()
[all …]
Dwrite.hpp622 detail::frame_header fh; in write_some() local
626 fh.rsv1 = impl.wr_compress; in write_some()
630 fh.rsv1 = false; in write_some()
632 fh.rsv2 = false; in write_some()
633 fh.rsv3 = false; in write_some()
634 fh.op = impl.wr_cont ? in write_some()
636 fh.mask = impl.role == role_type::client; in write_some()
659 fh.fin = false; in write_some()
662 if(fh.mask) in write_some()
664 fh.key = this->impl_->create_mask(); in write_some()
[all …]
/third_party/grpc/tools/http2_interop/
Dframeheader.go40 func (fh *FrameHeader) Parse(r io.Reader) error {
45 return fh.UnmarshalBinary(buf)
48 func (fh *FrameHeader) UnmarshalBinary(b []byte) error {
52 *fh = FrameHeader{
62 func (fh *FrameHeader) MarshalBinary() ([]byte, error) {
63 buf := make([]byte, 9, 9+fh.Length)
65 if fh.Length > 0xFFFFFF || fh.Length < 0 {
66 return nil, fmt.Errorf("Invalid frame header length: %d", fh.Length)
68 if fh.StreamID < 0 {
69 return nil, fmt.Errorf("Invalid Stream ID: %v", fh.StreamID)
[all …]
/third_party/iowow/src/platform/unix/
Dunix.c119 iwrc iwp_fstath(HANDLE fh, IWP_FILE_STAT *fs) { in iwp_fstath() argument
120 return _iwp_fstat(0, fh, fs); in iwp_fstath()
123 iwrc iwp_flock(HANDLE fh, iwp_lockmode lmode) { in iwp_flock() argument
124 if (INVALIDHANDLE(fh)) { in iwp_flock()
131 while (fcntl(fh, (lmode & IWP_NBLOCK) ? F_SETLK : F_SETLKW, &lock) == -1) { in iwp_flock()
139 iwrc iwp_unlock(HANDLE fh) { in iwp_unlock() argument
140 if (INVALIDHANDLE(fh)) { in iwp_unlock()
144 while (fcntl(fh, F_SETLKW, &lock) == -1) { in iwp_unlock()
152 iwrc iwp_closefh(HANDLE fh) { in iwp_closefh() argument
153 if (INVALIDHANDLE(fh)) { in iwp_closefh()
[all …]
/third_party/iowow/src/platform/win32/
Dwin32.c61 iwrc iwp_fdatasync(HANDLE fh) { in iwp_fdatasync() argument
62 return iwp_fsync(fh); in iwp_fdatasync()
83 iwrc iwp_ftruncate(HANDLE fh, off_t len) { in iwp_ftruncate() argument
86 if (!SetFilePointerEx(fh, size, NULL, FILE_BEGIN)) { in iwp_ftruncate()
89 if (!SetEndOfFile(fh)) { in iwp_ftruncate()
95 iwrc iwp_fallocate(HANDLE fh, off_t len) { in iwp_fallocate() argument
96 return iwp_ftruncate(fh, len); in iwp_fallocate()
130 iwrc iwp_fstath(HANDLE fh, IWP_FILE_STAT *fs) { in iwp_fstath() argument
133 if (INVALIDHANDLE(fh)) { in iwp_fstath()
136 if (!GetFileInformationByHandle(fh, &info)) { in iwp_fstath()
[all …]
/third_party/openssl/test/recipes/
D90-test_shlibload.t36 (my $fh, my $filename) = tempfile();
39 ok(check_atexit($fh));
41 ($fh, $filename) = tempfile();
44 ok(check_atexit($fh));
46 ($fh, $filename) = tempfile();
49 ok(check_atexit($fh));
51 ($fh, $filename) = tempfile();
54 ok(check_atexit($fh));
56 ($fh, $filename) = tempfile();
59 ok(!check_atexit($fh));
[all …]
D15-test_mp_rsa.t97 open(my $fh, "<", $cleartext) or return 0;
98 binmode $fh;
99 read($fh, $msg, 10240);
100 close $fh;
101 open($fh, "<", "rsamptest.dec") or return 0;
102 binmode $fh;
103 read($fh, $dec, 10240);
104 close $fh;
/third_party/iowow/src/platform/
Diwp.h137 IW_EXPORT iwrc iwp_fstath(HANDLE fh, IWP_FILE_STAT *stat);
146 IW_EXPORT iwrc iwp_flock(HANDLE fh, iwp_lockmode lmode);
153 IW_EXPORT iwrc iwp_unlock(HANDLE fh);
159 IW_EXPORT iwrc iwp_closefh(HANDLE fh);
172 IW_EXPORT iwrc iwp_pread(HANDLE fh, off_t off, void *buf, size_t siz, size_t *sp);
186 IW_EXPORT iwrc iwp_pwrite(HANDLE fh, off_t off, const void *buf, size_t siz, size_t *sp);
188 IW_EXPORT iwrc iwp_write(HANDLE fh, const void *buf, size_t count);
190 IW_EXPORT iwrc iwp_read(HANDLE fh, void *buf, size_t count, size_t *sp);
192 IW_EXPORT iwrc iwp_lseek(HANDLE fh, off_t offset, iwp_seek_origin origin, off_t *pos);
200 IW_EXPORT iwrc iwp_copy_bytes(HANDLE fh,
[all …]
/third_party/boost/boost/beast/websocket/detail/
Dframe.hpp134 write(DynamicBuffer& db, frame_header const& fh) in write() argument
138 b[0] = (fh.fin ? 0x80 : 0x00) | static_cast<std::uint8_t>(fh.op); in write()
139 if(fh.rsv1) in write()
141 if(fh.rsv2) in write()
143 if(fh.rsv3) in write()
145 b[1] = fh.mask ? 0x80 : 0x00; in write()
146 if(fh.len <= 125) in write()
148 b[1] |= fh.len; in write()
151 else if(fh.len <= 65535) in write()
155 static_cast<std::uint16_t>(fh.len)); in write()
[all …]
/third_party/boost/libs/beast/include/boost/beast/websocket/detail/
Dframe.hpp134 write(DynamicBuffer& db, frame_header const& fh) in write() argument
138 b[0] = (fh.fin ? 0x80 : 0x00) | static_cast<std::uint8_t>(fh.op); in write()
139 if(fh.rsv1) in write()
141 if(fh.rsv2) in write()
143 if(fh.rsv3) in write()
145 b[1] = fh.mask ? 0x80 : 0x00; in write()
146 if(fh.len <= 125) in write()
148 b[1] |= fh.len; in write()
151 else if(fh.len <= 65535) in write()
155 static_cast<std::uint16_t>(fh.len)); in write()
[all …]
/third_party/ffmpeg/libavcodec/
Dvaapi_encode_mjpeg.c159 JPEGRawFrameHeader *fh = &priv->frame_header; in vaapi_encode_mjpeg_write_extra_buffer() local
173 quant->lum_quantiser_matrix[i] = dqt->table[fh->Tq[0]].Q[i]; in vaapi_encode_mjpeg_write_extra_buffer()
175 if (fh->Nf > 1) { in vaapi_encode_mjpeg_write_extra_buffer()
179 dqt->table[fh->Tq[1]].Q[i]; in vaapi_encode_mjpeg_write_extra_buffer()
226 JPEGRawFrameHeader *fh = &priv->frame_header; in vaapi_encode_mjpeg_init_picture_params() local
246 fh->P = 8; in vaapi_encode_mjpeg_init_picture_params()
247 fh->Y = avctx->height; in vaapi_encode_mjpeg_init_picture_params()
248 fh->X = avctx->width; in vaapi_encode_mjpeg_init_picture_params()
249 fh->Nf = desc->nb_components; in vaapi_encode_mjpeg_init_picture_params()
251 for (i = 0; i < fh->Nf; i++) { in vaapi_encode_mjpeg_init_picture_params()
[all …]
/third_party/iowow/src/fs/
Diwfile.c42 HANDLE fh; /**< File handle. */ member
56 iwrc rc = iwp_pwrite(impl->fh, off, buf, siz, sp); in _iwfs_write()
69 return iwp_pread(impl->fh, off, buf, siz, sp); in _iwfs_read()
85 IWRC(iwp_unlock(impl->fh), rc); in _iwfs_close()
87 IWRC(iwp_closefh(impl->fh), rc); in _iwfs_close()
106 if (fcntl(impl->fh, F_FULLFSYNC) == -1) { in _iwfs_sync()
110 if (iwp_fdatasync(impl->fh) == -1) { in _iwfs_sync()
114 } else if (iwp_fsync(impl->fh) == -1) { in _iwfs_sync()
134 state->fh = impl->fh; in _iwfs_state()
147 iwrc rc = iwp_copy_bytes(impl->fh, off, siz, noff); in _iwfs_copy()
[all …]
/third_party/iowow/src/rdb/
Diwrdb.c13 if (!(db_) || INVALIDHANDLE((db_)->fh)) return IW_ERROR_INVALID_STATE
16 HANDLE fh; member
83 iwrc rc = iwp_write(db->fh, db->buf, db->bp); in _flush_lw()
102 rc = iwp_write(db->fh, data, len); in _append_lw()
124 HANDLE fh = open(path, O_CREAT | O_RDWR, IWFS_DEFAULT_FILEMODE); in iwrdb_open() local
125 if (INVALIDHANDLE(fh)) { in iwrdb_open()
129 HANDLE fh = CreateFile(path, GENERIC_READ | GENERIC_WRITE, in iwrdb_open() local
132 if (INVALIDHANDLE(fh)) { in iwrdb_open()
145 db->fh = fh; in iwrdb_open()
154 rc = iwp_lseek(db->fh, 0, IWP_SEEK_END, &db->end); in iwrdb_open()
[all …]
/third_party/node/deps/npm/lib/utils/
Dspawn.js10 for (var fh = 1; fh <= 2; ++fh) {
11 if (stdio[fh] === 'inherit') return true
12 if (stdio[fh] === 1 || stdio[fh] === 2) return true
/third_party/node/deps/npm/node_modules/npm-lifecycle/lib/
Dspawn.js25 for (let fh = 1; fh <= 2; ++fh) {
26 if (stdio[fh] === 'inherit') return true
27 if (stdio[fh] === 1 || stdio[fh] === 2) return true
/third_party/ltp/include/lapi/
Dname_to_handle_at.h38 struct file_handle fh = {}, *fhp; in allocate_file_handle() local
45 ret = name_to_handle_at(dfd, pathname, &fh, &mount_id, 0); in allocate_file_handle()
53 fhp = tst_alloc(sizeof(*fhp) + fh.handle_bytes); in allocate_file_handle()
54 fhp->handle_type = fh.handle_type; in allocate_file_handle()
55 fhp->handle_bytes = fh.handle_bytes; in allocate_file_handle()
/third_party/e2fsprogs/misc/
Dfuse2fs.c2134 fp->fh = (uintptr_t)file; in __op_open()
2161 struct fuse2fs_file_handle *fh = in op_read() local
2162 (struct fuse2fs_file_handle *)(uintptr_t)fp->fh; in op_read()
2171 FUSE2FS_CHECK_MAGIC(fs, fh, FUSE2FS_FILE_MAGIC); in op_read()
2172 dbg_printf("%s: ino=%d off=%jd len=%jd\n", __func__, fh->ino, offset, in op_read()
2175 err = ext2fs_file_open(fs, fh->ino, fh->open_flags, &efp); in op_read()
2177 ret = translate_error(fs, fh->ino, err); in op_read()
2183 ret = translate_error(fs, fh->ino, err); in op_read()
2189 ret = translate_error(fs, fh->ino, err); in op_read()
2198 ret = translate_error(fs, fh->ino, err); in op_read()
[all …]
/third_party/iowow/src/kv/
Diwal.c36 HANDLE fh; /**< File handle */ member
116 if (!INVALIDHANDLE(wal->fh)) { in _destroy()
117 iwp_unlock(wal->fh); in _destroy()
118 iwp_closefh(wal->fh); in _destroy()
149 rc = iwp_write(wal->fh, wp, wz); in _flush_wl()
154 rc = iwp_fsync(wal->fh); in _flush_wl()
160 iwrc rc = iwp_ftruncate(wal->fh, 0); in _truncate_wl()
163 rc = iwp_lseek(wal->fh, 0, IWP_SEEK_SET, 0); in _truncate_wl()
165 rc = iwp_fsync(wal->fh); in _truncate_wl()
183 rc = iwp_write(wal->fh, data, (size_t) len); in _write_wl()
[all …]
/third_party/boost/libs/beast/test/beast/websocket/
Dframe.cpp58 test_fh fh; in testWriteFrame() local
59 fh.rsv2 = true; in testWriteFrame()
60 fh.rsv3 = true; in testWriteFrame()
61 fh.len = 65536; in testWriteFrame()
63 write(fb, fh); in testWriteFrame()
/third_party/openssl/util/perl/OpenSSL/Util/
DPod.pm95 my $fh = undef;
101 open $fh, $input or die "Trying to read $filename: $!\n";
103 $input = $fh;
135 if (defined $fh) {
136 close $fh;

1234567