Searched refs:fp (Results 76 - 100 of 1180) sorted by relevance

1234567891011>>

/freebsd-9.3-release/contrib/sendmail/libsm/
H A Dmakebuf.c30 ** fp -- the file to be buffered
40 sm_makebuf(fp)
41 register SM_FILE_T *fp;
48 if (fp->f_flags & SMNBF)
50 fp->f_bf.smb_base = fp->f_p = fp->f_nbuf;
51 fp->f_bf.smb_size = 1;
54 flags = sm_whatbuf(fp, &size, &couldbetty);
57 fp
[all...]
H A Dfwalk.c38 register SM_FILE_T *fp; local
46 for (fp = g->gl_iobs, n = g->gl_niobs; --n >= 0; fp++)
48 if (fp->f_flags != 0)
51 fptimeout = fp->f_timeout;
56 ret |= (*function)(fp, &fptimeout);
H A Dstdio.c47 ** fp -- file pointer to be associated with the open
60 sm_stdopen(fp, info, flags, rpool)
61 SM_FILE_T *fp;
97 fp->f_file = open(path, oflags,
99 if (fp->f_file < 0)
103 (void) (*fp->f_seek)((void *)fp, (off_t)0, SEEK_END);
105 return fp->f_file;
112 ** fp -- file pointer to read from
125 sm_stdread(fp, bu
481 SM_FILE_T *fp; local
[all...]
H A Dfindfp.c153 register SM_FILE_T *fp; local
164 fp = oldfp;
165 goto found; /* for opening reusing an 'fp' */
170 for (fp = g->gl_iobs, n = g->gl_niobs; --n >= 0; fp++)
171 if (fp->sm_magic == NULL)
177 fp->sm_magic = SmFileMagic; /* 'fp' now valid and in-use */
178 fp->f_p = NULL; /* no current pointer */
179 fp
[all...]
H A Dfvwrite.c33 ** fp -- the file pointer to write to
45 #define COPY(n) (void)memcpy((void *)fp->f_p, (void *)p, (size_t)(n))
56 sm_fvwrite(fp, timeout, uio)
57 register SM_FILE_T *fp;
74 if (cantwrite(fp))
80 SM_CONVERT_TIME(fp, fd, timeout, &to);
86 if (fp->f_flags & SMNBF)
93 w = (*fp->f_write)(fp, p, SM_MIN(len, SM_IO_BUFSIZ));
102 SM_IO_WR_TIMEOUT(fp, f
[all...]
/freebsd-9.3-release/lib/libc/stdio/
H A Dfopen.c56 FILE *fp; local
62 if ((fp = __sfp()) == NULL)
65 fp->_flags = 0; /* release */
76 fp->_flags = 0; /* release */
81 fp->_file = f;
82 fp->_flags = flags;
83 fp->_cookie = fp;
84 fp->_read = __sread;
85 fp
[all...]
H A Dfputs.c51 fputs(s, fp)
53 FILE * __restrict fp;
63 FLOCKFILE(fp);
64 ORIENT(fp, -1);
65 retval = __sfvwrite(fp, &uio);
66 FUNLOCKFILE(fp);
H A Dfwalk.c49 FILE *fp; local
63 for (fp = g->iobs, n = g->niobs; --n >= 0; fp++)
64 if ((fp->_flags != 0) && ((fp->_flags & __SIGN) == 0))
65 ret |= (*function)(fp);
H A Dfdopen.c54 FILE *fp; local
81 if ((fp = __sfp()) == NULL)
85 fp->_flags = 0;
89 fp->_flags = flags;
96 fp->_flags |= __SAPP;
97 fp->_file = fd;
98 fp->_cookie = fp;
99 fp->_read = __sread;
100 fp
[all...]
H A Dfgetpos.c42 fgetpos(FILE * __restrict fp, fpos_t * __restrict pos) argument
45 * ftello is thread-safe; no need to lock fp.
47 if ((*pos = ftello(fp)) == (fpos_t)-1)
H A Dfscanf.c53 fscanf(FILE * __restrict fp, char const * __restrict fmt, ...) argument
59 FLOCKFILE(fp);
60 ret = __svfscanf(fp, __get_locale(), fmt, ap);
62 FUNLOCKFILE(fp);
66 fscanf_l(FILE * __restrict fp, locale_t locale, char const * __restrict fmt, ...) argument
73 FLOCKFILE(fp);
74 ret = __svfscanf(fp, locale, fmt, ap);
76 FUNLOCKFILE(fp);
H A Dlocal.h57 extern int __fflush(FILE *fp);
85 FILE * __restrict fp);
93 #define prepwrite(fp) \
94 ((((fp)->_flags & __SWR) == 0 || \
95 ((fp)->_bf._base == NULL && ((fp)->_flags & __SSTR) == 0)) && \
96 __swsetup(fp))
102 #define HASUB(fp) ((fp)->_ub._base != NULL)
103 #define FREEUB(fp) { \
[all...]
H A Dputwc.c47 * macro, may evaluate `fp' more than once.
50 putwc_l(wchar_t wc, FILE *fp, locale_t locale) argument
53 return (fputwc_l(wc, fp, locale));
56 putwc(wchar_t wc, FILE *fp) argument
58 return putwc_l(wc, fp, __get_locale());
/freebsd-9.3-release/cddl/contrib/opensolaris/common/ctf/
H A Dctf_open.c110 init_symtab(ctf_file_t *fp, const ctf_header_t *hp, argument
114 uint_t *xp = fp->ctf_sxlate;
115 uint_t *xend = xp + fp->ctf_nsyms;
169 info = *(ushort_t *)((uintptr_t)fp->ctf_buf + funcoff);
170 vlen = LCTF_INFO_VLEN(fp, info);
177 if (LCTF_INFO_KIND(fp, info) == CTF_K_UNKNOWN &&
190 ctf_dprintf("loaded %lu symtab entries\n", fp->ctf_nsyms);
199 init_types(ctf_file_t *fp, const ctf_header_t *cth) argument
202 const ctf_type_t *tbuf = (ctf_type_t *)(fp->ctf_buf + cth->cth_typeoff);
204 const ctf_type_t *tend = (ctf_type_t *)(fp
548 ctf_file_t *fp; local
796 ctf_close(ctf_file_t *fp) argument
876 ctf_parent_file(ctf_file_t *fp) argument
886 ctf_parent_name(ctf_file_t *fp) argument
897 ctf_import(ctf_file_t *fp, ctf_file_t *pfp) argument
921 ctf_setmodel(ctf_file_t *fp, int model) argument
939 ctf_getmodel(ctf_file_t *fp) argument
945 ctf_setspecific(ctf_file_t *fp, void *data) argument
951 ctf_getspecific(ctf_file_t *fp) argument
[all...]
H A Dctf_lookup.c79 ctf_lookup_by_name(ctf_file_t *fp, const char *name) argument
90 return (ctf_set_errno(fp, EINVAL));
104 * Find a pointer to type by looking in fp->ctf_ptrtab.
112 ntype = fp->ctf_ptrtab[CTF_TYPE_TO_INDEX(type)];
114 ntype = ctf_type_resolve(fp, type);
115 if (ntype == CTF_ERR || (ntype = fp->ctf_ptrtab[
117 (void) ctf_set_errno(fp, ECTF_NOTYPE);
123 (fp->ctf_flags & LCTF_CHILD));
132 for (lp = fp->ctf_lookups; lp->ctl_prefix != NULL; lp++) {
144 if ((hp = ctf_hash_lookup(lp->ctl_hash, fp,
179 ctf_lookup_by_symbol(ctf_file_t *fp, ulong_t symidx) argument
218 ctf_file_t *fp = *fpp; /* caller passes in starting CTF container */ local
241 ctf_func_info(ctf_file_t *fp, ulong_t symidx, ctf_funcinfo_t *fip) argument
295 ctf_func_args(ctf_file_t *fp, ulong_t symidx, uint_t argc, ctf_id_t *argv) argument
[all...]
/freebsd-9.3-release/games/fortune/fortune/
H A Dfortune.c221 display(FILEDESC *fp) argument
227 open_fp(fp);
228 fseeko(fp->inf, Seekpts[0], SEEK_SET);
229 for (Fort_len = 0; fgets(line, sizeof line, fp->inf) != NULL &&
230 !STR_ENDSTRING(line, fp->tbl); Fort_len++) {
231 if (fp->tbl.str_flags & STR_ROTATED)
240 if (fp->tbl.str_flags & STR_COMMENTS
241 && line[0] == fp->tbl.str_delim
242 && line[1] == fp->tbl.str_delim)
461 FILEDESC *fp; local
601 FILEDESC *fp; local
654 all_forts(FILEDESC *fp, char *offensive) argument
701 add_dir(FILEDESC *fp) argument
889 FILEDESC *fp, *last = NULL; local
958 FILEDESC *fp; local
1021 FILEDESC *fp; local
1055 sum_noprobs(FILEDESC *fp) argument
1081 open_fp(FILEDESC *fp) argument
1094 open_dat(FILEDESC *fp) argument
1108 get_pos(FILEDESC *fp) argument
1136 get_tbl(FILEDESC *fp) argument
1299 FILEDESC *fp; local
1326 FILEDESC *fp; local
[all...]
/freebsd-9.3-release/lib/libc/sparc64/fpu/
H A Dfpu_explode.c57 #include <machine/fp.h>
90 __fpu_itof(fp, i)
91 struct fpn *fp;
103 fp->fp_exp = FP_LG;
108 if (fp->fp_sign && (int)i < 0)
109 fp->fp_mant[0] = -i;
111 fp->fp_mant[0] = i;
112 fp->fp_mant[1] = 0;
113 fp->fp_mant[2] = 0;
114 fp
[all...]
/freebsd-9.3-release/contrib/openbsm/libbsm/
H A Dbsm_io.c148 print_delim(FILE *fp, const char *del) argument
151 fprintf(fp, "%s", del);
158 print_1_byte(FILE *fp, u_char val, const char *format) argument
161 fprintf(fp, format, val);
168 print_2_bytes(FILE *fp, u_int16_t val, const char *format) argument
171 fprintf(fp, format, val);
178 print_4_bytes(FILE *fp, u_int32_t val, const char *format) argument
181 fprintf(fp, format, val);
188 print_8_bytes(FILE *fp, u_int64_t val, const char *format) argument
191 fprintf(fp, forma
198 print_mem(FILE *fp, u_char *data, size_t len) argument
213 print_string(FILE *fp, const char *str, size_t len) argument
229 print_xml_string(FILE *fp, const char *str, size_t len) argument
274 open_attr(FILE *fp, const char *str) argument
284 close_attr(FILE *fp) argument
294 close_tag(FILE *fp, u_char type) argument
464 print_tok_type(FILE *fp, u_char type, const char *tokname, int oflags) argument
644 print_user(FILE *fp, u_int32_t usr, int oflags) argument
663 print_group(FILE *fp, u_int32_t grp, int oflags) argument
683 print_event(FILE *fp, u_int16_t ev, int oflags) argument
715 print_evmod(FILE *fp, u_int16_t evmod, int oflags) argument
727 print_sec32(FILE *fp, u_int32_t sec, int oflags) argument
747 print_sec64(FILE *fp, u_int64_t sec, int oflags) argument
766 print_msec32(FILE *fp, u_int32_t msec, int oflags) argument
779 print_msec64(FILE *fp, u_int64_t msec, int oflags) argument
793 print_ip_address(FILE *fp, u_int32_t ip) argument
805 print_ip_ex_address(FILE *fp, u_int32_t type, u_int32_t *ipaddr) argument
833 print_retval(FILE *fp, u_char status, int oflags) argument
860 print_errval(FILE *fp, u_int32_t val) argument
870 print_ipctype(FILE *fp, u_char type, int oflags) argument
948 print_header32_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
1055 print_header32_ex_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
1140 print_header64_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
1243 print_header64_ex_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
1308 print_trailer_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
1350 print_arg32_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
1401 print_arg64_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
1485 print_arb_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
1693 print_attr32_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
1774 print_attr64_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
1835 print_exit_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
1892 print_execarg_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
1950 print_execenv_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
2003 print_file_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
2052 print_newgroups_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
2088 print_inaddr_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
2131 print_inaddr_ex_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
2204 print_ip_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
2287 print_ipc_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
2353 print_ipcperm_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
2415 print_iport_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
2450 print_opaque_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
2489 print_path_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
2561 print_process32_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
2673 print_process64_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
2799 print_process32ex_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
2928 print_process64ex_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
3003 print_return32_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
3040 print_return64_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
3076 print_seq_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
3120 print_sock_inet32_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
3174 print_sock_inet128_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
3227 print_sock_unix_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
3291 print_socket_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
3384 print_subject32_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
3438 print_upriv_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
3518 print_privset_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
3599 print_subject64_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
3725 print_subject32ex_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
3853 print_subject64ex_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
3929 print_text_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
4013 print_socketex32_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
4084 print_invalid_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
4116 print_zonename_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
4511 au_read_rec(FILE *fp, u_char **buf) argument
[all...]
/freebsd-9.3-release/sys/powerpc/fpu/
H A Dfpu_implode.c73 * 2 bits (a la fpu_shr(), but we do not bother with fp->fp_sticky).
76 * Note that we may leave the value 2.0 in fp->fp_mant; it is the caller's
80 round(struct fpemu *fe, struct fpn *fp) argument
86 m0 = fp->fp_mant[0];
87 m1 = fp->fp_mant[1];
88 m2 = fp->fp_mant[2];
89 m3 = fp->fp_mant[3];
91 s = fp->fp_sticky;
116 if ((gr & 1) || fp->fp_sticky || (m3 & 1))
126 if (fp
200 fpu_ftoi(struct fpemu *fe, struct fpn *fp) argument
247 fpu_ftox(struct fpemu *fe, struct fpn *fp, u_int *res) argument
293 fpu_ftos(struct fpemu *fe, struct fpn *fp) argument
374 fpu_ftod(struct fpemu *fe, struct fpn *fp, u_int *res) argument
429 fpu_implode(struct fpemu *fe, struct fpn *fp, int type, u_int *space) argument
[all...]
/freebsd-9.3-release/contrib/gdb/gdb/gdbserver/
H A Di387-fp.c23 #include "i387-fp.h"
75 struct i387_fsave *fp = (struct i387_fsave *) buf; local
81 collect_register (i + st0_regnum, ((char *) &fp->st_space[0]) + i * 10);
83 collect_register_by_name ("fioff", &fp->fioff);
84 collect_register_by_name ("fooff", &fp->fooff);
88 fp->fop = (val2 & 0x7FF) | (fp->fop & 0xF800);
92 *(unsigned short *) &fp->fctrl = val;
96 *(unsigned short *) &fp->fstat = val;
100 *(unsigned short *) &fp
114 struct i387_fsave *fp = (struct i387_fsave *) buf; local
148 struct i387_fxsave *fp = (struct i387_fxsave *) buf; local
197 i387_ftag(struct i387_fxsave *fp, int regno) argument
246 struct i387_fxsave *fp = (struct i387_fxsave *) buf; local
[all...]
/freebsd-9.3-release/tools/regression/lib/libc/stdio/
H A Dtest-getdelim.c76 FILE *fp; local
91 fp = mkfilebuf();
95 assert(getline(&line, &linecap, fp) == sizeof(apothegm) - 1);
99 assert(getline(&line, &linecap, fp) == 1);
103 assert(getline(&line, &linecap, fp) == -1);
107 assert(feof(fp));
108 assert(!ferror(fp));
109 fclose(fp);
126 fp = mkfilebuf();
127 assert(getline(NULL, &linecap, fp)
[all...]
/freebsd-9.3-release/contrib/gcc/
H A Dgraph.c52 start_fct (FILE *fp) argument
57 fprintf (fp, "\
67 start_bb (FILE *fp, int bb) argument
76 fprintf (fp, "\
89 fputc ('\n', fp);
92 fprintf (fp, " %d", i);
94 fprintf (fp, " [%s]", reg_names[i]);
101 fputs ("\"\n\n", fp);
109 node_data (FILE *fp, rtx tmp_rtx) argument
118 fprintf (fp, "\
170 draw_edge(FILE *fp, int from, int to, int bb_edge, int class) argument
197 end_bb(FILE *fp) argument
210 end_fct(FILE *fp) argument
232 FILE *fp; local
395 FILE *fp; local
419 FILE *fp; local
[all...]
/freebsd-9.3-release/usr.sbin/ctm/ctm_rmail/
H A Derror.c37 FILE *fp; local
39 if ((fp = fopen(log_file, "a")) == NULL)
42 error_fp = fp;
71 FILE *fp; local
75 if ((fp = error_fp) == NULL)
77 fp = stderr;
79 fprintf(fp, "%s: ", prog);
85 fprintf(fp, "%04d-%02d-%02d %02d:%02d ", tm->tm_year+1900,
94 vfprintf(fp, fmt, ap);
98 fprintf(fp, "
[all...]
/freebsd-9.3-release/crypto/openssl/demos/pkcs12/
H A Dpkread.c13 FILE *fp; local
25 if (!(fp = fopen(argv[1], "rb"))) {
29 p12 = d2i_PKCS12_fp(fp, NULL);
30 fclose(fp);
42 if (!(fp = fopen(argv[3], "w"))) {
47 fprintf(fp, "***Private Key***\n");
48 PEM_write_PrivateKey(fp, pkey, NULL, NULL, 0, NULL, NULL);
51 fprintf(fp, "***User Certificate***\n");
52 PEM_write_X509_AUX(fp, cert);
55 fprintf(fp, "***Othe
[all...]
/freebsd-9.3-release/lib/libstand/
H A Dufs.c127 #define DIP(fp, field) \
128 ((fp)->f_fs->fs_magic == FS_UFS1_MAGIC ? \
129 (fp)->f_di.di1.field : (fp)->f_di.di2.field)
145 struct file *fp = (struct file *)f->f_fsdata; local
146 struct fs *fs = fp->f_fs;
169 if (fp->f_fs->fs_magic == FS_UFS1_MAGIC)
170 fp->f_di.di1 = ((struct ufs1_dinode *)buf)
173 fp->f_di.di2 = ((struct ufs2_dinode *)buf)
183 fp
202 struct file *fp = (struct file *)f->f_fsdata; local
307 struct file *fp = (struct file *)f->f_fsdata; local
385 struct file *fp = (struct file *)f->f_fsdata; local
447 struct file *fp = (struct file *)f->f_fsdata; local
501 struct file *fp; local
700 struct file *fp = (struct file *)f->f_fsdata; local
729 struct file *fp = (struct file *)f->f_fsdata; local
771 struct file *fp = (struct file *)f->f_fsdata; local
802 struct file *fp = (struct file *)f->f_fsdata; local
826 struct file *fp = (struct file *)f->f_fsdata; local
839 struct file *fp = (struct file *)f->f_fsdata; local
[all...]

Completed in 102 milliseconds

1234567891011>>