| /onnv-gate/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 …]
|
| /onnv-gate/usr/src/lib/libldap4/common/ |
| H A D | request.c | 63 static void use_connection( LDAP *ld, LDAPConn *lc ); 169 *parentreq, LDAPServer *srvlist, LDAPConn *lc, int bind ) in send_server_request() argument 186 if ( lc == NULL ) { in send_server_request() 202 lc = ld->ld_defconn; in send_server_request() 204 if (( lc = find_connection( ld, srvlist, 1 )) == in send_server_request() 206 lc = new_connection( ld, &srvlist, 0, 1, bind ); in send_server_request() 212 if ( lc == NULL || lc->lconn_status != LDAP_CONNST_CONNECTED ) { in send_server_request() 226 use_connection( ld, lc ); in send_server_request() 230 free_connection( ld, lc, 0, 0 ); in send_server_request() 241 lr->lr_conn = lc; in send_server_request() [all …]
|
| /onnv-gate/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 …]
|
| /onnv-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 | 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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/usr/src/uts/common/os/ |
| H A D | logsubr.c | 323 log_ctl_t *lc = (log_ctl_t *)mp->b_rptr; in log_conswitch() local 324 lc->flags |= SL_LOGONLY; in log_conswitch() 331 if (lc->ttime == 0) { in log_conswitch() 354 hlc->ttime = lc->ttime - (lc->ltime - hlc->ltime) / hz; in log_conswitch() 437 log_error(log_t *lp, log_ctl_t *lc) in log_error() argument 439 if ((lc->pri & LOG_FACMASK) == LOG_KERN) in log_error() 440 lc->pri = LOG_KERN | LOG_ERR; in log_error() 445 log_trace(log_t *lp, log_ctl_t *lc) in log_trace() argument 457 if (tid->ti_level < lc->level && tid->ti_level >= 0) in log_trace() 459 if (tid->ti_mid != lc->mid && tid->ti_mid >= 0) in log_trace() [all …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/usr/src/cmd/perl/5.8.4/distrib/t/op/ |
| H A D | lc.t | 24 is(lc($a) , "hello\.\* world", 'lc'); 36 is(lc($b) , "hello\.\* world", 'lc'); 54 is(lc($a) , "\x{101}\x{101}aa", 'lc'); 66 is(lc($b) , "\x{101}\x{101}aa", 'lc'); 123 is(lc("\x{1C4}") , "\x{1C6}", "U+01C4 lc is U+01C6"); 124 is(lc("\x{1C5}") , "\x{1C6}", "U+01C5 lc is U+01C6, too"); 136 ($c = $b) =~ s/(\w+)/lc($1)/ge;
|
| /onnv-gate/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 …]
|
| /onnv-gate/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()
|
| /onnv-gate/usr/src/cmd/perl/5.8.4/distrib/ext/Encode/ |
| H A D | Encode.pm | 85 my $lc = lc($name); 86 define_alias($lc => $obj) unless $lc eq $name; 100 my $lc = lc $name; 101 exists $Encoding{$lc} and return $Encoding{$lc}; 105 $lc ne $name and $oc = $class->find_alias($lc); 110 if (my $mod = $ExtModule{$name} || $ExtModule{$lc}){
|
| /onnv-gate/usr/src/cmd/fgrep/ |
| H A D | fgrep.c | 62 #define GETONE(lc, p) \ argument 63 cw = ISASCII(lc = (unsigned char)*p++) ? 1 : \ 64 (ISSET2(lc) ? WIDTH2 : \ 65 (ISSET3(lc) ? WIDTH3 : WIDTH1)); \ 69 lc = (lc << 7) | ((*p++) & 0177); \ 99 lc = (lc << 7) | ((*p++) & 0177) 298 wchar_t lc; in execute() local 361 GETONE(lc, p); in execute() 363 if (same(c->inp, lc)) { in execute() 374 if (same(c->inp, lc)) { in execute() [all …]
|
| /onnv-gate/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()
|
| /onnv-gate/usr/src/lib/libkmf/plugins/kmf_openssl/ |
| H A D | Makefile.com | 40 OPENSSLLIBS= $(BERLIB) -lcrypto -lcryptoutil -lc 41 OPENSSLLIBS64= $(BERLIB64) -lcrypto -lcryptoutil -lc 43 LINTSSLLIBS = $(BERLIB) -lcrypto -lcryptoutil -lc 44 LINTSSLLIBS64 = $(BERLIB64) -lcrypto -lcryptoutil -lc
|