Home
last modified time | relevance | path

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

12345678910>>...13

/external/libcups/filter/
Draster.c875 cups_page_header2_t fh; /* File page header */ in cupsRasterWriteHeader() local
877 memset(&fh, 0, sizeof(fh)); in cupsRasterWriteHeader()
879 strlcpy(fh.MediaClass, "PwgRaster", sizeof(fh.MediaClass)); in cupsRasterWriteHeader()
881 strlcpy(fh.MediaColor, r->header.MediaColor, sizeof(fh.MediaColor)); in cupsRasterWriteHeader()
882 strlcpy(fh.MediaType, r->header.MediaType, sizeof(fh.MediaType)); in cupsRasterWriteHeader()
883 strlcpy(fh.OutputType, r->header.OutputType, sizeof(fh.OutputType)); in cupsRasterWriteHeader()
886 fh.CutMedia = htonl(r->header.CutMedia); in cupsRasterWriteHeader()
887 fh.Duplex = htonl(r->header.Duplex); in cupsRasterWriteHeader()
888 fh.HWResolution[0] = htonl(r->header.HWResolution[0]); in cupsRasterWriteHeader()
889 fh.HWResolution[1] = htonl(r->header.HWResolution[1]); in cupsRasterWriteHeader()
[all …]
/external/antlr/antlr-3.4/runtime/Perl5/lib/ANTLR/Runtime/
DANTLRFileStream.pm25 my $fh;
28 open $fh, "<:encoding($encoding)", $file_name
32 open $fh, '<', $file_name
39 $content = <$fh>;
41 close $fh or carp "Can't close $fh: $!";
55 my $fh;
57 open $fh, "<:encoding($encoding)", $file_name
61 open $fh, '<', $file_name
68 $content = <$fh>;
70 close $fh or carp "Can't close $fh: $!";
/external/clang/utils/analyzer/
Dupdate_plist_test.pl13 my $fh = File::Temp->new();
14 my $filename = $fh->filename;
15 $fh->unlink_on_destroy(1);
21 print $fh $_;
39 print $fh "// CHECK: ";
43 print $fh "// CHECK-NEXT: ";
45 print $fh $_;
48 close ($fh);
/external/devlib/devlib/utils/
Drendering.py76 with open(self.temp_file) as fh:
77 self._process_raw_file(fh)
108 def _process_raw_file(self, fh): argument
135 def _process_raw_file(self, fh): argument
136 text = fh.read().replace('\r\n', '\n').replace('\r', '\n')
195 def _process_raw_file(self, fh): argument
200 for line in fh:
205 fh.next() # headers
206 for line in fh:
221 def _file_reverse_iter(fh, buf_size=1024): argument
[all …]
/external/iproute2/tc/
Df_route.c41 __u32 fh = 0xFFFF8000; in route_parse_opt() local
67 fh &= ~0x80FF; in route_parse_opt()
68 fh |= id&0xFF; in route_parse_opt()
78 fh &= 0xFFFF; in route_parse_opt()
79 fh |= id<<16; in route_parse_opt()
90 fh &= 0xFFFF; in route_parse_opt()
91 fh |= (0x8000|id)<<16; in route_parse_opt()
134 fh &= ~0x7F00; in route_parse_opt()
135 fh |= (order<<8)&0x7F00; in route_parse_opt()
138 t->tcm_handle = fh; in route_parse_opt()
/external/e2fsprogs/misc/
Dfuse2fs.c2128 fp->fh = (uintptr_t)file; in __op_open()
2155 struct fuse2fs_file_handle *fh = in op_read() local
2156 (struct fuse2fs_file_handle *)(uintptr_t)fp->fh; in op_read()
2165 FUSE2FS_CHECK_MAGIC(fs, fh, FUSE2FS_FILE_MAGIC); in op_read()
2166 dbg_printf("%s: ino=%d off=%jd len=%jd\n", __func__, fh->ino, offset, in op_read()
2169 err = ext2fs_file_open(fs, fh->ino, fh->open_flags, &efp); in op_read()
2171 ret = translate_error(fs, fh->ino, err); 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()
2192 ret = translate_error(fs, fh->ino, err); in op_read()
[all …]
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_state_framebuffer.c367 float fh = flip * viewport->scale[1] * 2.0f; in emit_viewport() local
382 fh); in emit_viewport()
410 if (fh < 0.0) { in emit_viewport()
413 prescale.translate[1] = fh + fy * 2.0f; in emit_viewport()
417 prescale.translate[1] = fh - 1.0f + fy * 2.0f; in emit_viewport()
419 fh = -fh; in emit_viewport()
420 fy -= fh; in emit_viewport()
439 prescale.scale[1] *= fh / (fh + fy); in emit_viewport()
440 fh += fy; in emit_viewport()
451 if (fy + fh > fb_height) { in emit_viewport()
[all …]
/external/google-breakpad/src/client/mac/handler/
Dbreakpad_nlist_64.cc206 struct fat_header fh; in __breakpad_fdnlist() local
210 if (read(fd, (char *)&fh, sizeof(fh)) != sizeof(fh)) { in __breakpad_fdnlist()
215 fh.nfat_arch = CFSwapInt32BigToHost(fh.nfat_arch); in __breakpad_fdnlist()
219 (struct fat_arch *)malloc(fh.nfat_arch * sizeof(struct fat_arch)); in __breakpad_fdnlist()
224 sizeof(struct fat_arch) * fh.nfat_arch) != in __breakpad_fdnlist()
225 (ssize_t)(sizeof(struct fat_arch) * fh.nfat_arch)) { in __breakpad_fdnlist()
234 for (unsigned i = 0; i < fh.nfat_arch; i++) { in __breakpad_fdnlist()
248 for (unsigned i = 0; i < fh.nfat_arch; i++) { in __breakpad_fdnlist()
/external/kernel-headers/original/uapi/linux/
Dfuse.h427 uint64_t fh; member
470 uint64_t fh; member
499 uint64_t fh; member
505 uint64_t fh; member
512 uint64_t fh; member
519 uint64_t fh; member
531 uint64_t fh; member
552 uint64_t fh; member
573 uint64_t fh; member
647 uint64_t fh; member
[all …]
/external/autotest/site_utils/stats/
Dtail_until_writer_finished.py56 def ReadChunks(fh): argument
61 for chunk in iter(lambda: fh.read(chunk_size), b''):
66 with open(path) as fh:
68 fh.seek(0, 2)
70 ReadChunks(fh)
75 ReadChunks(fh)
/external/chromium-trace/catapult/common/py_utils/py_utils/
Dlogging_util.py20 fh = logging.StreamHandler(file_stream)
25 fh.formatter = logger.handlers[0].formatter
27 fh.setFormatter(logging.Formatter(
29 logger.addHandler(fh)
35 logger.removeHandler(fh)
/external/strace/tests-mx32/
Dfile_handle.c100 struct file_handle *fh = in do_name_to_handle_at() local
105 fh->handle_bytes, fh->handle_type); in do_name_to_handle_at()
106 print_handle_data((unsigned char *) fh + in do_name_to_handle_at()
108 fh->handle_bytes); in do_name_to_handle_at()
129 struct file_handle *fh = in do_open_by_handle_at() local
132 printf("{handle_bytes=%u, handle_type=%d", fh->handle_bytes, in do_open_by_handle_at()
133 fh->handle_type); in do_open_by_handle_at()
137 print_handle_data((unsigned char *) fh + in do_open_by_handle_at()
139 fh->handle_bytes); in do_open_by_handle_at()
/external/strace/tests/
Dfile_handle.c100 struct file_handle *fh = in do_name_to_handle_at() local
105 fh->handle_bytes, fh->handle_type); in do_name_to_handle_at()
106 print_handle_data((unsigned char *) fh + in do_name_to_handle_at()
108 fh->handle_bytes); in do_name_to_handle_at()
129 struct file_handle *fh = in do_open_by_handle_at() local
132 printf("{handle_bytes=%u, handle_type=%d", fh->handle_bytes, in do_open_by_handle_at()
133 fh->handle_type); in do_open_by_handle_at()
137 print_handle_data((unsigned char *) fh + in do_open_by_handle_at()
139 fh->handle_bytes); in do_open_by_handle_at()
/external/strace/tests-m32/
Dfile_handle.c100 struct file_handle *fh = in do_name_to_handle_at() local
105 fh->handle_bytes, fh->handle_type); in do_name_to_handle_at()
106 print_handle_data((unsigned char *) fh + in do_name_to_handle_at()
108 fh->handle_bytes); in do_name_to_handle_at()
129 struct file_handle *fh = in do_open_by_handle_at() local
132 printf("{handle_bytes=%u, handle_type=%d", fh->handle_bytes, in do_open_by_handle_at()
133 fh->handle_type); in do_open_by_handle_at()
137 print_handle_data((unsigned char *) fh + in do_open_by_handle_at()
139 fh->handle_bytes); in do_open_by_handle_at()
/external/valgrind/coregrind/
Dlink_tool_exe_solaris.in40 (my $fh, my $path) = tempfile();
43 fcntl($fh, F_SETFD, 0)
47 unlink0($fh, $path)
58 print $fh <<"END";
67 my $cmd="$cc -Wl,-M/proc/$$/fd/" . fileno($fh);
Dlauncher-darwin.c133 static int fat_has_cputype(struct fat_header *fh, cpu_type_t cputype) in fat_has_cputype() argument
135 struct fat_arch *fa = (struct fat_arch *)(fh+1); in fat_has_cputype()
136 uint32_t nfat_arch = ntohl(fh->nfat_arch); in fat_has_cputype()
174 struct fat_header *fh = (struct fat_header *)buf; in select_arch() local
175 if (ntohl(fh->magic) == FAT_MAGIC) { in select_arch()
176 uint32_t nfat_arch = ntohl(fh->nfat_arch); in select_arch()
180 struct fat_arch *fa = (struct fat_arch *)(fh+1); in select_arch()
184 if (fat_has_cputype(fh, default_cputype)) { in select_arch()
190 if (fat_has_cputype(fh, valid_archs[i].cputype)) { in select_arch()
/external/python/cpython2/Demo/rpc/
Dnfsclient.py83 fh = self.unpack_fhandle()
85 rest = (fh, fa)
136 def Getattr(self, fh): argument
137 return self.make_call(1, fh, \
194 fh = sf[1]
195 if fh:
197 attrstat = ncl.Getattr(fh)
199 list = ncl.Listdir(fh)
/external/antlr/antlr-3.4/runtime/ObjC/Framework/
DANTLRReaderStream.m14 @synthesize fh;
56 fh = nil;
67 fh = r;
78 if ( fh==nil ) {
91 retData = [fh readDataToEndOfFile];
100 [fh closeFile];
150 [fh closeFile];
/external/valgrind/tests/
Ds390x_features.c118 int n, fh; in get_host() local
124 fh = open("/proc/cpuinfo", O_RDONLY, S_IRUSR); in get_host()
125 if (fh < 0) return NULL; in get_host()
136 n = read(fh, file_buf, file_buf_size); in get_host()
147 lseek(fh, 0, SEEK_SET); in get_host()
149 n = read(fh, file_buf, num_bytes); in get_host()
154 close(fh); in get_host()
/external/iproute2/doc/actions/
Dgact-usage38 filter u32 fh 800: ht divisor 1
39 filter u32 fh 800::800 order 2048 key ht 800 bkt 0 flowid 1:16 (rule hit 32 success 20)
56 …tocol ip pref 6 u32 filter protocol ip pref 6 u32 fh 800: ht divisor 1filter protocol ip pref 6 u3…
72 …tocol ip pref 6 u32 filter protocol ip pref 6 u32 fh 800: ht divisor 1filter protocol ip pref 6 u3…
/external/syslinux/com32/lib/
Dmakeerrlist.pl17 my($fh) = new FileHandle;
26 if ( $fh->open($root.'//'.$file, '<') ) {
36 while ( defined($line = <$fh>) ) {
59 close($fh);
/external/syslinux/gpxe/src/util/Option/
DROM.pm257 open my $fh, "<$filename"
259 read $fh, my $data, ( 128 * 1024 ); # 128kB is theoretical max size
261 close $fh;
280 open my $fh, ">$filename"
282 print $fh ${$self->{data}};
283 close $fh;
/external/ltp/testcases/cve/
Dstack_clash.c97 FILE *fh; in read_stack_addr_from_proc() local
101 fh = SAFE_FOPEN("/proc/self/maps", "r"); in read_stack_addr_from_proc()
103 while (!feof(fh)) { in read_stack_addr_from_proc()
104 if (fgets(buf, sizeof(buf), fh) == NULL) { in read_stack_addr_from_proc()
127 SAFE_FCLOSE(fh); in read_stack_addr_from_proc()
/external/devlib/devlib/instrument/
Ddaq.py100 fh = open(site_file, 'rb')
101 site_readers[site] = csv.reader(fh)
102 file_handles.append(fh)
134 for fh in file_handles:
135 fh.close()
/external/clang/www/demo/
Dindex.cgi111 my $fh = $msg->open();
112 print $fh $body;
113 $fh->close();
325 my $fh = $c->upload('uploaded_file');
326 if ( !$fh ) {
329 while (<$fh>) {
332 close $fh;

12345678910>>...13