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

12345

/freebsd-head/contrib/netbsd-tests/usr.bin/xlint/lint1/
H A Dd_typename_as_var.c6 } fh; typedef in typeref:struct:__anon78
9 fh h;
/freebsd-head/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-head/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-head/contrib/file/python/
H A Dsetup.py7 with open('README.md', 'r') as fh:
8 long_description = fh.read()
/freebsd-head/sys/arm/arm/
H A Dfiq.c96 fiq_claim(struct fiqhandler *fh) argument
102 if (fh->fh_size > 0x100)
119 if (fh->fh_regs != NULL)
120 fiq_setregs(fh->fh_regs);
122 TAILQ_INSERT_HEAD(&fiqhandler_stack, fh, fh_list);
125 fiq_installhandler(fh->fh_func, fh->fh_size);
141 fiq_release(struct fiqhandler *fh) argument
153 if (fh == TAILQ_FIRST(&fiqhandler_stack)) {
154 if (fh
[all...]
/freebsd-head/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-head/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-head/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-head/contrib/llvm-project/lldb/include/lldb/API/
H A DSBCommandReturnObject.h43 size_t PutOutput(FILE *fh);
49 size_t PutError(FILE *fh);
68 void SetImmediateOutputFile(FILE *fh);
70 void SetImmediateErrorFile(FILE *fh);
72 void SetImmediateOutputFile(FILE *fh, bool transfer_ownership);
74 void SetImmediateErrorFile(FILE *fh, bool transfer_ownership);
/freebsd-head/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;
/freebsd-head/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-head/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-head/secure/caroot/
H A DMAca-bundle.pl105 my ($fh, $label, $certdata) = @_;
249 my $fh = *STDOUT;
256 open($fh, ">", "$outputdir/$filename") or die "Failed to open certificate $filename";
257 print_header($fh, $labels{$it});
259 printcert($fh, $labels{$it}, $certs{$it});
261 close($fh) or die "Unable to close: $filename";
263 print $fh "\n\n\n";
/freebsd-head/usr.bin/sort/
H A Dfile.c897 file_header_init(struct file_header **fh, const char *fn, size_t file_pos) argument
900 if (fh && fn) {
903 *fh = sort_malloc(sizeof(struct file_header));
904 (*fh)->file_pos = file_pos;
905 (*fh)->fr = file_reader_init(fn);
906 if ((*fh)->fr == NULL) {
910 line = file_reader_readline((*fh)->fr);
912 file_reader_free((*fh)->fr);
913 (*fh)->fr = NULL;
914 (*fh)
926 file_header_close(struct file_header **fh) argument
948 file_header_swap(struct file_header **fh, size_t i1, size_t i2) argument
964 file_header_heap_swim(struct file_header **fh, size_t indx) argument
984 file_header_heap_sink(struct file_header **fh, size_t indx, size_t size) argument
1014 file_header_list_rearrange_from_header(struct file_header **fh, size_t size) argument
1024 file_header_list_push(struct file_header *f, struct file_header **fh, size_t size) argument
1040 file_header_print(struct file_header *fh, FILE *f_out, struct last_printed *lp) argument
1060 file_header_read_next(struct file_header *fh) argument
1087 file_headers_merge(size_t fnum, struct file_header **fh, FILE *f_out) argument
1122 struct file_header **fh; local
[all...]
/freebsd-head/contrib/llvm-project/lldb/source/API/
H A DSBCommandReturnObject.cpp108 size_t SBCommandReturnObject::PutOutput(FILE *fh) { argument
109 LLDB_RECORD_METHOD(size_t, SBCommandReturnObject, PutOutput, (FILE *), fh);
111 if (fh) {
114 return ::fprintf(fh, "%s", GetOutput());
119 size_t SBCommandReturnObject::PutError(FILE *fh) { argument
120 LLDB_RECORD_METHOD(size_t, SBCommandReturnObject, PutError, (FILE *), fh);
122 if (fh) {
125 return ::fprintf(fh, "%s", GetError());
232 void SBCommandReturnObject::SetImmediateOutputFile(FILE *fh) { argument
234 (FILE *), fh);
239 SetImmediateErrorFile(FILE *fh) argument
246 SetImmediateOutputFile(FILE *fh, bool transfer_ownership) argument
255 SetImmediateErrorFile(FILE *fh, bool transfer_ownership) argument
[all...]
/freebsd-head/contrib/libedit/
H A Dmakelist39 USAGE="Usage: $0 -h|-fc|-fh|-bh <filenames>"
67 # XXX: need a space between name and prototype so that -fc and -fh
125 -fh)
/freebsd-head/sys/nfs/
H A Dnfs_fha.h69 u_int64_t fh; member in struct:fha_hash_entry
85 u_int64_t fh; member in struct:fha_info
95 int (*get_fh)(uint64_t *fh, int v3, struct mbuf **md, caddr_t *dpos);
/freebsd-head/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-head/contrib/processor-trace/libipt/src/windows/
H A Dpt_section_windows.c129 HANDLE fh, mh; local
155 fh = (HANDLE) _get_osfhandle(fd);
157 mh = CreateFileMapping(fh, NULL, PAGE_READONLY, 0, 0, NULL);
234 HANDLE fh; local
259 fh = CreateFileA(filename, GENERIC_READ, FILE_SHARE_READ, NULL,
261 if (fh == INVALID_HANDLE_VALUE) {
268 fh = CreateFileA(filename, GENERIC_READ, FILE_SHARE_WRITE,
271 if (fh == INVALID_HANDLE_VALUE) {
277 fd = _open_osfhandle((intptr_t) fh, _O_RDONLY);
318 CloseHandle(fh);
[all...]
/freebsd-head/sys/fs/fuse/
H A Dfuse_kernel.h393 uint64_t fh; member in struct:fuse_getattr_in
436 uint64_t fh; member in struct:fuse_setattr_in
465 uint64_t fh; member in struct:fuse_open_out
471 uint64_t fh; member in struct:fuse_release_in
478 uint64_t fh; member in struct:fuse_flush_in
485 uint64_t fh; member in struct:fuse_read_in
497 uint64_t fh; member in struct:fuse_write_in
518 uint64_t fh; member in struct:fuse_fsync_in
549 uint64_t fh; member in struct:fuse_lk_in
625 uint64_t fh; member in struct:fuse_ioctl_in
646 uint64_t fh; member in struct:fuse_poll_in
662 uint64_t fh; member in struct:fuse_fallocate_in
[all...]
/freebsd-head/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);

Completed in 609 milliseconds

12345