/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/ |
H A D | l2_packet.c | 25 link_init(struct l2_packet_data *l2) in link_init() argument 31 retval = dlpi_bind(l2->dh, DLPI_ANY_SAP, NULL); in link_init() 34 l2->ifname, dlpi_strerror(retval)); in link_init() 38 retval = dlpi_promiscon(l2->dh, DL_PROMISC_SAP); in link_init() 42 l2->ifname, dlpi_strerror(retval)); in link_init() 46 retval = dlpi_get_physaddr(l2->dh, DL_CURR_PHYS_ADDR, paddr, &paddrlen); in link_init() 49 l2->ifname, dlpi_strerror(retval)); in link_init() 52 if (paddrlen != sizeof (l2->own_addr)) { in link_init() 54 l2->ifname, sizeof (l2->own_addr)); in link_init() 57 (void) memcpy(l2->own_addr, paddr, sizeof (l2->own_addr)); in link_init() [all …]
|
/illumos-gate/usr/src/uts/common/sys/tsol/ |
H A D | label_macro.h | 116 #define _MEQUAL(l1, l2) \ argument 117 (LCLASS(l1) == LCLASS(l2) && \ 118 (l1)->_comps.c1 == (l2)->_comps.c1 && \ 119 (l1)->_comps.c2 == (l2)->_comps.c2 && \ 120 (l1)->_comps.c3 == (l2)->_comps.c3 && \ 121 (l1)->_comps.c4 == (l2)->_comps.c4 && \ 122 (l1)->_comps.c5 == (l2)->_comps.c5 && \ 123 (l1)->_comps.c6 == (l2)->_comps.c6 && \ 124 (l1)->_comps.c7 == (l2)->_comps.c7 && \ 125 (l1)->_comps.c8 == (l2)->_comps.c8) [all …]
|
/illumos-gate/usr/src/lib/libcryptoutil/common/ |
H A D | pkcs11_uri.c | 128 char *str2, *l1, *l2, *tok, *name; in pkcs11_parse_uri() local 155 name = strtok_r(tok, "=", &l2); in pkcs11_parse_uri() 157 if (l2 == NULL) in pkcs11_parse_uri() 168 if (strlen(l2) > 32) in pkcs11_parse_uri() 170 if ((uri->token = (unsigned char *)strdup(l2)) == NULL) in pkcs11_parse_uri() 176 if (strlen(l2) > 32) in pkcs11_parse_uri() 178 if ((uri->manuf = (unsigned char *)strdup(l2)) == NULL) in pkcs11_parse_uri() 184 if (strlen(l2) > 16) in pkcs11_parse_uri() 186 if ((uri->serial = (unsigned char *)strdup(l2)) == NULL) in pkcs11_parse_uri() 192 if (strlen(l2) > 16) in pkcs11_parse_uri() [all …]
|
/illumos-gate/usr/src/cmd/perl/contrib/Sun/Solaris/Lgrp/t/ |
H A D | Lgrp_api.t | 230 foreach my $l2 (@lgrps) { 231 $latencies->{$l1}{$l2} = $c->latency($l1, $l2); 232 $nlatencies++ if $latencies->{$l1}{$l2}; 267 foreach my $l2 (@lgrps) { 269 next unless $l_mem{$l2}; 271 if (! $latencies->{$l1}{$l2}) { 273 diag("Invalid latency between $l1 and $l2"); 277 $max_latency = $latencies->{$l1}{$l2} if 278 $latencies->{$l1}{$l2} > $max_latency; 279 $min_latency = $latencies->{$l1}{$l2} if [all …]
|
/illumos-gate/usr/src/cmd/sgs/rtld/sparc/ |
H A D | boot_elf.S | 244 ld [%l1 + SBFLAGS_OFF], %l2 ! l2 = sb_flags 245 andcc %l2, LA_SYMB_NOPLTENTER, %g0 337 ld [%l7 + audit_argcnt], %l2 338 ld [%l2], %l2 ! %l2 = audit_arg_count 339 cmp %l2, 6 341 sub %l2, 6, %l2 342 sll %l2, 2, %l2 343 cmp %l1, %l2 346 mov %l2, %l1 357 mov 0x5c, %l2 ! %l2 = index into stack & frame [all …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | test-sort.c | 19 struct ptr_list *l = NULL, *l2; in main() local 36 l2 = l; in main() 38 l2->nr = MIN (l2->nr, rand () % 3); in main() 39 for (i = 0; i < l2->nr; i++) in main() 40 *((int *)(l2->list[i])) = rand(); in main() 41 l2 = l2->next; in main() 42 } while (l2 != l); in main()
|
/illumos-gate/usr/src/common/crypto/sha1/sparc/sun4u/ |
H A D | sha1_asm.S | 160 ld [%i1 + (0 * 4)], %l2 182 add %l0, %l2, %o5 188 ld [%i1 + (1 * 4)], %l2 211 add %l0, %l2, %o4 217 ld [%i1 + (2 * 4)], %l2 241 add %l0, %l2, %o3 246 ld [%i1 + (3 * 4)], %l2 269 add %l0, %l2, %o2 274 ld [%i1 + (4 * 4)], %l2 297 add %l0, %l2, %o1 [all …]
|
/illumos-gate/usr/src/cmd/nscd/ |
H A D | getserv.c | 71 int res, l1, l2; in servname_compar() local 83 l2 = strlen(e2->key.serv.proto); in servname_compar() 85 (l1 > l2)?l1:l2); in servname_compar() 94 l2 = strlen(e2->key.serv.serv.name); in servname_compar() 96 (l1 > l2)?l1:l2); in servname_compar() 117 int res, l1, l2; in servport_compar() local 129 l2 = strlen(e2->key.serv.proto); in servport_compar() 131 (l1 > l2)?l1:l2); in servport_compar()
|
H A D | getnode.c | 79 int res, l1, l2; in ipaddr_compar() local 90 l2 = e2->key.hostaddr.len; in ipaddr_compar() 92 (l2 > l1)?l1:l2); in ipaddr_compar() 93 return ((res) ? _NSC_INT_KEY_CMP(res, 0) : _NSC_INT_KEY_CMP(l1, l2)); in ipaddr_compar() 119 int res, l1, l2; in ipname_compar() local 130 l2 = strlen(e2->key.ipnode.name); in ipname_compar() 132 (l1 > l2)?l1:l2); in ipname_compar()
|
H A D | gethost.c | 84 int res, l1, l2; in hostaddr_compar() local 89 l2 = e2->key.hostaddr.len; in hostaddr_compar() 91 (l2 > l1)?l1:l2); in hostaddr_compar() 92 return ((res) ? _NSC_INT_KEY_CMP(res, 0) : _NSC_INT_KEY_CMP(l1, l2)); in hostaddr_compar()
|
/illumos-gate/usr/src/lib/libmvec/common/vis/ |
H A D | __vsqrt.S | 710 ldx [%fp+tmp_px],%l2 715 lda [%l2]%asi,%o5 ! (5_1) hx = *(int*)px; 717 lda [%l2]%asi,%f10 ! (5_0) ((float*)&res)[0] = ((float*)px)[0]; 719 lda [%l2+4]%asi,%f11 ! (5_0) ((float*)&res)[1] = ((float*)px)[1]; 729 add %l2,stridex,%l2 ! px += stridex 740 lda [%l2]%asi,%f10 ! (0_0) ((float*)&res)[0] = ((float*)px)[0]; 743 lda [%l2+4]%asi,%f11 ! (0_0) ((float*)&res)[1] = ((float*)px)[1]; 752 lda [%l2]%asi,%o5 ! (0_0) hx = *(int*)px; 757 add %l2,stridex,%l2 ! px += stridex 775 lda [%l2]%asi,%f10 ! (1_0) ((float*)&res)[0] = ((float*)px)[0]; [all …]
|
H A D | __vsin.S | 132 ! l2 hx2 255 lda [%i1]%asi,%l2 ! preload next argument 272 andn %l2,%i5,%l2 279 sub %l2,LIM_l6,%g1 280 sub %l7,%l2,%o7 302 cmp %l2,%l5 322 sub %l2,%o7,%l2 332 srl %l2,10,%l2 341 andn %l2,0x1f,%l2 350 ldd [%l3+%l2],%f40 [all …]
|
H A D | __vcos.S | 202 ! l2 hx2 326 lda [%i1]%asi,%l2 ! preload next argument 343 andn %l2,MSK_SIGN,%l2 350 sub %l2,LIM_l6,%g1 351 sub LIM_l7,%l2,%o7 373 cmp %l2,LIM_l5 393 sub %l2,%o7,%l2 403 srl %l2,10,%l2 412 andn %l2,0x1f,%l2 421 ldd [%g1+%l2],%f40 [all …]
|
H A D | __vsincos.S | 76 ! l2 hx2,k2 213 lda [%i1]%asi,%l2 ! preload next argument 233 andn %l2,%i5,%l2 239 sub %l2,%o4,%g5 240 sub %o5,%l2,%o7 262 sub %o3,%l2,%l2 266 orcc %l0,%l2,%g0 279 ld [%fp+nk2],%l2 288 sll %l2,5,%l2 292 ldd [%l2+%g1],%f24 [all …]
|
/illumos-gate/usr/src/test/libc-tests/tests/qsort/ |
H A D | merge.c | 96 u_char *f1, *f2, *t, *b, *tp2, *q, *l1, *l2; in mergesort() local 123 l2 = list1; in mergesort() 125 for (tp2 = p2 = list2; p2 != last; p1 = EVAL(l2)) { in mergesort() 127 f1 = l2; in mergesort() 131 l2 = list1 + (p2 - list2); in mergesort() 132 while (f1 < l1 && f2 < l2) { in mergesort() 139 b = f2, t = l2; in mergesort() 199 if (f2 < l2) { in mergesort() 201 ICOPY_LIST(f2, tp2, l2); in mergesort() 203 CCOPY_LIST(f2, tp2, l2); in mergesort() [all …]
|
/illumos-gate/usr/src/cmd/ast/libshell/common/tests/ |
H A D | sun_solaris_vartree002.sh | 82 typeset -A dest_tree.l1["$a"].l2 87 typeset -A dest_tree.l1["$a"].l2["$b"].l3 91 typeset -A dest_tree.l1["$a"].l2["$b"].l3["$c"].entries 106 … add_tree_leaf dest_tree.l1["$a"].l2["$b"].l3["$c"].entries[${new_index}] "${index}" "${tree_mode}" 149 typeset -A dest_tree.l1["$a"].l2 153 …if ! ([[ -v dest_tree.l1["$a"].l2["$b"] ]] ; res=$? ; unset dest_tree.l1["$a"].l2["$b"] ; exit $re… 154 typeset -A dest_tree.l1["$a"].l2["$b"].l3 158 typeset -A dest_tree.l1["$a"].l2["$b"].l3["$c"].entries 173 … add_tree_leaf dest_tree.l1["$a"].l2["$b"].l3["$c"].entries[${new_index}] "${index}" "${tree_mode}"
|
/illumos-gate/usr/src/uts/sun4u/opl/ml/ |
H A D | drmach_asm.S | 165 stx %l2, [%o2+8*2] 198 stx %l2, [%o1+8*2] 207 sethi %hi(ASI_L2_CTRL_UGE_TRAP), %l2 208 btst %l1, %l2 217 ldx [%o1+8*2], %l2 244 sethi %hi(ASI_L2_CTRL_UGE_TRAP), %l2 245 btst %l1, %l2 248 stxa %l2, [%l0]ASI_L2_CTRL 253 ldx [%o0 + SCF_TD+8], %l2 297 mov %l2, %o4 [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/tests/ |
H A D | vartree2.sh | 72 typeset -A dest_tree.l1["$a"].l2 77 typeset -A dest_tree.l1["$a"].l2["$b"].l3 81 typeset -A dest_tree.l1["$a"].l2["$b"].l3["$c"].entries 96 … add_tree_leaf dest_tree.l1["$a"].l2["$b"].l3["$c"].entries[${new_index}] "${index}" "${tree_mode}" 139 typeset -A dest_tree.l1["$a"].l2 143 if ! (unset dest_tree.l1["$a"].l2["$b"]) ; then 144 typeset -A dest_tree.l1["$a"].l2["$b"].l3 148 typeset -A dest_tree.l1["$a"].l2["$b"].l3["$c"].entries 163 … add_tree_leaf dest_tree.l1["$a"].l2["$b"].l3["$c"].entries[${new_index}] "${index}" "${tree_mode}"
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | strlcat.c | 44 size_t l2 = strlen(src); in strlcat() local 51 return (l1 + l2); in strlcat() 53 copied = l1 + l2 >= dstsize ? dstsize - l1 - 1 : l2; in strlcat() 56 return (l1 + l2); in strlcat()
|
/illumos-gate/usr/src/cmd/sgs/rtld/sparcv9/ |
H A D | boot_elf.S | 633 lduw [%l1 + SBFLAGS_OFF], %l2 ! l2 = sb_flags 634 andcc %l2, LA_SYMB_NOPLTENTER, %g0 730 ldx [%l7 + audit_argcnt], %l2 731 lduw [%l2], %l2 ! %l2 = audit_argcnt 732 cmp %l2, 6 734 sub %l2, 6, %l2 735 sllx %l2, CLONGSHIFT, %l2 ! arg count * 8 736 cmp %l1, %l2 ! 739 mov %l2, %l1 750 mov SA(MINFRAME), %l2 ! %l2 = index into stack & frame [all …]
|
/illumos-gate/usr/src/uts/common/krtld/ |
H A D | kobj_subr.c | 96 size_t l2 = strlen(src); in stand_strlcat() local 103 return (l1 + l2); in stand_strlcat() 105 copied = l1 + l2 >= dstsize ? dstsize - l1 - 1 : l2; in stand_strlcat() 108 return (l1 + l2); in stand_strlcat()
|
/illumos-gate/usr/src/lib/brand/shared/brand/sparc/ |
H A D | handler.S | 115 GET_SYM_ADDR(%l1, %l2, brand_sysent_table) 117 sll %g1, (1 + CLONGSHIFT), %l2 /* Each entry has 2 longs */ 118 add %l2, %l1, %l2 /* index to proper entry */ 119 ldn [%l2], %l2 /* emulation func address */ 189 call %l2
|
/illumos-gate/usr/src/uts/sun4/ml/ |
H A D | interrupt.S | 557 RD_CLOCK_TICK(%o1,%l2,%l3,__LINE__) 558 sub %o1, %o0, %l2 ! l2 has interval 582 mulx %l2, %o0, %l2 ! multiply interval by clock divisor iff > 1 666 mov %o3, %l2 ! delay - save %o3. 668 mov %l2, %o3 ! restore %o3 747 RD_CLOCK_TICK(%o5,%l2,%l3,__LINE__) 784 rdpr %pstate, %l2 785 andn %l2, PSTATE_IE | PSTATE_AM, %o4 803 wrpr %g0, %l2, %pstate 895 ldn [THREAD_REG + T_ONFAULT], %l2 [all …]
|
/illumos-gate/usr/src/uts/sun4v/ml/ |
H A D | mach_proc_init.S | 89 ldx [%l1 + LPAD_NMAP], %l2 ! %l2 = number of mappings 95 mulx %l2, LPAD_MAP_SIZE, %g1 103 cmp %l2, %g0 138 sub %l2, 1, %l2 ! decrement counter
|
/illumos-gate/usr/src/lib/libnsl/nis/gen/ |
H A D | nis_subr.c | 83 size_t l1, l2; in nis_dir_cmp() local 90 l2 = strlen(n2); in nis_dir_cmp() 99 if (l2 != 0 && n2[l2 - 1] == '.') { in nis_dir_cmp() 100 --l2; in nis_dir_cmp() 103 if (l1 > l2) { in nis_dir_cmp() 105 } else if (l1 == l2) { in nis_dir_cmp() 111 ltmp = l1; l1 = l2; l2 = ltmp; in nis_dir_cmp() 117 if (l2 == 0) { in nis_dir_cmp() 121 if (l1 > l2) { in nis_dir_cmp() 122 n1 += l1 - l2; in nis_dir_cmp() [all …]
|