/titanic_41/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_event.c | 46 fmd_event_nvwrap(fmd_event_impl_t *ep) in fmd_event_nvwrap() argument 48 (void) nvlist_remove_all(ep->ev_nvl, FMD_EVN_TTL); in fmd_event_nvwrap() 49 (void) nvlist_remove_all(ep->ev_nvl, FMD_EVN_TOD); in fmd_event_nvwrap() 51 (void) nvlist_add_uint8(ep->ev_nvl, in fmd_event_nvwrap() 52 FMD_EVN_TTL, ep->ev_ttl); in fmd_event_nvwrap() 53 (void) nvlist_add_uint64_array(ep->ev_nvl, in fmd_event_nvwrap() 54 FMD_EVN_TOD, (uint64_t *)&ep->ev_time, 2); in fmd_event_nvwrap() 58 fmd_event_nvunwrap(fmd_event_impl_t *ep, const fmd_timeval_t *tp) in fmd_event_nvunwrap() argument 63 if (nvlist_lookup_uint8(ep->ev_nvl, FMD_EVN_TTL, &ep->ev_ttl) != 0) { in fmd_event_nvunwrap() 64 ep->ev_flags |= FMD_EVF_LOCAL; in fmd_event_nvunwrap() [all …]
|
H A D | fmd_ustat.c | 94 fmd_ustat_elem_t *ep, *np; in fmd_ustat_destroy() local 100 for (ep = usp->us_hash[i]; ep != NULL; ep = np) { in fmd_ustat_destroy() 101 if (ep->use_stat->fmds_type == FMD_TYPE_STRING) in fmd_ustat_destroy() 102 fmd_strfree(ep->use_stat->fmds_value.str); in fmd_ustat_destroy() 104 if (ep->use_chunk != NULL) in fmd_ustat_destroy() 105 fmd_ustat_chunk_rele(usp, ep->use_chunk); in fmd_ustat_destroy() 107 np = ep->use_next; in fmd_ustat_destroy() 108 fmd_free(ep, sizeof (fmd_ustat_elem_t)); in fmd_ustat_destroy() 122 const fmd_ustat_elem_t *ep; in fmd_ustat_snapshot() local 137 for (ep = usp->us_hash[i]; ep != NULL; ep = ep->use_next) { in fmd_ustat_snapshot() [all …]
|
/titanic_41/usr/src/cmd/file/ |
H A D | magicutils.c | 226 Entry *ep; /* current magic table entry */ in f_mkmtab() local 237 ep = ep1; in f_mkmtab() 241 ep = ep2; in f_mkmtab() 253 ep = mtab; in f_mkmtab() 274 if (ep >= (mend - 1)) { in f_mkmtab() 286 ep = &mtab[oldsize-1]; in f_mkmtab() 297 ep->e_level = 1; in f_mkmtab() 310 ep->e_off = strtol((const char *)p, (char **)NULL, 0); in f_mkmtab() 327 ep->e_mask = strtoull((const char *)p3, (char **)NULL, in f_mkmtab() 330 ep->e_mask = 0ULL; in f_mkmtab() [all …]
|
/titanic_41/usr/src/lib/libshell/common/edit/ |
H A D | edit.c | 150 # define ttyparm (ep->e_ttyparm) 151 # define nttyparm (ep->e_nttyparm) 162 register Edit_t *ep = (Edit_t*)(sh_getinterp()->ed_context); in tty_check() local 164 ep->e_savefd = -1; in tty_check() 176 register Edit_t *ep = (Edit_t*)(sh_getinterp()->ed_context); in tty_get() local 177 if(fd == ep->e_savefd) in tty_get() 178 *tty = ep->e_savetty; in tty_get() 188 if(ep->e_raw==0) in tty_get() 190 ep->e_savetty = *tty; in tty_get() 191 ep->e_savefd = fd; in tty_get() [all …]
|
H A D | emacs.c | 124 #define editb (*ep->ed) 146 #define location ep->_location 185 register Emacs_t *ep = ed->e_emacs; in ed_emacsread() local 191 if(!ep) in ed_emacsread() 193 ep = ed->e_emacs = newof(0,Emacs_t,1,0); in ed_emacsread() 194 ep->ed = ed; in ed_emacsread() 195 ep->prevdirection = 1; in ed_emacsread() 199 ep->screen = Screen; in ed_emacsread() 200 ep->lastdraw = FINAL; in ed_emacsread() 208 ed_setup(ep->ed,fd,reedit); in ed_emacsread() [all …]
|
/titanic_41/usr/src/cmd/spell/ |
H A D | spellprog.c | 289 char *ep, *cp; in main() local 343 for (ep = word; (*ep = j = getchar()) != '\n'; ep++) in main() 352 if (ep[-1] == '-') { in main() 353 *--ep = 0; in main() 354 if (!tryword(word, ep, 0)) in main() 358 for (cp = word, dp = original; cp < ep; ) in main() 362 for (cp = word; cp < ep; cp++) in main() 365 if (((ep - word) == 1) && in main() 368 if (trypref(ep, ".", 0)) in main() 371 for (cp = original+1, dp = word+1; dp < ep; dp++, cp++) in main() [all …]
|
/titanic_41/usr/src/cmd/mandoc/ |
H A D | eqn.c | 286 struct eqn_node *ep; in eqn_read() local 289 ep = *epp; in eqn_read() 303 mandoc_msg(MANDOCERR_ARGSLOST, ep->parse, ln, pos, NULL); in eqn_read() 313 ep->data = mandoc_realloc(ep->data, ep->sz + sz + 1); in eqn_read() 317 if (0 == ep->sz) in eqn_read() 318 *ep->data = '\0'; in eqn_read() 320 ep->sz += sz; in eqn_read() 321 strlcat(ep->data, p + pos, ep->sz + 1); in eqn_read() 322 strlcat(ep->data, " ", ep->sz + 1); in eqn_read() 356 struct eqn_node *ep; in eqn_end() local [all …]
|
/titanic_41/usr/src/cmd/backup/restore/ |
H A D | symtab.c | 57 struct entry *ep; local 61 for (ep = entry[inum % entrytblsize]; ep != NIL; ep = ep->e_next) 62 if (ep->e_ino == inum) 63 return (ep); 149 struct entry *ep; local 160 for (ep = lookupino(ROOTINO); ep != NIL; ep = ep->e_entries) { 165 for (; ep != NIL; ep = ep->e_sibling) 166 if (strcmp(ep->e_name, buf) == 0) 170 ep = ep->e_xattrs; 178 return (ep); [all …]
|
H A D | restore.c | 62 struct entry *ep; local 88 ep = lookupino(ino); 89 if (ep != NIL) { 90 if (strcmp(name, myname(ep)) == 0) { 92 ep->e_flags |= NEW; 97 ep = addentry(name, ino, type); 99 newnode(ep); 101 ep->e_flags |= NEW; 117 struct entry *ep; local 122 ep = lookupino(ino); [all …]
|
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/support/ |
H A D | errors.c | 42 krb5int_set_error (struct errinfo *ep, long code, const char *fmt, ...) in krb5int_set_error() argument 46 krb5int_vset_error (ep, code, fmt, args); in krb5int_set_error() 51 krb5int_vset_error (struct errinfo *ep, long code, in krb5int_vset_error() argument 56 if (ep->msg && ep->msg != ep->scratch_buf) { in krb5int_vset_error() 57 free ((void *)ep->msg); in krb5int_vset_error() 58 ep->msg = NULL; in krb5int_vset_error() 60 ep->code = code; in krb5int_vset_error() 65 ep->msg = str; in krb5int_vset_error() 70 vsnprintf(ep->scratch_buf, sizeof(ep->scratch_buf), fmt, args); in krb5int_vset_error() 71 p = strdup(ep->scratch_buf); in krb5int_vset_error() [all …]
|
/titanic_41/usr/src/lib/libshell/common/sh/ |
H A D | env.c | 88 char **env_get(Env_t* ep) in env_get() argument 91 register int n=ep->extra; in env_get() 92 if(ep->flags&ENV_VALID) in env_get() 93 return(ep->env+n); in env_get() 94 if(ep->count > ep->max) in env_get() 96 if(ep->flags&ENV_MALLOCED) in env_get() 97 free((void*)ep->env); in env_get() 98 if(!(ep->env = (char**)malloc(sizeof(char*)*(ep->count+1)))) in env_get() 100 ep->flags |= ENV_MALLOCED; in env_get() 101 ep->max = ep->count; in env_get() [all …]
|
/titanic_41/usr/src/lib/libc/port/gen/ |
H A D | regexpr.c | 144 char *ep; in re_comp() local 157 ep = expbuf; in re_comp() 162 if (*ep == 0) in re_comp() 173 if (ep >= &expbuf[ESIZE]) in re_comp() 178 *ep++ = CEOF; in re_comp() 179 *ep++ = 0; in re_comp() 183 lastep = ep; in re_comp() 187 *ep++ = CDOT; in re_comp() 200 *ep++ = CDOL; in re_comp() 204 *ep++ = CCL; in re_comp() [all …]
|
/titanic_41/usr/src/ucblib/libucb/port/gen/ |
H A D | regex.c | 150 char *ep; in re_comp() local 163 ep = expbuf; in re_comp() 168 if (*ep == 0) in re_comp() 179 if (ep >= &expbuf[ESIZE]) in re_comp() 184 *ep++ = CEOF; in re_comp() 185 *ep++ = 0; in re_comp() 189 lastep = ep; in re_comp() 193 *ep++ = CDOT; in re_comp() 205 *ep++ = CDOL; in re_comp() 209 *ep++ = CCL; in re_comp() [all …]
|
/titanic_41/usr/src/lib/libbc/libc/gen/common/ |
H A D | regex.c | 134 char *ep; in re_comp() local 147 ep = expbuf; in re_comp() 152 if (*ep == 0) in re_comp() 163 if (ep >= &expbuf[ESIZE]) in re_comp() 168 *ep++ = CEOF; in re_comp() 169 *ep++ = 0; in re_comp() 173 lastep = ep; in re_comp() 177 *ep++ = CDOT; in re_comp() 189 *ep++ = CDOL; in re_comp() 193 *ep++ = CCL; in re_comp() [all …]
|
/titanic_41/usr/src/head/ |
H A D | regexp.h | 56 #define PLACE(c) ep[c >> 3] |= bittab[c & 07] 57 #define ISTHERE(c) (ep[c >> 3] & bittab[c & 07]) 72 int advance(const char *lp, const char *ep); 76 compile(char *instring, char *ep, const char *endbuf, int seof) in compile() argument 101 if (*ep == 0 && !sed) in compile() 103 RETURN(ep); in compile() 112 if (ep >= endbuf) in compile() 116 lastep = ep; in compile() 118 *ep++ = CCEOF; in compile() 121 RETURN(ep); in compile() [all …]
|
H A D | meta.h | 672 extern int open_admin(md_error_t *ep); 673 extern int close_admin(md_error_t *ep); 675 extern int meta_get_nunits(md_error_t *ep); 680 u_longlong_t big_or_little, md_error_t *ep); 682 md_error_t *ep); 686 mdinuseopts_t inuse_flag, md_error_t *ep); 688 mddrivename_t *dnp, md_error_t *ep); 690 mddrivename_t *dnp, md_error_t *ep); 692 mddrivename_t *dnp, md_error_t *ep); 694 md_error_t *ep); [all …]
|
/titanic_41/usr/src/lib/libgen/common/ |
H A D | reg_compile.c | 138 compile(const char *sp, char *ep, char *endbuf) in compile() argument 140 return (_compile(sp, ep, endbuf, 0)); in compile() 144 _compile(const char *sp, char *ep, char *endbuf, int viflag) in _compile() argument 158 char *expbuf = ep; in _compile() 170 if (ep == (char *)0 || ep[1] == 0) in _compile() 175 if (ep == (char *)0) { in _compile() 184 if ((ep = malloc(n)) == (char *)0) in _compile() 186 expbuf = ep; in _compile() 188 endbuf = ep + n; in _compile() 192 *ep++ = 1; in _compile() [all …]
|
/titanic_41/usr/src/lib/libeti/form/common/ |
H A D | regex.c | 152 char *lp, *ep, *curlp; in __advance() local 157 ep = aep; in __advance() 160 switch (*ep++) { in __advance() 163 if (*ep++ == *lp++) in __advance() 171 ep++; in __advance() 177 (void) __xpush(0, ++ep); in __advance() 199 i = (((ep[-1] & 03) << 8) + (*ep) & 0377); in __advance() 200 ep++; in __advance() 201 (void) __xpush(0, ep + i + 2); in __advance() 202 (void) __xpush(0, ++ep); in __advance() [all …]
|
H A D | regcmp.c | 79 char *ep, *sp; in libform_regcmp() local 97 if ((sep = ep = malloc((unsigned)(2 * i + SLOP))) == NULL) in libform_regcmp() 103 *ep++ = CIRCFL; in libform_regcmp() 114 *ep++ = FCEOF; in libform_regcmp() 117 __i_size = (int) (ep - sep); in libform_regcmp() 121 lastep = ep; in libform_regcmp() 125 if (!__rpush(ep)) goto cerror; in libform_regcmp() 126 *ep++ = CBRA; in libform_regcmp() 127 *ep++ = -1; in libform_regcmp() 134 *ep++ = CKET; in libform_regcmp() [all …]
|
/titanic_41/usr/src/cmd/lvm/util/ |
H A D | metaset.c | 99 printset(mdsetname_t *sp, md_error_t *ep) in printset() argument 107 if ((sd = metaget_setdesc(sp, ep)) == NULL) in printset() 116 if (metaget_setownership(sp, ep) == -1) in printset() 121 ep)) == NULL) && !mdisok(ep)) in printset() 228 if ((max_meds = get_max_meds(ep)) == 0) in printset() 277 printsets(mdsetname_t *sp, md_error_t *ep) in printsets() argument 287 if (printset(sp, ep)) in printsets() 292 if ((max_sets = get_max_sets(ep)) == 0) in printsets() 299 if ((sp1 = metasetnosetname(i, ep)) == NULL) { in printsets() 300 if (! mdiserror(ep, MDE_NO_SET)) in printsets() [all …]
|
H A D | metaclust.c | 222 load_local_set(md_error_t *ep) in load_local_set() argument 227 if ((local_sp = metasetname(MD_LOCAL_NAME, ep)) == NULL) { in load_local_set() 237 if (meta_setup_db_locations(ep) != 0) { in load_local_set() 238 if (!(mdismddberror(ep, MDE_DB_NODB))) in load_local_set() 239 mde_perror(ep, ""); in load_local_set() 288 reset_state(uint_t mode, mdsetname_t *sp, char *drivername, md_error_t *ep) in reset_state() argument 313 if (mirror_dev && meta_get_mirror_names(sp, &devnlp, 0, ep) < 0) { in reset_state() 314 mde_perror(ep, gettext("Could not get mirrors for set %s"), in reset_state() 317 } else if (meta_get_sp_names(sp, &devnlp, 0, ep) < 0) { in reset_state() 318 mde_perror(ep, gettext( in reset_state() [all …]
|
H A D | metattach.c | 64 md_error_t *ep in sp_attach() argument 96 if (meta_sp_attach(*spp, spnp, argv[0], options, alignment, ep) != 0) { in sp_attach() 101 if (meta_update_md_cf(*spp, ep) != 0) in sp_attach() 116 md_error_t *ep in stripe_attach() argument 143 &interlace, ep) != 0) { in stripe_attach() 147 stripenp->cname, ep)) in stripe_attach() 166 UNKNOWN, ep) < 0) in stripe_attach() 173 if (meta_sp_issp(*spp, compnp, ep) != 0) { in stripe_attach() 175 if (metachkcomp(compnp, ep) != 0) in stripe_attach() 181 if ((currootnp = meta_get_current_root_dev(*spp, ep)) != NULL) { in stripe_attach() [all …]
|
H A D | metahs.c | 54 md_error_t *ep in status_hsp() argument 65 if (meta_hsp_print(sp, hspnp, &nlp, NULL, stdout, options, ep) != 0) in status_hsp() 103 md_error_t *ep in add_hotspares() argument 118 if (meta_check_ownership(*spp, ep) != 0) in add_hotspares() 121 if ((cnt = meta_get_hsp_names(*spp, &hspnlp, 0, ep)) < 0) { in add_hotspares() 124 return (mderror(ep, MDE_NO_HSPS, NULL)); in add_hotspares() 128 return (mderror(ep, MDE_NAME_ILLEGAL, argv[0])); in add_hotspares() 130 if ((cnt = metahspnamelist(spp, &hspnlp, 1, &argv[0], ep)) < 0) in add_hotspares() 139 if (meta_lock(*spp, TRUE, ep)) in add_hotspares() 143 if (meta_check_ownership(*spp, ep) != 0) in add_hotspares() [all …]
|
/titanic_41/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_client_debug.c | 88 set_event(nfs4_event_type_t id, nfs4_revent_t *ep, mntinfo4_t *mi, in set_event() argument 97 ep->re_mi = mi; in set_event() 101 ep->re_char1 = fn_path(rp1->r_svnode.sv_name); in set_event() 103 ep->re_char1 = NULL; in set_event() 104 ep->re_rp1 = rp1; in set_event() 107 ep->re_pid = pid; in set_event() 109 ep->re_stat4 = nfs4_error; in set_event() 110 ep->re_tag1 = tag1; in set_event() 111 ep->re_tag2 = tag2; in set_event() 112 ep->re_seqid1 = seqid1; in set_event() [all …]
|
/titanic_41/usr/src/uts/common/io/lvm/md/ |
H A D | md_error.c | 47 md_error_t *ep in mdclrerror() argument 50 bzero((caddr_t)ep, sizeof (*ep)); in mdclrerror() 73 md_error_t *ep, in mderror() argument 77 md_void_error_t *ip = &ep->info.md_error_info_t_u.void_error; in mderror() 79 mdclrerror(ep); in mderror() 80 ep->info.errclass = MDEC_VOID; in mderror() 91 md_error_t *ep, in mdsyserror() argument 95 md_sys_error_t *ip = &ep->info.md_error_info_t_u.sys_error; in mdsyserror() 97 mdclrerror(ep); in mdsyserror() 98 ep->info.errclass = MDEC_SYS; in mdsyserror() [all …]
|