Home
last modified time | relevance | path

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

12345678910>>...51

/titanic_41/usr/src/lib/libast/common/misc/
H A Dfastfind.c164 register Find_t* fp; in findopen() local
196 if (!(fp = (Find_t*)vmnewof(vm, 0, Find_t, 1, sizeof(Encode_t) - sizeof(Code_t)))) in findopen()
198 fp->vm = vm; in findopen()
199 fp->id = lib; in findopen()
200 fp->disc = disc; in findopen()
201 fp->generate = 1; in findopen()
224 sfsprintf(fp->encode.file, sizeof(fp->encode.file), "%s/%s", path, findnames[k]); in findopen()
225 if (!eaccess(fp->encode.file, R_OK|W_OK)) in findopen()
227 path = fp->encode.file; in findopen()
230 if (strchr(findnames[k], '/') && (b = strrchr(fp->encode.file, '/'))) in findopen()
[all …]
/titanic_41/usr/src/cmd/ipf/lib/common/
H A Dprintfr.c19 void printfr(fp, iocfunc) in printfr() argument
20 struct frentry *fp; in printfr()
31 type = fp->fr_type & ~FR_T_BUILTIN;
33 if ((fp->fr_type & FR_T_BUILTIN) != 0)
36 if (fp->fr_collect != 0)
37 printf("%u ", fp->fr_collect);
39 if (fp->fr_type == FR_T_CALLFUNC) {
41 } else if (fp->fr_func != NULL) {
43 if ((fp->fr_flags & FR_CALLNOW) != 0)
45 s = kvatoname(fp->fr_func, iocfunc);
[all …]
/titanic_41/usr/src/cmd/smbios/
H A Dsmbios.c60 oprintf(FILE *fp, const char *format, ...) in oprintf() argument
65 (void) vfprintf(fp, format, ap); in oprintf()
71 desc_printf(const char *d, FILE *fp, const char *format, ...) in desc_printf() argument
76 (void) vfprintf(fp, format, ap); in desc_printf()
80 (void) fprintf(fp, " (%s)\n", d); in desc_printf()
82 (void) fprintf(fp, "\n"); in desc_printf()
86 flag_printf(FILE *fp, const char *s, uint_t flags, size_t bits, in flag_printf() argument
91 oprintf(fp, " %s: 0x%x\n", s, flags); in flag_printf()
101 desc_printf(flag_desc(f), fp, "\t%s", n); in flag_printf()
103 desc_printf(flag_desc(f), fp, "\t0x%x", f); in flag_printf()
[all …]
/titanic_41/usr/src/cmd/sendmail/libsm/
H A Dungetc.c52 sm_submore_x(fp) in sm_submore_x() argument
53 SM_FILE_T *fp; in sm_submore_x()
58 if (fp->f_ub.smb_base == fp->f_ubuf)
62 fp->f_ub.smb_base = p;
63 fp->f_ub.smb_size = SM_IO_BUFSIZ;
64 p += SM_IO_BUFSIZ - sizeof(fp->f_ubuf);
65 for (i = sizeof(fp->f_ubuf); --i >= 0;)
66 p[i] = fp->f_ubuf[i];
67 fp->f_p = p;
70 i = fp->f_ub.smb_size;
[all …]
H A Dfseek.c79 sm_io_seek(fp, timeout, offset, whence) in sm_io_seek() argument
80 register SM_FILE_T *fp; in sm_io_seek()
93 SM_REQUIRE_ISA(fp, SmFileMagic);
100 if ((seekfn = fp->f_seek) == NULL)
107 timeout = fp->f_timeout;
147 sm_flush(fp, (int *) &timeout);
149 if (fp->f_flags & SMOFF)
150 curoff = fp->f_lseekoff;
153 curoff = (*seekfn)(fp, (off_t) 0, SM_IO_SEEK_CUR);
160 if (fp->f_flags & SMRD)
[all …]
H A Drefill.c60 #define SM_IO_RD_TIMEOUT(fp, fd, to, timeout, sel_ret) \ argument
89 fp->f_r = 0; \
90 fp->f_flags |= SMERR; \
119 sm_lflush(fp, timeout) in sm_lflush() argument
120 SM_FILE_T *fp; in sm_lflush()
124 if ((fp->f_flags & (SMLBF|SMWR)) == (SMLBF|SMWR))
125 return sm_flush(fp, timeout);
142 sm_refill(fp, timeout) in sm_refill() argument
143 register SM_FILE_T *fp; in sm_refill()
151 timeout = fp->f_timeout;
[all …]
H A Dfindfp.c155 register SM_FILE_T *fp; local
166 fp = oldfp;
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->f_w = 0; /* nothing to write */
182 fp->f_r = 0; /* nothing to read */
183 fp->f_flags = flags;
184 fp->f_file = -1; /* no file */
[all …]
H A Dfvwrite.c47 #define COPY(n) (void)memcpy((void *)fp->f_p, (void *)p, (size_t)(n))
58 sm_fvwrite(fp, timeout, uio)
59 register SM_FILE_T *fp;
76 if (cantwrite(fp))
82 SM_CONVERT_TIME(fp, fd, timeout, &to);
88 if (fp->f_flags & SMNBF)
95 w = (*fp->f_write)(fp, p, SM_MIN(len, SM_IO_BUFSIZ));
104 SM_IO_WR_TIMEOUT(fp, fd, timeout);
114 else if ((fp->f_flags & SMLBF) == 0)
132 if ((((fp->f_flags & (SMALC | SMSTR)) == (SMALC | SMSTR))
[all …]
H A Dsmstdio.c52 sm_stdioopen(fp, info, flags, rpool) in sm_stdioopen() argument
53 SM_FILE_T *fp; in sm_stdioopen()
100 fp->f_cookie = s;
115 setup(fp) in setup() argument
116 SM_FILE_T *fp; in setup()
118 if (fp->f_cookie == NULL)
120 switch (fp->f_ival)
123 fp->f_cookie = stdin;
126 fp->f_cookie = stdout;
129 fp->f_cookie = stderr;
[all …]
H A Dstdio.c62 sm_stdopen(fp, info, flags, rpool) in sm_stdopen() argument
63 SM_FILE_T *fp; in sm_stdopen()
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;
127 sm_stdread(fp, buf, n) in sm_stdread() argument
128 SM_FILE_T *fp; in sm_stdread()
134 ret = read(fp->f_file, buf, n);
138 fp->f_lseekoff += ret;
[all …]
/titanic_41/usr/src/lib/libcmd/common/
H A Dfmt.c74 #define isoption(fp,c) ((fp)->flags&(1L<<((c)-'a'))) argument
75 #define setoption(fp,c) ((fp)->flags|=(1L<<((c)-'a'))) argument
76 #define clroption(fp,c) ((fp)->flags&=~(1L<<((c)-'a'))) argument
79 outline(Fmt_t* fp) in outline() argument
81 register char* cp = fp->outbuf; in outline()
86 if (!fp->outp) in outline()
88 while (fp->outp[-1] == ' ') in outline()
89 fp->outp--; in outline()
90 *fp->outp = 0; in outline()
96 cp = &fp->outbuf[TABSZ*n]; in outline()
[all …]
/titanic_41/usr/src/cmd/filesync/
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; in analyze() local
127 for (fp = bp->b_files; fp; fp = fp->f_next) in analyze()
128 if (fp->f_flags & F_EVALUATE) in analyze()
129 errs |= find_renames(fp); in analyze()
150 for (fp = bp->b_files; fp; fp = fp->f_next) in analyze()
151 if (fp->f_flags & (F_EVALUATE|F_STAT_ERROR)) in analyze()
[all …]
H A Drecon.c122 reconcile(struct file *fp) in reconcile() argument
128 fp->f_fullname, in reconcile()
129 showflags(fileflags, fp->f_flags), in reconcile()
130 fp->f_modtime, fp->f_modns); in reconcile()
135 srcname = full_name(fp, OPT_SRC, OPT_SRC); in reconcile()
136 dstname = full_name(fp, OPT_DST, OPT_DST); in reconcile()
144 if (opt_acls == 0 && fp->f_info[ OPT_BASE ].f_numacls == 0) { in reconcile()
145 if (get_acls(srcname, &fp->f_info[ OPT_SRC ])) in reconcile()
146 fp->f_srcdiffs |= D_FACLS; in reconcile()
147 if (get_acls(dstname, &fp->f_info[ OPT_DST ])) in reconcile()
[all …]
H A Deval.c120 struct file *fp; in evaluate() local
147 for (fp = bp->b_files; fp; fp = fp->f_next) in evaluate()
148 fakedata(fp, srcdst); in evaluate()
205 for (fp = bp->b_files; fp; fp = fp->f_next) in evaluate()
206 if (fp->f_flags & F_LISTED) { in evaluate()
207 errs |= eval_file(bp, fp); in evaluate()
208 fp->f_flags &= ~F_LISTED; in evaluate()
250 struct file *fp; in add_file_arg() local
330 fp = (dp == 0) ? add_file_to_base(bp, name) in add_file_arg()
335 fp->f_flags |= F_LISTED | F_SPARSE; in add_file_arg()
[all …]
/titanic_41/usr/src/lib/libnvpair/
H A Dnvpair_json.c23 #define FPRINTF(fp, ...) \ argument
25 if (fprintf(fp, __VA_ARGS__) < 0) \
46 nvlist_print_json_string(FILE *fp, const char *input) in nvlist_print_json_string() argument
54 FPRINTF(fp, "\""); in nvlist_print_json_string()
58 FPRINTF(fp, "\\\""); in nvlist_print_json_string()
61 FPRINTF(fp, "\\n"); in nvlist_print_json_string()
64 FPRINTF(fp, "\\r"); in nvlist_print_json_string()
67 FPRINTF(fp, "\\\\"); in nvlist_print_json_string()
70 FPRINTF(fp, "\\f"); in nvlist_print_json_string()
73 FPRINTF(fp, "\\t"); in nvlist_print_json_string()
[all …]
/titanic_41/usr/src/common/ctf/
H A Dctf_open.c111 init_symtab(ctf_file_t *fp, const ctf_header_t *hp, in init_symtab() argument
115 uint_t *xp = fp->ctf_sxlate; in init_symtab()
116 uint_t *xend = xp + fp->ctf_nsyms; in init_symtab()
170 info = *(ushort_t *)((uintptr_t)fp->ctf_buf + funcoff); in init_symtab()
171 vlen = LCTF_INFO_VLEN(fp, info); in init_symtab()
178 if (LCTF_INFO_KIND(fp, info) == CTF_K_UNKNOWN && in init_symtab()
191 ctf_dprintf("loaded %lu symtab entries\n", fp->ctf_nsyms); in init_symtab()
200 init_types(ctf_file_t *fp, const ctf_header_t *cth) in init_types() argument
203 const ctf_type_t *tbuf = (ctf_type_t *)(fp->ctf_buf + cth->cth_typeoff); in init_types()
205 const ctf_type_t *tend = (ctf_type_t *)(fp->ctf_buf + cth->cth_stroff); in init_types()
[all …]
H A Dctf_lookup.c79 ctf_lookup_by_name(ctf_file_t *fp, const char *name) in ctf_lookup_by_name() argument
90 return (ctf_set_errno(fp, EINVAL)); in ctf_lookup_by_name()
112 ntype = fp->ctf_ptrtab[CTF_TYPE_TO_INDEX(type)]; in ctf_lookup_by_name()
114 ntype = ctf_type_resolve(fp, type); in ctf_lookup_by_name()
115 if (ntype == CTF_ERR || (ntype = fp->ctf_ptrtab[ in ctf_lookup_by_name()
117 (void) ctf_set_errno(fp, ECTF_NOTYPE); in ctf_lookup_by_name()
123 (fp->ctf_flags & LCTF_CHILD)); in ctf_lookup_by_name()
132 for (lp = fp->ctf_lookups; lp->ctl_prefix != NULL; lp++) { in ctf_lookup_by_name()
144 if ((hp = ctf_hash_lookup(lp->ctl_hash, fp, p, in ctf_lookup_by_name()
146 (void) ctf_set_errno(fp, ECTF_NOTYPE); in ctf_lookup_by_name()
[all …]
H A Dctf_types.c31 ctf_get_ctt_size(const ctf_file_t *fp, const ctf_type_t *tp, ssize_t *sizep, in ctf_get_ctt_size() argument
36 if (fp->ctf_version > CTF_VERSION_1 && in ctf_get_ctt_size()
58 ctf_member_iter(ctf_file_t *fp, ctf_id_t type, ctf_member_f *func, void *arg) in ctf_member_iter() argument
60 ctf_file_t *ofp = fp; in ctf_member_iter()
66 if ((type = ctf_type_resolve(fp, type)) == CTF_ERR) in ctf_member_iter()
69 if ((tp = ctf_lookup_by_id(&fp, type)) == NULL) in ctf_member_iter()
72 (void) ctf_get_ctt_size(fp, tp, &size, &increment); in ctf_member_iter()
73 kind = LCTF_INFO_KIND(fp, tp->ctt_info); in ctf_member_iter()
78 if (fp->ctf_version == CTF_VERSION_1 || size < CTF_LSTRUCT_THRESH) { in ctf_member_iter()
82 for (n = LCTF_INFO_VLEN(fp, tp->ctt_info); n != 0; n--, mp++) { in ctf_member_iter()
[all …]
/titanic_41/usr/src/uts/common/inet/sctp/
H A Dsctp_common.c63 sctp_set_saddr(sctp_t *sctp, sctp_faddr_t *fp) in sctp_set_saddr() argument
65 boolean_t v6 = !fp->sf_isv4; in sctp_set_saddr()
68 fp->sf_saddr = sctp_get_valid_addr(sctp, v6, &addr_set); in sctp_set_saddr()
76 fp->sf_state = SCTP_FADDRS_UNREACH; in sctp_set_saddr()
86 sctp_get_dest(sctp_t *sctp, sctp_faddr_t *fp) in sctp_get_dest() argument
104 fp->sf_saddr = ipv6_all_zeros; in sctp_get_dest()
111 if (fp->sf_state == SCTP_FADDRS_UNREACH) { in sctp_get_dest()
112 fp->sf_state = SCTP_FADDRS_UNCONFIRMED; in sctp_get_dest()
119 fp->sf_ixa->ixa_flags |= IXAF_PMTU_DISCOVERY; in sctp_get_dest()
121 ip_attr_nexthop(&connp->conn_xmit_ipp, fp->sf_ixa, &fp->sf_faddr, in sctp_get_dest()
[all …]
H A Dsctp_timer.c394 sctp_faddr_t *fp; in sctp_heartbeat_timer() local
436 for (fp = sctp->sctp_faddrs; fp != NULL; fp = fp->sf_next) { in sctp_heartbeat_timer()
438 pp_max_retr = MIN(sctp_pp_early_abort, fp->sf_max_retr); in sctp_heartbeat_timer()
440 pp_max_retr = fp->sf_max_retr; in sctp_heartbeat_timer()
452 if (fp->sf_state == SCTP_FADDRS_UNREACH) { in sctp_heartbeat_timer()
453 sctp_get_dest(sctp, fp); in sctp_heartbeat_timer()
454 if (fp->sf_state == SCTP_FADDRS_UNREACH) { in sctp_heartbeat_timer()
455 if (fp->sf_hb_enabled && in sctp_heartbeat_timer()
456 ++fp->sf_strikes > pp_max_retr && in sctp_heartbeat_timer()
457 sctp_faddr_dead(sctp, fp, in sctp_heartbeat_timer()
[all …]
/titanic_41/usr/src/uts/sparc/v9/fpu/
H A Dfpu.c61 fp_prsave(kfpu_t *fp) in fp_prsave() argument
63 if ((fp->fpu_en) || (fp->fpu_fprs & FPRS_FEF)) { in fp_prsave()
66 fp->fpu_fprs = _fp_read_fprs(); in fp_prsave()
67 if ((fp->fpu_fprs & FPRS_FEF) != FPRS_FEF) { in fp_prsave()
71 fp->fpu_fprs = fprs; in fp_prsave()
78 fp_fksave(fp); in fp_prsave()
132 fp_free(kfpu_t *fp, int isexec) in fp_free() argument
137 if (curthread->t_lwp != NULL && lwptofpu(curthread->t_lwp) == fp) { in fp_free()
138 fp->fpu_en = 0; in fp_free()
139 fp->fpu_fprs = fprs; in fp_free()
[all …]
/titanic_41/usr/src/uts/common/fs/nfs/
H A Dnfs4_deleg_ops.c63 recall_all_delegations(rfs4_file_t *fp, bool_t trunc, caller_context_t *ct) in recall_all_delegations() argument
67 rfs4_recall_deleg(fp, trunc, NULL); in recall_all_delegations()
73 rfs4_dbe_lock(fp->rf_dbe); in recall_all_delegations()
74 if (fp->rf_dinfo.rd_dtype == OPEN_DELEGATE_NONE) { in recall_all_delegations()
75 rfs4_dbe_unlock(fp->rf_dbe); in recall_all_delegations()
80 rfs4_dbe_unlock(fp->rf_dbe); in recall_all_delegations()
85 while (fp->rf_dinfo.rd_dtype != OPEN_DELEGATE_NONE) { in recall_all_delegations()
86 rc = rfs4_dbe_twait(fp->rf_dbe, in recall_all_delegations()
89 rfs4_dbe_unlock(fp->rf_dbe); in recall_all_delegations()
90 rfs4_recall_deleg(fp, trunc, NULL); in recall_all_delegations()
[all …]
/titanic_41/usr/src/lib/libast/common/sfio/
H A Dsftable.c60 Fmtpos_t* fp; /* position array of arguments */ local
67 fp = NIL(Fmtpos_t*);
68 else if(!(fp = sffmtpos(f,form,args,ft,-1)) )
139 if(fp && fp[n].ft.fmt == 0)
140 { fp[n].ft.fmt = LEFTP;
141 fp[n].ft.form = (char*)form;
194 if(fp && fp[n].ft.fmt == 0)
195 { fp[n].ft.fmt = '.';
196 fp[n].ft.size = dot;
197 fp[n].ft.form = (char*)form;
[all …]
/titanic_41/usr/src/lib/libpkg/common/
H A Dtputcfent.c45 tputcfent(struct cfent *ept, FILE *fp) in tputcfent() argument
56 (void) fprintf(fp, pkg_gt("Pathname: %s\n"), ept->path); in tputcfent()
57 (void) fprintf(fp, pkg_gt("Type: ")); in tputcfent()
61 (void) fputs(pkg_gt("regular file\n"), fp); in tputcfent()
65 (void) fputs(pkg_gt("directory\n"), fp); in tputcfent()
69 (void) fputs(pkg_gt("exclusive directory\n"), fp); in tputcfent()
73 (void) fputs(pkg_gt("volatile file\n"), fp); in tputcfent()
77 (void) fputs(pkg_gt("editted file\n"), fp); in tputcfent()
81 (void) fputs(pkg_gt("named pipe\n"), fp); in tputcfent()
85 (void) fputs(pkg_gt("installation file\n"), fp); in tputcfent()
[all …]
/titanic_41/usr/src/uts/intel/ia32/os/
H A Dfpu.c179 struct fpu_ctx *fp; /* parent fpu context */ in fp_new_lwp() local
189 fp = &t->t_lwp->lwp_pcb.pcb_fpu; in fp_new_lwp()
196 fp_save(fp); in fp_new_lwp()
205 fn = &fp->fpu_regs.kfpu_u.kfpu_fn; in fp_new_lwp()
212 fx = &fp->fpu_regs.kfpu_u.kfpu_fx; in fp_new_lwp()
220 cfp->fpu_xsave_mask = fp->fpu_xsave_mask; in fp_new_lwp()
222 fx = &fp->fpu_regs.kfpu_u.kfpu_xs.xs_fxsave; in fp_new_lwp()
266 fp_free(struct fpu_ctx *fp, int isexec) in fp_free() argument
270 if (fp->fpu_flags & FPU_VALID) in fp_free()
278 fp->fpu_flags |= FPU_VALID; in fp_free()
[all …]

12345678910>>...51