Searched refs:fp (Results 26 - 50 of 1284) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/libc/port/locale/
H A Dfgetwc.c46 _fgetwc_unlocked_l(FILE *fp, locale_t loc) argument
54 if ((c = GETC(fp)) == EOF)
62 if ((statep = _getmbstate(fp)) == NULL) {
63 fp->_flag = _IOERR;
84 } while ((c = GETC(fp)) != EOF);
92 fp->_flag |= _IOERR;
98 _fgetwc_unlocked(FILE *fp) argument
100 return (_fgetwc_unlocked_l(fp, uselocale(NULL)));
110 fgetwc(FILE *fp) argument
116 FLOCKFILE(l, fp);
129 __fgetwc_xpg5(FILE *fp) argument
146 fgetwc_l(FILE *fp, locale_t loc) argument
[all...]
H A Dfputwc.c63 __fputwc_impl(wchar_t wc, FILE *fp, int orient) argument
86 fp->_flag |= _IOERR;
92 FLOCKFILE(mx, fp);
97 if (orient && GET_NO_MODE(fp)) {
98 _setorientation(fp, _WC_MODE);
101 if (PUTC((unsigned char)buf[i], fp) == EOF) {
111 fputwc(wchar_t wc, FILE *fp) argument
113 return (__fputwc_impl(wc, fp, 0));
121 putwc(wchar_t wc, FILE *fp) argument
123 return (__fputwc_impl(wc, fp,
127 __fputwc_xpg5(wint_t wc, FILE *fp) argument
134 __putwc_xpg5(wint_t wc, FILE *fp) argument
[all...]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dfflush.c32 ** SM_IO_FLUSH -- flush the buffer for a 'fp' to the "file"
35 ** all open files when fp==NULL any longer.
38 ** fp -- the file pointer buffer to flush
47 sm_io_flush(fp, timeout)
48 register SM_FILE_T *fp;
54 SM_REQUIRE_ISA(fp, SmFileMagic);
56 if ((fp->f_flags & (SMWR | SMRW)) == 0)
67 SM_CONVERT_TIME(fp, fd, timeout, &to);
70 return sm_flush(fp, (int *) &timeout);
76 ** Assumes that 'fp' ha
[all...]
H A Dclrerr.c27 ** fp -- the file pointer
35 sm_io_clearerr(fp)
36 SM_FILE_T *fp;
38 SM_REQUIRE_ISA(fp, SmFileMagic);
40 sm_clearerr(fp);
H A Dfeof.c26 ** Tests if the file for 'fp' has reached the end.
29 ** fp -- file pointer.
38 sm_io_eof(fp)
39 SM_FILE_T *fp;
41 SM_REQUIRE_ISA(fp, SmFileMagic);
43 return sm_eof(fp);
H A Dferror.c27 ** fp -- file pointer
30 ** 0 (zero) when 'fp' is not in an error state
31 ** non-zero when 'fp' is in an error state
37 sm_io_error(fp)
38 SM_FILE_T *fp;
40 SM_REQUIRE_ISA(fp, SmFileMagic);
42 return sm_error(fp);
H A Dget.c27 ** fp -- the file to get the character from
42 sm_io_getc(fp, timeout)
43 register SM_FILE_T *fp;
46 SM_REQUIRE_ISA(fp, SmFileMagic);
47 return sm_getc(fp, timeout);
H A Dsetvbuf.c37 ** fp -- the file that buffering is to be changed for
49 sm_io_setvbuf(fp, timeout, buf, mode, size)
50 SM_FILE_T *fp;
62 SM_REQUIRE_ISA(fp, SmFileMagic);
83 SM_CONVERT_TIME(fp, fd, timeout, &to);
84 (void) sm_flush(fp, &timeout);
85 if (HASUB(fp))
86 FREEUB(fp);
87 fp->f_r = fp
[all...]
H A Dfread.c29 ** fp -- file pointer to read from
43 sm_io_read(fp, timeout, buf, size)
44 SM_FILE_T *fp;
53 SM_REQUIRE_ISA(fp, SmFileMagic);
55 if (fp->f_read == NULL)
69 if (fp->f_r < 0)
70 fp->f_r = 0;
72 while ((int) resid > (r = fp->f_r))
74 (void) memcpy((void *) p, (void *) fp->f_p, (size_t) r);
75 fp
[all...]
H A Dmakebuf.c32 ** fp -- the file to be buffered
42 sm_makebuf(fp)
43 register SM_FILE_T *fp;
50 if (fp->f_flags & SMNBF)
52 fp->f_bf.smb_base = fp->f_p = fp->f_nbuf;
53 fp->f_bf.smb_size = 1;
56 flags = sm_whatbuf(fp, &size, &couldbetty);
59 fp
[all...]
H A Dfwalk.c40 register SM_FILE_T *fp; local
48 for (fp = g->gl_iobs, n = g->gl_niobs; --n >= 0; fp++)
50 if (fp->f_flags != 0)
53 fptimeout = fp->f_timeout;
58 ret |= (*function)(fp, &fptimeout);
H A Dstdio.c49 ** fp -- file pointer to be associated with the open
62 sm_stdopen(fp, info, flags, rpool)
63 SM_FILE_T *fp;
99 fp->f_file = open(path, oflags,
101 if (fp->f_file < 0)
105 (void) (*fp->f_seek)((void *)fp, (off_t)0, SEEK_END);
107 return fp->f_file;
114 ** fp -- file pointer to read from
127 sm_stdread(fp, bu
483 SM_FILE_T *fp; local
[all...]
H A Dfindfp.c155 register SM_FILE_T *fp; local
166 fp = oldfp;
167 goto found; /* for opening reusing an 'fp' */
172 for (fp = g->gl_iobs, n = g->gl_niobs; --n >= 0; fp++)
173 if (fp->sm_magic == NULL)
179 fp->sm_magic = SmFileMagic; /* 'fp' now valid and in-use */
180 fp->f_p = NULL; /* no current pointer */
181 fp
[all...]
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/
H A Dbackup.c43 static FILE *fp; local
47 if ((fp = fopen(savlog, "w")) == NULL) {
54 if (fp == NULL)
57 (void) fprintf(fp, "%s%s", path, mode ? "\n" :
/illumos-gate/usr/src/cmd/filesync/
H A Drecon.c122 reconcile(struct file *fp) argument
128 fp->f_fullname,
129 showflags(fileflags, fp->f_flags),
130 fp->f_modtime, fp->f_modns);
135 srcname = full_name(fp, OPT_SRC, OPT_SRC);
136 dstname = full_name(fp, OPT_DST, OPT_DST);
144 if (opt_acls == 0 && fp->f_info[ OPT_BASE ].f_numacls == 0) {
145 if (get_acls(srcname, &fp->f_info[ OPT_SRC ]))
146 fp
507 newer(struct file *fp) argument
540 older(struct file *fp) argument
573 samedata(struct file *fp) argument
626 samestuff(struct file *fp) argument
665 samecompare(struct file *fp) argument
725 truncated(struct file *fp) argument
803 full_name(struct file *fp, side_t srcdst, side_t whichbuf) argument
[all...]
H A Danal.c76 static errmask_t check_file(struct file *fp);
77 static diffmask_t check_changes(struct file *fp, int first, int second);
78 static int prune_file(struct file *fp);
79 static void queue_file(struct file *fp);
113 struct file *fp; local
127 for (fp = bp->b_files; fp; fp = fp->f_next)
128 if (fp
236 prune_file(struct file *fp) argument
269 struct file *fp; local
293 struct file *fp; local
355 check_file(struct file *fp) argument
461 check_changes(struct file *fp, int ref, int new) argument
648 find_link(struct file *fp, side_t srcdst) argument
832 has_other_links(struct file *fp, side_t srcdst) argument
908 link_update(struct file *fp, side_t which) argument
977 queue_file(struct file *fp) argument
1090 get_name(struct file *fp) argument
[all...]
/illumos-gate/usr/src/lib/libnvpair/
H A Dnvpair_json.c23 #define FPRINTF(fp, ...) \
25 if (fprintf(fp, __VA_ARGS__) < 0) \
46 nvlist_print_json_string(FILE *fp, const char *input) argument
54 FPRINTF(fp, "\"");
58 FPRINTF(fp, "\\\"");
61 FPRINTF(fp, "\\n");
64 FPRINTF(fp, "\\r");
67 FPRINTF(fp, "\\\\");
70 FPRINTF(fp, "\\f");
73 FPRINTF(fp, "\\
117 nvlist_print_json(FILE *fp, nvlist_t *nvl) argument
[all...]
/illumos-gate/usr/src/lib/libxcurses/src/libc/mks/
H A Dm_vsscan.c54 static FILE *fp = NULL; local
60 if (fp == NULL && (fp = tmpfile()) == NULL)
63 (void) rewind(fp);
66 (void) fputs(buf, fp);
69 (void) rewind(fp);
71 return (mks_vfscanf(fp, fmt, vp));
/illumos-gate/usr/src/cmd/dtrace/test/tst/sparc/ustack/
H A Dtst.helper.c53 uint32_t *fp = malloc(sizeof (instr)); local
58 instr[1] |= ((uintptr_t)baz - (uintptr_t)&fp[1]) >> 2;
64 bcopy(instr, fp, sizeof (instr));
66 (*(int (*)(void))fp)();
68 free(fp);
/illumos-gate/usr/src/common/ctf/
H A Dctf_open.c111 init_symtab(ctf_file_t *fp, const ctf_header_t *hp, argument
115 uint_t *xp = fp->ctf_sxlate;
116 uint_t *xend = xp + fp->ctf_nsyms;
170 info = *(ushort_t *)((uintptr_t)fp->ctf_buf + funcoff);
171 vlen = LCTF_INFO_VLEN(fp, info);
178 if (LCTF_INFO_KIND(fp, info) == CTF_K_UNKNOWN &&
191 ctf_dprintf("loaded %lu symtab entries\n", fp->ctf_nsyms);
200 init_types(ctf_file_t *fp, const ctf_header_t *cth) argument
203 const ctf_type_t *tbuf = (ctf_type_t *)(fp->ctf_buf + cth->cth_typeoff);
205 const ctf_type_t *tend = (ctf_type_t *)(fp
549 ctf_file_t *fp; local
800 ctf_file_t *fp; local
883 ctf_close(ctf_file_t *fp) argument
967 ctf_parent_file(ctf_file_t *fp) argument
977 ctf_parent_name(ctf_file_t *fp) argument
988 ctf_import(ctf_file_t *fp, ctf_file_t *pfp) argument
1012 ctf_setmodel(ctf_file_t *fp, int model) argument
1030 ctf_getmodel(ctf_file_t *fp) argument
1036 ctf_setspecific(ctf_file_t *fp, void *data) argument
1042 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...]
/illumos-gate/usr/src/lib/libpkg/common/
H A Dtputcfent.c45 tputcfent(struct cfent *ept, FILE *fp) argument
56 (void) fprintf(fp, pkg_gt("Pathname: %s\n"), ept->path);
57 (void) fprintf(fp, pkg_gt("Type: "));
61 (void) fputs(pkg_gt("regular file\n"), fp);
65 (void) fputs(pkg_gt("directory\n"), fp);
69 (void) fputs(pkg_gt("exclusive directory\n"), fp);
73 (void) fputs(pkg_gt("volatile file\n"), fp);
77 (void) fputs(pkg_gt("editted file\n"), fp);
81 (void) fputs(pkg_gt("named pipe\n"), fp);
85 (void) fputs(pkg_gt("installation file\n"), fp);
[all...]
H A Dppkgmap.c43 ppkgmap(struct cfent *ept, FILE *fp) argument
49 if (fprintf(fp, "%d ", ept->volno) < 0)
54 if (fprintf(fp, "%c %s", ept->ftype, ept->path) < 0)
57 if (fprintf(fp, "%c %s %s", ept->ftype, ept->pkg_class,
63 if (fprintf(fp, "=%s", ept->ainfo.local) < 0)
69 if (fprintf(fp, " ?") < 0)
72 if (fprintf(fp, " %ld", ept->ainfo.major) < 0)
76 if (fprintf(fp, " ?") < 0)
79 if (fprintf(fp, " %ld", ept->ainfo.minor) < 0)
85 if (fprintf(fp, ((ep
[all...]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dkrbfileio.c41 krb5_sync_disk_file(krb5_context context, FILE *fp) argument
43 if (fp == NULL) {
44 (void) fclose(fp);
47 if ((fflush(fp) == EOF) || ferror(fp) || (fsync(fileno(fp)) == -1)) {
/illumos-gate/usr/src/uts/sparc/v9/fpu/
H A Dfpu.c59 fp_prsave(kfpu_t *fp) argument
61 if ((fp->fpu_en) || (fp->fpu_fprs & FPRS_FEF)) {
64 fp->fpu_fprs = _fp_read_fprs();
65 if ((fp->fpu_fprs & FPRS_FEF) != FPRS_FEF) {
69 fp->fpu_fprs = fprs;
73 "fp_prsave with fp disabled!");
76 fp_fksave(fp);
120 * fp context belongs to a thread on deathrow
125 * fp contex
130 fp_free(kfpu_t *fp, int isexec) argument
154 kfpu_t *fp; local
211 kfpu_t *fp; local
320 kfpu_t *fp = lwptofpu(curthread->t_lwp); local
423 kfpu_t *fp = lwptofpu(lwp); local
[all...]

Completed in 66 milliseconds

1234567891011>>