Home
last modified time | relevance | path

Searched refs:lp (Results 1 – 25 of 636) sorted by relevance

12345678910>>...26

/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dlex.c121 #define pushlevel(lp,c,s) ((lp->lexd.level>=lp->lexd.lex_max?stack_grow(lp):1) &&\ argument
122 ((lp->lexd.lex_match[lp->lexd.level++]=lp->lexd.lastc),\
123 lp->lexd.lastc=(((s)<<CHAR_BIT)|(c))))
124 #define oldmode(lp) (lp->lexd.lastc>>CHAR_BIT) argument
125 #define endchar(lp) (lp->lexd.lastc&0xff) argument
126 #define setchar(lp,c) (lp->lexd.lastc = ((lp->lexd.lastc&~0xff)|(c))) argument
127 #define poplevel(lp) (lp->lexd.lastc=lp->lexd.lex_match[--lp->lexd.level]) argument
144 static void refvar(Lex_t *lp, int type) in refvar() argument
146 register Shell_t *shp = lp->sh; in refvar()
148 off_t off = (fcseek(0)-(type+1))-(lp->lexd.first?lp->lexd.first:fcfirst()); in refvar()
[all …]
/illumos-gate/usr/src/cmd/sgs/common/
H A Dalist.c99 Alist *lp = *lpp; in alist_insert() local
106 if (lp == NULL) { in alist_insert()
117 if ((lp = malloc((size_t)bsize)) == NULL) in alist_insert()
119 lp->al_arritems = init_arritems; in alist_insert()
120 lp->al_nitems = 0; in alist_insert()
121 lp->al_next = ALIST_OFF_DATA; in alist_insert()
122 lp->al_size = size; in alist_insert()
123 *lpp = lp; in alist_insert()
126 ASSERT(size == lp->al_size); in alist_insert()
128 if (lp->al_nitems >= lp->al_arritems) { in alist_insert()
[all …]
/illumos-gate/usr/src/uts/common/io/
H A Dwinlockio.c306 struct seglock *lp; /* associated lock context */ member
334 #define LOCK(lp) (*((lp)->lockptr)) argument
405 #define seglock_findclient(lp) seglock_find_specific((lp), CURPROC_ID) argument
406 #define seglock_allocclient(lp) seglock_alloc_specific((lp), CURPROC_ID) argument
587 SegLock *lp; in winlock_devmap() local
597 if ((lp = seglock_findlock((uint_t)off)) == NULL) { in winlock_devmap()
606 ((off ^ (uintptr_t)(lp->lockptr)) & (offset_t)PAGEOFFSET) != 0) { in winlock_devmap()
609 off, (void *)lp->lockptr)); in winlock_devmap()
610 mutex_exit(&lp->mutex); /* mutex held by seglock_findlock */ in winlock_devmap()
616 mutex_exit(&lp->mutex); /* mutex held by seglock_findlock */ in winlock_devmap()
[all …]
H A Diwscons.c136 srinterrupt(iwscn_list_t *lp, boolean_t wait) in srinterrupt() argument
140 while (lp->wl_ref_cnt != 0) { in srinterrupt()
141 strsetrerror(lp->wl_vp, EINTR, 0, NULL); in srinterrupt()
142 strsetwerror(lp->wl_vp, EINTR, 0, NULL); in srinterrupt()
156 iwscn_list_t *lp, **lpp; in srrm() local
165 for (lpp = &iwscn_list; (lp = *lpp) != NULL; lpp = &lp->wl_next) { in srrm()
166 if (lp->wl_vp == vp) in srrm()
169 if (lp != NULL) in srrm()
171 *lpp = lp->wl_next; in srrm()
173 return (lp); in srrm()
[all …]
/illumos-gate/usr/src/lib/libuutil/common/
H A Duu_list.c36 #define ELEM_TO_NODE(lp, e) \ argument
37 ((uu_list_node_impl_t *)((uintptr_t)(e) + (lp)->ul_offset))
39 #define NODE_TO_ELEM(lp, n) \ argument
40 ((void *)((uintptr_t)(n) - (lp)->ul_offset))
183 uu_list_t *lp, *next, *prev; in uu_list_create() local
199 lp = uu_zalloc(sizeof (*lp)); in uu_list_create()
200 if (lp == NULL) { in uu_list_create()
205 lp->ul_pool = pp; in uu_list_create()
206 lp->ul_parent_enc = UU_PTR_ENCODE(parent); in uu_list_create()
207 lp->ul_offset = pp->ulp_nodeoffset; in uu_list_create()
[all …]
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_log.c109 fmd_log_write(fmd_log_t *lp, const void *buf, size_t n) in fmd_log_write() argument
114 ASSERT(MUTEX_HELD(&lp->log_lock)); in fmd_log_write()
117 if ((len = write(lp->log_fd, buf, resid)) <= 0) in fmd_log_write()
131 fmd_log_write_hdr(fmd_log_t *lp, const char *tag) in fmd_log_write_hdr() argument
142 (void) fmd_conf_getprop(fmd.d_conf, "uuidlen", &lp->log_uuidlen); in fmd_log_write_hdr()
144 lp->log_uuid = fmd_zalloc(lp->log_uuidlen + 1, FMD_SLEEP); in fmd_log_write_hdr()
146 uuid_unparse(uuid, lp->log_uuid); in fmd_log_write_hdr()
156 err |= ea_set_item(&i5, CAT_FMA_UUID, lp->log_uuid, 0); in fmd_log_write_hdr()
177 if ((lp->log_off = lseek64(lp->log_fd, 0, SEEK_END)) == -1L) in fmd_log_write_hdr()
178 fmd_panic("failed to seek log %s", lp->log_name); in fmd_log_write_hdr()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dmutex.c242 mutex_panic(char *msg, mutex_impl_t *lp) in mutex_panic() argument
247 if (atomic_cas_ptr(&panic_mutex_addr, NULL, lp) == NULL) in mutex_panic()
248 panic_mutex = *lp; in mutex_panic()
251 msg, (void *)lp, (void *)MUTEX_OWNER(&panic_mutex), in mutex_panic()
343 mutex_vector_enter(mutex_impl_t *lp) in mutex_vector_enter() argument
351 volatile mutex_impl_t *vlp = (volatile mutex_impl_t *)lp; in mutex_vector_enter()
357 if (MUTEX_TYPE_SPIN(lp)) { in mutex_vector_enter()
358 lock_set_spl(&lp->m_spin.m_spinlock, lp->m_spin.m_minspl, in mutex_vector_enter()
359 &lp->m_spin.m_oldspl); in mutex_vector_enter()
363 if (!MUTEX_TYPE_ADAPTIVE(lp)) { in mutex_vector_enter()
[all …]
H A Drwlock.c215 rw_panic(char *msg, rwlock_impl_t *lp) in rw_panic() argument
220 if (atomic_cas_ptr(&panic_rwlock_addr, NULL, lp) == NULL) in rw_panic()
221 panic_rwlock = *lp; in rw_panic()
224 msg, (void *)lp, panic_rwlock.rw_wwwh, (void *)curthread); in rw_panic()
237 rwlock_impl_t *lp = (rwlock_impl_t *)rwlp; in rw_destroy() local
239 if (lp->rw_wwwh != 0) { in rw_destroy()
240 if ((lp->rw_wwwh & RW_DOUBLE_LOCK) == RW_DOUBLE_LOCK) in rw_destroy()
241 rw_panic("rw_destroy: lock already destroyed", lp); in rw_destroy()
243 rw_panic("rw_destroy: lock still active", lp); in rw_destroy()
246 lp->rw_wwwh = RW_DOUBLE_LOCK; in rw_destroy()
[all …]
H A Dmem_cage.c291 struct kcage_glist *lp = kcage_current_glist; in kcage_current_pfn() local
295 ASSERT(lp != NULL); in kcage_current_pfn()
297 *pfncur = lp->curr; in kcage_current_pfn()
299 return (lp->decr); in kcage_current_pfn()
320 struct kcage_glist *lp; in kcage_next_range() local
334 for (lp = incage ? kcage_glist : kcage_current_glist; in kcage_next_range()
335 lp != NULL; lp = lp->next) { in kcage_next_range()
340 if ((incage && lp->decr) || (!incage && !lp->decr)) { in kcage_next_range()
341 klo = lp->curr; in kcage_next_range()
342 khi = lp->lim; in kcage_next_range()
[all …]
/illumos-gate/usr/src/lib/fm/libfmd_log/common/
H A Dfmd_log.c72 fmd_log_set_errno(fmd_log_t *lp, int err) in fmd_log_set_errno() argument
75 lp->log_errno = EFDL_EXACCT + ea_error(); in fmd_log_set_errno()
77 lp->log_errno = EFDL_BADTAG; in fmd_log_set_errno()
79 lp->log_errno = err; in fmd_log_set_errno()
81 errno = lp->log_errno; in fmd_log_set_errno()
87 fmd_log_dprintf(fmd_log_t *lp, const char *format, ...) in fmd_log_dprintf() argument
91 if (lp->log_flags & FMD_LF_DEBUG) { in fmd_log_dprintf()
105 fmd_log_load_record(fmd_log_t *lp, uint_t iflags, fmd_log_record_t *rp) in fmd_log_load_record() argument
112 ea_clear(&lp->log_ea); in fmd_log_load_record()
113 off = lseek64(lp->log_fd, 0, SEEK_CUR); in fmd_log_load_record()
[all …]
/illumos-gate/usr/src/cmd/krb5/kadmin/ktutil/
H A Dktutil_funcs.c51 krb5_kt_list lp, prev; local
54 for (lp = list; lp;) {
55 retval = krb5_kt_free_entry(context, lp->entry);
56 free((char *)lp->entry);
59 prev = lp;
60 lp = lp->next;
75 krb5_kt_list lp, prev; local
78 for (lp = *list, i = 1; lp; prev = lp, lp = lp->next, i++) {
81 *list = lp->next;
83 prev->next = lp->next;
[all …]
/illumos-gate/usr/src/lib/libgen/common/
H A Dreg_step.c214 advance(char *lp, char *ep) in advance() argument
220 start = lp; in advance()
221 ret = _advance(lp, ++ep); in advance()
227 _advance(char *lp, char *ep) in _advance() argument
243 if (*ep++ == *lp++) in _advance()
250 if ((n = Popwchar(lp, cl)) <= 0 || c != cl) in _advance()
252 lp += n; in _advance()
259 if ((n = Popwchar(lp, cl)) > 0) { in _advance()
260 lp += n; in _advance()
263 lp++; in _advance()
[all …]
/illumos-gate/usr/src/pkg/manifests/
H A Dprint-lp.p5m27 set name=pkg.fmri value=pkg:/print/lp@$(PKGVERS)
34 dir path=etc/lp owner=lp group=lp mode=0775
35 dir path=etc/lp/classes owner=lp group=lp mode=0775
36 dir path=etc/lp/fd group=lp
37 file path=etc/lp/fd/catv.fd group=lp
38 file path=etc/lp/fd/download.fd group=lp
39 file path=etc/lp/fd/dpost.fd group=lp
40 file path=etc/lp/fd/postio.fd group=lp
41 file path=etc/lp/fd/postior.fd group=lp
42 file path=etc/lp/fd/postpages.fd group=lp
[all …]
/illumos-gate/usr/src/cmd/sendmail/db/log/
H A Dlog_put.c79 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->lsn.file;
117 lp->lsn.offset = 0;
120 lp->w_off = 0;
[all …]
/illumos-gate/usr/src/uts/common/io/1394/targets/av1394/
H A Dav1394_list.c45 av1394_list_init(av1394_list_t *lp) in av1394_list_init() argument
47 lp->l_head = lp->l_tail = NULL; in av1394_list_init()
48 lp->l_cnt = 0; in av1394_list_init()
56 av1394_list_head(av1394_list_t *lp) in av1394_list_head() argument
58 return (lp->l_head); in av1394_list_head()
67 av1394_list_put_tail(av1394_list_t *lp, void *item) in av1394_list_put_tail() argument
70 ITEM(item)->i_prev = lp->l_tail; in av1394_list_put_tail()
71 if (lp->l_tail == NULL) { in av1394_list_put_tail()
72 ASSERT(lp->l_head == 0); in av1394_list_put_tail()
73 ASSERT(lp->l_cnt == 0); in av1394_list_put_tail()
[all …]
/illumos-gate/usr/src/uts/common/disp/
H A Ddisp_lock.c56 disp_lock_init(disp_lock_t *lp, char *name) in disp_lock_init() argument
58 DISP_LOCK_INIT(lp); in disp_lock_init()
63 disp_lock_destroy(disp_lock_t *lp) in disp_lock_destroy() argument
65 DISP_LOCK_DESTROY(lp); in disp_lock_destroy()
69 disp_lock_enter_high(disp_lock_t *lp) in disp_lock_enter_high() argument
71 lock_set(lp); in disp_lock_enter_high()
75 disp_lock_exit_high(disp_lock_t *lp) in disp_lock_exit_high() argument
79 ASSERT(DISP_LOCK_HELD(lp)); in disp_lock_exit_high()
80 lock_clear(lp); in disp_lock_exit_high()
84 disp_lock_enter(disp_lock_t *lp) in disp_lock_enter() argument
[all …]
/illumos-gate/usr/src/cmd/filesync/
H A Dignore.c109 { struct list *lp; in ignore_check() local
128 for (lp = expr_list; lp; lp = lp->l_next) { in ignore_check()
129 if (gmatch(name, lp->l_value) == 0) in ignore_check()
134 lp->l_value, name); in ignore_check()
174 { struct list *lp; in ignore_expr() local
179 lp = malloc(sizeof (*lp)); in ignore_expr()
180 if (lp == 0) in ignore_expr()
182 lp->l_value = strdup(expr); in ignore_expr()
183 lp->l_next = expr_list; in ignore_expr()
184 expr_list = lp; in ignore_expr()
[all …]
/illumos-gate/usr/src/uts/common/refhash/
H A Drefhash.c78 refhash_link_t *lp = obj_to_link(hp, op); in refhash_insert() local
81 list_link_init(&lp->rhl_chain_link); in refhash_insert()
82 list_link_init(&lp->rhl_global_link); in refhash_insert()
83 lp->rhl_flags = 0; in refhash_insert()
84 lp->rhl_refcnt = 0; in refhash_insert()
85 list_insert_tail(&hp->rh_buckets[bucket], lp); in refhash_insert()
86 list_insert_tail(&hp->rh_objs, lp); in refhash_insert()
92 refhash_link_t *lp = obj_to_link(hp, op); in refhash_delete() local
96 list_remove(&hp->rh_buckets[bucket], lp); in refhash_delete()
97 list_remove(&hp->rh_objs, lp); in refhash_delete()
[all …]
/illumos-gate/usr/src/uts/common/io/1394/targets/scsa1394/
H A Dsbp2_driver.c83 scsa1394_lun_t *lp; in scsa1394_sbp2_attach() local
103 lp = &sp->s_lun[i]; in scsa1394_sbp2_attach()
105 mutex_init(&lp->l_mutex, NULL, MUTEX_DRIVER, in scsa1394_sbp2_attach()
108 lp->l_rmb_orig = -1; in scsa1394_sbp2_attach()
109 lp->l_lun = &tp->t_lun[i]; in scsa1394_sbp2_attach()
110 lp->l_sp = sp; in scsa1394_sbp2_attach()
111 lp->l_lba_size = DEV_BSIZE; in scsa1394_sbp2_attach()
123 scsa1394_lun_t *lp; in scsa1394_sbp2_detach() local
126 lp = &sp->s_lun[i]; in scsa1394_sbp2_detach()
127 if (lp->l_sp != NULL) { in scsa1394_sbp2_detach()
[all …]
/illumos-gate/usr/src/lib/libgrubmgmt/common/
H A Dlibgrub_menu.c48 append_line(grub_menu_t *mp, grub_line_t *lp) in append_line() argument
51 mp->gm_start = lp; in append_line()
53 mp->gm_end->gl_next = lp; in append_line()
54 lp->gl_prev = mp->gm_end; in append_line()
56 mp->gm_end = lp; in append_line()
57 lp->gl_line_num = ++mp->gm_line_num; in append_line()
58 lp->gl_entry_num = GRUB_ENTRY_DEFAULT; in append_line()
65 grub_line_t *lp; in process_line() local
67 lp = mp->gm_end; in process_line()
71 while (n-- != 0 && strcmp(lp->gl_cmd, grub_cmd_descs[n].gcd_cmd) != 0) in process_line()
[all …]
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Dpcnet32.c278 static struct pcnet32_private *lp; variable
408 lp->tx_full = 0; in pcnet32_init_ring()
409 lp->cur_rx = lp->cur_tx = 0; in pcnet32_init_ring()
425 lp->init_block.tlen_rlen = in pcnet32_init_ring()
428 lp->init_block.phys_addr[i] = nic->node_addr[i]; in pcnet32_init_ring()
429 lp->init_block.rx_ring = (u32) virt_to_le32desc(&rx_ring[0]); in pcnet32_init_ring()
430 lp->init_block.tx_ring = (u32) virt_to_le32desc(&tx_ring[0]); in pcnet32_init_ring()
444 lp->a.reset(ioaddr); in pcnet32_reset()
447 lp->a.write_bcr(ioaddr, 20, 2); in pcnet32_reset()
450 val = lp->a.read_bcr(ioaddr, 2) & ~2; in pcnet32_reset()
[all …]
/illumos-gate/usr/src/lib/libdwarf/common/
H A Dpro_alloc.c86 memory_list_t *lp = NULL; in _dwarf_p_get_alloc() local
91 lp = (memory_list_t *) malloc(size + sizeof(memory_list_t)); in _dwarf_p_get_alloc()
92 if (lp == NULL) { in _dwarf_p_get_alloc()
98 sp = LIST_TO_BLOCK(lp); in _dwarf_p_get_alloc()
102 lp->next = lp->prev = lp; in _dwarf_p_get_alloc()
110 dbglp->next = lp; in _dwarf_p_get_alloc()
111 lp->prev = dbglp; in _dwarf_p_get_alloc()
112 lp->next = nextblock; in _dwarf_p_get_alloc()
113 nextblock->prev = lp; in _dwarf_p_get_alloc()
150 memory_list_t *lp; in _dwarf_p_dealloc() local
[all …]
/illumos-gate/usr/src/lib/libeti/form/common/
H A Dregex.c152 char *lp, *ep, *curlp; in __advance() local
156 lp = alp; in __advance()
163 if (*ep++ == *lp++) in __advance()
168 return ((intptr_t)lp); in __advance()
179 return ((intptr_t)lp); in __advance()
182 if (*lp++) in __advance()
187 if (*lp == 0) in __advance()
189 lp++; in __advance()
194 return ((intptr_t)lp); in __advance()
208 if (!(lp = (char *)__advance(lp, ep))) in __advance()
[all …]
/illumos-gate/usr/src/head/
H A Dregexp.h72 int advance(const char *lp, const char *ep);
341 advance(const char *lp, const char *ep) in advance() argument
354 if (*ep++ == *lp++) in advance()
360 if (*lp++) in advance()
366 if (*lp == 0) in advance()
372 loc2 = (char *)lp; in advance()
377 c = (unsigned char)*lp++; in advance()
390 c = *lp++; in advance()
399 braslist[*ep++] = (char *)lp; in advance()
404 braelist[*ep++] = (char *)lp; in advance()
[all …]
/illumos-gate/usr/src/cmd/lp/
H A DMakefile29 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/bin
59 SYMDIR3 = $(ROOTVARSP)/lp/logs
[all …]

12345678910>>...26