Searched refs:fh (Results 1 - 25 of 102) sorted by relevance

12345

/freebsd-11-stable/contrib/netbsd-tests/usr.bin/xlint/lint1/
H A Dd_typename_as_var.c6 } fh; typedef in typeref:struct:__anon4747
9 fh h;
/freebsd-11-stable/tools/tools/vt/mkkfont/
H A Dmkkfont.c57 print_glyphs(struct file_header *fh) argument
62 gbytes = howmany(fh->width, 8) * fh->height;
63 glyph_count = be32toh(fh->glyph_count);
91 print_mappings(struct file_header *fh, int map_index) argument
97 nmappings = be32toh(fh->map_count[map_index]);
124 print_info(struct file_header *fh) argument
133 fh->width, fh->height);
137 if (fh
156 struct file_header fh; local
[all...]
/freebsd-11-stable/contrib/opie/libopie/
H A Dlock.c93 int fh, waits = 0, rval = -1, pid, t, i; local
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,
[all...]
H A Dunlock.c47 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); variable
/freebsd-11-stable/contrib/file/python/
H A Dsetup.py7 with open('README.md', 'r') as fh:
8 long_description = fh.read()
/freebsd-11-stable/sys/arm/arm/
H A Dfiq.c94 fiq_claim(struct fiqhandler *fh) argument
100 if (fh->fh_size > 0x100)
117 if (fh->fh_regs != NULL)
118 fiq_setregs(fh->fh_regs);
120 TAILQ_INSERT_HEAD(&fiqhandler_stack, fh, fh_list);
123 fiq_installhandler(fh->fh_func, fh->fh_size);
139 fiq_release(struct fiqhandler *fh) argument
151 if (fh == TAILQ_FIRST(&fiqhandler_stack)) {
152 if (fh
[all...]
/freebsd-11-stable/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-11-stable/tools/tools/kdrv/
H A DKernelDriver150 set fh [open $fname r];
162 while {[gets $fh line] >= 0} {
214 while {[gets $fh line] >= 0} {
223 close $fh;
396 set fh [open $fname a];
399 puts $fh "\#\# driver: $Drv(driver)";
400 puts $fh "\# $Drv(description)";
402 puts $fh $l;
404 puts $fh "\#\# enddriver";
405 close $fh;
[all...]
/freebsd-11-stable/tools/regression/priv/
H A Dpriv_vfs_fhstat.c50 static fhandle_t fh; variable
59 if (getfh(fpath, &fh) < 0) {
72 error = fhstat(&fh, &sb);
H A Dpriv_vfs_fhstatfs.c49 static fhandle_t fh; variable
58 if (getfh(fpath, &fh) < 0) {
71 error = fhstatfs(&fh, &sf);
H A Dpriv_vfs_getfh.c60 fhandle_t fh; local
63 error = getfh(fpath, &fh);
H A Dpriv_vfs_fhopen.c50 static fhandle_t fh; variable
59 if (getfh(fpath, &fh) < 0) {
71 fd = fhopen(&fh, O_RDONLY);
/freebsd-11-stable/contrib/llvm-project/lldb/include/lldb/API/
H A DSBCommandReturnObject.h47 size_t PutOutput(FILE *fh); // DEPRECATED
57 size_t PutError(FILE *fh); // DEPRECATED
79 void SetImmediateOutputFile(FILE *fh); // DEPRECATED
81 void SetImmediateErrorFile(FILE *fh); // DEPRECATED
83 void SetImmediateOutputFile(FILE *fh, bool transfer_ownership); // DEPRECATED
85 void SetImmediateErrorFile(FILE *fh, bool transfer_ownership); // DEPRECATED
/freebsd-11-stable/contrib/smbfs/lib/smb/
H A Dfile.c55 smb_read(struct smb_ctx *ctx, smbfh fh, off_t offset, size_t count, char *dst) argument
59 rwrq.ioc_fh = fh;
69 smb_write(struct smb_ctx *ctx, smbfh fh, off_t offset, size_t count, argument
74 rwrq.ioc_fh = fh;
H A Dprint.c82 smb_smb_close_print_file(struct smb_ctx *ctx, smbfh fh) argument
92 mb_put_mem(mbp, (char*)&fh, 2);
/freebsd-11-stable/crypto/heimdal/lib/roken/
H A Dget_window_size.c104 intptr_t fh = 0; local
107 fh = _get_osfhandle(fd);
108 if (fh != (intptr_t) INVALID_HANDLE_VALUE &&
109 GetConsoleScreenBufferInfo((HANDLE) fh, &sb_info)) {
/freebsd-11-stable/tools/tools/drm/
H A Dgen-drm_pciids16 open(my $fh, '<', $header) or die "Can't open Linux header: $!\n";
24 while (my $line = <$fh>) {
40 close($fh);
48 open(my $fh, '<', $header) or die "Can't open FreeBSD header: $!\n";
56 while (my $line = <$fh>) {
74 close($fh);
82 open(my $fh, '<', $header) or die "Can't open PCI IDs database: $!\n";
88 while (my $line = <$fh>) {
110 close($fh);
/freebsd-11-stable/usr.bin/sort/
H A Dfile.c898 file_header_init(struct file_header **fh, const char *fn, size_t file_pos) argument
901 if (fh && fn) {
904 *fh = sort_malloc(sizeof(struct file_header));
905 (*fh)->file_pos = file_pos;
906 (*fh)->fr = file_reader_init(fn);
907 if ((*fh)->fr == NULL) {
911 line = file_reader_readline((*fh)->fr);
913 file_reader_free((*fh)->fr);
914 (*fh)->fr = NULL;
915 (*fh)
927 file_header_close(struct file_header **fh) argument
949 file_header_swap(struct file_header **fh, size_t i1, size_t i2) argument
965 file_header_heap_swim(struct file_header **fh, size_t indx) argument
985 file_header_heap_sink(struct file_header **fh, size_t indx, size_t size) argument
1015 file_header_list_rearrange_from_header(struct file_header **fh, size_t size) argument
1025 file_header_list_push(struct file_header *f, struct file_header **fh, size_t size) argument
1041 file_header_print(struct file_header *fh, FILE *f_out, struct last_printed *lp) argument
1061 file_header_read_next(struct file_header *fh) argument
1088 file_headers_merge(size_t fnum, struct file_header **fh, FILE *f_out) argument
1123 struct file_header **fh; local
[all...]
/freebsd-11-stable/sys/nfs/
H A Dnfs_fha.h67 u_int64_t fh; member in struct:fha_hash_entry
83 u_int64_t fh; member in struct:fha_info
93 int (*get_fh)(uint64_t *fh, int v3, struct mbuf **md, caddr_t *dpos);
/freebsd-11-stable/contrib/llvm-project/lldb/source/API/
H A DSBCommandReturnObject.cpp118 size_t SBCommandReturnObject::PutOutput(FILE *fh) { argument
119 LLDB_RECORD_DUMMY(size_t, SBCommandReturnObject, PutOutput, (FILE *), fh);
120 if (fh) {
123 return ::fprintf(fh, "%s", GetOutput());
143 size_t SBCommandReturnObject::PutError(FILE *fh) { argument
144 LLDB_RECORD_DUMMY(size_t, SBCommandReturnObject, PutError, (FILE *), fh);
145 if (fh) {
148 return ::fprintf(fh, "%s", GetError());
256 void SBCommandReturnObject::SetImmediateOutputFile(FILE *fh) { argument
258 (FILE *), fh);
263 SetImmediateErrorFile(FILE *fh) argument
270 SetImmediateOutputFile(FILE *fh, bool transfer_ownership) argument
278 SetImmediateErrorFile(FILE *fh, bool transfer_ownership) argument
[all...]
/freebsd-11-stable/secure/caroot/
H A DMAca-bundle.pl116 my ($fh, $label, $certdata) = @_;
280 my $fh = *STDOUT;
287 open($fh, ">", "$outputdir/$filename") or die "Failed to open certificate $filename";
288 print_header($fh, $labels{$it});
290 printcert($fh, $labels{$it}, $certs{$it});
292 close($fh) or die "Unable to close: $filename";
294 print $fh "\n\n\n";
/freebsd-11-stable/contrib/netbsd-tests/fs/tmpfs/
H A Dh_tools.c71 void *fh; local
83 fh = NULL;
86 fh = malloc(fh_size);
87 if (fh == NULL) {
98 error = getfh(argv[1], fh);
100 error = getfh(argv[1], fh, &fh_size);
105 if (fh != NULL)
106 free(fh);
114 error = write(STDOUT_FILENO, fh, fh_size);
119 free(fh);
[all...]
/freebsd-11-stable/contrib/smbfs/smbutil/
H A Dprint.c61 smbfh fh; local
112 error = smb_smb_open_print_file(ctx, 0, 1, fnamebuf, &fh);
128 i = smb_write(ctx, fh, offset, count, buf);
142 error = smb_smb_close_print_file(ctx, fh);
/freebsd-11-stable/contrib/ntp/lib/isc/win32/
H A Dfile.c204 int fh; local
209 if ((fh = open(file, _O_RDONLY | _O_BINARY)) < 0)
212 if (!GetFileTime((HANDLE) _get_osfhandle(fh),
217 close(fh);
221 close(fh);
227 int fh; local
231 if ((fh = open(file, _O_RDWR | _O_BINARY)) < 0)
239 if (!SetFileTime((HANDLE) _get_osfhandle(fh),
244 close(fh);
249 close(fh);
529 int fh; local
[all...]
/freebsd-11-stable/sys/net/
H A Dif_fddisubr.c103 struct fddi_header *fh; local
196 fh = mtod(m, struct fddi_header *);
198 switch (fh->fddi_fc & (FDDIFC_C|FDDIFC_L|FDDIFC_F)) {
201 if ((fh->fddi_fc & FDDIFC_Z) > 7)
207 if (fh->fddi_fc & FDDIFC_Z)
213 if ((fh->fddi_fc & FDDIFC_Z) == 0)
223 if (fh->fddi_dhost[0] & 1)
256 fh = mtod(m, struct fddi_header *);
257 fh->fddi_fc = FDDIFC_LLC_ASYNC|FDDIFC_LLC_PRIO4;
258 bcopy((caddr_t)edst, (caddr_t)fh
312 struct fddi_header *fh; local
[all...]

Completed in 146 milliseconds

12345