/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_event.c | 44 fmd_event_nvwrap(fmd_event_impl_t *ep) in fmd_event_nvwrap() argument 46 (void) nvlist_remove_all(ep->ev_nvl, FMD_EVN_TTL); in fmd_event_nvwrap() 47 (void) nvlist_remove_all(ep->ev_nvl, FMD_EVN_TOD); in fmd_event_nvwrap() 49 (void) nvlist_add_uint8(ep->ev_nvl, in fmd_event_nvwrap() 50 FMD_EVN_TTL, ep->ev_ttl); in fmd_event_nvwrap() 51 (void) nvlist_add_uint64_array(ep->ev_nvl, in fmd_event_nvwrap() 52 FMD_EVN_TOD, (uint64_t *)&ep->ev_time, 2); in fmd_event_nvwrap() 56 fmd_event_nvunwrap(fmd_event_impl_t *ep, const fmd_timeval_t *tp) in fmd_event_nvunwrap() argument 61 if (nvlist_lookup_uint8(ep->ev_nvl, FMD_EVN_TTL, &ep->ev_ttl) != 0) { in fmd_event_nvunwrap() 62 ep->ev_flags |= FMD_EVF_LOCAL; in fmd_event_nvunwrap() [all …]
|
H A D | fmd_ustat.c | 92 fmd_ustat_elem_t *ep, *np; in fmd_ustat_destroy() local 98 for (ep = usp->us_hash[i]; ep != NULL; ep = np) { in fmd_ustat_destroy() 99 if (ep->use_stat->fmds_type == FMD_TYPE_STRING) in fmd_ustat_destroy() 100 fmd_strfree(ep->use_stat->fmds_value.str); in fmd_ustat_destroy() 102 if (ep->use_chunk != NULL) in fmd_ustat_destroy() 103 fmd_ustat_chunk_rele(usp, ep->use_chunk); in fmd_ustat_destroy() 105 np = ep->use_next; in fmd_ustat_destroy() 106 fmd_free(ep, sizeof (fmd_ustat_elem_t)); in fmd_ustat_destroy() 120 const fmd_ustat_elem_t *ep; in fmd_ustat_snapshot() local 135 for (ep = usp->us_hash[i]; ep != NULL; ep = ep->use_next) { in fmd_ustat_snapshot() [all …]
|
/illumos-gate/usr/src/cmd/file/ |
H A D | magicutils.c | 224 Entry *ep; /* current magic table entry */ in f_mkmtab() local 235 ep = ep1; in f_mkmtab() 239 ep = ep2; in f_mkmtab() 251 ep = mtab; in f_mkmtab() 272 if (ep >= (mend - 1)) { in f_mkmtab() 284 ep = &mtab[oldsize-1]; in f_mkmtab() 295 ep->e_level = 1; in f_mkmtab() 308 ep->e_off = strtol((const char *)p, (char **)NULL, 0); in f_mkmtab() 325 ep->e_mask = strtoull((const char *)p3, (char **)NULL, in f_mkmtab() 328 ep->e_mask = 0ULL; in f_mkmtab() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/edit/ |
H A D | edit.c | 151 # define ttyparm (ep->e_ttyparm) 152 # define nttyparm (ep->e_nttyparm) 163 register Edit_t *ep = (Edit_t*)(shgd->ed_context); in tty_check() local 165 ep->e_savefd = -1; in tty_check() 177 register Edit_t *ep = (Edit_t*)(shgd->ed_context); in tty_get() local 178 if(fd == ep->e_savefd) in tty_get() 179 *tty = ep->e_savetty; in tty_get() 189 if(ep->e_raw==0) in tty_get() 191 ep->e_savetty = *tty; in tty_get() 192 ep->e_savefd = fd; in tty_get() [all …]
|
H A D | emacs.c | 126 #define editb (*ep->ed) 148 #define location ep->_location 187 register Emacs_t *ep = ed->e_emacs; in ed_emacsread() local 194 if(!ep) in ed_emacsread() 196 ep = ed->e_emacs = newof(0,Emacs_t,1,0); in ed_emacsread() 197 ep->ed = ed; in ed_emacsread() 198 ep->prevdirection = 1; in ed_emacsread() 202 ep->screen = Screen; in ed_emacsread() 203 ep->lastdraw = FINAL; in ed_emacsread() 211 ed_setup(ep->ed,fd,reedit); in ed_emacsread() [all …]
|
/illumos-gate/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 …]
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | eqn.c | 308 struct eqn_node *ep; in eqn_alloc() local 310 ep = mandoc_calloc(1, sizeof(*ep)); in eqn_alloc() 311 ep->gsize = EQN_DEFSIZE; in eqn_alloc() 312 return ep; in eqn_alloc() 316 eqn_reset(struct eqn_node *ep) in eqn_reset() argument 318 free(ep->data); in eqn_reset() 319 ep->data = ep->start = ep->end = NULL; in eqn_reset() 320 ep->sz = ep->toksz = 0; in eqn_reset() 324 eqn_read(struct eqn_node *ep, const char *p) in eqn_read() argument 328 if (ep->data == NULL) { in eqn_read() [all …]
|
/illumos-gate/usr/src/cmd/backup/restore/ |
H A D | symtab.c | 48 struct entry *ep; in lookupino() local 52 for (ep = entry[inum % entrytblsize]; ep != NIL; ep = ep->e_next) in lookupino() 53 if (ep->e_ino == inum) in lookupino() 54 return (ep); in lookupino() 136 struct entry *ep; in lookupname() local 147 for (ep = lookupino(ROOTINO); ep != NIL; ep = ep->e_entries) { in lookupname() 152 for (; ep != NIL; ep = ep->e_sibling) in lookupname() 153 if (strcmp(ep->e_name, buf) == 0) in lookupname() 157 ep = ep->e_xattrs; in lookupname() 165 return (ep); in lookupname() [all …]
|
H A D | restore.c | 48 struct entry *ep; in addfile() local 74 ep = lookupino(ino); in addfile() 75 if (ep != NIL) { in addfile() 76 if (strcmp(name, myname(ep)) == 0) { in addfile() 78 ep->e_flags |= NEW; in addfile() 83 ep = addentry(name, ino, type); in addfile() 85 newnode(ep); in addfile() 87 ep->e_flags |= NEW; in addfile() 100 struct entry *ep; in deletefile() local 105 ep = lookupino(ino); in deletefile() [all …]
|
/illumos-gate/usr/src/lib/libdwarf/common/ |
H A D | dwarf_elf_load_headers.c | 240 dwarf_destruct_elf_access(dwarf_elf_object_access_internals_t* ep, in dwarf_destruct_elf_access() argument 247 free(ep->f_ehdr); in dwarf_destruct_elf_access() 248 shp = ep->f_shdr; in dwarf_destruct_elf_access() 249 shcount = ep->f_loc_shdr.g_count; in dwarf_destruct_elf_access() 259 free(ep->f_shdr); in dwarf_destruct_elf_access() 260 free(ep->f_phdr); in dwarf_destruct_elf_access() 261 free(ep->f_elf_shstrings_data); in dwarf_destruct_elf_access() 262 free(ep->f_dynamic); in dwarf_destruct_elf_access() 263 free(ep->f_symtab_sect_strings); in dwarf_destruct_elf_access() 264 free(ep->f_dynsym_sect_strings); in dwarf_destruct_elf_access() [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/support/ |
H A D | errors.c | 40 krb5int_set_error (struct errinfo *ep, long code, const char *fmt, ...) in krb5int_set_error() argument 44 krb5int_vset_error (ep, code, fmt, args); in krb5int_set_error() 49 krb5int_vset_error (struct errinfo *ep, long code, in krb5int_vset_error() argument 54 if (ep->msg && ep->msg != ep->scratch_buf) { in krb5int_vset_error() 55 free ((void *)ep->msg); in krb5int_vset_error() 56 ep->msg = NULL; in krb5int_vset_error() 58 ep->code = code; in krb5int_vset_error() 63 ep->msg = str; in krb5int_vset_error() 68 vsnprintf(ep->scratch_buf, sizeof(ep->scratch_buf), fmt, args); in krb5int_vset_error() 69 p = strdup(ep->scratch_buf); in krb5int_vset_error() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/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 …]
|
/illumos-gate/usr/src/ucblib/libucb/port/gen/ |
H A D | regex.c | 148 char *ep; in re_comp() local 161 ep = expbuf; in re_comp() 166 if (*ep == 0) in re_comp() 177 if (ep >= &expbuf[ESIZE]) in re_comp() 182 *ep++ = CEOF; in re_comp() 183 *ep++ = 0; in re_comp() 187 lastep = ep; in re_comp() 191 *ep++ = CDOT; in re_comp() 203 *ep++ = CDOL; in re_comp() 207 *ep++ = CCL; in re_comp() [all …]
|
/illumos-gate/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 …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | regexpr.c | 142 char *ep; in re_comp() local 155 ep = expbuf; in re_comp() 160 if (*ep == 0) in re_comp() 171 if (ep >= &expbuf[ESIZE]) in re_comp() 176 *ep++ = CEOF; in re_comp() 177 *ep++ = 0; in re_comp() 181 lastep = ep; in re_comp() 185 *ep++ = CDOT; in re_comp() 198 *ep++ = CDOL; in re_comp() 202 *ep++ = CCL; in re_comp() [all …]
|
/illumos-gate/usr/src/lib/libgen/common/ |
H A D | reg_compile.c | 136 compile(const char *sp, char *ep, char *endbuf) in compile() argument 138 return (_compile(sp, ep, endbuf, 0)); in compile() 142 _compile(const char *sp, char *ep, char *endbuf, int viflag) in _compile() argument 156 char *expbuf = ep; in _compile() 168 if (ep == (char *)0 || ep[1] == 0) in _compile() 173 if (ep == (char *)0) { in _compile() 182 if ((ep = malloc(n)) == (char *)0) in _compile() 184 expbuf = ep; in _compile() 186 endbuf = ep + n; in _compile() 190 *ep++ = 1; in _compile() [all …]
|
/illumos-gate/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() 178 (void) __xpush(0, ++ep); in __advance() 200 i = (((ep[-1] & 03) << 8) + (*ep) & 0377); in __advance() 201 ep++; in __advance() 202 (void) __xpush(0, ep + i + 2); in __advance() 203 (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 …]
|
/illumos-gate/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 …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | optimize.c | 20 static void clear_symbol_pseudos(struct entrypoint *ep) in clear_symbol_pseudos() argument 24 FOR_EACH_PTR(ep->accesses, pseudo) { in clear_symbol_pseudos() 30 static void clean_up_insns(struct entrypoint *ep) in clean_up_insns() argument 34 FOR_EACH_PTR(ep->bbs, bb) { in clean_up_insns() 46 void optimize(struct entrypoint *ep) in optimize() argument 49 show_entry(ep); in optimize() 55 kill_unreachable_bbs(ep); in optimize() 56 ir_validate(ep); in optimize() 58 domtree_build(ep); in optimize() 64 ssa_convert(ep); in optimize() [all …]
|
H A D | linearize.c | 26 static pseudo_t linearize_statement(struct entrypoint *ep, struct statement *stmt); 27 static pseudo_t linearize_expression(struct entrypoint *ep, struct expression *expr); 29 static pseudo_t add_cast(struct entrypoint *ep, struct symbol *to, struct symbol *from, int op, pse… 30 static pseudo_t add_binary_op(struct entrypoint *ep, struct symbol *ctype, int op, pseudo_t left, p… 31 static pseudo_t add_setval(struct entrypoint *ep, struct symbol *ctype, struct expression *val); 32 static pseudo_t linearize_one_symbol(struct entrypoint *ep, struct symbol *sym); 35 static pseudo_t add_load(struct entrypoint *ep, struct access_data *); 36 static pseudo_t linearize_initializer(struct entrypoint *ep, struct expression *initializer, struct… 37 static pseudo_t cast_pseudo(struct entrypoint *ep, pseudo_t src, struct symbol *from, struct symbol… 71 static struct basic_block *alloc_basic_block(struct entrypoint *ep, struct position pos) in alloc_basic_block() argument [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/ |
H A D | magic.c | 478 register Entry_t* ep; in ckmagic() local 498 for (ep = mp->magic; ep; ep = ep->next) in ckmagic() 501 if (ep->nest == '{') in ckmagic() 516 switch (ep->cont) in ckmagic() 534 if (ep->type == ' ') in ckmagic() 540 mp->ret[++call] = ep; in ckmagic() 541 ep = ep->value.lab; in ckmagic() 546 ep = mp->ret[call--]; in ckmagic() 547 if (ep->op == 'l') in ckmagic() 565 if (!ep->expr) in ckmagic() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/ |
H A D | encrypt.c | 139 Encryptions *ep = encryptions; in findencryption() local 143 for (; (ep->type != 0) && (ep->type != type); ep++); in findencryption() 144 return (ep->type ? ep : NULL); in findencryption() 150 Encryptions *ep = encryptions; in finddecryption() local 154 while (ep->type && ep->type != type) in finddecryption() 155 ++ep; in finddecryption() 156 return (ep->type ? ep : NULL); in finddecryption() 177 Encryptions *ep = encryptions; in encrypt_init() local 192 while (ep->type) { in encrypt_init() 196 Name, ENCTYPE_NAME(ep->type)); in encrypt_init() [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/clients/rds/ |
H A D | rdsib_ib.c | 583 rds_send_acknowledgement(rds_ep_t *ep) in rds_send_acknowledgement() argument 588 RDS_DPRINTF4("rds_send_acknowledgement", "Enter EP(%p)", ep); in rds_send_acknowledgement() 590 mutex_enter(&ep->ep_lock); in rds_send_acknowledgement() 592 ASSERT(ep->ep_rdmacnt != 0); in rds_send_acknowledgement() 598 if (ep->ep_rbufid != *(uintptr_t *)(uintptr_t)ep->ep_ackds.ds_va) { in rds_send_acknowledgement() 599 *(uintptr_t *)(uintptr_t)ep->ep_ackds.ds_va = ep->ep_rbufid; in rds_send_acknowledgement() 600 mutex_exit(&ep->ep_lock); in rds_send_acknowledgement() 604 ret = ibt_post_send(ep->ep_chanhdl, &ep->ep_ackwr, 1, &ix); in rds_send_acknowledgement() 609 ep, ret, ep->ep_sndpool.pool_nbusy); in rds_send_acknowledgement() 610 mutex_enter(&ep->ep_lock); in rds_send_acknowledgement() [all …]
|
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/ |
H A D | terminate.c | 42 terminate(register EXEC *ep) in terminate() argument 46 if (ep->pid <= 0) in terminate() 49 if (ep->flags & EXF_KILLED) in terminate() 51 ep->flags |= EXF_KILLED; in terminate() 60 if (kill(-ep->pid, SIGTERM) == -1 && errno == ESRCH) { in terminate() 61 ep->pid = -99; in terminate() 62 ep->status = SIGTERM; in terminate() 63 ep->Errno = 0; in terminate() 81 if ((kill(-ep->pid, 0) == -1) && (errno == ESRCH)) { in terminate() 82 ep->pid = -99; in terminate() [all …]
|