/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.print.c | 28 psecs_ull(unsigned long long l) in psecs_ull() argument 32 i = l / 3600; in psecs_ull() 35 i = l % 3600; in psecs_ull() 39 i = l; in psecs_ull() 48 psecs_int(int l) in psecs_int() argument 52 i = l / 3600; in psecs_int() 55 i = l % 3600; in psecs_int() 59 i = l; in psecs_int()
|
/illumos-gate/usr/src/lib/libslp/clib/ |
H A D | slp_config.c | 172 size_t l; in slp_get_next_onlist() local 184 l = strlen(p); in slp_get_next_onlist() 186 l = *state - p; in slp_get_next_onlist() 187 l = (l > 32 ? 32 : l); in slp_get_next_onlist() 189 (void) strncpy(buf, p, l); in slp_get_next_onlist() 190 buf[l] = 0; in slp_get_next_onlist()
|
/illumos-gate/usr/src/lib/iconv_modules/utf-8/common/binarytables/test/ |
H A D | mkmnmcstbl.c | 62 unsigned int l, k, index_for_between; in main() local 101 l = strtol(num, (char **)NULL, 0); in main() 107 tbl[k].u4 = l; in main() 110 if (l < 0x80) in main() 112 else if (l < 0x800) in main() 114 else if (l < 0x10000) in main() 116 else if (l < 0x200000) in main() 118 else if (l < 0x4000000) in main() 141 unsigned int l, k, index_for_between; in mk_u4nm() local
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/path/ |
H A D | pathtemp.c | 111 int l; in pathtemp() local 246 l = 3; in pathtemp() 251 for (l = m; l && pfx[l - 1] == 'X'; l--); in pathtemp() 252 r = m - l; in pathtemp() 253 m = l; in pathtemp() 254 l = r / 2; in pathtemp() 255 r -= l; in pathtemp() 260 l = 3; in pathtemp() 267 l = 2; in pathtemp() 322 sfsprintf(s, len, "%-.*s%s%-.*s", l, keybuf, z ? "." : "", r, keybuf + sizeof(keybuf) / 2); in pathtemp()
|
/illumos-gate/usr/src/cmd/spell/ |
H A D | huff.c | 111 int l; in decode() local 117 for (l = w, v = v0; y >= qcs; in decode() 119 if ((l += QW) > L) in decode() 122 return (l); in decode() 135 int l; in encode() local 141 for (k -= c, y = 1, l = w; k >= n; k -= n, y <<= QW) in encode() 142 if ((l += QW) > L) in encode() 145 return (l); in encode()
|
/illumos-gate/usr/src/lib/libtsol/common/ |
H A D | hextob.c | 58 m_label_t *l = NULL; in htobsl() local 60 if (str_to_label(s, &l, MAC_LABEL, L_NO_CORRECTION, NULL) == -1) { in htobsl() 61 m_label_free(l); in htobsl() 64 *label = *l; in htobsl() 65 m_label_free(l); in htobsl()
|
/illumos-gate/usr/src/lib/iconv_modules/utf-8/utils/ |
H A D | number_of_bytes.c | 38 int k, l; in main() local 61 for (l = i; l < (i + 16); l++) in main() 62 printf("%02X ", l); in main()
|
/illumos-gate/usr/src/cmd/keyserv/ |
H A D | setkey.c | 782 for (l = &g_secretkey_netname[hash]; *l != NULL && (*l)->uid != uid; 783 l = &(*l)->next) { 966 for (l = g_secretkey_netname[hash]; l != NULL; l = l->next) { 1169 for (l = &g_cachedkeys[hash]; (*l) != NULL && !cachehit(pub, sec, *l); 1170 l = &(*l)->next) 1243 for (l = g_secretkey_netname[hash]; l != NULL; l = l->next) { 1711 for (l = &g_cachedkeys[i]; (*l) != NULL; ) { 1714 *l = (*l)->next; 1719 l = &(*l)->next; 1740 for (l = &g_secretkey_netname[hash]; *l != NULL && (*l)->uid != uid; [all …]
|
/illumos-gate/usr/src/boot/libsa/ |
H A D | pkgfs.c | 538 l = 0; in pkg_atol8() 541 if (l>limit || (l == limit && digit > last_digit_limit)) { in pkg_atol8() 545 l = (l * base) + digit; in pkg_atol8() 548 return (sign < 0) ? -l : l; in pkg_atol8() 570 l = (int64_t)-1; in pkg_atol256() 572 l = 0; in pkg_atol256() 573 l = (l << 6) | (0x3f & *p++); in pkg_atol256() 575 if (l > upper_limit) { in pkg_atol256() 579 l = INT64_MIN; in pkg_atol256() 582 l = (l << 8) | (0xff & (int64_t)*p++); in pkg_atol256() [all …]
|
/illumos-gate/usr/src/uts/common/io/audio/impl/ |
H A D | audio_engine.c | 291 for (d = list_head(l); d; d = list_next(l, d)) { in auimpl_dev_hold_by_devt() 310 for (d = list_head(l); d; d = list_next(l, d)) { in auimpl_dev_hold_by_index() 875 list_t *l; in audio_dev_register() local 1114 list_t *l; in auclnt_walk_devs() local 1118 for (d = list_head(l); d; d = list_next(l, d)) { in auclnt_walk_devs() 1131 list_t *l; in auclnt_walk_devs_by_number() local 1135 for (d = list_head(l); d; d = list_next(l, d)) { in auclnt_walk_devs_by_number() 1152 for (e = list_head(l); e != NULL; e = list_next(l, e)) { in auclnt_dev_walk_engines() 1259 list_t *l; in auimpl_dev_suspend() local 1279 for (e = list_head(l); e != NULL; e = list_next(l, e)) { in auimpl_dev_suspend() [all …]
|
/illumos-gate/usr/src/lib/crypt_modules/sunmd5/ |
H A D | sunmd5.c | 251 uint32_t l; in crypt_genhash_impl() local 447 l = (data.digest[ 0]<<16) | (data.digest[ 6]<<8) | data.digest[12]; in crypt_genhash_impl() 448 to64(p, l, 4); p += 4; in crypt_genhash_impl() 449 l = (data.digest[ 1]<<16) | (data.digest[ 7]<<8) | data.digest[13]; in crypt_genhash_impl() 450 to64(p, l, 4); p += 4; in crypt_genhash_impl() 451 l = (data.digest[ 2]<<16) | (data.digest[ 8]<<8) | data.digest[14]; in crypt_genhash_impl() 452 to64(p, l, 4); p += 4; in crypt_genhash_impl() 453 l = (data.digest[ 3]<<16) | (data.digest[ 9]<<8) | data.digest[15]; in crypt_genhash_impl() 454 to64(p, l, 4); p += 4; in crypt_genhash_impl() 456 to64(p, l, 4); p += 4; in crypt_genhash_impl() [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/lua/ |
H A D | lstate.c | 61 lua_State l; member 69 LX l; member 75 #define fromstate(L) (cast(LX *, cast(lu_byte *, (L)) - offsetof(LX, l))) 255 LX *l = fromstate(L1); in luaE_freethread() local 260 luaM_free(L, l); in luaE_freethread() 268 LG *l = cast(LG *, (*f)(ud, NULL, LUA_TTHREAD, sizeof(LG))); in lua_newstate() local 269 if (l == NULL) return NULL; in lua_newstate() 270 L = &l->l.l; in lua_newstate() 271 g = &l->g; in lua_newstate() 282 g->uvhead.u.l.prev = &g->uvhead; in lua_newstate() [all …]
|
H A D | lauxlib.c | 422 memcpy(b, s, l * sizeof(char)); in luaL_addlstring() 423 luaL_addsize(B, l); in luaL_addlstring() 448 size_t l; in luaL_addvalue() local 452 luaL_addlstring(B, s, l); in luaL_addvalue() 583 int l; in luaL_len() local 590 return l; in luaL_len() 656 for (; l && l->name; l++) size++; in libsize() 691 if (l) in luaL_openlib() 692 luaL_setfuncs(L, l, nup); in luaL_openlib() 708 for (; l->name != NULL; l++) { /* fill the table with given functions */ in luaL_setfuncs() [all …]
|
/illumos-gate/usr/src/lib/libkmf/libkmf/common/ |
H A D | pem_encode.c | 110 unsigned long l; in PEM_EncodeBlock() local 114 l = (((unsigned long)f[0])<<16L)| in PEM_EncodeBlock() 116 *(t++) = conv_bin2ascii(l>>18L); in PEM_EncodeBlock() 117 *(t++) = conv_bin2ascii(l>>12L); in PEM_EncodeBlock() 118 *(t++) = conv_bin2ascii(l>> 6L); in PEM_EncodeBlock() 119 *(t++) = conv_bin2ascii(l); in PEM_EncodeBlock() 121 l = ((unsigned long)f[0])<<16L; in PEM_EncodeBlock() 123 l |= ((unsigned long)f[1]<<8L); in PEM_EncodeBlock() 125 *(t++) = conv_bin2ascii(l>>18L); in PEM_EncodeBlock() 126 *(t++) = conv_bin2ascii(l>>12L); in PEM_EncodeBlock() [all …]
|
/illumos-gate/usr/src/cmd/expr/ |
H A D | expr.c | 475 ltoa(long l) in ltoa() argument 484 if (l < 0) in ltoa() 485 ++neg, l = -l; in ltoa() 488 i = l % 10; in ltoa() 490 l /= 10; in ltoa() 491 } while (l); in ltoa() 507 if (l < 0) in lltoa() 508 ++neg, l = -l; in lltoa() 511 i = l % 10; in lltoa() 513 l /= 10; in lltoa() [all …]
|
/illumos-gate/usr/src/cmd/auditd/ |
H A D | queue.c | 125 audit_incr_ref(pthread_mutex_t *l, audit_rec_t *p) in audit_incr_ref() argument 127 (void) pthread_mutex_lock(l); in audit_incr_ref() 131 (void) pthread_mutex_unlock(l); in audit_incr_ref() 138 audit_release(pthread_mutex_t *l, audit_rec_t *p) in audit_release() argument 142 (void) pthread_mutex_lock(l); in audit_release() 148 (void) pthread_mutex_unlock(l); in audit_release() 151 (void) pthread_mutex_unlock(l); in audit_release()
|
/illumos-gate/usr/src/cmd/oamuser/lib/ |
H A D | vgroup.c | 54 long l; in valid_group() local 68 l = strtol(group, &ptr, 10); in valid_group() 69 if ((l == LONG_MAX && errno == ERANGE) || l > MAXUID) { in valid_group() 72 if ((r = valid_gid((gid_t)l, &grp)) == NOTUNIQUE) { in valid_group()
|
/illumos-gate/usr/src/cmd/msgfmt/ |
H A D | sun_msgfmt.h | 70 #define CK_NXT_CH(a, l) \ argument 71 ((a[(l) - 1] == L' ') || (a[(l) - 1] == L'\t') || \ 72 (a[(l) - 1] == L'\n') || (a[(l) - 1] == L'\0'))
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | svc_door.c | 100 SVCXPRT_LIST *l; in __svc_add_to_xlist() local 102 if ((l = malloc(sizeof (*l))) == NULL) in __svc_add_to_xlist() 104 l->xprt = xprt; in __svc_add_to_xlist() 107 l->next = *list; in __svc_add_to_xlist() 108 *list = l; in __svc_add_to_xlist() 121 for (l = list; *l != NULL; l = &(*l)->next) { in __svc_rm_from_xlist() 123 tmp = (*l)->next; in __svc_rm_from_xlist() 124 free(*l); in __svc_rm_from_xlist() 125 *l = tmp; in __svc_rm_from_xlist() 158 for (l = dxlist; l != NULL; l = tmp) { in __svc_cleanup_door_xprts() [all …]
|
/illumos-gate/usr/src/test/libc-tests/tests/newlocale/ |
H A D | newlocale_test.c | 67 struct ldata *l = &ldata[i % NUM_LDATA]; in testlocale_thr_one() local 70 loc = newlocale(LC_ALL_MASK, l->locale, NULL); in testlocale_thr_one() 72 test_failed(t, "newlocale %s failed", l->locale); in testlocale_thr_one() 75 if (strcmp(day, l->day1) != 0) { in testlocale_thr_one() 77 day, l->day1); in testlocale_thr_one() 98 if (strcmp(day, l->day1) != 0) { in testlocale_thr_one() 100 day, l->day1); in testlocale_thr_one() 104 if (strcmp(lc->currency_symbol, l->cursym) != 0) { in testlocale_thr_one() 106 lc->currency_symbol, l->cursym); in testlocale_thr_one()
|
/illumos-gate/usr/src/lib/auditd_plugins/syslog/ |
H A D | sysplugin.c | 357 if (l > max) in gethname() 358 l = max; in gethname() 404 if (l > max) in gethname() 405 l = max; in gethname() 456 if (l > max) in getuname() 457 l = max; in getuname() 459 len += l - 1; in getuname() 462 p += l - 1; in getuname() 463 max -= l - 1; in getuname() 488 if (l > max) in getuname() [all …]
|
/illumos-gate/usr/src/lib/libxcurses/src/libc/mks/ |
H A D | m_pathca.c | 70 int l; local 76 l = PATH_MAX; 78 l = m_pathmax(dir); 79 if (l < 0) 97 if (m > l) {
|
/illumos-gate/usr/src/cmd/ipf/lib/ |
H A D | ipft_sn.c | 160 struct llc *l; local 177 l = &llcs[s_type]; 178 i -= l->lc_to; 179 s += l->lc_to; 186 bcopy(s, ty, l->lc_tl); 189 i -= l->lc_tl; 190 s += l->lc_tl;
|
/illumos-gate/usr/src/tools/smatch/src/validation/mem2reg/ |
H A D | if-direct.c | 3 int l; in foo() local 6 l = a; in foo() 8 l = b; in foo() 10 return l; in foo()
|
/illumos-gate/usr/src/test/os-tests/tests/xsave/ |
H A D | xsave_baducontext.c | 176 unsigned long l; in main() local 217 l = strtoul(testno, &eptr, 0); in main() 222 if (l >= ARRAY_SIZE(tests)) { in main() 223 errx(EXIT_FAILURE, "test number %lu is too large\n", l); in main() 231 (void) printf("errno=%u\ndesc='%s'\n", tests[l].bct_errno, in main() 232 tests[l].bct_test); in main() 248 curtest = tests[l].bct_test; in main() 249 tests[l].bct_func(ctx); in main()
|