/illumos-gate/usr/src/uts/common/io/1394/targets/av1394/ |
H A D | av1394_list.c | 47 av1394_list_init(av1394_list_t *lp) argument 49 lp->l_head = lp->l_tail = NULL; 50 lp->l_cnt = 0; 58 av1394_list_head(av1394_list_t *lp) argument 60 return (lp->l_head); 69 av1394_list_put_tail(av1394_list_t *lp, void *item) argument 72 ITEM(item)->i_prev = lp->l_tail; 73 if (lp->l_tail == NULL) { 74 ASSERT(lp 89 av1394_list_put_head(av1394_list_t *lp, void *item) argument 109 av1394_list_get_head(av1394_list_t *lp) argument [all...] |
/illumos-gate/usr/src/cmd/mail/ |
H A D | isit.c | 35 * isit(lp, type) -- match "name" portion of 37 * lp -> pointer to line to check 40 * TRUE -> lp matches header type (case independent) 46 isit(lp, type) 47 register char *lp; 54 for (p = header[type].tag; *lp && *p; lp++, p++) { 55 if (*p != *lp) { 61 for (p = header[type].tag; *lp && *p; lp [all...] |
/illumos-gate/usr/src/cmd/sgs/tools/common/ |
H A D | alist.c | 99 Alist *lp = *lpp; local 106 if (lp == NULL) { 117 if ((lp = malloc((size_t)bsize)) == NULL) 119 lp->al_arritems = init_arritems; 120 lp->al_nitems = 0; 121 lp->al_next = ALIST_OFF_DATA; 122 lp->al_size = size; 123 *lpp = lp; 126 ASSERT(size == lp->al_size); 128 if (lp 190 APlist *lp = *lpp; local 300 alist_delete(Alist *lp, Aliste *idxp) argument 326 alist_delete_by_offset(Alist *lp, Aliste *offp) argument 338 aplist_delete(APlist *lp, Aliste *idxp) argument 375 aplist_delete_value(APlist *lp, const void *ptr) argument 423 APlist *lp = *lpp; local 452 alist_reset(Alist *lp) argument 461 aplist_reset(APlist *lp) argument [all...] |
/illumos-gate/usr/src/uts/sparc/sys/ |
H A D | machlock.h | 41 extern void lock_set(lock_t *lp); 42 extern int lock_try(lock_t *lp); 43 extern int lock_spin_try(lock_t *lp); 44 extern int ulock_try(lock_t *lp); 45 extern void ulock_clear(lock_t *lp); 46 extern void lock_clear(lock_t *lp); 47 extern void lock_set_spl(lock_t *lp, int new_pil, ushort_t *old_pil); 48 extern void lock_clear_splx(lock_t *lp, int s); 53 #define LOCK_INIT_CLEAR(lp) (*(lp) [all...] |
/illumos-gate/usr/src/lib/libast/common/tm/ |
H A D | tmxleap.c | 40 register Tm_leap_t* lp; local 47 for (lp = &tm_data.leap[0]; sec < (lp->time - lp->total); lp++); 48 t = tmxsns(sec + lp->total, tmxnsec(t));
|
/illumos-gate/usr/src/tools/ctf/dwarf/common/ |
H A D | pro_alloc.c | 80 memory_list_t *lp = NULL; local 85 lp = (memory_list_t *) malloc(size + sizeof(memory_list_t)); 86 if (lp == NULL) { 91 /* point to 'size' bytes just beyond lp struct */ 92 sp = LIST_TO_BLOCK(lp); 96 lp->next = lp->prev = lp; 104 dbglp->next = lp; 105 lp 142 memory_list_t *lp; local [all...] |
/illumos-gate/usr/src/psm/stand/boot/sparc/common/ |
H A D | get.c | 55 char *lp; local 59 lp = buf; 66 *lp = '\0'; 69 if (lp > buf) 70 lp--; 73 lp = buf; 78 if (lp < limit) 79 *lp++ = (char)c;
|
/illumos-gate/usr/src/uts/sparc/v7/sys/ |
H A D | mutex_impl.h | 90 #define MUTEX_OWNER(lp) ((kthread_id_t)((lp)->m_owner << PTR24_LSB)) 93 #define MUTEX_SET_WAITERS(lp) ((lp)->m_waiters = 1) 94 #define MUTEX_HAS_WAITERS(lp) ((lp)->m_waiters != 0) 95 #define MUTEX_CLEAR_LOCK_AND_WAITERS(lp) \ 96 (lp)->m_waiters = 0, (lp)->m_owner = 0 98 #define MUTEX_SET_TYPE(lp, typ [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | mutex.c | 241 mutex_panic(char *msg, mutex_impl_t *lp) argument 246 if (atomic_cas_ptr(&panic_mutex_addr, NULL, lp) == NULL) 247 panic_mutex = *lp; 249 panic("%s, lp=%p owner=%p thread=%p", 250 msg, (void *)lp, (void *)MUTEX_OWNER(&panic_mutex), 342 mutex_vector_enter(mutex_impl_t *lp) argument 350 volatile mutex_impl_t *vlp = (volatile mutex_impl_t *)lp; 356 if (MUTEX_TYPE_SPIN(lp)) { 357 lock_set_spl(&lp->m_spin.m_spinlock, lp 481 mutex_vector_tryenter(mutex_impl_t *lp) argument 507 mutex_vector_exit(mutex_impl_t *lp) argument 533 const mutex_impl_t *lp = (const mutex_impl_t *)mp; local 546 const mutex_impl_t *lp = (const mutex_impl_t *)mp; local 568 mutex_impl_t *lp = (mutex_impl_t *)mp; local 620 mutex_impl_t *lp = (mutex_impl_t *)mp; local 647 lock_set_spin(lock_t *lp) argument 681 lock_set_spl_spin(lock_t *lp, int new_pil, ushort_t *old_pil_addr, int old_pil) argument [all...] |
/illumos-gate/usr/src/lib/libuutil/common/ |
H A D | uu_list.c | 36 #define ELEM_TO_NODE(lp, e) \ 37 ((uu_list_node_impl_t *)((uintptr_t)(e) + (lp)->ul_offset)) 39 #define NODE_TO_ELEM(lp, n) \ 40 ((void *)((uintptr_t)(n) - (lp)->ul_offset)) 183 uu_list_t *lp, *next, *prev; local 199 lp = uu_zalloc(sizeof (*lp)); 200 if (lp == NULL) { 205 lp->ul_pool = pp; 206 lp 232 uu_list_destroy(uu_list_t *lp) argument 264 list_insert(uu_list_t *lp, uu_list_node_impl_t *np, uu_list_node_impl_t *prev, uu_list_node_impl_t *next) argument 293 uu_list_insert(uu_list_t *lp, void *elem, uu_list_index_t idx) argument 316 uu_list_find(uu_list_t *lp, void *elem, void *private, uu_list_index_t *out) argument 351 uu_list_nearest_next(uu_list_t *lp, uu_list_index_t idx) argument 376 uu_list_nearest_prev(uu_list_t *lp, uu_list_index_t idx) argument 400 list_walk_init(uu_list_walk_t *wp, uu_list_t *lp, uint32_t flags) argument 430 list_walk_advance(uu_list_walk_t *wp, uu_list_t *lp) argument 459 uu_list_walk_start(uu_list_t *lp, uint32_t flags) argument 481 uu_list_t *lp = wp->ulw_list; local 498 uu_list_walk(uu_list_t *lp, uu_walk_fn_t *func, void *private, uint32_t flags) argument 543 uu_list_remove(uu_list_t *lp, void *elem) argument 583 uu_list_teardown(uu_list_t *lp, void **cookie) argument 601 uu_list_insert_before(uu_list_t *lp, void *target, void *elem) argument 627 uu_list_insert_after(uu_list_t *lp, void *target, void *elem) argument 653 uu_list_numnodes(uu_list_t *lp) argument 659 uu_list_first(uu_list_t *lp) argument 668 uu_list_last(uu_list_t *lp) argument 677 uu_list_next(uu_list_t *lp, void *elem) argument 688 uu_list_prev(uu_list_t *lp, void *elem) argument [all...] |
/illumos-gate/usr/src/cmd/filesync/ |
H A D | ignore.c | 109 { struct list *lp; local 128 for (lp = expr_list; lp; lp = lp->l_next) { 129 if (gmatch(name, lp->l_value) == 0) 134 lp->l_value, name); 174 { struct list *lp; local 179 lp = malloc(sizeof (*lp)); 258 struct list *lp; local 339 struct list *lp; local [all...] |
/illumos-gate/usr/src/cmd/print/scripts/ |
H A D | getmakes | 32 [[ -f /var/lp/ppd/ppdcache ]] || exit 1 33 /bin/cat /var/lp/ppd/ppdcache |
|
/illumos-gate/usr/src/uts/intel/sys/ |
H A D | mutex_impl.h | 81 #define MUTEX_OWNER(lp) ((kthread_id_t)((lp)->m_owner & MUTEX_THREAD)) 84 #define MUTEX_SET_WAITERS(lp) \ 87 while ((old = (lp)->m_owner) != 0 && \ 88 casip(&(lp)->m_owner, old, old | MUTEX_WAITERS) != old) \ 92 #define MUTEX_HAS_WAITERS(lp) ((lp)->m_owner & MUTEX_WAITERS) 93 #define MUTEX_CLEAR_LOCK_AND_WAITERS(lp) (lp)->m_owner = 0 95 #define MUTEX_SET_TYPE(lp, typ [all...] |
H A D | machlock.h | 44 extern void lock_set(lock_t *lp); 45 extern int lock_try(lock_t *lp); 46 extern int lock_spin_try(lock_t *lp); 47 extern int ulock_try(lock_t *lp); 48 extern void lock_clear(lock_t *lp); 49 extern void ulock_clear(lock_t *lp); 50 extern void lock_set_spl(lock_t *lp, int new_pil, ushort_t *old_pil); 51 extern void lock_clear_splx(lock_t *lp, int s); 56 #define LOCK_INIT_CLEAR(lp) (*(lp) [all...] |
/illumos-gate/usr/src/uts/sparc/v9/sys/ |
H A D | mutex_impl.h | 78 #define MUTEX_OWNER(lp) ((kthread_id_t)((lp)->m_owner & MUTEX_THREAD)) 81 #define MUTEX_SET_WAITERS(lp) \ 84 while ((old = (lp)->m_owner) != 0 && \ 85 casip(&(lp)->m_owner, old, old | MUTEX_WAITERS) != old) \ 89 #define MUTEX_HAS_WAITERS(lp) ((lp)->m_owner & MUTEX_WAITERS) 90 #define MUTEX_CLEAR_LOCK_AND_WAITERS(lp) (lp)->m_owner = 0 92 #define MUTEX_SET_TYPE(lp, typ [all...] |
/illumos-gate/usr/src/lib/libshell/common/sh/ |
H A D | lex.c | 116 #define pushlevel(lp,c,s) ((lp->lexd.level>=lp->lexd.lex_max?stack_grow(lp):1) &&\ 117 ((lp->lexd.lex_match[lp->lexd.level++]=lp->lexd.lastc),\ 118 lp->lexd.lastc=(((s)<<CHAR_BIT)|(c)))) 119 #define oldmode(lp) (lp 139 refvar(Lex_t *lp, int type) argument 183 register Lex_t *lp = (Lex_t*)context; local 227 lexfill(Lex_t *lp) argument 259 sh_lexopen(Lex_t *lp, Shell_t *sp, int mode) argument 284 sh_lex(Lex_t *lp) argument 313 sh_lex(Lex_t* lp) argument 1483 comsub(register Lex_t *lp, int endtok) argument 1602 nested_here(register Lex_t *lp) argument 1641 sh_lexskip(Lex_t *lp,int close, register int copy, int state) argument 1695 here_copy(Lex_t *lp,register struct ionod *iop) argument 1923 fmttoken(Lex_t *lp, register int sym, char *tok) argument 1983 sh_syntax(Lex_t *lp) argument 2307 Lex_t *lp; member in struct:alias 2328 register Lex_t *lp; local 2363 setupalias(Lex_t *lp, const char *string,Namval_t *np) argument 2399 stack_grow(Lex_t *lp) argument [all...] |
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_log.c | 111 fmd_log_write(fmd_log_t *lp, const void *buf, size_t n) argument 116 ASSERT(MUTEX_HELD(&lp->log_lock)); 119 if ((len = write(lp->log_fd, buf, resid)) <= 0) 133 fmd_log_write_hdr(fmd_log_t *lp, const char *tag) argument 144 (void) fmd_conf_getprop(fmd.d_conf, "uuidlen", &lp->log_uuidlen); 146 lp->log_uuid = fmd_zalloc(lp->log_uuidlen + 1, FMD_SLEEP); 148 uuid_unparse(uuid, lp->log_uuid); 158 err |= ea_set_item(&i5, CAT_FMA_UUID, lp->log_uuid, 0); 179 if ((lp 208 fmd_log_check_err(fmd_log_t *lp, int err, const char *msg) argument 222 fmd_log_check_hdr(fmd_log_t *lp, const char *tag) argument 333 fmd_log_open_exacct(fmd_log_t *lp, int aflags, int oflags) argument 354 fmd_log_t *lp = fmd_zalloc(sizeof (fmd_log_t), FMD_SLEEP); local 450 fmd_log_close(fmd_log_t *lp) argument 474 fmd_log_hold_pending(fmd_log_t *lp) argument 490 fmd_log_hold(fmd_log_t *lp) argument 499 fmd_log_rele(fmd_log_t *lp) argument 511 fmd_log_append(fmd_log_t *lp, fmd_event_t *e, fmd_case_t *cp) argument 725 fmd_log_commit(fmd_log_t *lp, fmd_event_t *e) argument 773 fmd_log_decommit(fmd_log_t *lp, fmd_event_t *e) argument 796 fmd_log_unpack(fmd_log_t *lp, ea_object_t *grp, off64_t off) argument 852 fmd_log_replay(fmd_log_t *lp, fmd_log_f *func, void *data) argument 965 fmd_log_update(fmd_log_t *lp) argument 1017 fmd_log_rotate(fmd_log_t *lp) argument [all...] |
/illumos-gate/usr/src/lib/fm/libfmd_log/common/ |
H A D | fmd_log.c | 67 * sets both lp->log_errno and errno to the specified value. If the current 72 fmd_log_set_errno(fmd_log_t *lp, int err) argument 75 lp->log_errno = EFDL_EXACCT + ea_error(); 77 lp->log_errno = EFDL_BADTAG; 79 lp->log_errno = err; 81 errno = lp->log_errno; 87 fmd_log_dprintf(fmd_log_t *lp, const char *format, ...) argument 91 if (lp->log_flags & FMD_LF_DEBUG) { 105 fmd_log_load_record(fmd_log_t *lp, uint_t iflags, fmd_log_record_t *rp) argument 112 ea_clear(&lp 196 fmd_log_load_xref(fmd_log_t *lp, uint_t iflags, fmd_log_record_t *rp, ea_object_t *grp) argument 280 fmd_log_load_xrdir(fmd_log_t *lp) argument 321 fmd_log_load_xrefs(fmd_log_t *lp, uint_t iflags, fmd_log_record_t *rp) argument 366 fmd_log_open_err(fmd_log_t *lp, int *errp, int err) argument 381 fmd_log_t *lp; local 499 fmd_log_close(fmd_log_t *lp) argument 529 fmd_log_label(fmd_log_t *lp) argument 535 fmd_log_header(fmd_log_t *lp, fmd_log_header_t *hp) argument 557 fmd_log_rewind(fmd_log_t *lp) argument 582 fmd_log_xiter_filter(fmd_log_t *lp, const fmd_log_record_t *rp, uint_t fac, const fmd_log_filtvec_t *fav) argument 602 fmd_log_xiter_filtcmp(const void *lp, const void *rp) argument 609 fmd_log_filter(fmd_log_t *lp, uint_t fc, fmd_log_filter_t *fv, const fmd_log_record_t *rp) argument 632 fmd_log_xiter(fmd_log_t *lp, uint_t flag, uint_t fc, fmd_log_filter_t *fv, fmd_log_rec_f *rfunc, fmd_log_err_f *efunc, void *private, ulong_t *rcntp) argument 693 fmd_log_iter(fmd_log_t *lp, fmd_log_rec_f *rfunc, void *private) argument 699 fmd_log_seek(fmd_log_t *lp, off64_t off) argument 733 fmd_log_errmsg(fmd_log_t *lp, int err) argument 746 fmd_log_errno(fmd_log_t *lp) argument [all...] |
/illumos-gate/usr/src/uts/common/disp/ |
H A D | disp_lock.c | 58 disp_lock_init(disp_lock_t *lp, char *name) argument 60 DISP_LOCK_INIT(lp); 65 disp_lock_destroy(disp_lock_t *lp) argument 67 DISP_LOCK_DESTROY(lp); 71 disp_lock_enter_high(disp_lock_t *lp) argument 73 lock_set(lp); 77 disp_lock_exit_high(disp_lock_t *lp) argument 81 ASSERT(DISP_LOCK_HELD(lp)); 82 lock_clear(lp); 86 disp_lock_enter(disp_lock_t *lp) argument 92 disp_lock_exit(disp_lock_t *lp) argument 106 disp_lock_exit_nopreempt(disp_lock_t *lp) argument 127 lock_t *lp = *tlpp; local 170 lock_t *lp = *tlpp; local 196 disp_lock_t *lp; local 215 disp_lock_t *lp; local [all...] |
/illumos-gate/usr/src/boot/lib/libstand/ |
H A D | gets.c | 45 char *lp; local 47 for (lp = buf;;) 51 *lp = '\0'; 56 if (lp > buf) { 57 lp--; 67 for (p = buf; p < lp; ++p) 73 lp = buf; 77 if ((n < 1) || ((lp - buf) < n - 1)) { 78 *lp++ = c;
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | winlockio.c | 306 struct seglock *lp; /* associated lock context */ member in struct:segproc 334 #define LOCK(lp) (*((lp)->lockptr)) 375 * All fields in list of SegProc (lp->clients) 385 * But before this pointer is used to access any fields (other than the 'lp') 386 * lp->mutex must be held. 405 #define seglock_findclient(lp) seglock_find_specific((lp), CURPROC_ID) 406 #define seglock_allocclient(lp) seglock_alloc_specific((lp), CURPROC_I 587 SegLock *lp; local 660 SegLock *lp = seglock_findlock((uint_t)off); /* returns w/ mutex held */ local 708 SegLock *lp = sdp->lp; local 751 SegLock *lp = sdp->lp; local 788 SegLock *lp = sdp->lp; local 833 SegLock *lp; local 855 SegLock *lp; local 878 SegLock *lp; local 928 seglock_destroylock(SegLock *lp) argument 998 seglock_find_specific(SegLock *lp, void *tag) argument 1014 seglock_alloc_specific(SegLock *lp, void *tag) argument 1043 seglock_deleteclient(SegLock *lp, SegProc *sdp) argument 1074 garbage_collect_lock(SegLock *lp, SegProc *sdp) argument 1106 struct seglock *lp; local 1180 struct seglock *lp; local 1216 SegLock *lp; local 1256 SegLock *lp; local 1293 seglock_lockfault(devmap_cookie_t dhp, SegProc *sdp, SegLock *lp, uint_t rw) argument 1443 give_mapping(SegLock *lp, SegProc *sdp, uint_t rw) argument 1506 lock_giveup(SegLock *lp, int trash) argument 1581 SegLock *lp, *lpnext; local 1606 SegLock *lp; local [all...] |
/illumos-gate/usr/src/lib/libgen/common/ |
H A D | reg_step.c | 216 advance(char *lp, char *ep) argument 222 start = lp; 223 ret = _advance(lp, ++ep); 229 _advance(char *lp, char *ep) argument 245 if (*ep++ == *lp++) 252 if ((n = Popwchar(lp, cl)) <= 0 || c != cl) 254 lp += n; 261 if ((n = Popwchar(lp, cl)) > 0) { 262 lp += n; 265 lp 608 char *lp; local [all...] |
/illumos-gate/usr/src/cmd/sendmail/db/log/ |
H A D | log_put.c | 79 LOG *lp; local 83 lp = dblp->lp; 91 lsn->file = lp->lsn.file; 92 lsn->offset = lp->lsn.offset; 97 if (lp->lsn.offset + sizeof(HDR) + dbt->size > lp->persist.lg_max) { 99 sizeof(LOGP) + dbt->size > lp->persist.lg_max) { 113 lastoff = lp->lsn.offset; 116 ++lp 208 LOG *lp; local 264 LOG *lp; local 361 LOG *lp; local 420 LOG *lp; local [all...] |
/illumos-gate/usr/src/cmd/lp/ |
H A D | Makefile | 29 include ./Makefile.lp 50 $(ROOTVAR)/lp \ 51 $(ROOTVAR)/lp/logs \ 52 $(ROOTVARSP)/lp \ 53 $(ROOTVARSP)/lp/admins \ 54 $(ROOTVARSP)/lp/requests \ 55 $(ROOTVARSP)/lp/system 57 SYMDIR1 = $(ROOTVARSP)/lp/admins/lp 58 SYMDIR2 = $(ROOTVARSP)/lp/bi [all...] |
/illumos-gate/usr/src/cmd/ypcmd/mknetid/ |
H A D | getname.c | 47 static char *lp; local 68 lp = line; 69 return (&lp); 94 register char *lp; local 97 lp = *linep; 99 c = *lp++; 102 *linep = lp - 1; 108 c = *lp++; 110 lp--; 114 *lp [all...] |