/third_party/curl/tests/ |
H A D | test1276.pl | 34 open(my $fh, "-|", "perl $root/lib/optiontable.pl < $root/include/curl/curl.h"); 35 binmode $fh; 36 my @gen=<$fh>; 37 close($fh); 39 open($fh, "<", "$root/lib/easyoptions.c"); 40 binmode $fh; 41 my @file=<$fh>; 42 close($fh);
|
H A D | test971.pl | 53 open(my $fh, "<", "$f"); 54 while(<$fh>) { 74 close($fh); 80 open(my $fh, "<", "$cmddir/$f.md"); 81 while(<$fh>) { 91 close($fh);
|
H A D | test1222.pl | 188 if(open(my $fh, "<", "$path")) { 192 while(<$fh>) { 233 close $fh; 240 open(my $fh, "<", "$libdocdir/symbols-in-versions") || 242 while(<$fh>) { 252 close($fh);
|
/third_party/ffmpeg/libavcodec/ |
H A D | vaapi_encode_mjpeg.c | 159 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 in vaapi_encode_mjpeg_init_picture_params() [all...] |
/third_party/libfuse/example/ |
H A D | passthrough_fh.c | 79 res = fstat(fi->fh, stbuf); in xmp_getattr() 133 fi->fh = (unsigned long) d; in xmp_opendir() 139 return (struct xmp_dirp *) (uintptr_t) fi->fh; in get_dirp() 302 res = fchmod(fi->fh, mode); in xmp_chmod() 317 res = fchown(fi->fh, uid, gid); in xmp_chown() 332 res = ftruncate(fi->fh, size); in xmp_truncate() 350 res = futimens(fi->fh, ts); in xmp_utimens() 368 fi->fh = fd; in xmp_create() 380 fi->fh = fd; in xmp_open() 390 res = pread(fi->fh, bu in xmp_read() [all...] |
/third_party/mesa3d/src/gallium/auxiliary/driver_trace/ |
H A D | enums2names.py | 174 def parse_file(self, fh): 176 for line in fh: 183 def pkk_output_header(fh): 213 ), file=fh) 216 def pkk_output_source(fh): 228 ), file=fh) 248 ), file=fh) 266 with open(pkk_cfg.in_file, "r", encoding="UTF-8") as fh: 267 enums = hdrparser.parse_file(fh) 286 with open(pkk_cfg.out_header, "w", encoding="UTF-8") as fh [all...] |
/third_party/curl/lib/ |
H A D | fopen.c | 95 FILE **fh, char **tempname) in Curl_fopen() 105 *fh = fopen(filename, FOPEN_WRITETEXT); in Curl_fopen() 106 if(!*fh) in Curl_fopen() 108 if(fstat(fileno(*fh), &sb) == -1 || !S_ISREG(sb.st_mode)) { in Curl_fopen() 111 fclose(*fh); in Curl_fopen() 112 *fh = NULL; in Curl_fopen() 136 *fh = fdopen(fd, FOPEN_WRITETEXT); in Curl_fopen() 137 if(!*fh) in Curl_fopen() 94 Curl_fopen(struct Curl_easy *data, const char *filename, FILE **fh, char **tempname) Curl_fopen() argument
|
/third_party/libfuse/test/ |
H A D | test_examples.py | 33 with open(TEST_FILE, 'rb') as fh: 34 TEST_DATA = fh.read() 99 with open(filename, 'r') as fh: 100 assert fh.read() == 'Hello World!\n' 281 with open(testfile, 'wb') as fh: 282 fh.write(b'foobar') 285 with open(testfile, 'rb') as fh: 286 assert fh.read()== b'foo' 316 with open(mnt_file, 'w') as fh: 317 fh [all...] |
/third_party/node/test/parallel/ |
H A D | test-worker-message-port-transfer-fake-js-transferable.js | 16 const fh = await fs.open(__filename); 17 assert.strictEqual(fh.constructor.name, 'FileHandle'); 19 const kTransfer = Object.getOwnPropertySymbols(Object.getPrototypeOf(fh)) 22 fh[kTransfer] = () => { 30 port1.postMessage(fh, [ fh ]);
|
/third_party/node/deps/openssl/openssl/external/perl/Text-Template-1.56/t/ |
H A D | taint.t | 32 open my $fh, '>', $file or die "Couldn't write temporary file $file: $!"; 33 print $fh $template, "\n"; 34 close $fh or die "Couldn't finish temporary file $file: $!"; 82 open $fh, '<', $file or die "Couldn't open $file for reading: $!; aborting"; 83 should_fail TYPE => 'filehandle', SOURCE => $fh; 84 close $fh; 86 open $fh, '<', $file or die "Couldn't open $file for reading: $!; aborting"; 87 should_work TYPE => 'filehandle', SOURCE => $fh, UNTAINT => 1; 88 close $fh;
|
/third_party/openssl/external/perl/Text-Template-1.56/t/ |
H A D | taint.t | 32 open my $fh, '>', $file or die "Couldn't write temporary file $file: $!"; 33 print $fh $template, "\n"; 34 close $fh or die "Couldn't finish temporary file $file: $!"; 82 open $fh, '<', $file or die "Couldn't open $file for reading: $!; aborting"; 83 should_fail TYPE => 'filehandle', SOURCE => $fh; 84 close $fh; 86 open $fh, '<', $file or die "Couldn't open $file for reading: $!; aborting"; 87 should_work TYPE => 'filehandle', SOURCE => $fh, UNTAINT => 1; 88 close $fh;
|
/third_party/ltp/testcases/cve/ |
H A D | stack_clash.c | 97 FILE *fh; in force_bottom_up() local 104 fh = SAFE_FOPEN("/proc/self/maps", "r"); in force_bottom_up() 106 while (!feof(fh)) { in force_bottom_up() 107 if (fgets(buf, sizeof(buf), fh) == NULL) in force_bottom_up() 135 SAFE_FCLOSE(fh); in force_bottom_up() 140 FILE *fh; in read_stack_addr_from_proc() local 144 fh = SAFE_FOPEN("/proc/self/maps", "r"); in read_stack_addr_from_proc() 146 while (!feof(fh)) { in read_stack_addr_from_proc() 147 if (fgets(buf, sizeof(buf), fh) == NULL) { in read_stack_addr_from_proc() 170 SAFE_FCLOSE(fh); in read_stack_addr_from_proc() [all...] |
/third_party/ltp/include/lapi/ |
H A D | name_to_handle_at.h | 38 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/ntfs-3g/include/fuse-lite/ |
H A D | fuse_kernel.h | 248 __u64 fh; member 277 __u64 fh; member 283 __u64 fh; member 290 __u64 fh; member 297 __u64 fh; member 306 __u64 fh; member 327 __u64 fh; member 348 __u64 fh; member 393 __u64 fh; member
|
/third_party/curl/docs/cmdline-opts/ |
H A D | gen.pl | 160 my ($fh, $f, $line) = @_; 169 while(<$fh>) { 324 my $fh; 325 open($fh, "<:crlf", "$f") || 348 while(<$fh>) { 473 my @desc = render($fh, $f, $line); 474 close($fh); 693 my $fh; 694 open($fh, "<:crlf", "$f"); 695 my @d = render($fh, [all...] |
/third_party/eudev/src/shared/ |
H A D | conf-files.c | 110 _cleanup_hashmap_free_ Hashmap *fh = NULL; in conf_files_list_strv_internal() local 121 fh = hashmap_new(&string_hash_ops); in conf_files_list_strv_internal() 122 if (!fh) in conf_files_list_strv_internal() 126 r = files_add(fh, root, *p, suffix); in conf_files_list_strv_internal() 134 files = hashmap_get_strv(fh); in conf_files_list_strv_internal() 139 qsort_safe(files, hashmap_size(fh), sizeof(char *), base_cmp); in conf_files_list_strv_internal()
|
/third_party/libfuse/include/ |
H A D | fuse_kernel.h | 627 uint64_t fh; member 670 uint64_t fh; member 699 uint64_t fh; member 705 uint64_t fh; member 712 uint64_t fh; member 719 uint64_t fh; member 731 uint64_t fh; member 752 uint64_t fh; member 777 uint64_t fh; member 856 uint64_t fh; member 877 uint64_t fh; global() member 893 uint64_t fh; global() member 994 uint64_t fh; global() member 1018 uint64_t fh; global() member [all...] |
/third_party/curl/scripts/ |
H A D | cd2nroff | 105 my $fh; 115 if(!open($fh, "<:crlf", "$f")) { 122 $fh = \*STDIN; 123 binmode($fh, ":crlf"); 125 while(<$fh>) { 213 while(<$fh>) { 337 if($fh != \*STDIN) { 338 close($fh);
|
/third_party/ltp/testcases/kernel/syscalls/fanotify/ |
H A D | fanotify22.c | 145 struct file_handle *fh = (struct file_handle *) &fid->handle; in check_error_event_info_fid() local 154 if (fh->handle_type != ex->fid->handle.handle_type) { in check_error_event_info_fid() 156 ex->name, fh->handle_type, ex->fid->handle.handle_type); in check_error_event_info_fid() 160 if (fh->handle_bytes != ex->fid->handle.handle_bytes) { in check_error_event_info_fid() 162 ex->name, fh->handle_bytes, ex->fid->handle.handle_bytes); in check_error_event_info_fid() 166 if (memcmp(fh->f_handle, ex->fid->handle.f_handle, fh->handle_bytes)) { in check_error_event_info_fid() 169 *(int *)ex->fid->handle.f_handle, *(int *)fh->f_handle); in check_error_event_info_fid()
|
/third_party/mesa3d/src/gallium/drivers/svga/ |
H A D | svga_state_framebuffer.c | 422 float fh = flip * viewport->scale[1] * 2.0f; in get_viewport_prescale() local 436 fh); in get_viewport_prescale() 464 if (fh < 0.0) { in get_viewport_prescale() 467 prescale->translate[1] = fh + fy * 2.0f; in get_viewport_prescale() 471 prescale->translate[1] = fh - 1.0f + fy * 2.0f; in get_viewport_prescale() 473 fh = -fh; in get_viewport_prescale() 474 fy -= fh; in get_viewport_prescale() 493 prescale->scale[1] *= fh / (fh in get_viewport_prescale() [all...] |
/third_party/ltp/testcases/kernel/syscalls/name_to_handle_at/ |
H A D | name_to_handle_at02.c | 17 static struct file_handle fh, high_fh = {.handle_bytes = MAX_HANDLE_SZ + 1}; variable 18 static struct file_handle *valid_fhp = &fh, *invalid_fhp, *high_fhp = &high_fh; 57 memset(&fh, 0, sizeof(fh)); in run()
|
/third_party/ltp/docparse/ |
H A D | testinfo.pl | 30 open(my $fh, '<', $fname) or die("Can't open $fname $!"); 32 return <$fh>; 49 my ($fh, $json, $title, $content) = @_; 51 print $fh <<EOL; 503 open(my $fh, '>', $file) or die("Can't open $file $!"); 514 print_asciidoc_page($fh, $json, h1($json->{'testsuite'}->{'short_name'} . " test catalog"), $content); 518 open(my $fh, '>', $c->{'file'}) or die("Can't open $c->{'file'} $!"); 519 print_asciidoc_page($fh, $json, $c->{'title'}, $c->{'content'}->($json));
|
/third_party/ntfs-3g/libfuse-lite/ |
H A D | fuse_lowlevel.c | 335 arg->fh = f->fh; in fill_open() 534 fi->fh = arg->fh; in do_setattr() 535 fi->fh_old = fi->fh; in do_setattr() 697 fi.fh = arg->fh; in do_read() 698 fi.fh_old = fi.fh; in do_read() 710 fi.fh = arg->fh; in do_write() [all...] |
/third_party/mbedtls/tests/scripts/ |
H A D | check-doxy-blocks.pl | 31 open my $fh, '<', $fname or die "Failed to open '$fname': $!\n"; 36 while (my $line = <$fh>) { 46 close $fh;
|
/third_party/mbedtls/scripts/ |
H A D | generate_visualc_files.pl | 117 open my $fh, '<:crlf', $filename or die "Could not read $filename\n"; 118 my $content = <$fh>; 119 close $fh; 127 open my $fh, '>:crlf', $filename or die "Could not write to $filename\n"; 128 print $fh $content; 129 close $fh;
|