Home
last modified time | relevance | path

Searched refs:fp (Results 1 – 25 of 937) sorted by relevance

12345678910>>...38

/dragonfly/usr.sbin/ppp/
H A Dfsm.c154 fp->more.reqs = fp->more.naks = fp->more.rejs = 3; in fsm_Init()
246 (*fp->parent->LayerStart)(fp->parent->object, fp); in FsmOpenNow()
261 (*fp->parent->LayerStart)(fp->parent->object, fp); in fsm_Open()
324 (*fp->parent->LayerFinish)(fp->parent->object, fp); in fsm_Down()
329 (*fp->parent->LayerStart)(fp->parent->object, fp); in fsm_Down()
340 (*fp->parent->LayerDown)(fp->parent->object, fp); in fsm_Down()
352 (*fp->parent->LayerFinish)(fp->parent->object, fp); in fsm_Close()
366 (*fp->parent->LayerDown)(fp->parent->object, fp); in fsm_Close()
567 (*fp->parent->LayerDown)(fp->parent->object, fp); in FsmRecvConfigReq()
653 (*fp->parent->LayerUp)(fp->parent->object, fp); in FsmRecvConfigAck()
[all …]
/dragonfly/contrib/binutils-2.34/libctf/
H A Dctf-open.c322 fp->ctf_buf = base + (fp->ctf_buf - fp->ctf_base); in ctf_set_base()
750 fp->ctf_ptrtab_len = fp->ctf_typemax + 1; in init_types()
1443 fp->ctf_dynbase = fp->ctf_base; in ctf_bufopen_internal()
1449 fp->ctf_buf = fp->ctf_base; in ctf_bufopen_internal()
1474 fp->ctf_dynbase = fp->ctf_base; in ctf_bufopen_internal()
1477 fp->ctf_buf = fp->ctf_base; in ctf_bufopen_internal()
1486 fp->ctf_buf = fp->ctf_base + hdrsz; in ctf_bufopen_internal()
1548 ctf_set_base (fp, hp, fp->ctf_base); in ctf_bufopen_internal()
1552 ctf_set_base (fp, hp, fp->ctf_base); in ctf_bufopen_internal()
1742 fp->ctf_parname = fp->ctf_dynparname; in ctf_parent_name_set()
[all …]
H A Dctf-create.c45 else if ((fp->ctf_typemax + 2) > fp->ctf_ptrtab_len) in ctf_grow_ptrtab()
57 memset (fp->ctf_ptrtab + fp->ctf_ptrtab_len, 0, in ctf_grow_ptrtab()
138 return fp; in ctf_create()
249 fp->ctf_dtoldid = fp->ctf_typemax; in ctf_update()
567 memset (fp->ctf_lookups, 0, sizeof (fp->ctf_lookups)); in ctf_serialize()
675 fp = fp->ctf_parent; in ctf_dynamic_type()
789 if (fp->ctf_snapshots == fp->ctf_snapshot_lu) in ctf_rollback()
1005 tmp = fp; in ctf_add_array()
2123 fp->ctf_buf, fp->ctf_size)) != Z_OK) in ctf_compress_write()
2191 memcpy (bp, fp->ctf_buf, fp->ctf_size); in ctf_write_mem()
[all …]
H A Dctf-lookup.c107 ntype = fp->ctf_ptrtab[LCTF_TYPE_TO_INDEX (fp, type)]; in ctf_lookup_by_name()
113 fp->ctf_ptrtab[LCTF_TYPE_TO_INDEX (fp, ntype)]) == 0) in ctf_lookup_by_name()
120 type = LCTF_INDEX_TO_TYPE (fp, ntype, (fp->ctf_flags & LCTF_CHILD)); in ctf_lookup_by_name()
188 if (fp->ctf_parent != NULL in ctf_lookup_by_name()
222 ent = bsearch (&key, fp->ctf_vars, fp->ctf_nvars, sizeof (ctf_varent_t), in ctf_lookup_variable()
301 type = *(uint32_t *) ((uintptr_t) fp->ctf_buf + fp->ctf_sxlate[symidx]); in ctf_lookup_by_symbol()
318 if ((fp->ctf_flags & LCTF_CHILD) && LCTF_TYPE_ISPARENT (fp, type) in ctf_lookup_by_id()
319 && (fp = fp->ctf_parent) == NULL) in ctf_lookup_by_id()
333 *fpp = fp; in ctf_lookup_by_id()
385 dp = (uint32_t *) ((uintptr_t) fp->ctf_buf + fp->ctf_sxlate[symidx]); in ctf_func_info()
[all …]
H A Dctf-types.c43 ctf_file_t *ofp = fp; in ctf_member_iter()
112 ctf_file_t *ofp = fp; in ctf_enum_iter()
206 if ((fp->ctf_flags & LCTF_CHILD) && (fp->ctf_parent == NULL)) in ctf_variable_iter()
213 if ((rc = func (ctf_strptr (fp, fp->ctf_vars[i].ctv_name), in ctf_variable_iter()
244 ctf_file_t *ofp = fp; in ctf_type_resolve()
301 return ctf_lookup_by_rawhash (fp, ctf_name_table (fp, kind), name); in ctf_lookup_by_rawname()
540 ctf_file_t *ofp = fp; in ctf_type_align()
711 if ((ntype = fp->ctf_ptrtab[LCTF_TYPE_TO_INDEX (fp, type)]) != 0) in ctf_type_pointer()
712 return (LCTF_INDEX_TO_TYPE (fp, ntype, (fp->ctf_flags & LCTF_CHILD))); in ctf_type_pointer()
720 if ((ntype = fp->ctf_ptrtab[LCTF_TYPE_TO_INDEX (fp, type)]) != 0) in ctf_type_pointer()
[all …]
H A Dctf-string.c106 if (fp->ctf_str_atoms == NULL) in ctf_str_create_atoms()
109 if (!fp->ctf_prov_strtab) in ctf_str_create_atoms()
113 if (!fp->ctf_prov_strtab) in ctf_str_create_atoms()
117 ctf_str_add (fp, ""); in ctf_str_create_atoms()
125 fp->ctf_prov_strtab = NULL; in ctf_str_create_atoms()
128 fp->ctf_str_atoms = NULL; in ctf_str_create_atoms()
167 fp->ctf_str_num_refs++; in ctf_str_add_ref_internal()
199 fp->ctf_str_num_refs++; in ctf_str_add_ref_internal()
320 fp->ctf_str_num_refs = 0; in ctf_str_purge_refs()
458 if (!fp->ctf_syn_ext_strtab) in ctf_str_write_strtab()
[all …]
/dragonfly/lib/libc/stdio/
H A Dungetc.c58 if (fp->_ub._base == fp->_ubuf) { in __submore()
94 FLOCKFILE(fp); in ungetc()
132 if (fp->pub._r >= fp->_ub._size && __submore(fp)) in __ungetc()
135 fp->pub._r++; in __ungetc()
145 if (fp->_bf._base != NULL && fp->pub._p > fp->_bf._base && in __ungetc()
156 fp->_ur = fp->pub._r; in __ungetc()
157 fp->_up = fp->pub._p; in __ungetc()
158 fp->_ub._base = fp->_ubuf; in __ungetc()
159 fp->_ub._size = sizeof(fp->_ubuf); in __ungetc()
160 fp->_ubuf[sizeof(fp->_ubuf) - 1] = c; in __ungetc()
[all …]
H A Dfreopen.c61 fclose(fp); in freopen()
66 FLOCKFILE(fp); in freopen()
85 fclose(fp); in freopen()
92 fclose(fp); in freopen()
142 (*fp->_close)(fp->_cookie); in freopen()
152 (*fp->_close)(fp->_cookie); in freopen()
166 (*fp->_close)(fp->_cookie); in freopen()
176 FREEUB(fp); in freopen()
179 FREELB(fp); in freopen()
211 fp->_cookie = fp; in freopen()
[all …]
H A Drefill.c48 lflush(FILE *fp) in lflush() argument
53 FLOCKFILE(fp); in lflush()
55 FUNLOCKFILE(fp); in lflush()
72 ORIENT(fp, -1); in __srefill()
104 FREEUB(fp); in __srefill()
105 if ((fp->pub._r = fp->_ur) != 0) { in __srefill()
106 fp->pub._p = fp->_up; in __srefill()
113 __smakebuf(fp); in __srefill()
128 __sflush(fp); in __srefill()
130 fp->pub._p = fp->_bf._base; in __srefill()
[all …]
H A Dfseek.c60 FLOCKFILE(fp); in fseek()
78 FLOCKFILE(fp); in fseeko()
223 n = fp->_up - fp->_bf._base; in _fseeko()
227 n = fp->pub._p - fp->_bf._base; in _fseeko()
240 fp->pub._p = fp->_bf._base + o; in _fseeko()
243 FREEUB(fp); in _fseeko()
262 fp->pub._p = fp->_bf._base; in _fseeko()
264 FREEUB(fp); in _fseeko()
267 if (__srefill(fp) || fp->pub._r < n) in _fseeko()
291 FREEUB(fp); in _fseeko()
[all …]
H A Dfgetln.c83 FLOCKFILE(fp); in fgetln()
84 ORIENT(fp, -1); in fgetln()
86 if (fp->pub._r <= 0 && __srefill(fp)) { in fgetln()
88 FUNLOCKFILE(fp); in fgetln()
106 fp->pub._p = p; in fgetln()
121 for (len = fp->pub._r, off = 0;; len += fp->pub._r) { in fgetln()
131 memcpy((void *)(fp->_lb._base + off), (void *)fp->pub._p, in fgetln()
136 if ((p = memchr((void *)fp->pub._p, '\n', (size_t)fp->pub._r)) in fgetln()
148 fp->pub._p = p; in fgetln()
155 FUNLOCKFILE(fp); in fgetln()
[all …]
H A Dstdio.c52 FILE *fp = cookie; in __sread() local
60 FILE *fp = cookie; in __swrite() local
68 FILE *fp = cookie; in __sseek() local
88 ret = (*fp->_read)(fp->_cookie, buf, n); in _sread()
114 ret = (*fp->_write)(fp->_cookie, buf, n); in _swrite()
136 ret = (*fp->_seek)(fp->_cookie, offset, whence); in _sseek()
148 if (HASUB(fp)) in _sseek()
149 FREEUB(fp); in _sseek()
150 fp->pub._p = fp->_bf._base; in _sseek()
151 fp->pub._r = 0; in _sseek()
[all …]
H A Dfvwrite.c105 size_t blen = fp->pub._p - fp->_bf._base; in __sfvwrite()
113 fp->_bf._base = in __sfvwrite()
114 reallocf(fp->_bf._base, fp->_bf._size + 1); in __sfvwrite()
117 fp->pub._p = fp->_bf._base + blen; in __sfvwrite()
119 w = fp->pub._w; in __sfvwrite()
129 } else if (fp->pub._p > fp->_bf._base && len > w) { in __sfvwrite()
133 fp->pub._p += w; in __sfvwrite()
145 fp->pub._w -= w; in __sfvwrite()
146 fp->pub._p += w; in __sfvwrite()
169 w = fp->pub._w + fp->_bf._size; in __sfvwrite()
[all …]
H A Dfflush.c51 fflush(FILE *fp) in fflush() argument
55 if (fp == NULL) in fflush()
57 FLOCKFILE(fp); in fflush()
75 FUNLOCKFILE(fp); in fflush()
84 __fflush(FILE *fp) in __fflush() argument
88 if (fp == NULL) in __fflush()
100 __sflush(FILE *fp) in __sflush() argument
118 fp->pub._p = p; in __sflush()
119 fp->pub._w = t & (__SLBF|__SNBF) ? 0 : fp->_bf._size; in __sflush()
144 FLOCKFILE(fp); in sflush_locked()
[all …]
/dragonfly/games/battlestar/
H A Dsave.c40 FILE *fp; in restore() local
50 fread(&tmp, sizeof tmp, 1, fp); in restore()
57 fread(wear, sizeof wear, 1, fp); in restore()
69 fread(&ate, sizeof ate, 1, fp); in restore()
74 fread(&win, sizeof win, 1, fp); in restore()
84 fclose(fp); in restore()
92 FILE *fp; in save() local
105 fwrite(&tmp, sizeof tmp, 1, fp); in save()
136 fflush(fp); in save()
137 if (ferror(fp)) in save()
[all …]
/dragonfly/games/fortune/fortune/
H A Dfortune.c592 fp = do_malloc(sizeof(*fp)); in new_fp()
888 for (fp = File_tail; fp != NULL; fp = fp->prev) in init_prob()
917 for (fp = File_tail; fp != last; fp = fp->prev) in init_prob()
954 for (fp = File_list; fp->percent != NO_PROB; fp = fp->next) in get_fort()
976 fp = fp->next; in get_fort()
989 fp = pick_child(fp); in get_fort()
1015 for (fp = parent->child; choice--; fp = fp->next) in pick_child()
1026 fp = fp->next) { in pick_child()
1052 fp = fp->next; in sum_noprobs()
1290 for (fp = list; fp != NULL; fp = fp->next) { in maxlen_in_list()
[all …]
/dragonfly/games/rogue/
H A Dsave.c87 FILE *fp; in save_into_file() local
128 rw_dungeon(fp, 1); in save_into_file()
139 rw_rooms(fp, 1); in save_into_file()
155 fclose(fp); in save_into_file()
179 FILE *fp = NULL; in restore() local
211 rw_dungeon(fp, 0); in restore()
222 rw_rooms(fp, 0); in restore()
254 fclose(fp); in restore()
312 r_read(fp, buf, DCOLS); in rw_dungeon()
348 r_write(fp, s, n); in write_string()
[all …]
/dragonfly/libexec/bootpd/
H A Ddumptab.c55 FILE *fp; in dumptab() local
114 dump_host(fp, hp); in dumptab()
115 fprintf(fp, "\n"); in dumptab()
118 fclose(fp); in dumptab()
151 fprintf(fp, ":"); in dump_host()
162 fprintf(fp, ":"); in dump_host()
173 fprintf(fp, ":"); in dump_host()
196 fprintf(fp, ":"); in dump_host()
205 fprintf(fp, ":"); in dump_host()
210 fprintf(fp, ":"); in dump_host()
[all …]
/dragonfly/contrib/byacc/
H A Doutput.c6 #define CountLine(fp) (!rflag || ((fp) == code_file)) argument
39 putc(c, fp); in putc_code()
45 if (fp == code_file) in putl_code()
47 fputs(s, fp); in putl_code()
53 fputs(s, fp); in puts_code()
172 putc_code(fp, '\n'); in output_prefix()
1606 putl_code(fp, in output_backtracking_parser()
1754 putl_code(fp, in output_parse_decl()
1926 puts_code(fp, in output_yydestruct_decl()
2070 FILE *fp; in output() local
[all …]
/dragonfly/usr.sbin/config/
H A Dmkioconf.c158 fprintf(fp, "};\n"); in write_devtab()
165 FILE *fp; in newbus_ioconf() local
168 if (fp == NULL) in newbus_ioconf()
170 fprintf(fp, "/*\n"); in newbus_ioconf()
174 fprintf(fp, "\n"); in newbus_ioconf()
176 fprintf(fp, "\n"); in newbus_ioconf()
177 fprintf(fp, "/*\n"); in newbus_ioconf()
180 fprintf(fp, "\n"); in newbus_ioconf()
185 fprintf(fp, "\n"); in newbus_ioconf()
187 write_devtab(fp); in newbus_ioconf()
[all …]
/dragonfly/stand/lib/
H A Dufs.c318 block_size, fp->f_buf, &fp->f_buf_size); in buf_read_file()
337 if (*size_p > fp->f_di.di_size - fp->f_seekp) in buf_read_file()
338 *size_p = fp->f_di.di_size - fp->f_seekp; in buf_read_file()
364 while (fp->f_seekp < fp->f_di.di_size) { in search_directory()
421 fp->f_fs = fs; in ufs_open()
591 free(fp); in ufs_open()
610 if (fp->f_buf) in ufs_close()
613 free(fp); in ufs_close()
635 if (fp->f_seekp >= fp->f_di.di_size) in ufs_read()
670 fp->f_seekp = fp->f_di.di_size - offset; in ufs_seek()
[all …]
/dragonfly/contrib/ldns/drill/
H A Ddrill_util.c181 ldns_rdf_print(fp, ldns_rr_rdf(ds, 0)); fprintf(fp, " "); in print_ds_abbr()
182 ldns_rdf_print(fp, ldns_rr_rdf(ds, 1)); fprintf(fp, " "); in print_ds_abbr()
183 ldns_rdf_print(fp, ldns_rr_rdf(ds, 2)); fprintf(fp, " "); in print_ds_abbr()
184 ldns_rdf_print(fp, ldns_rr_rdf(ds, 3)); fprintf(fp, " "); in print_ds_abbr()
200 ldns_rdf_print(fp, ldns_rr_rdf(sig, 0)); fprintf(fp, " "); in print_rrsig_abbr()
202 ldns_rdf_print(fp, ldns_rr_rdf(sig, 1)); fprintf(fp, " "); in print_rrsig_abbr()
206 ldns_rdf_print(fp, ldns_rr_rdf(sig, 4)); fprintf(fp, " "); in print_rrsig_abbr()
208 ldns_rdf_print(fp, ldns_rr_rdf(sig, 5)); fprintf(fp, " "); in print_rrsig_abbr()
210 ldns_rdf_print(fp, ldns_rr_rdf(sig, 6)); fprintf(fp, " "); in print_rrsig_abbr()
212 ldns_rdf_print(fp, ldns_rr_rdf(sig, 7)); fprintf(fp, ")"); in print_rrsig_abbr()
[all …]
/dragonfly/sys/sys/
H A Dfile2.h52 fhold(fp); in fo_read()
53 error = (*fp->f_ops->fo_read)(fp, uio, cred, flags); in fo_read()
54 fdrop(fp); in fo_read()
67 fhold(fp); in fo_write()
69 fdrop(fp); in fo_write()
83 fhold(fp); in fo_ioctl()
85 fdrop(fp); in fo_ioctl()
95 error = (*fp->f_ops->fo_stat)(fp, sb, cred); in fo_stat()
103 return ((*fp->f_ops->fo_close)(fp)); in fo_close()
109 return ((*fp->f_ops->fo_shutdown)(fp, how)); in fo_shutdown()
[all …]
/dragonfly/sys/kern/
H A Dkern_descrip.c203 fp = fdn->fp; in fclearcache()
222 KASSERT(fp == fdc->fp, in fclearcache()
224 fp, fdc->fp)); in fclearcache()
253 KASSERT(fp == fdc->fp, in fclearcache()
255 fp, fdc->fp)); in fclearcache()
367 fp = fdc->fp; in _holdfp_cache()
374 fp = fdc->fp; in _holdfp_cache()
448 best->fp = fp; in _holdfp_cache()
1043 fp = fdp->fd_files[old].fp; in kern_dup()
2145 fdp->fd_files[fd].fp = fp; in fsetfd_locked()
[all …]
/dragonfly/gnu/usr.bin/rcs/lib/
H A Drcskeep.c118 getoldkeys(fp) in getoldkeys() argument
119 register RILE *fp; in getoldkeys()
141 if (!fp) {
265 Ifclose(fp);
267 Irewind(fp);
350 keepdate(fp) in keepdate() argument
351 RILE *fp; in keepdate()
384 keepid(c, fp, b) in keepid() argument
386 RILE *fp;
400 keeprev(fp) in keeprev() argument
[all …]

12345678910>>...38