/netbsd-src/sys/arch/x68k/dev/ |
H A D | ite_tv.c | 271 short fh; in tv_putc() 282 for (fh = 0; fh < FONTHEIGHT; fh++, p += ROWBYTES) in tv_getfont() 285 for (fh = 0; fh < FONTHEIGHT; fh++, p += ROWBYTES) in tv_getfont() 311 short fh, hi, lo; in tv_putc_nm() 323 for (fh = 0; fh < FONTHEIGH 257 short fh; tv_putc() local 297 short fh, hi, lo; tv_putc_nm() local 325 short fh, hi, lo; tv_putc_in() local 353 short fh, hi, lo; tv_putc_bd() local 402 short fh, hi, lo; tv_putc_ul() local 438 short fh, hi, lo; tv_putc_bd_in() local 471 short fh, hi, lo; tv_putc_ul_in() local 507 short fh, hi, lo; tv_putc_bd_ul() local 554 short fh, hi, lo; tv_putc_bd_ul_in() local 606 short fh; tv_cursor() local 648 short fh; tv_clear() local 715 short fh; tv_scroll() local 730 short fh; tv_scroll() local [all...] |
/netbsd-src/external/bsd/am-utils/dist/conf/autofs/ |
H A D | autofs_linux.c | 143 autofs_fh_t *fh; in autofs_get_fh() local 156 fh = ALLOC(autofs_fh_t); in autofs_get_fh() 157 fh->fd = fds[0]; in autofs_get_fh() 158 fh->kernelfd = fds[1]; in autofs_get_fh() 159 fh->ioctlfd = -1; in autofs_get_fh() 160 fh->pending_mounts = NULL; in autofs_get_fh() 161 fh->pending_umounts = NULL; in autofs_get_fh() 163 mp->am_autofs_fh = fh; in autofs_get_fh() 172 autofs_fh_t *fh = mp->am_autofs_fh; in autofs_mounted() local 175 close(fh->kernelfd); in autofs_mounted() [all …]
|
H A D | autofs_solaris_v1.c | 372 autofs_fh_t *fh; in autofs_get_fh() local 378 fh = ALLOC(autofs_fh_t); in autofs_get_fh() 379 memset((voidp) fh, 0, sizeof(autofs_fh_t)); /* Paranoid */ in autofs_get_fh() 391 fh->addr.buf = xstrdup(buf); in autofs_get_fh() 392 fh->addr.len = fh->addr.maxlen = strlen(buf); in autofs_get_fh() 395 fh->direct = (mf->mf_fsflags & FS_DIRECT) ? 1 : 0; in autofs_get_fh() 396 fh->rpc_to = 1; /* XXX: arbitrary */ in autofs_get_fh() 397 fh->mount_to = mp->am_timeo; in autofs_get_fh() 398 fh->path = mp->am_path; in autofs_get_fh() 399 fh->opts = ""; /* XXX: arbitrary */ in autofs_get_fh() [all …]
|
/netbsd-src/external/gpl3/autoconf/dist/lib/Autom4te/ |
H A D | XFile.pm | 115 my $fh = $class->SUPER::new (); 118 $fh->open (@_); 120 $fh; 132 my $fh = shift; 139 ${*$fh}{'autom4te_xfile_file'} = "$file"; 141 if (!$fh->SUPER::open (@_)) 150 binmode $fh if $file =~ /^\s*>/; 161 my $fh = shift; 162 if (!$fh->SUPER::close (@_)) 164 my $file = $fh->name; [all …]
|
/netbsd-src/external/ibm-public/postfix/dist/src/tls/ |
H A D | tls_prng_file.c | 88 TLS_PRNG_SRC *fh; in tls_prng_file_open() local 96 fh = (TLS_PRNG_SRC *) mymalloc(sizeof(*fh)); in tls_prng_file_open() 97 fh->fd = fd; in tls_prng_file_open() 98 fh->name = mystrdup(name); in tls_prng_file_open() 99 fh->timeout = timeout; in tls_prng_file_open() 102 return (fh); in tls_prng_file_open() 108 ssize_t tls_prng_file_read(TLS_PRNG_SRC *fh, size_t len) in tls_prng_file_read() argument 116 msg_info("%s: seed internal pool from file %s", myname, fh->name); in tls_prng_file_read() 118 if (lseek(fh->fd, 0, SEEK_SET) < 0) { in tls_prng_file_read() 120 msg_info("cannot seek entropy file %s: %m", fh->name); in tls_prng_file_read() [all …]
|
/netbsd-src/external/lgpl3/mpfr/dist/tests/ |
H A D | tfpif.c | 42 FILE *fh; in doit() local 64 fh = fopen (filenameCompressed, "w"); in doit() 65 if (fh == NULL) in doit() 79 status = mpfr_fpif_export (fh, x[i]); in doit() 82 fclose (fh); in doit() 91 if (fclose (fh) != 0) in doit() 99 fh = fopen (filenameCompressed, "r"); in doit() 100 if (fh == NULL) in doit() 121 mpfr_fpif_import (y, fh); in doit() 152 fclose (fh); in doit() [all …]
|
/netbsd-src/sys/dev/ |
H A D | firmload.c | 66 firmware_handle_free(firmware_handle_t fh) in firmware_handle_free() argument 69 kmem_free(fh, sizeof(*fh)); in firmware_handle_free() 209 firmware_handle_t fh; in firmware_open() local 225 fh = firmware_handle_alloc(); in firmware_open() 226 KASSERT(fh != NULL); in firmware_open() 247 firmware_handle_free(fh); in firmware_open() 255 firmware_handle_free(fh); in firmware_open() 262 firmware_handle_free(fh); in firmware_open() 268 fh->fh_vp = vp; in firmware_open() 269 fh->fh_size = va.va_size; in firmware_open() [all …]
|
/netbsd-src/external/mpl/dhcp/dist/common/ |
H A D | fddi.c | 53 struct fddi_header fh; local 57 memcpy (fh.fddi_dhost, &to -> hbuf [1], 58 sizeof (fh.fddi_dhost)); 59 memcpy (fh.fddi_shost, 60 &interface -> hw_address.hbuf [1], sizeof (fh.fddi_shost)); 61 fh.fddi_fc = FDDIFC_LLC_ASYNC; 62 memcpy (&buf [*bufix], &fh, sizeof fh); 63 *bufix += sizeof fh; 83 struct fddi_header fh; local 87 memcpy (&from -> hbuf [1], fh.fddi_shost, sizeof fh.fddi_shost);
|
/netbsd-src/sys/arch/arm/arm/ |
H A D | fiq.c | 90 fiq_claim(struct fiqhandler *fh) in fiq_claim() argument 96 if (fh->fh_size > 0x100) in fiq_claim() 113 if (fh->fh_regs != NULL) in fiq_claim() 114 fiq_setregs(fh->fh_regs); in fiq_claim() 116 TAILQ_INSERT_HEAD(&fiqhandler_stack, fh, fh_list); in fiq_claim() 119 fiq_installhandler(fh->fh_func, fh->fh_size); in fiq_claim() 135 fiq_release(struct fiqhandler *fh) in fiq_release() argument 147 if (fh == TAILQ_FIRST(&fiqhandler_stack)) { in fiq_release() 148 if (fh->fh_regs != NULL) in fiq_release() 149 fiq_getregs(fh->fh_regs); in fiq_release() [all …]
|
/netbsd-src/crypto/external/bsd/openssl.old/dist/test/recipes/ |
H A D | 90-test_shlibload.t | 36 (my $fh, my $filename) = tempfile(); 39 ok(check_atexit($fh)); 41 ($fh, $filename) = tempfile(); 44 ok(check_atexit($fh)); 46 ($fh, $filename) = tempfile(); 49 ok(check_atexit($fh)); 51 ($fh, $filename) = tempfile(); 54 ok(check_atexit($fh)); 56 ($fh, $filename) = tempfile(); 59 ok(!check_atexit($fh)); [all …]
|
H A D | 15-test_mp_rsa.t | 97 open(my $fh, "<", $cleartext) or return 0; 98 binmode $fh; 99 read($fh, $msg, 10240); 100 close $fh; 101 open($fh, "<", "rsamptest.dec") or return 0; 102 binmode $fh; 103 read($fh, $dec, 10240); 104 close $fh;
|
/netbsd-src/external/bsd/ntp/dist/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 …]
|
/netbsd-src/external/apache2/llvm/dist/clang/utils/analyzer/ |
H A D | update_plist_test.pl | 14 my $fh = File::Temp->new(); 15 my $filename = $fh->filename; 16 $fh->unlink_on_destroy(1); 22 print $fh $_; 40 print $fh "// CHECK: "; 44 print $fh "// CHECK-NEXT: "; 46 print $fh $_; 49 close ($fh);
|
/netbsd-src/external/bsd/pcc/dist/pcc/mip/ |
H A D | mkext.c | 31 FILE *fc, *fh; variable 161 if ((fh = fopen(hname, "w")) == NULL) { in main() 165 fprintf(fh, "#ifndef _EXTERNAL_H_\n#define _EXTERNAL_H_\n"); in main() 169 fprintf(fh, "#define NEED_%s\n", ch->name); in main() 184 fprintf(fh, "#define NUMBITS %d\n", bitsz); in main() 185 fprintf(fh, "#define BIT2BYTE(bits) " in main() 187 fprintf(fh, "#define BITSET(arr, bit) " in main() 190 fprintf(fh, "#define BITCLEAR(arr, bit) " in main() 193 fprintf(fh, "#define TESTBIT(arr, bit) " in main() 196 fprintf(fh, "typedef %s bittype;\n", bitary); in main() [all …]
|
/netbsd-src/sys/lib/libsa/ |
H A D | nfs.c | 93 u_char fh[NFS_FHSTORE]; member 102 fhstore(int version, u_char *fh) in fhstore() argument 111 len = fh[0] << 24 | fh[1] << 16 | fh[2] << 8 | fh[3]; in fhstore() 132 #define setfh(d, s) fhcopy((d)->version, (s), (d)->fh) 133 #define getfh(d, s) fhcopy((d)->version, (d)->fh, (s)) 158 u_char fh[NFS_FHSTORE]; in nfs_getrootfh() member 206 fhcopy(*versionp, repl->fh, fhp); in nfs_getrootfh() 219 u_char fh[NFS_FHSIZE]; in nfs_lookupfh() member 224 u_char fh[NFS_FHSTORE]; in nfs_lookupfh() member 230 u_char fh[NFS_FHSIZE]; in nfs_lookupfh() member [all …]
|
/netbsd-src/crypto/external/bsd/openssl/dist/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;
|
/netbsd-src/external/lgpl3/mpfr/dist/src/ |
H A D | fpif.c | 225 mpfr_fpif_read_precision_from_file (FILE *fh) in mpfr_fpif_read_precision_from_file() argument 231 if (fh == NULL) in mpfr_fpif_read_precision_from_file() 234 if (fread (buffer, 1, 1, fh) != 1) in mpfr_fpif_read_precision_from_file() 245 if (fread (buffer, precision_size, 1, fh) != 1) in mpfr_fpif_read_precision_from_file() 376 mpfr_fpif_read_exponent_from_file (mpfr_ptr x, FILE * fh) in mpfr_fpif_read_exponent_from_file() argument 384 MPFR_ASSERTD(fh != NULL); in mpfr_fpif_read_exponent_from_file() 386 if (fread (buffer, 1, 1, fh) != 1) in mpfr_fpif_read_exponent_from_file() 410 if (MPFR_UNLIKELY (fread (buffer, exponent_size, 1, fh) != 1)) in mpfr_fpif_read_exponent_from_file() 526 mpfr_fpif_export (FILE *fh, mpfr_ptr x) in mpfr_fpif_export() argument 533 if (fh == NULL) in mpfr_fpif_export() [all …]
|
/netbsd-src/crypto/external/bsd/openssl/dist/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;
|
/netbsd-src/external/gpl2/xcvs/dist/contrib/ |
H A D | pvcs2rcs.in | 342 my $fh = shift; 343 unless (ref $fh) 345 my $fdn = $fh ? $fh : "STDERR"; 346 $fh = new IO::File; 347 $fh->fdopen ($fdn, "w"); 350 $fh->print ($usage); 356 my $fh = shift; 357 unless (ref $fh) 359 my $fdn = $fh ? $fh : "STDOUT"; 360 $fh = new IO::File; [all …]
|
/netbsd-src/external/bsd/nvi/dist/dist/ExtUtils/ |
H A D | Embed.pm | 40 my($fh,@mods,%seen); 55 $fh = \*STDOUT; 58 $fh = new FileHandle "> $file"; 64 print $fh &xsi_header(); 65 print $fh "EXTERN_C void xs_init _((void));\n\n"; 66 print $fh &xsi_protos(@mods); 68 print $fh "\nEXTERN_C void\nxs_init()\n{\n"; 69 print $fh &xsi_body(@mods); 70 print $fh "}\n";
|
/netbsd-src/usr.bin/crunch/crunchide/ |
H A D | exec_coff.c | 60 struct coff_filehdr fh; in check_coff() local 71 if (read(fd, &fh, sizeof fh) != sizeof fh) in check_coff() 74 if (COFF_BADMAG(&fh)) in check_coff()
|
/netbsd-src/tests/fs/tmpfs/ |
H A D | h_tools.c | 68 void *fh; in getfh_main() local 75 fh = NULL; in getfh_main() 78 fh = malloc(fh_size); in getfh_main() 79 if (fh == NULL) { in getfh_main() 89 error = getfh(argv[1], fh, &fh_size); in getfh_main() 93 if (fh != NULL) in getfh_main() 94 free(fh); in getfh_main() 102 error = write(STDOUT_FILENO, fh, fh_size); in getfh_main() 107 free(fh); in getfh_main()
|
/netbsd-src/external/gpl3/gdb/dist/readline/readline/doc/ |
H A D | texi2html | 730 my $fh = shift; 732 &$T2H_print_head_navigation($fh) if $T2H_SECTION_NAVIGATION; 733 my $nw = t2h_print_lines($fh); 736 &$T2H_print_foot_navigation($fh, $nw); 740 print $fh '<HR SIZE="6">' . "\n"; 766 my $fh = shift; 772 &$T2H_print_Top_header($fh); 776 print $fh "<H1>$T2H_NAME{Top}</H1>" 778 t2h_print_lines($fh, $T2H_THIS_SECTION) 784 print $fh [all …]
|
/netbsd-src/lib/libperfuse/ |
H A D | fuse.h | 208 uint64_t fh; member 245 uint64_t fh; member 274 uint64_t fh; member 280 uint64_t fh; member 287 uint64_t fh; member 294 uint64_t fh; member 306 uint64_t fh; member 327 uint64_t fh; member 348 uint64_t fh; member 416 uint64_t fh; member [all …]
|
/netbsd-src/sys/arch/macppc/stand/fixcoff/ |
H A D | fixcoff.c | 128 struct filehdr fh; in main() 152 if (read(fd, &fh, sizeof(fh)) != sizeof(fh)) in main() 155 i = be16toh(*(uint16_t *)fh.f_magic); in main() 160 i = be16toh(*(uint16_t *)fh.f_opthdr); in main() 172 n = be16toh(*(uint16_t *)fh.f_nsect); in main() 127 struct filehdr fh; main() local
|