/freebsd-9.3-release/sys/sys/ |
H A D | file.h | 79 off_t foffset_lock(struct file *fp, int flags); 80 void foffset_lock_uio(struct file *fp, struct uio *uio, int flags); 81 void foffset_unlock(struct file *fp, off_t val, int flags); 82 void foffset_unlock_uio(struct file *fp, struct uio *uio, int flags); 85 foffset_get(struct file *fp) argument 88 return (foffset_lock(fp, FOF_NOLOCK)); 91 typedef int fo_rdwr_t(struct file *fp, struct uio *uio, 94 typedef int fo_truncate_t(struct file *fp, off_t length, 96 typedef int fo_ioctl_t(struct file *fp, u_long com, void *data, 98 typedef int fo_poll_t(struct file *fp, in 283 fo_read(struct file *fp, struct uio *uio, struct ucred *active_cred, int flags, struct thread *td) argument 291 fo_write(struct file *fp, struct uio *uio, struct ucred *active_cred, int flags, struct thread *td) argument 299 fo_truncate(struct file *fp, off_t length, struct ucred *active_cred, struct thread *td) argument 307 fo_ioctl(struct file *fp, u_long com, void *data, struct ucred *active_cred, struct thread *td) argument 315 fo_poll(struct file *fp, int events, struct ucred *active_cred, struct thread *td) argument 323 fo_stat(struct file *fp, struct stat *sb, struct ucred *active_cred, struct thread *td) argument 331 fo_close(struct file *fp, struct thread *td) argument 338 fo_kqfilter(struct file *fp, struct knote *kn) argument 345 fo_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, struct thread *td) argument 353 fo_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, struct thread *td) argument [all...] |
/freebsd-9.3-release/sys/dev/hwpmc/ |
H A D | hwpmc_arm.c | 71 uintptr_t pc, r, stackstart, stackend, fp; local 87 fp = PMC_TRAPFRAME_TO_FP(tf); 90 !PMC_IN_KERNEL_STACK(fp, stackstart, stackend)) 95 r = fp - sizeof(uintptr_t); 105 r = fp - 3 * sizeof(uintptr_t); 108 fp = *(uintptr_t *)r; 109 if (!PMC_IN_KERNEL_STACK(fp, stackstart, stackend)) 120 uintptr_t pc, r, oldfp, fp; local 134 oldfp = fp = PMC_TRAPFRAME_TO_FP(tf); 137 !PMC_IN_USERSPACE(fp)) [all...] |
H A D | hwpmc_x86.c | 78 uintptr_t fp, oldfp, pc, r, sp; local 84 oldfp = fp = PMC_TRAPFRAME_TO_FP(tf); 89 r = fp + sizeof(uintptr_t); /* points to return address */ 106 copyin((void *) fp, &fp, sizeof(fp)) != 0) 115 if (fp < oldfp) 118 r = fp + sizeof(uintptr_t); /* address of return address */ 119 oldfp = fp; 122 copyin((void *) fp, 158 uintptr_t fp, pc, r, sp, stackstart, stackend; local [all...] |
/freebsd-9.3-release/contrib/amd/fsinfo/ |
H A D | wr_fstab.c | 55 static void write_aix1_dkrmount(FILE *ef, char *hn, fsmount *fp); 57 static void write_aix3_dkrmount(FILE *ef, char *hn, fsmount *fp); 61 static void write_generic_dkrmount(FILE *ef, char *hn, fsmount *fp); 63 static void write_ultrix_dkrmount(FILE *ef, char *hn, fsmount *fp); 70 void (*op_mount) (FILE *ef, char *hn, fsmount *fp); 124 write_aix1_dkrmount(FILE *ef, char *hn, fsmount *fp) argument 126 char *h = strdup(fp->f_ref->m_dk->d_host->h_hostname); 134 fp->f_localname, 137 fp->f_volname, 138 fp 173 write_aix3_dkrmount(FILE *ef, char *hn, fsmount *fp) argument 207 write_ultrix_dkrmount(FILE *ef, char *hn, fsmount *fp) argument 241 write_generic_dkrmount(FILE *ef, char *hn, fsmount *fp) argument 301 fsmount *fp; local [all...] |
/freebsd-9.3-release/bin/sh/ |
H A D | show.c | 71 shtree(union node *n, int ind, char *pfx, FILE *fp) argument 79 indent(ind, pfx, fp); 90 shtree(n->nbinary.ch1, ind, NULL, fp); 92 fputs(s, fp); 93 shtree(n->nbinary.ch2, ind, NULL, fp); 96 shcmd(n, fp); 98 putc('\n', fp); 102 shcmd(lp->n, fp); 104 fputs(" | ", fp); 107 fputs(" &", fp); 122 shcmd(union node *cmd, FILE *fp) argument 173 sharg(union node *arg, FILE *fp) argument 258 indent(int amount, char *pfx, FILE *fp) argument [all...] |
/freebsd-9.3-release/usr.sbin/kbdcontrol/ |
H A D | kbdcontrol.c | 128 void print_accent_definition_line(FILE *fp, int accent, 130 void print_entry(FILE *fp, int value); 131 void print_key_definition_line(FILE *fp, int scancode, 389 print_entry(FILE *fp, int value) argument 395 fprintf(fp, " nop "); 398 fprintf(fp, " lshift"); 401 fprintf(fp, " rshift"); 404 fprintf(fp, " clock "); 407 fprintf(fp, " nlock "); 410 fprintf(fp, " sloc 513 print_key_definition_line(FILE *fp, int scancode, struct keyent_t *key) argument 549 print_accent_definition_line(FILE *fp, int accent, struct acc_t *key) argument [all...] |
/freebsd-9.3-release/contrib/nvi/ex/ |
H A D | ex_mkexrc.c | 45 FILE *fp; local 74 if ((fp = fdopen(fd, "w")) == NULL) { 80 if (seq_save(sp, fp, "abbreviate ", SEQ_ABBREV) || ferror(fp)) 82 if (seq_save(sp, fp, "map ", SEQ_COMMAND) || ferror(fp)) 84 if (seq_save(sp, fp, "map! ", SEQ_INPUT) || ferror(fp)) 86 if (opts_save(sp, fp) || ferror(fp)) [all...] |
/freebsd-9.3-release/usr.bin/tail/ |
H A D | forward.c | 98 forward(FILE *fp, const char *fn, enum STYLE style, off_t off, struct stat *sbp) argument 109 if (fseeko(fp, off, SEEK_SET) == -1) { 114 if ((ch = getc(fp)) == EOF) { 115 if (ferror(fp)) { 126 if ((ch = getc(fp)) == EOF) { 127 if (ferror(fp)) { 140 fseeko(fp, -off, SEEK_END) == -1) { 145 while (getc(fp) != EOF); 146 if (ferror(fp)) { 151 if (bytes(fp, f 191 rlines(FILE *fp, const char *fn, off_t off, struct stat *sbp) argument [all...] |
/freebsd-9.3-release/contrib/expat/xmlwf/ |
H A D | xmlwf.c | 30 FILE *fp = (FILE *)userData; local 34 fputts(T("&"), fp); 37 fputts(T("<"), fp); 40 fputts(T(">"), fp); 44 fputts(T("
"), fp); 48 fputts(T("""), fp); 53 ftprintf(fp, T("&#%d;"), *s); 57 puttc(*s, fp); 64 attributeValue(FILE *fp, const XML_Char *s) argument 66 puttc(T('='), fp); 125 FILE *fp = (FILE *)userData; local 147 FILE *fp = (FILE *)userData; local 172 FILE *fp = (FILE *)userData; local 218 FILE *fp = (FILE *)userData; local 238 FILE *fp = (FILE *)userData; local 300 FILE *fp = (FILE *)XML_GetUserData((XML_Parser) userData); local 337 FILE *fp = (FILE *)XML_GetUserData(parser); local 371 FILE *fp = (FILE *)XML_GetUserData(parser); local 382 FILE *fp = (FILE *)XML_GetUserData(parser); local 394 FILE *fp = (FILE *)XML_GetUserData(parser); local 406 FILE *fp = (FILE *)XML_GetUserData(parser); local 416 FILE *fp = (FILE *)XML_GetUserData(parser); local 426 FILE *fp = (FILE *)XML_GetUserData(parser); local 442 FILE *fp = (FILE *)XML_GetUserData(parser); local 452 FILE *fp = (FILE *)XML_GetUserData(parser); local 466 FILE *fp = (FILE *)XML_GetUserData(parser); local 492 FILE *fp = (FILE *)XML_GetUserData(parser); local 530 FILE *fp = (FILE *)XML_GetUserData(parser); local 547 FILE *fp = (FILE *)XML_GetUserData(parser); local 755 FILE *fp = 0; local [all...] |
/freebsd-9.3-release/contrib/ipfilter/tools/ |
H A D | ipfcomp.c | 71 FILE *fp; local 87 fp = cfile; 89 fprintf(fp, "/*\n"); 90 fprintf(fp, "* Copyright (C) 1993-2000 by Darren Reed.\n"); 91 fprintf(fp, "*\n"); 92 fprintf(fp, "* Redistribution and use in source and binary forms are permitted\n"); 93 fprintf(fp, "* provided that this notice is preserved and due credit is given\n"); 94 fprintf(fp, "* to the original author and the contributors.\n"); 95 fprintf(fp, "*/\n\n"); 97 fprintf(fp, "#includ 443 static FILE *fp = NULL; local [all...] |
/freebsd-9.3-release/lib/libc/stdio/ |
H A D | vfscanf.c | 113 __vfscanf(FILE *fp, char const *fmt0, va_list ap) argument 117 FLOCKFILE(fp); 118 ret = __svfscanf(fp, __get_locale(), fmt0, ap); 119 FUNLOCKFILE(fp); 123 vfscanf_l(FILE *fp, locale_t locale, char const *fmt0, va_list ap) argument 128 FLOCKFILE(fp); 129 ret = __svfscanf(fp, locale, fmt0, ap); 130 FUNLOCKFILE(fp); 138 __svfscanf(FILE *fp, locale_t locale, const char *fmt0, va_list ap) argument 149 int nread; /* number of characters consumed from fp */ 930 parsefloat(FILE *fp, char *buf, char *end, locale_t locale) argument [all...] |
/freebsd-9.3-release/contrib/sendmail/libsm/ |
H A D | fput.c | 28 ** fp -- the file pointer for the buffer to be written to 38 sm_io_fputs(fp, timeout, s) 39 SM_FILE_T *fp; 46 SM_REQUIRE_ISA(fp, SmFileMagic); 51 return sm_fvwrite(fp, timeout, &uio);
|
H A D | vfscanf.c | 98 ** fp -- file pointer for input data 109 sm_vfscanf(fp, timeout, fmt0, ap) 110 register SM_FILE_T *fp; 123 int nread; /* number of characters consumed from fp */ 137 timeout = fp->f_timeout; 175 while ((fp->f_r > 0 || sm_refill(fp, SM_TIME_FOREVER) 177 isspace(*fp->f_p)) 178 nread++, fp->f_r--, fp [all...] |
/freebsd-9.3-release/lib/csu/arm/ |
H A D | crti.S | 10 stmdb sp!, {fp, ip, lr, pc} 11 sub fp, ip, #4 19 stmdb sp!, {fp, ip, lr, pc} 20 sub fp, ip, #4
|
/freebsd-9.3-release/lib/libc/string/ |
H A D | swab.c | 46 char *fp, *tp; local 51 fp = (char *)from; 53 #define STEP temp = *fp++,*tp++ = *fp++,*tp++ = temp
|
/freebsd-9.3-release/contrib/tcpdump/ |
H A D | print-ap1394.c | 60 register const struct firewire_header *fp; local 63 fp = (const struct firewire_header *)bp; 66 linkaddr_string(fp->firewire_dhost, LINKADDR_IEEE1394, FIREWIRE_EUI64_LEN), 67 linkaddr_string(fp->firewire_shost, LINKADDR_IEEE1394, FIREWIRE_EUI64_LEN)); 69 firewire_type = EXTRACT_16BITS(&fp->firewire_type); 92 struct firewire_header *fp; local 105 fp = (struct firewire_header *)p; 108 ether_type = EXTRACT_16BITS(&fp->firewire_type); 112 ap1394_hdr_print((u_char *)fp, length + FIREWIRE_HDRLEN);
|
/freebsd-9.3-release/sys/contrib/ipfilter/netinet/ |
H A D | ip_rules.c | 83 frentry_t *fp; local 87 fp = ipf_rules_out_[i]; 88 fp->fr_next = NULL; 90 if (strncmp(fp->fr_group, 93 fp->fr_next = ipf_rules_out_[j]; 98 fp = &ipfrule_out_; 99 bzero((char *)fp, sizeof(*fp)); 100 fp->fr_type = FR_T_CALLFUNC|FR_T_BUILTIN; 101 fp 114 frentry_t *fp; local 145 frentry_t *fp; local 176 frentry_t *fp; local [all...] |
/freebsd-9.3-release/crypto/openssl/demos/sign/ |
H A D | sign.c | 90 FILE *fp; local 102 fp = fopen(keyfile, "r"); 103 if (fp == NULL) 105 pkey = PEM_read_PrivateKey(fp, NULL, NULL, NULL); 106 fclose(fp); 129 fp = fopen(certfile, "r"); 130 if (fp == NULL) 132 x509 = PEM_read_X509(fp, NULL, NULL, NULL); 133 fclose(fp);
|
/freebsd-9.3-release/crypto/openssl/demos/pkcs12/ |
H A D | pkwrite.c | 13 FILE *fp; local 23 if (!(fp = fopen(argv[1], "r"))) { 27 cert = PEM_read_X509(fp, NULL, NULL, NULL); 28 rewind(fp); 29 pkey = PEM_read_PrivateKey(fp, NULL, NULL, NULL); 30 fclose(fp); 37 if (!(fp = fopen(argv[4], "wb"))) { 42 i2d_PKCS12_fp(fp, p12); 44 fclose(fp);
|
/freebsd-9.3-release/usr.sbin/rtsold/ |
H A D | dump.c | 52 static FILE *fp; variable 71 fprintf(fp, "Interface %s\n", ifi->ifname); 72 fprintf(fp, " probe interval: "); 74 fprintf(fp, "%d\n", ifi->probeinterval); 75 fprintf(fp, " probe timer: %d\n", ifi->probetimer); 77 fprintf(fp, "infinity\n"); 78 fprintf(fp, " no probe timer\n"); 80 fprintf(fp, " interface status: %s\n", 82 fprintf(fp, " other config: %s\n", 84 fprintf(fp, " rtsol [all...] |
/freebsd-9.3-release/contrib/ntp/ntpdc/ |
H A D | ntpdc_ops.c | 43 static void doconfig (struct parse *pcmd, FILE *fp, int mode, int refc); 292 FILE *fp 296 (void) fprintf(fp, "No data returned in response to query\n"); 328 FILE *fp 332 (void) fprintf(fp, "No data returned in response to query\n"); 336 (void) fprintf(fp, "Expected one item in response, got %lu\n", 351 FILE *fp 373 if (!checkitems(items, fp)) 385 (void) fprintf(fp, "%-9s %s\n", 400 FILE *fp 424 dopeers( struct parse *pcmd, FILE *fp, int dmstyle ) argument 527 print_pflag( FILE * fp, u_int32 flags ) argument 1309 doconfig( struct parse *pcmd, FILE *fp, int mode, int refc ) argument 1560 doset( struct parse *pcmd, FILE *fp, int req ) argument 1823 do_restrict( struct parse *pcmd, FILE *fp, int req_code ) argument 2258 do_trustkey( struct parse *pcmd, FILE *fp, int req ) argument 2442 do_addclr_trap( struct parse *pcmd, FILE *fp, int req ) argument 2541 do_changekey( struct parse *pcmd, FILE *fp, int req ) argument 3050 iflist( FILE *fp, struct info_if_stats *ifs, size_t items, size_t itemsize, int res ) argument [all...] |
/freebsd-9.3-release/contrib/amd/amd/ |
H A D | ops_nfs.c | 112 static int call_mountd(fh_cache *fp, u_long proc, fwd_fun f, wchan_t wchan); 113 static int webnfs_lookup(fh_cache *fp, fwd_fun f, wchan_t wchan); 148 fh_cache *fp, *fp2 = 0; local 151 ITER(fp, fh_cache, &fh_head) { 152 if (fp->fh_id == id) { 153 fp2 = fp; 159 dlog("fh cache gives fp %#lx, fs %s", (unsigned long) fp2, fp2->fh_path); 179 fh_cache *fp; local 185 fp = find_nfs_fhandle_cache(arg, done); 186 if (!fp) 243 fh_cache *fp; local 304 fh_cache *fp; local 322 fh_cache *fp = (fh_cache *) arg; local 341 fh_cache *fp, *fp_save = 0; local 527 call_mountd(fh_cache *fp, u_long proc, fwd_fun fun, wchan_t wchan) argument 596 webnfs_lookup(fh_cache *fp, fwd_fun fun, wchan_t wchan) argument [all...] |
/freebsd-9.3-release/contrib/libpcap/ |
H A D | etherent.c | 102 pcap_next_etherent(FILE *fp) argument 111 c = skip_space(fp); 118 c = skip_line(fp); 125 c = getc(fp); 129 c = getc(fp); 134 c = getc(fp); 141 c = skip_line(fp); 144 c = skip_space(fp); 151 c = skip_line(fp); 161 c = getc(fp); [all...] |
/freebsd-9.3-release/cddl/contrib/opensolaris/common/ctf/ |
H A D | ctf_create.c | 58 ctf_file_t *fp; local 71 if ((fp = ctf_bufopen(&cts, NULL, NULL, errp)) == NULL) { 76 fp->ctf_flags |= LCTF_RDWR; 77 fp->ctf_dthashlen = hashlen; 79 fp->ctf_dthash = hash; 80 fp->ctf_dtstrlen = sizeof (_CTF_STRTAB_TEMPLATE); 81 fp->ctf_dtnextid = 1; 82 fp->ctf_dtoldid = 0; 84 return (fp); 180 * ctf_bufopen() will return a new ctf_file_t, but we want to keep the fp 185 ctf_update(ctf_file_t *fp) argument 419 ctf_dtd_insert(ctf_file_t *fp, ctf_dtdef_t *dtd) argument 429 ctf_dtd_delete(ctf_file_t *fp, ctf_dtdef_t *dtd) argument 478 ctf_dtd_lookup(ctf_file_t *fp, ctf_id_t type) argument 501 ctf_discard(ctf_file_t *fp) argument 526 ctf_add_generic(ctf_file_t *fp, uint_t flag, const char *name, ctf_dtdef_t **rp) argument 586 ctf_add_encoded(ctf_file_t *fp, uint_t flag, const char *name, const ctf_encoding_t *ep, uint_t kind) argument 606 ctf_add_reftype(ctf_file_t *fp, uint_t flag, ctf_id_t ref, uint_t kind) argument 624 ctf_add_integer(ctf_file_t *fp, uint_t flag, const char *name, const ctf_encoding_t *ep) argument 631 ctf_add_float(ctf_file_t *fp, uint_t flag, const char *name, const ctf_encoding_t *ep) argument 638 ctf_add_pointer(ctf_file_t *fp, uint_t flag, ctf_id_t ref) argument 644 ctf_add_array(ctf_file_t *fp, uint_t flag, const ctf_arinfo_t *arp) argument 663 ctf_set_array(ctf_file_t *fp, ctf_id_t type, const ctf_arinfo_t *arp) argument 680 ctf_add_function(ctf_file_t *fp, uint_t flag, const ctf_funcinfo_t *ctc, const ctf_id_t *argv) argument 719 ctf_add_struct(ctf_file_t *fp, uint_t flag, const char *name) argument 741 ctf_add_union(ctf_file_t *fp, uint_t flag, const char *name) argument 763 ctf_add_enum(ctf_file_t *fp, uint_t flag, const char *name) argument 785 ctf_add_forward(ctf_file_t *fp, uint_t flag, const char *name, uint_t kind) argument 824 ctf_add_typedef(ctf_file_t *fp, uint_t flag, const char *name, ctf_id_t ref) argument 842 ctf_add_volatile(ctf_file_t *fp, uint_t flag, ctf_id_t ref) argument 848 ctf_add_const(ctf_file_t *fp, uint_t flag, ctf_id_t ref) argument 854 ctf_add_restrict(ctf_file_t *fp, uint_t flag, ctf_id_t ref) argument 860 ctf_add_enumerator(ctf_file_t *fp, ctf_id_t enid, const char *name, int value) argument 916 ctf_add_member(ctf_file_t *fp, ctf_id_t souid, const char *name, ctf_id_t type) argument [all...] |
H A D | ctf_types.c | 33 ctf_get_ctt_size(const ctf_file_t *fp, const ctf_type_t *tp, ssize_t *sizep, argument 38 if (fp->ctf_version > CTF_VERSION_1 && 60 ctf_member_iter(ctf_file_t *fp, ctf_id_t type, ctf_member_f *func, void *arg) argument 62 ctf_file_t *ofp = fp; 68 if ((type = ctf_type_resolve(fp, type)) == CTF_ERR) 71 if ((tp = ctf_lookup_by_id(&fp, type)) == NULL) 74 (void) ctf_get_ctt_size(fp, tp, &size, &increment); 75 kind = LCTF_INFO_KIND(fp, tp->ctt_info); 80 if (fp->ctf_version == CTF_VERSION_1 || size < CTF_LSTRUCT_THRESH) { 84 for (n = LCTF_INFO_VLEN(fp, t 111 ctf_enum_iter(ctf_file_t *fp, ctf_id_t type, ctf_enum_f *func, void *arg) argument 147 ctf_type_iter(ctf_file_t *fp, ctf_type_f *func, void *arg) argument 170 ctf_type_resolve(ctf_file_t *fp, ctf_id_t type) argument 203 ctf_type_lname(ctf_file_t *fp, ctf_id_t type, char *buf, size_t len) argument 309 ctf_type_name(ctf_file_t *fp, ctf_id_t type, char *buf, size_t len) argument 320 ctf_type_size(ctf_file_t *fp, ctf_id_t type) argument 369 ctf_type_align(ctf_file_t *fp, ctf_id_t type) argument 433 ctf_type_kind(ctf_file_t *fp, ctf_id_t type) argument 448 ctf_type_reference(ctf_file_t *fp, ctf_id_t type) argument 476 ctf_type_pointer(ctf_file_t *fp, ctf_id_t type) argument 503 ctf_type_encoding(ctf_file_t *fp, ctf_id_t type, ctf_encoding_t *ep) argument 626 ctf_member_info(ctf_file_t *fp, ctf_id_t type, const char *name, ctf_membinfo_t *mip) argument 677 ctf_array_info(ctf_file_t *fp, ctf_id_t type, ctf_arinfo_t *arp) argument 705 ctf_enum_name(ctf_file_t *fp, ctf_id_t type, int value) argument 742 ctf_enum_value(ctf_file_t *fp, ctf_id_t type, const char *name, int *valp) argument 785 ctf_type_rvisit(ctf_file_t *fp, ctf_id_t type, ctf_visit_f *func, void *arg, const char *name, ulong_t offset, int depth) argument 842 ctf_type_visit(ctf_file_t *fp, ctf_id_t type, ctf_visit_f *func, void *arg) argument [all...] |