| /freebsd-13-stable/tools/tools/vt/mkkfont/ |
| HD | mkkfont.c | 40 print_glyphs(struct font_header *fh) in print_glyphs() argument 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) in print_mappings() argument 80 nmappings = be32toh(fh->fh_map_count[map_index]); in print_mappings() 107 print_info(struct font_header *fh) in print_info() argument 116 fh->fh_width, fh->fh_height); in print_info() 120 if (fh->fh_map_count[i] > 0) in print_info() 127 be32toh(fh->fh_map_count[0]), in print_info() 128 be32toh(fh->fh_map_count[1]), in print_info() [all …]
|
| /freebsd-13-stable/contrib/opie/libopie/ |
| HD | lock.c | 93 int fh, waits = 0, rval = -1, pid, t, i; variable 145 fh = -1; 146 while (fh < 0) { 151 if ((fh = open(__opie_lockfilename, O_WRONLY | O_CREAT | O_EXCL, 0600)) < 0) { 158 if ((fh = open(__opie_lockfilename, O_RDONLY, 0600)) < 0) 160 if ((i = read(fh, buffer, sizeof(buffer))) <= 0) 188 close(fh); 189 fh = 0; 200 if (fstat(fh, &statbuf[1]) < 0) 209 if (lseek(fh, 0, SEEK_SET)) { [all …]
|
| HD | unlock.c | 47 int fh, rval = -1, pid, t, i; variable 56 if (!(fh = open(__opie_lockfilename, O_RDWR, 0600))) 59 if ((i = read(fh, buffer, sizeof(buffer))) < 0) 92 if (fh) 93 close(fh);
|
| /freebsd-13-stable/tools/tools/kdrv/ |
| HD | 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-13-stable/usr.bin/sort/ |
| HD | 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-13-stable/sys/arm/arm/ |
| HD | fiq.c | 86 fiq_claim(struct fiqhandler *fh) in fiq_claim() argument 92 if (fh->fh_size > 0x100) in fiq_claim() 109 if (fh->fh_regs != NULL) in fiq_claim() 110 fiq_setregs(fh->fh_regs); in fiq_claim() 112 TAILQ_INSERT_HEAD(&fiqhandler_stack, fh, fh_list); in fiq_claim() 115 fiq_installhandler(fh->fh_func, fh->fh_size); in fiq_claim() 131 fiq_release(struct fiqhandler *fh) in fiq_release() argument 143 if (fh == TAILQ_FIRST(&fiqhandler_stack)) { in fiq_release() 144 if (fh->fh_regs != NULL) in fiq_release() 145 fiq_getregs(fh->fh_regs); in fiq_release() [all …]
|
| /freebsd-13-stable/contrib/llvm-project/lldb/source/API/ |
| HD | 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-13-stable/contrib/ntp/scripts/lib/NTP/ |
| HD | 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-13-stable/tools/tools/drm/ |
| HD | 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-13-stable/stand/efi/libefi/ |
| HD | efihttp.c | 398 struct file_efihttp *fh; in _efihttp_fs_open() local 406 fh = calloc(1, sizeof(struct file_efihttp)); in _efihttp_fs_open() 407 if (fh == NULL) in _efihttp_fs_open() 409 f->f_fsdata = fh; in _efihttp_fs_open() 410 fh->path = strdup(path); in _efihttp_fs_open() 543 fh->size = 0; in _efihttp_fs_open() 544 fh->is_dir = false; in _efihttp_fs_open() 548 fh->size = strtoul((const char *) in _efihttp_fs_open() 554 fh->is_dir = true; in _efihttp_fs_open() 608 struct file_efihttp *fh; in _efihttp_fs_read() local [all …]
|
| /freebsd-13-stable/contrib/netbsd-tests/fs/tmpfs/ |
| HD | 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-13-stable/contrib/processor-trace/libipt/src/windows/ |
| HD | 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-13-stable/contrib/llvm-project/lldb/include/lldb/API/ |
| HD | 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-13-stable/sys/fs/fuse/ |
| HD | fuse_kernel.h | 497 uint64_t fh; member 540 uint64_t fh; member 569 uint64_t fh; member 575 uint64_t fh; member 582 uint64_t fh; member 589 uint64_t fh; member 601 uint64_t fh; member 622 uint64_t fh; member 653 uint64_t fh; member 731 uint64_t fh; member [all …]
|
| /freebsd-13-stable/secure/caroot/ |
| HD | MAca-bundle.pl | 108 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-13-stable/tests/sys/vm/stack/ |
| HD | 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-13-stable/contrib/smbfs/lib/smb/ |
| HD | 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-13-stable/usr.sbin/ppp/ |
| HD | 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-13-stable/sys/fs/nfsserver/ |
| HD | nfs_fha_new.c | 44 static int fhanew_get_fh(uint64_t *fh, int v3, struct mbuf **md, 155 fhanew_get_fh(uint64_t *fh, int v3, struct mbuf **md, caddr_t *dpos) in fhanew_get_fh() argument 186 *fh = t; in fhanew_get_fh() 308 i->fh = ++random_fh; in fha_extract_info() 347 error = fhanew_get_fh(&i->fh, v3, &md, &dpos); in fha_extract_info() 360 fha_hash_entry_new(u_int64_t fh) in fha_hash_entry_new() argument 365 e->fh = fh; in fha_hash_entry_new() 398 fha_hash_entry_lookup(struct fha_params *softc, u_int64_t fh) in fha_hash_entry_lookup() argument 403 fhs = &softc->fha_hash[fh % FHA_HASH_SIZE]; in fha_hash_entry_lookup() 404 new_fhe = fha_hash_entry_new(fh); in fha_hash_entry_lookup() [all …]
|
| /freebsd-13-stable/crypto/heimdal/lib/roken/ |
| HD | 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-13-stable/sys/compat/ndis/ |
| HD | subr_ndis.c | 2710 ndis_fh *fh; member 2727 nc->fh->nf_vp = lf; in NdisCheckModule() 2728 nc->fh->nf_map = NULL; in NdisCheckModule() 2729 nc->fh->nf_type = NDIS_FH_TYPE_MODULE; in NdisCheckModule() 2730 nc->fh->nf_maplen = (kldend - kldstart) & 0xFFFFFFFF; in NdisCheckModule() 2750 ndis_fh *fh; local 2762 fh = ExAllocatePoolWithTag(NonPagedPool, sizeof(ndis_fh), 0); 2763 if (fh == NULL) { 2769 fh->nf_name = afilename; 2791 nc.fh = fh; [all …]
|
| /freebsd-13-stable/sys/contrib/openzfs/module/os/linux/zfs/ |
| HD | zpl_export.c | 35 zpl_encode_fh(struct inode *ip, __u32 *fh, int *max_len, struct inode *parent) argument 38 zpl_encode_fh(struct dentry *dentry, __u32 *fh, int *max_len, int connectable) 53 fid = (fid_t *)fh; 72 zpl_fh_to_dentry(struct super_block *sb, struct fid *fh, argument 75 fid_t *fid = (fid_t *)fh;
|
| /freebsd-13-stable/sys/nlm/ |
| HD | nlm_advlock.c | 79 int svid, size_t fhlen, void *fh, off_t size, bool_t reclaim); 83 int svid, size_t fhlen, void *fh, off_t size); 87 int svid, size_t fhlen, void *fh, off_t size); 92 rpcvers_t vers, size_t fhlen, void *fh, off_t size, 202 union nfsfh fh; in nlm_advlock_internal() local 232 nmp->nm_getinfo(vp, fh.fh_bytes, &fhlen, &ss, &is_v3, &size, &timo); in nlm_advlock_internal() 309 svid, fhlen, &fh.fh_bytes, size, reclaim); in nlm_advlock_internal() 314 svid, fhlen, &fh.fh_bytes, size); in nlm_advlock_internal() 326 flags, svid, fhlen, &fh.fh_bytes, in nlm_advlock_internal() 332 vp, op, fl, flags, svid, fhlen, &fh.fh_bytes, in nlm_advlock_internal() [all …]
|
| /freebsd-13-stable/sys/tools/ |
| HD | makesyscalls.lua | 204 local fh = io.popen(shcmd) 205 local output = fh:read("a") 207 fh:close() 228 local fh = assert(io.open(file)) 230 for nextline in fh:lines() do 293 assert(io.close(fh)) 306 local fh = io.open(file) 307 if fh == nil then 314 for nextline in fh:lines() do 322 assert(io.close(fh)) [all …]
|
| /freebsd-13-stable/contrib/smbfs/smbutil/ |
| HD | print.c | 61 smbfh fh; in cmd_print() local 112 error = smb_smb_open_print_file(ctx, 0, 1, fnamebuf, &fh); in cmd_print() 128 i = smb_write(ctx, fh, offset, count, buf); in cmd_print() 142 error = smb_smb_close_print_file(ctx, fh); in cmd_print()
|