/freebsd/tools/tools/vt/mkkfont/ |
H A D | mkkfont.c | 40 print_glyphs(struct font_header *fh) 45 gbytes = howmany(fh->fh_width, 8) * fh->fh_height; in print_glyphs() 46 glyph_count = be32toh(fh->fh_glyph_count); in print_glyphs() 74 print_mappings(struct font_header *fh, int map_index) 80 nmappings = be32toh(fh->fh_map_count[map_index]); in print_mappings() 107 print_info(struct font_header *fh) 116 fh->fh_width, fh->fh_height); in print_info() 120 if (fh in print_info() 41 print_glyphs(struct font_header * fh) print_glyphs() argument 75 print_mappings(struct font_header * fh,int map_index) print_mappings() argument 108 print_info(struct font_header * fh) print_info() argument 140 struct font_header fh; main() local [all...] |
/freebsd/tools/tools/kdrv/ |
H A D | KernelDriver | 149 set fh [open $fname r]; 161 while {[gets $fh line] >= 0} { 213 while {[gets $fh line] >= 0} { 222 close $fh; 395 set fh [open $fname a]; 398 puts $fh "\#\# driver: $Drv(driver)"; 399 puts $fh "\# $Drv(description)"; 401 puts $fh $l; 403 puts $fh "\#\# enddriver"; 404 close $fh; [all …]
|
/freebsd/usr.bin/sort/ |
H A D | file.c | 788 file_header_init(struct file_header **fh, const char *fn, size_t file_pos) in file_header_init() argument 791 if (fh && fn) { in file_header_init() 794 *fh = sort_malloc(sizeof(struct file_header)); in file_header_init() 795 (*fh)->file_pos = file_pos; in file_header_init() 796 (*fh)->fr = file_reader_init(fn); in file_header_init() 797 if ((*fh)->fr == NULL) { in file_header_init() 801 line = file_reader_readline((*fh)->fr); in file_header_init() 803 file_reader_free((*fh)->fr); in file_header_init() 804 (*fh)->fr = NULL; in file_header_init() 805 (*fh)->si = NULL; in file_header_init() [all …]
|
/freebsd/contrib/llvm-project/lldb/source/API/ |
H A D | SBCommandReturnObject.cpp | 111 size_t SBCommandReturnObject::PutOutput(FILE *fh) { in PutOutput() argument 112 LLDB_INSTRUMENT_VA(this, fh); in PutOutput() 113 if (fh) { in PutOutput() 116 return ::fprintf(fh, "%s", GetOutput()); in PutOutput() 135 size_t SBCommandReturnObject::PutError(FILE *fh) { in PutError() argument 136 LLDB_INSTRUMENT_VA(this, fh); in PutError() 137 if (fh) { in PutError() 140 return ::fprintf(fh, "%s", GetError()); in PutError() 242 void SBCommandReturnObject::SetImmediateOutputFile(FILE *fh) { in SetImmediateOutputFile() argument 243 LLDB_INSTRUMENT_VA(this, fh); in SetImmediateOutputFile() [all …]
|
/freebsd/contrib/ntp/scripts/lib/NTP/ |
H A D | Util.pm | 42 open my $fh, $cmd or croak "Could not start ntpq: $!"; 44 while (<$fh>) { 66 close $fh or croak "running ntpq failed: $! (exit status $?)"; 99 open my $fh, $cmd or croak "Could not start ntpq: $!"; 101 <$fh> for 1 .. 2; 105 while (<$fh>) { 110 defined ($_ = <$fh>) or last; 124 close $fh or croak "running ntpq failed: $! (exit status $?)"; 133 open my $fh, $cmd or croak "Could not start sntp: $!"; 136 while (<$fh>) { [all …]
|
/freebsd/crypto/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;
|
/freebsd/tools/tools/drm/ |
H A D | gen-drm_pciids | 15 open(my $fh, '<', $header) or die "Can't open Linux header: $!\n"; 23 while (my $line = <$fh>) { 39 close($fh); 47 open(my $fh, '<', $header) or die "Can't open FreeBSD header: $!\n"; 55 while (my $line = <$fh>) { 73 close($fh); 81 open(my $fh, '<', $header) or die "Can't open PCI IDs database: $!\n"; 87 while (my $line = <$fh>) { 109 close($fh);
|
/freebsd/stand/efi/libefi/ |
H A D | efihttp.c | 397 struct file_efihttp *fh; in _efihttp_fs_open() local 405 fh = calloc(1, sizeof(struct file_efihttp)); in _efihttp_fs_open() 406 if (fh == NULL) in _efihttp_fs_open() 408 f->f_fsdata = fh; in _efihttp_fs_open() 409 fh->path = strdup(path); in _efihttp_fs_open() 542 fh->size = 0; in _efihttp_fs_open() 543 fh->is_dir = false; in _efihttp_fs_open() 547 fh->size = strtoul((const char *) in _efihttp_fs_open() 553 fh->is_dir = true; in _efihttp_fs_open() 607 struct file_efihttp *fh; in _efihttp_fs_read() local [all …]
|
/freebsd/crypto/openssl/test/recipes/ |
H A D | 15-test_mp_rsa.t | 112 open(my $fh, "<", $cleartext) or return 0; 113 binmode $fh; 114 read($fh, $msg, 10240); 115 close $fh; 116 open($fh, "<", $decrypted ) or return 0; 117 binmode $fh; 118 read($fh, $dec, 10240); 119 close $fh;
|
/freebsd/lib/libc/tests/secure/ |
H A D | generate-fortify-tests.lua | 1069 local function write_test_boilerplate(fh, name, body) 1070 fh:write("ATF_TC_WITHOUT_HEAD(" .. name .. ");\n") 1071 fh:write("ATF_TC_BODY(" .. name .. ", tc)\n") 1072 fh:write("{\n" .. body .. "\n}\n\n") 1223 local function write_test(fh, func, disposition, heap, def) 1345 return write_test_boilerplate(fh, testname, body) 1360 local fh = io.stdout 1361 fh:write("/* @" .. "generated" .. " by `generate-fortify-tests.lua \"" .. 1363 fh:write("#define _FORTIFY_SOURCE 2\n") 1364 fh:write("#define TMPFILE_SIZE (1024 * 32)\n") [all …]
|
/freebsd/contrib/netbsd-tests/fs/tmpfs/ |
H A D | h_tools.c | 71 void *fh; in getfh_main() local 83 fh = NULL; in getfh_main() 86 fh = malloc(fh_size); in getfh_main() 87 if (fh == NULL) { in getfh_main() 98 error = getfh(argv[1], fh); in getfh_main() 100 error = getfh(argv[1], fh, &fh_size); in getfh_main() 105 if (fh != NULL) in getfh_main() 106 free(fh); in getfh_main() 114 error = write(STDOUT_FILENO, fh, fh_size); in getfh_main() 119 free(fh); in getfh_main()
|
/freebsd/secure/caroot/ |
H A D | MAca-bundle.pl | 113 my ($fh, $label, $certdata) = @_; 277 my $fh = *STDOUT; 284 open($fh, ">", "$outputdir/$filename") or die "Failed to open certificate $filename"; 285 print_header($fh, $labels{$it}); 287 printcert($fh, $labels{$it}, $certs{$it}); 289 close($fh) or die "Unable to close: $filename"; 291 print $fh "\n\n\n";
|
/freebsd/contrib/processor-trace/libipt/src/windows/ |
H A D | pt_section_windows.c | 129 HANDLE fh, mh; in pt_sec_windows_map() local 155 fh = (HANDLE) _get_osfhandle(fd); in pt_sec_windows_map() 157 mh = CreateFileMapping(fh, NULL, PAGE_READONLY, 0, 0, NULL); in pt_sec_windows_map() 234 HANDLE fh; in pt_section_map() local 259 fh = CreateFileA(filename, GENERIC_READ, FILE_SHARE_READ, NULL, in pt_section_map() 261 if (fh == INVALID_HANDLE_VALUE) { in pt_section_map() 268 fh = CreateFileA(filename, GENERIC_READ, FILE_SHARE_WRITE, in pt_section_map() 271 if (fh == INVALID_HANDLE_VALUE) { in pt_section_map() 277 fd = _open_osfhandle((intptr_t) fh, _O_RDONLY); in pt_section_map() 318 CloseHandle(fh); in pt_section_map()
|
/freebsd/contrib/llvm-project/lldb/include/lldb/API/ |
H A D | SBCommandReturnObject.h | 52 size_t PutOutput(FILE *fh); 66 size_t PutError(FILE *fh); 93 void SetImmediateOutputFile(FILE *fh); 98 void SetImmediateErrorFile(FILE *fh); 103 void SetImmediateOutputFile(FILE *fh, bool transfer_ownership); 108 void SetImmediateErrorFile(FILE *fh, bool transfer_ownership);
|
/freebsd/sys/fs/fuse/ |
H A D | fuse_kernel.h | 503 uint64_t fh; member 546 uint64_t fh; member 575 uint64_t fh; member 581 uint64_t fh; member 588 uint64_t fh; member 595 uint64_t fh; member 607 uint64_t fh; member 628 uint64_t fh; member 659 uint64_t fh; member 737 uint64_t fh; member [all …]
|
/freebsd/crypto/openssl/util/perl/OpenSSL/Util/ |
H A D | Pod.pm | 99 my $fh = undef; 106 open $fh, $input or die "Trying to read $filename: $!\n"; 108 $input = $fh; 168 if (defined $fh) { 169 close $fh;
|
/freebsd/tests/sys/vm/stack/ |
H A D | stack_dlopen_exec_test.c | 21 void *fh; in checkstack() local 24 fh = dlopen("libsoxstack.so", RTLD_LAZY); in checkstack() 25 ATF_REQUIRE(fh != NULL); in checkstack() 26 socheckstack = dlsym(fh, "checkstack"); in checkstack()
|
/freebsd/sys/tools/syscalls/ |
H A D | config.lua | 154 local fh = assert(io.open(file)) 156 for nextline in fh:lines() do 203 assert(fh:close()) 209 function config.merge(fh) 210 if not fh then 214 local res = assert(config.process(fh))
|
/freebsd/contrib/smbfs/lib/smb/ |
H A D | file.c | 55 smb_read(struct smb_ctx *ctx, smbfh fh, off_t offset, size_t count, char *dst) in smb_read() argument 59 rwrq.ioc_fh = fh; in smb_read() 69 smb_write(struct smb_ctx *ctx, smbfh fh, off_t offset, size_t count, in smb_write() argument 74 rwrq.ioc_fh = fh; in smb_write()
|
/freebsd/sys/fs/nfsserver/ |
H A D | nfs_fha_new.c | 43 static int fhanew_get_fh(uint64_t *fh, int v3, struct mbuf **md, 154 fhanew_get_fh(uint64_t *fh, int v3, struct mbuf **md, caddr_t *dpos) in fhanew_get_fh() argument 185 *fh = t; in fhanew_get_fh() 307 i->fh = ++random_fh; in fha_extract_info() 346 error = fhanew_get_fh(&i->fh, v3, &md, &dpos); in fha_extract_info() 359 fha_hash_entry_new(u_int64_t fh) in fha_hash_entry_new() argument 364 e->fh = fh; in fha_hash_entry_new() 397 fha_hash_entry_lookup(struct fha_params *softc, u_int64_t fh) in fha_hash_entry_lookup() argument 402 fhs = &softc->fha_hash[fh % FHA_HASH_SIZE]; in fha_hash_entry_lookup() 403 new_fhe = fha_hash_entry_new(fh); in fha_hash_entry_lookup() [all …]
|
/freebsd/usr.sbin/ppp/ |
H A D | hdlc.c | 363 const struct frameheader *fh; in hdlc_Detect() local 368 for (fh = FrameHeaders; fh->len; fh++) { in hdlc_Detect() 369 h = issync ? fh->data + 1 : fh->data; in hdlc_Detect() 370 len = issync ? fh->len - 1 : fh->len; in hdlc_Detect()
|
/freebsd/crypto/heimdal/lib/roken/ |
H A D | get_window_size.c | 104 intptr_t fh = 0; in get_window_size() local 107 fh = _get_osfhandle(fd); in get_window_size() 108 if (fh != (intptr_t) INVALID_HANDLE_VALUE && in get_window_size() 109 GetConsoleScreenBufferInfo((HANDLE) fh, &sb_info)) { in get_window_size()
|
/freebsd/sys/nlm/ |
H A D | nlm_advlock.c | 78 int svid, size_t fhlen, void *fh, off_t size, bool_t reclaim); 82 int svid, size_t fhlen, void *fh, off_t size); 86 int svid, size_t fhlen, void *fh, off_t size); 91 rpcvers_t vers, size_t fhlen, void *fh, off_t size, 201 union nfsfh fh; in nlm_advlock_internal() local 231 nmp->nm_getinfo(vp, fh.fh_bytes, &fhlen, &ss, &is_v3, &size, &timo); in nlm_advlock_internal() 308 svid, fhlen, &fh.fh_bytes, size, reclaim); in nlm_advlock_internal() 313 svid, fhlen, &fh.fh_bytes, size); in nlm_advlock_internal() 325 flags, svid, fhlen, &fh.fh_bytes, in nlm_advlock_internal() 331 vp, op, fl, flags, svid, fhlen, &fh.fh_bytes, in nlm_advlock_internal() [all …]
|
/freebsd/crypto/openssl/Configurations/ |
H A D | 15-android.conf | 43 if (open my $fh, "<$ndk_src_props") { 45 while(<$fh>) { 51 close $fh; 88 open my $fh, $path or die "Could not open '$path' $!"; 89 while (<$fh>) { 95 close $fh;
|
/freebsd/crypto/openssl/util/ |
H A D | mk-fipsmodule-cnf.pl | 28 open my $fh, "<:raw", $module_name or die "Trying to open $module_name: $!"; 29 read $fh, my $data, $module_size or die "Trying to read $module_name: $!"; 30 close $fh;
|