Home
last modified time | relevance | path

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

12345678

/freebsd/crypto/krb5/src/util/et/
H A Det_c.pl128 (print $fh '/*');
130 (print $fh ' * ' . $outfile . ':');
132 (print $fh
136 (print $fh ' */');
139 (print $fh '#if defined(_WIN32)');
141 (print $fh "# include \"win-mac.h\"");
143 (print $fh '#endif');
145 (print $fh '');
147 (print $fh '#if !defined(_WIN32)');
149 (print $fh 'extern void initialize_' . $table_name .
[all …]
H A Det_h.pl128 (print $fh '/*');
130 (print $fh ' * ' . $outfile . ':');
132 (print $fh
136 (print $fh ' */');
138 (print $fh '');
140 (print $fh '#include <com_err.h>');
142 (print $fh '');
150 (printf $fh "#define %-40s (%dL)\n", $tag,
156 (printf $fh "#define %-40s (%d%06dL)\n", $tag,
174 (print $fh 'Error table too large!');
[all …]
/freebsd/tools/tools/vt/mkkfont/
H A Dmkkfont.c40 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 DKernelDriver149 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 Dfile.c788 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 DSBCommandReturnObject.cpp111 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 DUtil.pm42 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/krb5/src/kadmin/dbutil/
H A Dtdumputil.c62 FILE *fh; member
125 ret = fprintf(h->fh, "%c%s%c", fl.quotechar, qs, fl.quotechar); in writequoted()
127 ret = fprintf(h->fh, "%s", s); in writequoted()
142 rechandle_common(FILE *fh, const char *rectype) in rechandle_common() argument
148 h->fh = fh; in rechandle_common()
158 rechandle_tabsep(FILE *fh, const char *rectype) in rechandle_tabsep() argument
160 struct rechandle *h = rechandle_common(fh, rectype); in rechandle_tabsep()
172 rechandle_csv(FILE *fh, const char *rectype) in rechandle_csv() argument
174 struct rechandle *h = rechandle_common(fh, rectype); in rechandle_csv()
203 return fputs(h->rectype, h->fh); in startrec()
[all …]
/freebsd/lib/libc/tests/secure/
H A Dgenerate-fortify-tests.lua1084 local function write_test_boilerplate(fh, name, body, def)
1085 fh:write("ATF_TC(" .. name .. ");\n")
1086 fh:write("ATF_TC_HEAD(" .. name .. ", tc)\n")
1087 fh:write("{\n")
1089 fh:write(" atf_tc_set_md_var(tc, \"require.user\", \"root\");\n")
1091 fh:write("}\n")
1093 fh:write("ATF_TC_BODY(" .. name .. ", tc)\n")
1094 fh:write("{\n" .. body .. "\n}\n\n")
1245 local function write_test(fh, func, disposition, heap, def)
1367 return write_test_boilerplate(fh, testname, body, def)
[all …]
/freebsd/crypto/openssl/external/perl/Text-Template-1.56/t/
H A Dtaint.t32 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 Dgen-drm_pciids15 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/crypto/openssl/test/recipes/
H A D15-test_mp_rsa.t112 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/stand/efi/libefi/
H A Defihttp.c396 struct file_efihttp *fh; in _efihttp_fs_open() local
404 fh = calloc(1, sizeof(struct file_efihttp)); in _efihttp_fs_open()
405 if (fh == NULL) in _efihttp_fs_open()
407 f->f_fsdata = fh; in _efihttp_fs_open()
408 fh->path = strdup(path); in _efihttp_fs_open()
541 fh->size = 0; in _efihttp_fs_open()
542 fh->is_dir = false; in _efihttp_fs_open()
546 fh->size = strtoul((const char *) in _efihttp_fs_open()
552 fh->is_dir = true; in _efihttp_fs_open()
608 struct file_efihttp *fh; in _efihttp_fs_read() local
[all …]
/freebsd/contrib/netbsd-tests/fs/tmpfs/
H A Dh_tools.c71 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/contrib/pam-krb5/tests/style/
H A Dobsolete-strings-t75 open(my $fh, '<', $path) or BAIL_OUT("Cannot open $path");
76 while (defined(my $line = <$fh>)) {
80 close($fh) or BAIL_OUT("Cannot close $path");
87 close($fh) or BAIL_OUT("Cannot close $path");
92 close($fh) or BAIL_OUT("Cannot close $path");
/freebsd/secure/caroot/
H A Dca-extract.pl91 my ($fh, $label, $certdata) = @_;
224 my $fh = *STDOUT;
242 open($fh, ">", "$outputdir/$filename") or die "Failed to open certificate $outputdir/$filename";
243 print_header($fh, $labels{$it});
244 printcert($fh, $labels{$it}, $certs{$it});
246 close($fh) or die "Unable to close: $filename";
248 print $fh "\n\n\n";
/freebsd/contrib/processor-trace/libipt/src/windows/
H A Dpt_section_windows.c129 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 DSBCommandReturnObject.h52 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 Dfuse_kernel.h583 uint64_t fh; member
626 uint64_t fh; member
655 uint64_t fh; member
661 uint64_t fh; member
668 uint64_t fh; member
675 uint64_t fh; member
687 uint64_t fh; member
708 uint64_t fh; member
743 uint64_t fh; member
821 uint64_t fh; member
[all …]
/freebsd/crypto/krb5/src/util/
H A Dt_bimap.pm48 my ($self, $fh) = @_;
54 print $fh "/* start of ", ref($self), " header template */\n";
55 print $fh $self->substitute($headertemplate);
56 print $fh "/* end of ", ref($self), " header template */\n";
57 $a->output($fh);
58 print $fh "/* start of ", ref($self), " body template */\n";
59 print $fh $self->substitute($bodytemplate);
60 print $fh "/* end of ", ref($self), " body template */\n";
/freebsd/crypto/openssl/util/perl/OpenSSL/Util/
H A DPod.pm99 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 Dstack_dlopen_exec_test.c21 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/contrib/smbfs/lib/smb/
H A Dfile.c55 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/tools/syscalls/
H A Dconfig.lua155 local fh = assert(io.open(file))
157 for nextline in fh:lines() do
204 assert(fh:close())
210 function config.merge(fh)
211 if not fh then
215 local res = assert(config.process(fh))
/freebsd/crypto/openssl/tools/
H A Dc_rehash183 my $fh;
187 if (!open($fh, "-|", join(' ', @_))) {
192 if (!open($fh, "-|", @_)) {
196 binmode($fh, ":crlf");
198 return (<$fh>, <$fh>);

12345678