Home
last modified time | relevance | path

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

12345678910>>...51

/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/
H A Dfastfind.c143 register Find_t* fp; in findopen() local
175 if (!(fp = (Find_t*)vmnewof(vm, 0, Find_t, 1, sizeof(Encode_t) - sizeof(Code_t)))) in findopen()
177 fp->vm = vm; in findopen()
178 fp->id = lib; in findopen()
179 fp->disc = disc; in findopen()
180 fp->generate = 1; in findopen()
203 sfsprintf(fp->encode.file, sizeof(fp->encode.file), "%s/%s", path, findnames[k]); in findopen()
204 if (!eaccess(fp->encode.file, R_OK|W_OK)) in findopen()
206 path = fp->encode.file; in findopen()
209 if (strchr(findnames[k], '/') && (b = strrchr(fp->encode.file, '/'))) in findopen()
[all …]
/illumos-gate/usr/src/cmd/ipf/lib/
H A Dprintfr.c17 void printfr(fp, iocfunc) in printfr() argument
18 struct frentry *fp; in printfr()
29 type = fp->fr_type & ~FR_T_BUILTIN;
31 if ((fp->fr_type & FR_T_BUILTIN) != 0)
34 if (fp->fr_collect != 0)
35 printf("%u ", fp->fr_collect);
37 if (fp->fr_type == FR_T_CALLFUNC) {
39 } else if (fp->fr_func != NULL) {
41 if ((fp->fr_flags & FR_CALLNOW) != 0)
43 s = kvatoname(fp->fr_func, iocfunc);
[all …]
/illumos-gate/usr/src/cmd/smbios/
H A Dsmbios.c92 oprintf(FILE *fp, const char *format, ...) in oprintf() argument
97 (void) vfprintf(fp, format, ap); in oprintf()
103 desc_printf(const char *d, FILE *fp, const char *format, ...) in desc_printf() argument
108 (void) vfprintf(fp, format, ap); in desc_printf()
112 (void) fprintf(fp, " (%s)\n", d); in desc_printf()
114 (void) fprintf(fp, "\n"); in desc_printf()
118 flag_printf(FILE *fp, const char *s, uint_t flags, size_t bits, in flag_printf() argument
123 oprintf(fp, " %s: 0x%x\n", s, flags); in flag_printf()
133 desc_printf(flag_desc(f), fp, "\t%s", n); in flag_printf()
135 desc_printf(flag_desc(f), fp, "\t0x%x", f); in flag_printf()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dungetc.c50 sm_submore_x(fp) in sm_submore_x() argument
51 SM_FILE_T *fp; in sm_submore_x()
56 if (fp->f_ub.smb_base == fp->f_ubuf)
60 fp->f_ub.smb_base = p;
61 fp->f_ub.smb_size = SM_IO_BUFSIZ;
62 p += SM_IO_BUFSIZ - sizeof(fp->f_ubuf);
63 for (i = sizeof(fp->f_ubuf); --i >= 0;)
64 p[i] = fp->f_ubuf[i];
65 fp->f_p = p;
68 i = fp->f_ub.smb_size;
[all …]
H A Dfseek.c77 sm_io_seek(fp, timeout, offset, whence) in sm_io_seek() argument
78 register SM_FILE_T *fp; in sm_io_seek()
91 SM_REQUIRE_ISA(fp, SmFileMagic);
98 if ((seekfn = fp->f_seek) == NULL)
105 timeout = fp->f_timeout;
145 sm_flush(fp, (int *) &timeout);
147 if (fp->f_flags & SMOFF)
148 curoff = fp->f_lseekoff;
151 curoff = (*seekfn)(fp, (off_t) 0, SM_IO_SEEK_CUR);
158 if (fp->f_flags & SMRD)
[all …]
H A Drefill.c58 #define SM_IO_RD_TIMEOUT(fp, fd, to, timeout, sel_ret) \ argument
87 fp->f_r = 0; \
88 fp->f_flags |= SMERR; \
117 sm_lflush(fp, timeout) in sm_lflush() argument
118 SM_FILE_T *fp; in sm_lflush()
122 if ((fp->f_flags & (SMLBF|SMWR)) == (SMLBF|SMWR))
123 return sm_flush(fp, timeout);
140 sm_refill(fp, timeout) in sm_refill() argument
141 register SM_FILE_T *fp; in sm_refill()
149 timeout = fp->f_timeout;
[all …]
H A Dfindfp.c153 register SM_FILE_T *fp; local
164 fp = oldfp;
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->f_w = 0; /* nothing to write */
180 fp->f_r = 0; /* nothing to read */
181 fp->f_flags = flags;
182 fp->f_file = -1; /* no file */
[all …]
H A Dfvwrite.c45 #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, fd, timeout);
112 else if ((fp->f_flags & SMLBF) == 0)
130 if ((((fp->f_flags & (SMALC | SMSTR)) == (SMALC | SMSTR))
[all …]
H A Dsmstdio.c50 sm_stdioopen(fp, info, flags, rpool) in sm_stdioopen() argument
51 SM_FILE_T *fp; in sm_stdioopen()
98 fp->f_cookie = s;
113 setup(fp) in setup() argument
114 SM_FILE_T *fp; in setup()
116 if (fp->f_cookie == NULL)
118 switch (fp->f_ival)
121 fp->f_cookie = stdin;
124 fp->f_cookie = stdout;
127 fp->f_cookie = stderr;
[all …]
H A Dstdio.c60 sm_stdopen(fp, info, flags, rpool) in sm_stdopen() argument
61 SM_FILE_T *fp; in sm_stdopen()
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;
125 sm_stdread(fp, buf, n) in sm_stdread() argument
126 SM_FILE_T *fp; in sm_stdread()
132 ret = read(fp->f_file, buf, n);
136 fp->f_lseekoff += ret;
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
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 …]
/illumos-gate/usr/src/cmd/filesync/
H A Danal.c75 static errmask_t check_file(struct file *fp);
76 static diffmask_t check_changes(struct file *fp, int first, int second);
77 static int prune_file(struct file *fp);
78 static void queue_file(struct file *fp);
112 struct file *fp; in analyze() local
126 for (fp = bp->b_files; fp; fp = fp->f_next) in analyze()
127 if (fp->f_flags & F_EVALUATE) in analyze()
128 errs |= find_renames(fp); in analyze()
149 for (fp = bp->b_files; fp; fp = fp->f_next) in analyze()
150 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.c118 struct file *fp; in evaluate() local
145 for (fp = bp->b_files; fp; fp = fp->f_next) in evaluate()
146 fakedata(fp, srcdst); in evaluate()
203 for (fp = bp->b_files; fp; fp = fp->f_next) in evaluate()
204 if (fp->f_flags & F_LISTED) { in evaluate()
205 errs |= eval_file(bp, fp); in evaluate()
206 fp->f_flags &= ~F_LISTED; in evaluate()
248 struct file *fp; in add_file_arg() local
328 fp = (dp == 0) ? add_file_to_base(bp, name) in add_file_arg()
333 fp->f_flags |= F_LISTED | F_SPARSE; in add_file_arg()
[all …]
/illumos-gate/usr/src/common/ctf/
H A Dctf_open.c112 init_symtab(ctf_file_t *fp, const ctf_header_t *hp, in init_symtab() argument
116 uint_t *xp = fp->ctf_sxlate; in init_symtab()
117 uint_t *xend = xp + fp->ctf_nsyms; in init_symtab()
171 info = *(ushort_t *)((uintptr_t)fp->ctf_buf + funcoff); in init_symtab()
172 vlen = LCTF_INFO_VLEN(fp, info); in init_symtab()
179 if (LCTF_INFO_KIND(fp, info) == CTF_K_UNKNOWN && in init_symtab()
192 ctf_dprintf("loaded %lu symtab entries\n", fp->ctf_nsyms); in init_symtab()
201 init_types(ctf_file_t *fp, const ctf_header_t *cth) in init_types() argument
204 const ctf_type_t *tbuf = (ctf_type_t *)(fp->ctf_buf + cth->cth_typeoff); in init_types()
206 const ctf_type_t *tend = (ctf_type_t *)(fp->ctf_buf + cth->cth_stroff); in init_types()
[all …]
H A Dctf_types.c36 ctf_get_ctt_size(const ctf_file_t *fp, const ctf_type_t *tp, ssize_t *sizep, in ctf_get_ctt_size() argument
41 if (fp->ctf_version > CTF_VERSION_1 && in ctf_get_ctt_size()
75 ctf_member_iter(ctf_file_t *fp, ctf_id_t type, ctf_member_f *func, void *arg) in ctf_member_iter() argument
77 ctf_file_t *ofp = fp; in ctf_member_iter()
83 if ((type = ctf_type_resolve(fp, type)) == CTF_ERR) in ctf_member_iter()
86 if ((tp = ctf_lookup_by_id(&fp, type)) == NULL) in ctf_member_iter()
89 (void) ctf_get_ctt_size(fp, tp, &size, &increment); in ctf_member_iter()
90 kind = LCTF_INFO_KIND(fp, tp->ctt_info); in ctf_member_iter()
95 if (fp->ctf_version == CTF_VERSION_1 || size < CTF_LSTRUCT_THRESH) { in ctf_member_iter()
99 for (n = LCTF_INFO_VLEN(fp, tp->ctt_info); n != 0; n--, mp++) { in ctf_member_iter()
[all …]
H A Dctf_lookup.c81 ctf_lookup_by_name(ctf_file_t *fp, const char *name) in ctf_lookup_by_name() argument
92 return (ctf_set_errno(fp, EINVAL)); in ctf_lookup_by_name()
114 ntype = fp->ctf_ptrtab[CTF_TYPE_TO_INDEX(type)]; in ctf_lookup_by_name()
116 ntype = ctf_type_resolve(fp, type); in ctf_lookup_by_name()
117 if (ntype == CTF_ERR || (ntype = fp->ctf_ptrtab[ in ctf_lookup_by_name()
119 (void) ctf_set_errno(fp, ECTF_NOTYPE); in ctf_lookup_by_name()
125 (fp->ctf_flags & LCTF_CHILD)); in ctf_lookup_by_name()
134 for (lp = fp->ctf_lookups; lp->ctl_prefix != NULL; lp++) { in ctf_lookup_by_name()
147 if ((hp = ctf_hash_lookup(lp->ctl_hash, fp, p, in ctf_lookup_by_name()
149 (void) ctf_set_errno(fp, ECTF_NOTYPE); in ctf_lookup_by_name()
[all …]
H A Dctf_create.c69 ctf_file_t *fp; in ctf_create() local
82 if ((fp = ctf_bufopen(&cts, NULL, NULL, errp)) == NULL) { in ctf_create()
87 fp->ctf_flags |= LCTF_RDWR; in ctf_create()
88 fp->ctf_dthashlen = hashlen; in ctf_create()
90 fp->ctf_dthash = hash; in ctf_create()
91 fp->ctf_dtstrlen = sizeof (_CTF_STRTAB_TEMPLATE); in ctf_create()
92 fp->ctf_dtnextid = 1; in ctf_create()
93 fp->ctf_dtoldid = 0; in ctf_create()
95 return (fp); in ctf_create()
101 ctf_file_t *fp; in ctf_fdcreate() local
[all …]
/illumos-gate/usr/src/lib/libnvpair/
H A Dnvpair_json.c24 #define FPRINTF(fp, ...) \ argument
26 if (fprintf(fp, __VA_ARGS__) < 0) \
47 nvlist_print_json_string(FILE *fp, const char *input) in nvlist_print_json_string() argument
55 FPRINTF(fp, "\""); in nvlist_print_json_string()
59 FPRINTF(fp, "\\\""); in nvlist_print_json_string()
62 FPRINTF(fp, "\\n"); in nvlist_print_json_string()
65 FPRINTF(fp, "\\r"); in nvlist_print_json_string()
68 FPRINTF(fp, "\\\\"); in nvlist_print_json_string()
71 FPRINTF(fp, "\\f"); in nvlist_print_json_string()
74 FPRINTF(fp, "\\t"); in nvlist_print_json_string()
[all …]
/illumos-gate/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 …]
/illumos-gate/usr/src/boot/libsa/
H A Dufs.c130 #define DIP(fp, field) \ argument
131 ((fp)->f_fs->fs_magic == FS_UFS1_MAGIC ? \
132 (fp)->f_di.di1.field : (fp)->f_di.di2.field)
146 struct file *fp = (struct file *)f->f_fsdata; in read_inode() local
147 struct fs *fs = fp->f_fs; in read_inode()
170 if (fp->f_fs->fs_magic == FS_UFS1_MAGIC) in read_inode()
171 fp->f_di.di1 = ((struct ufs1_dinode *)buf) in read_inode()
174 fp->f_di.di2 = ((struct ufs2_dinode *)buf) in read_inode()
184 fp->f_blkno[level] = -1; in read_inode()
185 fp->f_buf_blkno = -1; in read_inode()
[all …]
/illumos-gate/usr/src/uts/sparc/v9/fpu/
H A Dfpu.c59 fp_prsave(kfpu_t *fp) in fp_prsave() argument
61 if ((fp->fpu_en) || (fp->fpu_fprs & FPRS_FEF)) { in fp_prsave()
64 fp->fpu_fprs = _fp_read_fprs(); in fp_prsave()
65 if ((fp->fpu_fprs & FPRS_FEF) != FPRS_FEF) { in fp_prsave()
69 fp->fpu_fprs = fprs; in fp_prsave()
76 fp_fksave(fp); in fp_prsave()
130 fp_free(kfpu_t *fp, int isexec) in fp_free() argument
135 if (curthread->t_lwp != NULL && lwptofpu(curthread->t_lwp) == fp) { in fp_free()
136 fp->fpu_en = 0; in fp_free()
137 fp->fpu_fprs = fprs; in fp_free()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/
H A Dsftable.c60 Fmtpos_t* fp; /* position array of arguments */ local
65 fp = NIL(Fmtpos_t*);
66 else if(!(fp = sffmtpos(f,form,args,ft,-1)) )
137 if(fp && fp[n].ft.fmt == 0)
138 { fp[n].ft.fmt = LEFTP;
139 fp[n].ft.form = (char*)form;
192 if(fp && fp[n].ft.fmt == 0)
193 { fp[n].ft.fmt = '.';
194 fp[n].ft.size = dot;
195 fp[n].ft.form = (char*)form;
[all …]
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs4_deleg_ops.c64 recall_all_delegations(rfs4_file_t *fp, bool_t trunc, caller_context_t *ct) in recall_all_delegations() argument
68 rfs4_recall_deleg(fp, trunc, NULL); in recall_all_delegations()
74 rfs4_dbe_lock(fp->rf_dbe); in recall_all_delegations()
75 if (fp->rf_dinfo.rd_dtype == OPEN_DELEGATE_NONE) { in recall_all_delegations()
76 rfs4_dbe_unlock(fp->rf_dbe); in recall_all_delegations()
81 rfs4_dbe_unlock(fp->rf_dbe); in recall_all_delegations()
86 while (fp->rf_dinfo.rd_dtype != OPEN_DELEGATE_NONE) { in recall_all_delegations()
87 rc = rfs4_dbe_twait(fp->rf_dbe, in recall_all_delegations()
90 rfs4_dbe_unlock(fp->rf_dbe); in recall_all_delegations()
91 rfs4_recall_deleg(fp, trunc, NULL); in recall_all_delegations()
[all …]

12345678910>>...51