/illumos-gate/usr/src/lib/libnisdb/ |
H A D | ldap_op.c | 442 exclusiveLC(__nis_ldap_conn_t *lc) { in exclusiveLC() argument 446 if (lc == 0) in exclusiveLC() 449 stat = mutex_trylock(&lc->mutex); in exclusiveLC() 450 if (stat == EBUSY && lc->owner != me) in exclusiveLC() 451 mutex_lock(&lc->mutex); in exclusiveLC() 453 lc->owner = me; in exclusiveLC() 458 assertExclusive(__nis_ldap_conn_t *lc) { in assertExclusive() argument 462 if (lc == 0) in assertExclusive() 465 stat = mutex_trylock(&lc->mutex); in assertExclusive() 468 mutex_unlock(&lc->mutex); in assertExclusive() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/ |
H A D | lc.c | 384 lccanon(Lc_t* lc, unsigned long flags, char* buf, size_t siz) in lccanon() argument 386 if ((flags & LC_local) && (!lc->language || !(lc->language->flags & (LC_debug|LC_default)))) in lccanon() 393 if (lc->index && in lccanon() 394 GetLocaleInfo(lc->index, LOCALE_SENGLANGUAGE, lang, sizeof(lang)) && in lccanon() 395 GetLocaleInfo(lc->index, LOCALE_SENGCOUNTRY, ctry, sizeof(ctry))) in lccanon() 397 if (!GetLocaleInfo(lc->index, LOCALE_IDEFAULTANSICODEPAGE, code, sizeof(code))) in lccanon() 399 if (!lc->charset || !lc->charset->ms) in lccanon() 401 else if (streq(lc->charset->ms, code)) in lccanon() 404 return sfsprintf(buf, siz, "%s_%s.%s,%s", lang, ctry, code, lc->charset->ms); in lccanon() 411 return canonical(lc->language, lc->territory, lc->charset, lc->attributes, flags, buf, siz); in lccanon() [all …]
|
/illumos-gate/usr/src/cmd/isns/isnsd/ |
H A D | qry.c | 347 lookup_ctrl_t lc; in qry_e2g() local 350 SET_UID_LCP(&lc, OBJ_PG, 0); in qry_e2g() 354 lc.data[0].ui = uid; in qry_e2g() 355 puid = (uint32_t)cache_lookup(&lc, NULL, in qry_e2g() 377 lookup_ctrl_t lc; in qry_i2g() local 387 lc.curr_uid = uid; in qry_i2g() 388 lc.type = OBJ_PG; in qry_i2g() 389 lc.id[0] = ATTR_INDEX_PG(ISNS_PG_ISCSI_NAME_ATTR_ID); in qry_i2g() 390 lc.op[0] = OP_STRING; in qry_i2g() 391 lc.data[0].ptr = lcp->data[1].ptr; in qry_i2g() [all …]
|
H A D | admintf.c | 1508 lookup_ctrl_t lc, lc2, lc3; in get_node_op() local 1513 lc.curr_uid = 0; in get_node_op() 1514 lc.type = get_lc_type(req->op_info.obj); in get_node_op() 1515 lc.id[0] = get_lc_id(req->op_info.obj); in get_node_op() 1516 lc.op[0] = OP_STRING; in get_node_op() 1517 lc.op[1] = 0; in get_node_op() 1518 lc.data[1].ptr = (uchar_t *)doc; /* xml writer descriptor */ in get_node_op() 1520 lc.data[0].ptr = (uchar_t *)req->req_data.data[i]; in get_node_op() 1521 ret = cache_lookup(&lc, &uid, cb_get_node_info); in get_node_op() 1527 if (ret == 0 && lc.id[2] != 0) { in get_node_op() [all …]
|
H A D | dd.c | 85 lookup_ctrl_t lc; in cb_update_ds_attr() local 113 lc.type = lcp->type; in cb_update_ds_attr() 114 lc.curr_uid = 0; in cb_update_ds_attr() 115 lc.id[0] = which; in cb_update_ds_attr() 116 lc.op[0] = OP_STRING; in cb_update_ds_attr() 117 lc.data[0].ptr = name; in cb_update_ds_attr() 118 lc.op[1] = 0; in cb_update_ds_attr() 120 uid = is_obj_there(&lc); in cb_update_ds_attr() 228 lookup_ctrl_t lc = { 0 }; in get_member_info() local 243 lc.type = OBJ_ISCSI; in get_member_info() [all …]
|
H A D | func.c | 601 lookup_ctrl_t lc, lc_key; local 635 ec = setup_key_lcp(&lc, key, key_len); 636 if (ec == 0 && lc.type != 0) { 637 lc_key = lc; 639 if ((uid = is_obj_there(&lc)) == 0) { 641 if (lc.type != OBJ_ENTITY) { 648 reg_auth_src(lc.type, uid, iscsi_name) == 0) { 655 UPDATE_LCP_UID(&lc, uid); 656 ec = dereg_object(&lc, 0); 758 SET_UID_LCP(&lc, OBJ_ENTITY, puid); [all …]
|
H A D | esi.c | 320 lookup_ctrl_t lc; in extract_esi_portal() local 328 SET_UID_LCP(&lc, OBJ_ENTITY, uid); in extract_esi_portal() 329 lc.data[1].ptr = NULL; in extract_esi_portal() 330 lc.data[2].ui = INFINITY - 1; in extract_esi_portal() 333 num_of_portal = (uint32_t)cache_lookup(&lc, NULL, cb_portal_uids); in extract_esi_portal() 334 portal_uids = (uint32_t *)lc.data[1].ptr; in extract_esi_portal() 335 *intval = lc.data[2].ui; in extract_esi_portal() 338 SET_UID_LCP(&lc, OBJ_PORTAL, 0); in extract_esi_portal() 339 lc.id[1] = ISNS_PORTAL_IP_ADDR_ATTR_ID; in extract_esi_portal() 340 lc.id[2] = ISNS_ESI_PORT_ATTR_ID; in extract_esi_portal() [all …]
|
H A D | obj.c | 2445 lookup_ctrl_t lc; in reg_auth_src() local 2451 SET_UID_LCP(&lc, type, uid); in reg_auth_src() 2452 uid = cache_lookup(&lc, NULL, cb_get_parent); in reg_auth_src() 2457 SET_UID_LCP(&lc, type, uid); in reg_auth_src() 2458 uid = cache_lookup(&lc, NULL, cb_node_child); in reg_auth_src() 2825 lookup_ctrl_t lc; in update_child_obj() local 2827 SET_UID_LCP(&lc, ptype, puid); in update_child_obj() 2829 lc.data[1].ptr = (uchar_t *)child; in update_child_obj() 2830 lc.data[2].ui = child_flag; in update_child_obj() 2832 ec = cache_lookup(&lc, NULL, cb_add_child); in update_child_obj() [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/isc/ |
H A D | logging.c | 172 log_close_debug_channels(log_context lc) { in log_close_debug_channels() argument 176 for (i = 0; i < lc->num_categories; i++) in log_close_debug_channels() 177 for (lcl = lc->categories[i]; lcl != NULL; lcl = lcl->next) in log_close_debug_channels() 203 log_check_channel(log_context lc, int level, log_channel chan) { in log_check_channel() argument 206 REQUIRE(lc != NULL); in log_check_channel() 208 debugging = ((lc->flags & LOG_OPTION_DEBUG) != 0); in log_check_channel() 225 chan_level = lc->level; in log_check_channel() 236 log_check(log_context lc, int category, int level) { in log_check() argument 240 REQUIRE(lc != NULL); in log_check() 242 debugging = ((lc->flags & LOG_OPTION_DEBUG) != 0); in log_check() [all …]
|
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | request.c | 44 static void use_connection( LDAP *ld, LDAPConn *lc ); 151 LDAPConn *lc, /* connection to use (NULL for default) */ in nsldapi_send_server_request() argument 164 if ( lc == NULL ) { in nsldapi_send_server_request() 185 lc = ld->ld_defconn; in nsldapi_send_server_request() 187 if (( lc = find_connection( ld, srvlist, 1 )) == in nsldapi_send_server_request() 195 lc = nsldapi_new_connection( ld, &srvlist, 0, in nsldapi_send_server_request() 213 if ( lc == NULL in nsldapi_send_server_request() 215 && lc->lconn_status != LDAP_CONNST_CONNECTING in nsldapi_send_server_request() 216 && lc->lconn_status != LDAP_CONNST_CONNECTED) in nsldapi_send_server_request() 218 && lc->lconn_status != LDAP_CONNST_CONNECTED) ) ) { in nsldapi_send_server_request() [all …]
|
H A D | result.c | 50 static int read1msg( LDAP *ld, int msgid, int all, Sockbuf *sb, LDAPConn *lc, 279 LDAPConn *lc, *nextlc; local 356 for ( lc = ld->ld_conns; lc != NULL; lc = lc->lconn_next ) { 357 if ( lc->lconn_sb->sb_ber.ber_ptr < 358 lc->lconn_sb->sb_ber.ber_end ) { 359 rc = read1msg( ld, msgid, all, lc->lconn_sb, 360 lc, result ); 367 if ( lc == NULL ) { 403 for ( lc = ld->ld_conns; rc == -2 && lc != NULL; 404 lc = nextlc ) { [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | logsubr.c | 338 log_ctl_t *lc = (log_ctl_t *)mp->b_rptr; in log_conswitch() local 339 lc->flags |= SL_LOGONLY; in log_conswitch() 346 if (lc->ttime == 0) { in log_conswitch() 369 hlc->ttime = lc->ttime - (lc->ltime - hlc->ltime) / hz; in log_conswitch() 452 log_error(log_t *lp, log_ctl_t *lc) in log_error() argument 454 if ((lc->pri & LOG_FACMASK) == LOG_KERN) in log_error() 455 lc->pri = LOG_KERN | LOG_ERR; in log_error() 460 log_trace(log_t *lp, log_ctl_t *lc) in log_trace() argument 472 if (tid->ti_level < lc->level && tid->ti_level >= 0) in log_trace() 474 if (tid->ti_mid != lc->mid && tid->ti_mid >= 0) in log_trace() [all …]
|
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/ |
H A D | t4_mac.c | 211 struct link_config *lc = &pi->link_cfg; in t4_port_to_media() local 215 if (lc->link_ok != 0) { in t4_port_to_media() 216 speed = t4_link_fwcap_to_fwspeed(lc->link_caps); in t4_port_to_media() 314 struct link_config *lc = &pi->link_cfg; in t4_mc_getstat() local 321 if (lc->link_ok != 0) { in t4_mc_getstat() 322 *val = t4_link_fwcap_to_speed(lc->link_caps); in t4_mc_getstat() 430 *val = !!(lc->pcaps & FW_PORT_CAP32_SPEED_100G); in t4_mc_getstat() 434 *val = !!(lc->pcaps & FW_PORT_CAP32_SPEED_50G); in t4_mc_getstat() 438 *val = !!(lc->pcaps & FW_PORT_CAP32_SPEED_40G); in t4_mc_getstat() 442 *val = !!(lc->pcaps & FW_PORT_CAP32_SPEED_25G); in t4_mc_getstat() [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/ |
H A D | loop.c | 155 struct rdsv3_loop_connection *lc; in rdsv3_loop_conn_alloc() local 159 lc = kmem_zalloc(sizeof (struct rdsv3_loop_connection), KM_NOSLEEP); in rdsv3_loop_conn_alloc() 160 if (!lc) in rdsv3_loop_conn_alloc() 163 list_link_init(&lc->loop_node); in rdsv3_loop_conn_alloc() 164 lc->conn = conn; in rdsv3_loop_conn_alloc() 165 conn->c_transport_data = lc; in rdsv3_loop_conn_alloc() 168 list_insert_tail(&loop_conns, lc); in rdsv3_loop_conn_alloc() 179 struct rdsv3_loop_connection *lc = arg; in rdsv3_loop_conn_free() local 180 RDSV3_DPRINTF5("rdsv3_loop_conn_free", "lc %p\n", lc); in rdsv3_loop_conn_free() 181 list_remove_node(&lc->loop_node); in rdsv3_loop_conn_free() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/ |
H A D | setlocale.c | 105 Lc_t* lc; in native_locale() local 116 if (!(lc = lcmake(locale))) in native_locale() 118 lang = lc->language->index; in native_locale() 120 for (ap = lc->attributes; ap; ap = ap->next) in native_locale() 125 for (i = 0; i < elementsof(lc->territory->languages); i++) in native_locale() 126 if (lc->territory->languages[i] == lc->language) in native_locale() 128 ctry = lc->territory->indices[i]; in native_locale() 145 if (lc->charset->ms) in native_locale() 146 sfsprintf(buf, siz, "%s_%s.%s", lbuf, cbuf, lc->charset->ms); in native_locale() 2413 Lc_t* lc; in default_setlocale() local [all …]
|
/illumos-gate/usr/src/lib/libgen/common/ |
H A D | gmatch.c | 75 wchar_t lc = 0; in gmatch() local 86 if (c == '-' && lc && *p != ']') { in gmatch() 93 valid_range(lc, c)) { in gmatch() 94 if (scc < lc || scc > c) in gmatch() 101 valid_range(lc, c)) in gmatch() 102 if (lc <= scc && in gmatch() 110 lc = c; in gmatch() 112 if (scc != lc) in gmatch() 119 if (scc == lc) in gmatch()
|
H A D | reg_compile.c | 154 wchar_t lc, cl; in _compile() local 236 lc = 0; in _compile() 260 if (c == '-' && lc != 0) { in _compile() 272 while (lc < c) { in _compile() 273 PLACE(lc); in _compile() 274 lc++; in _compile() 277 if (valid_range(lc, c) && lc < c) in _compile() 281 lc = 0; in _compile() 283 lc = c; in _compile() 288 lc = c; in _compile() [all …]
|
/illumos-gate/usr/src/tools/protocmp/ |
H A D | proto_list.c | 42 error(const char *msg, int lc) in error() argument 44 (void) fprintf(stderr, "warning: line %d - %s\n", lc, msg); in error() 78 check_line(char *v[], int lc) in check_line() argument 81 error("bad name", lc); in check_line() 84 error("bad source/symbolic line", lc); in check_line() 87 error("bad permissions", lc); in check_line() 90 error("bad owner", lc); in check_line() 93 error("bad group", lc); in check_line() 96 error("bad i-node", lc); in check_line() 99 error("bad link-count", lc); in check_line() [all …]
|
/illumos-gate/usr/src/cmd/locale/ |
H A D | locale.c | 324 #define lc(member, locale, type) \ macro 330 {"decimal_point", lc(decimal_point, LC_NUMERIC, TYPE_STR) }, 331 {"thousands_sep", lc(thousands_sep, LC_NUMERIC, TYPE_STR) }, 332 {"grouping", lc(grouping, LC_NUMERIC, TYPE_GROUP)}, 333 {"int_curr_symbol", lc(int_curr_symbol, LC_MONETARY, TYPE_STR)}, 334 {"currency_symbol", lc(currency_symbol, LC_MONETARY, TYPE_STR)}, 335 {"mon_decimal_point", lc(mon_decimal_point, LC_MONETARY, TYPE_STR)}, 336 {"mon_thousands_sep", lc(mon_thousands_sep, LC_MONETARY, TYPE_STR)}, 337 {"mon_grouping", lc(mon_grouping, LC_MONETARY, TYPE_GROUP)}, 338 {"positive_sign", lc(positive_sign, LC_MONETARY, TYPE_STR)}, [all …]
|
/illumos-gate/usr/src/boot/common/linenoise/ |
H A D | linenoise.c | 205 static void freeCompletions(linenoiseCompletions *lc) { in freeCompletions() argument 207 for (i = 0; i < lc->len; i++) in freeCompletions() 208 free(lc->cvec[i]); in freeCompletions() 209 if (lc->cvec != NULL) in freeCompletions() 210 free(lc->cvec); in freeCompletions() 220 linenoiseCompletions lc = { 0, NULL }; in completeLine() local 224 completionCallback(ls->buf,&lc); in completeLine() 225 if (lc.len == 0) { in completeLine() 232 if (i < lc.len) { in completeLine() 235 ls->len = ls->pos = strlen(lc.cvec[i]); in completeLine() [all …]
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/fac_prov_mptsas/ |
H A D | fac_prov_mptsas.c | 80 mptsas_led_control_t lc; in do_led_control() local 82 bzero(&lc, sizeof (lc)); in do_led_control() 84 lc.Command = set ? MPTSAS_LEDCTL_FLAG_SET : MPTSAS_LEDCTL_FLAG_GET; in do_led_control() 85 lc.Enclosure = enclosure; in do_led_control() 86 lc.Slot = slot; in do_led_control() 87 lc.Led = led; in do_led_control() 88 lc.LedStatus = *ledmode; in do_led_control() 96 if (ioctl(fd, MPTIOCTL_LED_CONTROL, &lc) == -1) { in do_led_control() 104 lc.LedStatus = 0; in do_led_control() 113 *ledmode = lc.LedStatus ? TOPO_LED_STATE_ON : TOPO_LED_STATE_OFF; in do_led_control()
|
/illumos-gate/usr/src/uts/common/io/chxge/com/ |
H A D | ch_subr.c | 162 struct link_config *lc = &adapter->port[port_id].link_config; in link_changed() local 166 lc->speed = speed < 0 ? SPEED_INVALID : speed; in link_changed() 167 lc->duplex = duplex < 0 ? DUPLEX_INVALID : duplex; in link_changed() 168 if (!(lc->requested_fc & PAUSE_AUTONEG)) in link_changed() 169 fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); in link_changed() 171 if (link_ok && speed >= 0 && lc->autoneg == AUTONEG_ENABLE) { in link_changed() 176 lc->fc = (unsigned char)fc; in link_changed() 820 t1_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc) in t1_link_start() argument 822 unsigned int fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); in t1_link_start() 824 if (lc->supported & SUPPORTED_Autoneg) { in t1_link_start() [all …]
|
/illumos-gate/usr/src/cmd/sgs/lex/common/ |
H A D | sub3.c | 129 lchar lc = linearize(c); in remch() local 153 (void) lsearch(&lc, yycgidtbl, in remch() 203 lchar lc; in yycgid() local 212 lc = linearize(c); in yycgid() 215 if (yycgidtbl[YYNCGIDTBL - 1] < lc) in yycgid() 220 if (lc == yycgidtbl[i]) in yycgid() 222 else if (yycgidtbl[i] < lc) { in yycgid() 223 if (lc < yycgidtbl[i+1]) { in yycgid()
|
/illumos-gate/usr/src/test/libc-tests/tests/newlocale/ |
H A D | newlocale_test.c | 63 struct lconv *lc; in testlocale_thr_one() local 87 lc = localeconv(); in testlocale_thr_one() 88 if (strcmp(lc->currency_symbol, "") != 0) { in testlocale_thr_one() 90 lc->currency_symbol, ""); in testlocale_thr_one() 103 lc = localeconv(); 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() 109 test_debugf(t, "CSYM: %s", lc->currency_symbol); in testlocale_thr_one()
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_pq.c | 121 uint_t lc = i * 2; in dt_pq_pop() local 127 if (lc >= p->dtpq_last) in dt_pq_pop() 131 c = lc; in dt_pq_pop() 132 v = dt_pq_getvalue(p, lc); in dt_pq_pop() 134 uint64_t lv = dt_pq_getvalue(p, lc); in dt_pq_pop() 138 c = lc; in dt_pq_pop()
|