Home
last modified time | relevance | path

Searched refs:stack (Results 1 – 25 of 349) sorted by relevance

12345678910>>...14

/illumos-gate/usr/src/common/ficl/
H A Dstack.c72 int nFree = stack->size - STKDEPTH(stack); in ficlStackCheck()
104 stack->vm = vm; in ficlStackCreate()
108 return (stack); in ficlStackCreate()
117 if (stack) in ficlStackDestroy()
176 ficlStackPushPointer(stack, stack->frame); in ficlStackLink()
177 stack->frame = stack->top + 1; in ficlStackLink()
190 stack->top = stack->frame - 1; in ficlStackUnlink()
191 stack->frame = ficlStackPopPointer(stack); in ficlStackUnlink()
201 ficlStackPush(stack, ficlStackFetch(stack, n)); in ficlStackPick()
328 stack->top = stack->base - 1; in ficlStackReset()
[all …]
H A Dficl.h874 FICL_PLATFORM_EXTERN void ficlStackDestroy(ficlStack *stack);
875 FICL_PLATFORM_EXTERN int ficlStackDepth(ficlStack *stack);
880 FICL_PLATFORM_EXTERN ficlCell ficlStackPop(ficlStack *stack);
882 FICL_PLATFORM_EXTERN void ficlStackReset(ficlStack *stack);
889 FICL_PLATFORM_EXTERN void ficlStackUnlink(ficlStack *stack);
897 ficlStackPushUnsigned(ficlStack *stack, ficlUnsigned u);
906 ficlStackPush2Integer(ficlStack *stack, ficl2Integer i64);
915 #define FICL_STACK_CHECK(stack, popCells, pushCells) \ argument
916 ficlStackCheck(stack, popCells, pushCells)
918 #define FICL_STACK_CHECK(stack, popCells, pushCells) argument
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/
H A Dstack.c46 free(stack); in stackalloc()
52 free(stack); in stackalloc()
82 free(stack); in stackfree()
92 stack->position.block = stack->blocks; in stackclear()
103 if (stack->position.index < 0) return(stack->error); in stackget()
104 else return(stack->position.block->stack[stack->position.index]); in stackget()
116 if (++stack->position.index >= stack->size) in stackpush()
125 if (!(b->stack = newof(0, void*, stack->size, 0))) in stackpush()
133 stack->position.block->stack[stack->position.index] = value; in stackpush()
156 stack->position.block = stack->position.block->prev; in stackpop()
[all …]
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_zfs.c493 if ((char *)buf < stack && ((char *)buf) + lsize > stack) { in zio_read()
501 buf = stack; in zio_read()
767 char *stack) in zap_lookup() argument
774 zapbuf = stack; in zap_lookup()
776 stack += size; in zap_lookup()
810 stack += size; in zap_iterate()
860 char *stack) in dnode_get() argument
953 char *stack) in dnode_get_path() argument
1133 stack)) in get_objset_mdn()
1726 char *stack; in zfs_open() local
[all …]
H A Dtparm.c139 static stack_frame stack[STACKSIZE]; variable
194 stack[stack_ptr].num_type = TRUE; in npush()
195 stack[stack_ptr].data.num = x; in npush()
206 if (stack[stack_ptr].num_type) in npop()
207 result = stack[stack_ptr].data.num; in npop()
216 stack[stack_ptr].num_type = FALSE; in spush()
217 stack[stack_ptr].data.str = x; in spush()
229 if (!stack[stack_ptr].num_type && stack[stack_ptr].data.str != 0) in spop()
230 result = stack[stack_ptr].data.str; in spop()
/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Dns_files.c58 init_files(char **stack, char ***stkptr) in init_files() argument
65 if (stack == NULL && stkptr == NULL) in init_files()
67 (void) stack_op(INIT, NULL, stack, stkptr); in init_files()
277 stack, stkptr, 0); in getmapkeys_files()
399 char **stack, char ***stkptr) in loaddirect_files() argument
473 char **stk_top = &stack[STACKSIZ - 1]; in stack_op()
483 for (ptr = stack; ptr != stk_top; ptr++) in stack_op()
485 *stkptr = stack; in stack_op()
488 for (ptr = stack; ptr != stk_top; ptr++) in stack_op()
495 *stkptr = stack; in stack_op()
[all …]
H A Dns_generic.c73 ns_setup(char **stack, char ***stkptr) in ns_setup() argument
78 nsp->ns_init(stack, stkptr); in ns_setup()
131 char **stack, ***stkptr;
159 loadmaster_map(mapname, defopts, stack, stkptr) in loadmaster_map() argument
161 char **stack, ***stkptr;
180 loaddirect_map(mapname, localmap, defopts, stack, stkptr) in loaddirect_map() argument
182 char **stack, ***stkptr;
190 stack, stkptr));
280 char **stack, ***stkptr;
291 stack, stkptr));
[all …]
H A Dns_nis.c63 init_nis(char **stack, char ***stkptr) in init_nis() argument
66 stack = stack; in init_nis()
78 char **stack;
167 loadmaster_nis(mapname, defopts, stack, stkptr) in loadmaster_nis() argument
169 char **stack;
280 dirinit(dir, pmap, opts, 0, stack, stkptr);
309 loaddirect_nis(nismap, localmap, opts, stack, stkptr) in loaddirect_nis() argument
311 char **stack;
377 dirinit(dir, localmap, opts, 1, stack, stkptr);
430 char **stack;
[all …]
/illumos-gate/usr/src/uts/common/inet/
H A Dtunables.c304 ptbl = stack->netstack_ip->ips_propinfo_tbl; in mod_get_allprop()
307 ptbl = stack->netstack_icmp->is_propinfo_tbl; in mod_get_allprop()
310 ptbl = stack->netstack_tcp->tcps_propinfo_tbl; in mod_get_allprop()
313 ptbl = stack->netstack_udp->us_propinfo_tbl; in mod_get_allprop()
316 ptbl = stack->netstack_sctp->sctps_propinfo_tbl; in mod_get_allprop()
375 tcps = stack->netstack_tcp; in mod_set_extra_privports()
381 us = stack->netstack_udp; in mod_set_extra_privports()
387 sctps = stack->netstack_sctp; in mod_set_extra_privports()
493 tcps = stack->netstack_tcp; in mod_get_extra_privports()
498 us = stack->netstack_udp; in mod_get_extra_privports()
[all …]
/illumos-gate/usr/src/uts/common/inet/udp/
H A Dudp_tunables.c34 udp_set_buf_prop(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in udp_set_buf_prop() argument
37 return (mod_set_buf_prop(stack->netstack_udp->us_propinfo_tbl, stack, in udp_set_buf_prop()
42 udp_get_buf_prop(netstack_t *stack, mod_prop_info_t *pinfo, const char *ifname, in udp_get_buf_prop() argument
45 return (mod_get_buf_prop(stack->netstack_udp->us_propinfo_tbl, stack, in udp_get_buf_prop()
55 udp_smallest_anon_set(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in udp_smallest_anon_set() argument
59 udp_stack_t *us = stack->netstack_udp; in udp_smallest_anon_set()
73 udp_largest_anon_set(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in udp_largest_anon_set() argument
77 udp_stack_t *us = stack->netstack_udp; in udp_largest_anon_set()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/
H A Dfmtre.c52 Stack_t stack[32]; in fmtre() local
57 p = stack; in fmtre()
113 if (p >= &stack[elementsof(stack)]) in fmtre()
140 if (p >= &stack[elementsof(stack)]) in fmtre()
183 if (p >= &stack[elementsof(stack)]) in fmtre()
192 if (p == stack) in fmtre()
220 if (p != stack) in fmtre()
H A Dfmtmatch.c48 char* stack[32]; in fmtmatch() local
53 p = stack; in fmtmatch()
136 if (p >= &stack[elementsof(stack)]) in fmtmatch()
157 if (p == stack) in fmtmatch()
259 if (p == stack && b == buf + 3) in fmtmatch()
276 if (p != stack) in fmtmatch()
/illumos-gate/usr/src/cmd/smbsrv/dtrace/
H A Dsmbnode.d48 stack();
58 stack();
69 stack();
78 stack();
87 stack();
96 stack();
106 stack();
115 stack();
124 stack();
/illumos-gate/usr/src/uts/common/inet/tcp/
H A Dtcp_tunables.c63 stack->netstack_tcp); in tcp_set_1948phrase()
72 tcp_listener_conf_get(netstack_t *stack, mod_prop_info_t *pinfo, in tcp_listener_conf_get() argument
75 tcp_stack_t *tcps = stack->netstack_tcp; in tcp_listener_conf_get()
124 tcp_stack_t *tcps = stack->netstack_tcp; in tcp_listener_conf_add()
170 tcp_stack_t *tcps = stack->netstack_tcp; in tcp_listener_conf_del()
197 return (mod_set_buf_prop(stack->netstack_tcp->tcps_propinfo_tbl, stack, in tcp_set_buf_prop()
205 return (mod_get_buf_prop(stack->netstack_tcp->tcps_propinfo_tbl, stack, in tcp_get_buf_prop()
219 tcp_stack_t *tcps = stack->netstack_tcp; in tcp_smallest_anon_set()
237 tcp_stack_t *tcps = stack->netstack_tcp; in tcp_largest_anon_set()
254 tcp_stack_t *tcps = stack->netstack_tcp; in tcp_set_cc_algorithm()
[all …]
/illumos-gate/usr/src/test/os-tests/tests/stackalign/
H A Dstackalign.c54 teststack(uintptr_t stack, char *arg) in teststack() argument
56 if ((stack & (STACK_ALIGN - 1)) != 0) { in teststack()
63 initmain(uintptr_t stack) in initmain() argument
65 teststack(stack, "section .init"); in initmain()
69 initarray(uintptr_t stack) in initarray() argument
71 teststack(stack, "section .init_array"); in initarray()
75 doorstack(uintptr_t stack, char *arg) in doorstack() argument
77 teststack(stack, arg); in doorstack()
/illumos-gate/usr/src/tools/smatch/src/
H A Dsmatch_slist.h47 void overwrite_sm_state_stree_stack(struct stree_stack **stack, struct sm_state *sm);
55 void delete_state_stree_stack(struct stree_stack **stack, int owner, const char *name,
60 struct stree *top_stree(struct stree_stack *stack);
63 void free_stree_stack(struct stree_stack **stack);
67 struct sm_state *set_state_stree_stack(struct stree_stack **stack, int owner, const char *name,
70 struct sm_state *get_sm_state_stree_stack(struct stree_stack *stack,
73 struct smatch_state *get_state_stree_stack(struct stree_stack *stack, int owner,
87 struct stree_stack **stack);
89 struct stree **get_named_stree(struct named_stree_stack *stack,
H A Dsmatch_slist.c559 stree = pop_stree(stack); in overwrite_sm_state_stree_stack()
561 push_stree(stack, stree); in overwrite_sm_state_stree_stack()
606 stree = pop_stree(stack); in delete_state_stree_stack()
608 push_stree(stack, stree); in delete_state_stree_stack()
656 stree = pop_stree(stack); in set_state_stree_stack()
658 push_stree(stack, stree); in set_state_stree_stack()
673 stree = pop_stree(&stack); in get_sm_state_stree_stack()
675 push_stree(&stack, stree); in get_sm_state_stree_stack()
1043 new = pop_stree(stack); in or_stree_stack()
1044 old = pop_stree(stack); in or_stree_stack()
[all …]
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_tunables.c46 sctp_listener_conf_get(netstack_t *stack, mod_prop_info_t *pinfo, in sctp_listener_conf_get() argument
49 sctp_stack_t *sctps = stack->netstack_sctp; in sctp_listener_conf_get()
90 sctp_listener_conf_add(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in sctp_listener_conf_add() argument
98 sctp_stack_t *sctps = stack->netstack_sctp; in sctp_listener_conf_add()
139 sctp_listener_conf_del(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in sctp_listener_conf_del() argument
144 sctp_stack_t *sctps = stack->netstack_sctp; in sctp_listener_conf_del()
168 sctp_set_buf_prop(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in sctp_set_buf_prop() argument
171 return (mod_set_buf_prop(stack->netstack_sctp->sctps_propinfo_tbl, in sctp_set_buf_prop()
172 stack, cr, pinfo, ifname, pval, flags)); in sctp_set_buf_prop()
179 return (mod_get_buf_prop(stack->netstack_sctp->sctps_propinfo_tbl, in sctp_get_buf_prop()
[all …]
/illumos-gate/usr/src/lib/libc/amd64/threads/
H A Dmachdep.c40 uint64_t *stack; in setup_top_frame() local
51 stack = (uint64_t *)(((uintptr_t)stk + stksize) & ~(STACK_ALIGN-1)); in setup_top_frame()
59 stack -= 3; in setup_top_frame()
63 if (uucopy(&frame, stack, sizeof (frame)) == 0) in setup_top_frame()
64 return (stack); in setup_top_frame()
72 uint64_t *stack; in setup_context() local
88 if ((stack = setup_top_frame(stk, stksize, ulwp)) == NULL) in setup_context()
95 ucp->uc_mcontext.gregs[REG_RSP] = (greg_t)stack; in setup_context()
96 ucp->uc_mcontext.gregs[REG_RBP] = (greg_t)(stack + 1); in setup_context()
/illumos-gate/usr/src/psm/promif/ieee1275/common/
H A Dprom_node.c80 pnode_t stack[OBP_STACKDEPTH]; in prom_walk_devs() local
87 stack[0] = node; in prom_walk_devs()
90 pnode_t curnode = stack[stackidx]; in prom_walk_devs()
104 stack[stackidx] = prom_nextnode(stack[stackidx]); in prom_walk_devs()
121 stack[stackidx] = child; in prom_walk_devs()
123 stack[stackidx] = in prom_walk_devs()
124 prom_nextnode(stack[stackidx]); in prom_walk_devs()
/illumos-gate/usr/src/lib/libc/sparc/threads/
H A Dmachdep.c40 uintptr_t stack; in setup_top_frame() local
47 stack = (((uintptr_t)stk + stksize) & ~(STACK_ALIGN - 1)) - in setup_top_frame()
57 if (uucopy(frame, (void *)stack, sizeof (frame)) == 0) in setup_top_frame()
58 return ((void *)stack); in setup_top_frame()
66 uintptr_t stack; in setup_context() local
75 stack = (uintptr_t)setup_top_frame(stk, stksize, ulwp); in setup_context()
76 if (stack == (uintptr_t)NULL) in setup_context()
84 ucp->uc_mcontext.gregs[REG_SP] = (greg_t)(stack - STACK_BIAS); in setup_context()
/illumos-gate/usr/src/uts/sun4v/ml/
H A Dwbuf.s53 ! misaligned stack. We handle an unmapped stack by simulating
54 ! a pagefault at the trap pc and a misaligned stack by generating
125 ! user's stack has been unmapped.
152 ! user's stack has been unmapped.
189 ! misaligned stack. We handle an unmapped stack by simulating
190 ! a pagefault at the trap pc and a misaligned stack by generating
318 ! user's stack has been unmapped.
345 ! user's stack has been unmapped.
390 ! misaligned stack. We handle an unmapped stack by simulating
391 ! a pagefault at the trap pc and a misaligned stack by generating
/illumos-gate/usr/src/uts/common/sys/
H A Dflock_impl.h217 #define STACK_INIT(stack) ((stack) = NULL) argument
218 #define STACK_PUSH(stack, ptr, stack_link) (ptr)->stack_link = (stack),\ argument
219 (stack) = (ptr)
220 #define STACK_POP(stack, stack_link) (stack) = (stack)->stack_link argument
221 #define STACK_TOP(stack) (stack) argument
222 #define STACK_EMPTY(stack) ((stack) == NULL) argument
/illumos-gate/usr/src/cmd/sendmail/db/btree/
H A Dbt_search.c87 int cmp, jump, ret, stack; local
113 stack = F_ISSET(dbp, DB_BT_RECNUM) && LF_ISSET(S_STACK);
115 0, pg, stack ? DB_LOCK_WRITE : DB_LOCK_READ, &lock)) != 0)
130 if (!stack &&
141 stack = 1;
210 if (stack) {
232 stack = 1;
237 __bam_lget(dbc, 1, pg, stack && LF_ISSET(S_WRITE) ?
362 if (cp->sp != cp->stack)
/illumos-gate/usr/src/cmd/tnf/prex/
H A Dsource.c73 static queue_node_t stack; variable
91 queue_init(&stack); in source_init()
101 (void) queue_prepend(&stack, &new_p->qn); in source_init()
149 (void) queue_prepend(&stack, &new_p->qn); in source_file()
192 top = (source_t *) queue_next(&stack, &stack); in source_input()

12345678910>>...14