/external/libcups/filter/ |
D | raster.c | 1021 cups_page_header2_t fh; /* File page header */ in cupsRasterWriteHeader() local 1023 memset(&fh, 0, sizeof(fh)); in cupsRasterWriteHeader() 1025 strlcpy(fh.MediaClass, "PwgRaster", sizeof(fh.MediaClass)); in cupsRasterWriteHeader() 1027 strlcpy(fh.MediaColor, r->header.MediaColor, sizeof(fh.MediaColor)); in cupsRasterWriteHeader() 1028 strlcpy(fh.MediaType, r->header.MediaType, sizeof(fh.MediaType)); in cupsRasterWriteHeader() 1029 strlcpy(fh.OutputType, r->header.OutputType, sizeof(fh.OutputType)); in cupsRasterWriteHeader() 1032 fh.CutMedia = htonl(r->header.CutMedia); in cupsRasterWriteHeader() 1033 fh.Duplex = htonl(r->header.Duplex); in cupsRasterWriteHeader() 1034 fh.HWResolution[0] = htonl(r->header.HWResolution[0]); in cupsRasterWriteHeader() 1035 fh.HWResolution[1] = htonl(r->header.HWResolution[1]); in cupsRasterWriteHeader() [all …]
|
/external/antlr/antlr-3.4/runtime/Perl5/lib/ANTLR/Runtime/ |
D | ANTLRFileStream.pm | 25 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/ |
D | update_plist_test.pl | 13 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/ |
D | rendering.py | 76 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/ |
D | f_route.c | 41 __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/ |
D | fuse2fs.c | 2128 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/chromium-trace/catapult/common/py_utils/py_utils/ |
D | logging_util.py | 20 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/autotest/site_utils/stats/ |
D | tail_until_writer_finished.py | 56 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/mesa3d/src/gallium/drivers/svga/ |
D | svga_state_framebuffer.c | 367 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/valgrind/coregrind/ |
D | link_tool_exe_solaris.in | 40 (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);
|
D | launcher-darwin.c | 133 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/google-breakpad/src/client/mac/handler/ |
D | breakpad_nlist_64.cc | 206 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/strace/tests-m32/ |
D | file_handle.c | 100 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/ |
D | file_handle.c | 100 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-mx32/ |
D | file_handle.c | 100 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/kernel-headers/original/uapi/linux/ |
D | fuse.h | 427 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/python/cpython2/Demo/rpc/ |
D | nfsclient.py | 83 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/ |
D | ANTLRReaderStream.m | 14 @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/ |
D | s390x_features.c | 118 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/syslinux/com32/lib/ |
D | makeerrlist.pl | 17 my($fh) = new FileHandle; 26 if ( $fh->open($root.'//'.$file, '<') ) { 36 while ( defined($line = <$fh>) ) { 59 close($fh);
|
/external/iproute2/doc/actions/ |
D | gact-usage | 38 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/gpxe/src/util/Option/ |
D | ROM.pm | 257 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/ |
D | stack_clash.c | 97 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/syslinux/gpxe/src/util/ |
D | padimg.pl | 33 sysopen ( my $fh, $filename, ( O_WRONLY | O_APPEND ) ) 35 syswrite $fh, ( chr ( $byte ) x $padsize ) 37 close ( $fh );
|
/external/autotest/client/site_tests/platform_FileSize/ |
D | platform_FileSize.py | 39 fh = file(fname, 'w') 41 fh.write(TEXT) 42 fh.close()
|