| /onnv-gate/usr/src/lib/libast/common/misc/ |
| H A D | fastfind.c | 164 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 …]
|
| /onnv-gate/usr/src/cmd/ipf/lib/common/ |
| H A D | printfr.c | 19 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 …]
|
| /onnv-gate/usr/src/cmd/agents/snmp/parser/ |
| H A D | backend.c | 57 #define PRINT_OPEN_BRACKET fprintf(fp, "{\n"); 58 #define PRINT_TAG_OPEN_BRACKET fprintf(fp, "\t{\n"); 59 #define PRINT_CLOSE_BRACKET fprintf(fp, "}\n"); 60 #define PRINT_TAG_CLOSE_BRACKET fprintf(fp, "\t}\n"); 63 fprintf(fp,"\tswitch(pass)\n");\ 64 fprintf(fp,"\t{\n");\ 65 fprintf(fp,"\t\tcase FIRST_PASS:\n\n");\ 66 fprintf(fp,"\t\t\t/* check the existence of the element */\n");\ 67 fprintf(fp,"\t\t\t/* which corresponds to the given index and */\n");\ 68 fprintf(fp,"\t\t\t/* check the validity of the input value */\n");\ [all …]
|
| /onnv-gate/usr/src/cmd/smbios/ |
| H A D | smbios.c | 58 oprintf(FILE *fp, const char *format, ...) in oprintf() argument 63 (void) vfprintf(fp, format, ap); in oprintf() 69 desc_printf(const char *d, FILE *fp, const char *format, ...) in desc_printf() argument 74 (void) vfprintf(fp, format, ap); in desc_printf() 78 (void) fprintf(fp, " (%s)\n", d); in desc_printf() 80 (void) fprintf(fp, "\n"); in desc_printf() 84 flag_printf(FILE *fp, const char *s, uint_t flags, size_t bits, in flag_printf() argument 89 oprintf(fp, " %s: 0x%x\n", s, flags); in flag_printf() 99 desc_printf(flag_desc(f), fp, "\t%s", n); in flag_printf() 101 desc_printf(flag_desc(f), fp, "\t0x%x", f); in flag_printf() [all …]
|
| /onnv-gate/usr/src/cmd/sendmail/libsm/ |
| H A D | ungetc.c | 52 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 D | fseek.c | 79 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 D | refill.c | 60 #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 D | findfp.c | 155 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 D | smstdio.c | 52 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 D | fvwrite.c | 47 #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 D | stdio.c | 62 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 …]
|
| H A D | wsetup.c | 40 sm_wsetup(fp) 41 register SM_FILE_T *fp; 48 if ((fp->f_flags & SMWR) == 0) 50 if ((fp->f_flags & SMRW) == 0) 55 if (fp->f_flags & SMRD) 58 if (HASUB(fp)) 59 FREEUB(fp); 62 fp->f_flags &= ~(SMRD|SMFEOF); 63 fp->f_r = 0; 64 fp->f_p = fp->f_bf.smb_base; [all …]
|
| /onnv-gate/usr/src/common/ctf/ |
| H A D | ctf_open.c | 110 init_symtab(ctf_file_t *fp, const ctf_header_t *hp, in init_symtab() argument 114 uint_t *xp = fp->ctf_sxlate; in init_symtab() 115 uint_t *xend = xp + fp->ctf_nsyms; in init_symtab() 169 info = *(ushort_t *)((uintptr_t)fp->ctf_buf + funcoff); in init_symtab() 170 vlen = LCTF_INFO_VLEN(fp, info); in init_symtab() 177 if (LCTF_INFO_KIND(fp, info) == CTF_K_UNKNOWN && in init_symtab() 190 ctf_dprintf("loaded %lu symtab entries\n", fp->ctf_nsyms); in init_symtab() 199 init_types(ctf_file_t *fp, const ctf_header_t *cth) in init_types() argument 202 const ctf_type_t *tbuf = (ctf_type_t *)(fp->ctf_buf + cth->cth_typeoff); in init_types() 204 const ctf_type_t *tend = (ctf_type_t *)(fp->ctf_buf + cth->cth_stroff); in init_types() [all …]
|
| H A D | ctf_lookup.c | 79 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 …]
|
| /onnv-gate/usr/src/lib/libcmd/common/ |
| H A D | fmt.c | 74 #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 …]
|
| /onnv-gate/usr/src/cmd/filesync/ |
| H A D | anal.c | 76 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 D | recon.c | 122 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 D | eval.c | 120 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 …]
|
| /onnv-gate/usr/src/uts/common/inet/sctp/ |
| H A D | sctp_common.c | 63 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 D | sctp_timer.c | 394 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 …]
|
| /onnv-gate/usr/src/uts/sparc/v9/fpu/ |
| H A D | fpu.c | 61 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 …]
|
| /onnv-gate/usr/src/uts/common/fs/nfs/ |
| H A D | nfs4_deleg_ops.c | 63 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 …]
|
| /onnv-gate/usr/src/lib/libast/common/sfio/ |
| H A D | sftable.c | 60 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 …]
|
| /onnv-gate/usr/src/lib/libpkg/common/ |
| H A D | tputcfent.c | 45 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 …]
|
| /onnv-gate/usr/src/uts/intel/ia32/os/ |
| H A D | fpu.c | 179 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 …]
|