/titanic_41/usr/src/lib/libnisdb/ |
H A D | ldap_op.c | 441 exclusiveLC(__nis_ldap_conn_t *lc) { in exclusiveLC() argument 445 if (lc == 0) in exclusiveLC() 448 stat = mutex_trylock(&lc->mutex); in exclusiveLC() 449 if (stat == EBUSY && lc->owner != me) in exclusiveLC() 450 mutex_lock(&lc->mutex); in exclusiveLC() 452 lc->owner = me; in exclusiveLC() 457 assertExclusive(__nis_ldap_conn_t *lc) { in assertExclusive() argument 461 if (lc == 0) in assertExclusive() 464 stat = mutex_trylock(&lc->mutex); in assertExclusive() 467 mutex_unlock(&lc->mutex); in assertExclusive() [all …]
|
/titanic_41/usr/src/lib/libast/common/port/ |
H A D | lc.c | 348 lccanon(Lc_t* lc, unsigned long flags, char* buf, size_t siz) in lccanon() argument 350 if ((flags & LC_local) && (!lc->language || !(lc->language->flags & (LC_debug|LC_default)))) in lccanon() 357 if (lc->index && in lccanon() 358 GetLocaleInfo(lc->index, LOCALE_SENGLANGUAGE, lang, sizeof(lang)) && in lccanon() 359 GetLocaleInfo(lc->index, LOCALE_SENGCOUNTRY, ctry, sizeof(ctry))) in lccanon() 361 if (!GetLocaleInfo(lc->index, LOCALE_IDEFAULTANSICODEPAGE, code, sizeof(code))) in lccanon() 363 if (!lc->charset || !lc->charset->ms) in lccanon() 365 else if (streq(lc->charset->ms, code)) in lccanon() 368 return sfsprintf(buf, siz, "%s_%s.%s,%s", lang, ctry, code, lc->charset->ms); in lccanon() 375 return canonical(lc->language, lc->territory, lc->charset, lc->attributes, flags, buf, siz); in lccanon() [all …]
|
/titanic_41/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 | 630 lookup_ctrl_t lc, lc_key; local 664 ec = setup_key_lcp(&lc, key, key_len); 665 if (ec == 0 && lc.type != 0) { 666 lc_key = lc; 668 if ((uid = is_obj_there(&lc)) == 0) { 670 if (lc.type != OBJ_ENTITY) { 677 reg_auth_src(lc.type, uid, iscsi_name) == 0) { 684 UPDATE_LCP_UID(&lc, uid); 685 ec = dereg_object(&lc, 0); 787 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 …]
|
/titanic_41/usr/src/lib/libresolv2/common/isc/ |
H A D | logging.c | 176 log_close_debug_channels(log_context lc) { in log_close_debug_channels() argument 180 for (i = 0; i < lc->num_categories; i++) in log_close_debug_channels() 181 for (lcl = lc->categories[i]; lcl != NULL; lcl = lcl->next) in log_close_debug_channels() 207 log_check_channel(log_context lc, int level, log_channel chan) { in log_check_channel() argument 210 REQUIRE(lc != NULL); in log_check_channel() 212 debugging = ((lc->flags & LOG_OPTION_DEBUG) != 0); in log_check_channel() 229 chan_level = lc->level; in log_check_channel() 240 log_check(log_context lc, int category, int level) { in log_check() argument 244 REQUIRE(lc != NULL); in log_check() 246 debugging = ((lc->flags & LOG_OPTION_DEBUG) != 0); in log_check() [all …]
|
/titanic_41/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | request.c | 46 static void use_connection( LDAP *ld, LDAPConn *lc ); 153 LDAPConn *lc, /* connection to use (NULL for default) */ in nsldapi_send_server_request() argument 166 if ( lc == NULL ) { in nsldapi_send_server_request() 187 lc = ld->ld_defconn; in nsldapi_send_server_request() 189 if (( lc = find_connection( ld, srvlist, 1 )) == in nsldapi_send_server_request() 197 lc = nsldapi_new_connection( ld, &srvlist, 0, in nsldapi_send_server_request() 215 if ( lc == NULL in nsldapi_send_server_request() 217 && lc->lconn_status != LDAP_CONNST_CONNECTING in nsldapi_send_server_request() 218 && lc->lconn_status != LDAP_CONNST_CONNECTED) in nsldapi_send_server_request() 220 && lc->lconn_status != LDAP_CONNST_CONNECTED) ) ) { in nsldapi_send_server_request() [all …]
|
H A D | result.c | 52 static int read1msg( LDAP *ld, int msgid, int all, Sockbuf *sb, LDAPConn *lc, 281 LDAPConn *lc, *nextlc; local 358 for ( lc = ld->ld_conns; lc != NULL; lc = lc->lconn_next ) { 359 if ( lc->lconn_sb->sb_ber.ber_ptr < 360 lc->lconn_sb->sb_ber.ber_end ) { 361 rc = read1msg( ld, msgid, all, lc->lconn_sb, 362 lc, result ); 369 if ( lc == NULL ) { 405 for ( lc = ld->ld_conns; rc == -2 && lc != NULL; 406 lc = nextlc ) { [all …]
|
/titanic_41/usr/src/uts/common/os/ |
H A D | logsubr.c | 324 log_ctl_t *lc = (log_ctl_t *)mp->b_rptr; in log_conswitch() local 325 lc->flags |= SL_LOGONLY; in log_conswitch() 332 if (lc->ttime == 0) { in log_conswitch() 355 hlc->ttime = lc->ttime - (lc->ltime - hlc->ltime) / hz; in log_conswitch() 438 log_error(log_t *lp, log_ctl_t *lc) in log_error() argument 440 if ((lc->pri & LOG_FACMASK) == LOG_KERN) in log_error() 441 lc->pri = LOG_KERN | LOG_ERR; in log_error() 446 log_trace(log_t *lp, log_ctl_t *lc) in log_trace() argument 458 if (tid->ti_level < lc->level && tid->ti_level >= 0) in log_trace() 460 if (tid->ti_mid != lc->mid && tid->ti_mid >= 0) in log_trace() [all …]
|
/titanic_41/usr/src/uts/common/io/cxgbe/t4nex/ |
H A D | t4_mac.c | 101 struct link_config *lc = &pi->link_cfg; in t4_mc_getstat() local 108 if (lc->link_ok != 0) { in t4_mc_getstat() 109 *val = lc->speed; in t4_mc_getstat() 215 *val = !!(lc->supported & FW_PORT_CAP_SPEED_1G); in t4_mc_getstat() 222 *val = !!(lc->supported & FW_PORT_CAP_SPEED_100M); in t4_mc_getstat() 241 *val = !!(lc->supported & FW_PORT_CAP_ANEG); in t4_mc_getstat() 268 *val = (((lc->requested_fc & PAUSE_TX) ? 1 : 0) ^ in t4_mc_getstat() 269 (lc->requested_fc & PAUSE_RX)); in t4_mc_getstat() 274 *val = (lc->requested_fc & PAUSE_TX) ? 1 : 0; in t4_mc_getstat() 306 *val = lc->autoneg == AUTONEG_ENABLE; in t4_mc_getstat() [all …]
|
/titanic_41/usr/src/uts/common/io/ib/clients/rdsv3/ |
H A D | loop.c | 154 struct rdsv3_loop_connection *lc; in rdsv3_loop_conn_alloc() local 158 lc = kmem_zalloc(sizeof (struct rdsv3_loop_connection), KM_NOSLEEP); in rdsv3_loop_conn_alloc() 159 if (!lc) in rdsv3_loop_conn_alloc() 162 list_link_init(&lc->loop_node); in rdsv3_loop_conn_alloc() 163 lc->conn = conn; in rdsv3_loop_conn_alloc() 164 conn->c_transport_data = lc; in rdsv3_loop_conn_alloc() 167 list_insert_tail(&loop_conns, lc); in rdsv3_loop_conn_alloc() 178 struct rdsv3_loop_connection *lc = arg; in rdsv3_loop_conn_free() local 179 RDSV3_DPRINTF5("rdsv3_loop_conn_free", "lc %p\n", lc); in rdsv3_loop_conn_free() 180 list_remove_node(&lc->loop_node); in rdsv3_loop_conn_free() [all …]
|
/titanic_41/usr/src/lib/libast/common/comp/ |
H A D | setlocale.c | 94 Lc_t* lc; in native_locale() local 105 if (!(lc = lcmake(locale))) in native_locale() 107 lang = lc->language->index; in native_locale() 109 for (ap = lc->attributes; ap; ap = ap->next) in native_locale() 114 for (i = 0; i < elementsof(lc->territory->languages); i++) in native_locale() 115 if (lc->territory->languages[i] == lc->language) in native_locale() 117 ctry = lc->territory->indices[i]; in native_locale() 134 if (lc->charset->ms) in native_locale() 135 sfsprintf(buf, siz, "%s_%s.%s", lbuf, cbuf, lc->charset->ms); in native_locale() 795 Lc_t* lc; in default_setlocale() local [all …]
|
/titanic_41/usr/src/lib/libgen/common/ |
H A D | gmatch.c | 77 wchar_t lc = 0; in gmatch() local 88 if (c == '-' && lc && *p != ']') { in gmatch() 95 valid_range(lc, c)) { in gmatch() 96 if (scc < lc || scc > c) in gmatch() 103 valid_range(lc, c)) in gmatch() 104 if (lc <= scc && in gmatch() 112 lc = c; in gmatch() 114 if (scc != lc) in gmatch() 121 if (scc == lc) in gmatch()
|
H A D | reg_compile.c | 156 wchar_t lc, cl; in _compile() local 238 lc = 0; in _compile() 262 if (c == '-' && lc != 0) { in _compile() 274 while (lc < c) { in _compile() 275 PLACE(lc); in _compile() 276 lc++; in _compile() 279 if (valid_range(lc, c) && lc < c) in _compile() 283 lc = 0; in _compile() 285 lc = c; in _compile() 290 lc = c; in _compile() [all …]
|
/titanic_41/usr/src/tools/protocmp/ |
H A D | proto_list.c | 40 error(const char *msg, int lc) in error() argument 42 (void) fprintf(stderr, "warning: line %d - %s\n", lc, msg); in error() 76 check_line(char *v[], int lc) in check_line() argument 79 error("bad name", lc); in check_line() 82 error("bad source/symbolic line", lc); in check_line() 85 error("bad permissions", lc); in check_line() 88 error("bad owner", lc); in check_line() 91 error("bad group", lc); in check_line() 94 error("bad i-node", lc); in check_line() 97 error("bad link-count", lc); in check_line() [all …]
|
/titanic_41/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()
|
/titanic_41/usr/src/cmd/locale/ |
H A D | locale.c | 326 #define lc(member, locale, type) \ macro 332 {"decimal_point", lc(decimal_point, LC_NUMERIC, TYPE_STR) }, 333 {"thousands_sep", lc(thousands_sep, LC_NUMERIC, TYPE_STR) }, 334 {"grouping", lc(grouping, LC_NUMERIC, TYPE_GROUP)}, 335 {"int_curr_symbol", lc(int_curr_symbol, LC_MONETARY, TYPE_STR)}, 336 {"currency_symbol", lc(currency_symbol, LC_MONETARY, TYPE_STR)}, 337 {"mon_decimal_point", lc(mon_decimal_point, LC_MONETARY, TYPE_STR)}, 338 {"mon_thousands_sep", lc(mon_thousands_sep, LC_MONETARY, TYPE_STR)}, 339 {"mon_grouping", lc(mon_grouping, LC_MONETARY, TYPE_GROUP)}, 340 {"positive_sign", lc(positive_sign, LC_MONETARY, TYPE_STR)}, [all …]
|
/titanic_41/usr/src/uts/common/io/chxge/com/ |
H A D | ch_subr.c | 164 struct link_config *lc = &adapter->port[port_id].link_config; in link_changed() local 168 lc->speed = speed < 0 ? SPEED_INVALID : speed; in link_changed() 169 lc->duplex = duplex < 0 ? DUPLEX_INVALID : duplex; in link_changed() 170 if (!(lc->requested_fc & PAUSE_AUTONEG)) in link_changed() 171 fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); in link_changed() 173 if (link_ok && speed >= 0 && lc->autoneg == AUTONEG_ENABLE) { in link_changed() 178 lc->fc = (unsigned char)fc; in link_changed() 822 t1_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc) in t1_link_start() argument 824 unsigned int fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); in t1_link_start() 826 if (lc->supported & SUPPORTED_Autoneg) { in t1_link_start() [all …]
|
/titanic_41/usr/src/cmd/sgs/lex/common/ |
H A D | sub3.c | 131 lchar lc = linearize(c); in remch() local 154 (void) lsearch(&lc, yycgidtbl, in remch() 204 lchar lc; in yycgid() local 213 lc = linearize(c); in yycgid() 216 if (yycgidtbl[YYNCGIDTBL - 1] < lc) in yycgid() 221 if (lc == yycgidtbl[i]) in yycgid() 223 else if (yycgidtbl[i] < lc) { in yycgid() 224 if (lc < yycgidtbl[i+1]) { in yycgid()
|
/titanic_41/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()
|
/titanic_41/usr/src/cmd/fgrep/ |
H A D | fgrep.c | 64 #define GETONE(lc, p) \ argument 65 cw = ISASCII(lc = (unsigned char)*p++) ? 1 : \ 66 (ISSET2(lc) ? WIDTH2 : \ 67 (ISSET3(lc) ? WIDTH3 : WIDTH1)); \ 71 lc = (lc << 7) | ((*p++) & 0177); \ 101 lc = (lc << 7) | ((*p++) & 0177) 307 wchar_t lc; in execute() local 370 GETONE(lc, p); in execute() 372 if (same(c->inp, lc)) { in execute() 383 if (same(c->inp, lc)) { in execute() [all …]
|
/titanic_41/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()
|
/titanic_41/usr/src/uts/common/io/ |
H A D | log.c | 237 log_ctl_t *lc = (log_ctl_t *)mp->b_rptr; in log_wput() local 244 if ((lc->pri & LOG_FACMASK) == LOG_KERN) in log_wput() 245 lc->pri |= LOG_USER; in log_wput() 246 mp2 = log_makemsg(LOG_MID, LOG_CONSMIN, lc->level, in log_wput() 247 lc->flags, lc->pri, mp->b_cont->b_rptr, in log_wput() 282 log_ctl_t *lc = (log_ctl_t *)mp->b_rptr; in log_rsrv() local 283 if ((lc->flags & SL_CONSOLE) && in log_rsrv() 284 (lc->pri & LOG_FACMASK) == LOG_KERN) in log_rsrv()
|