Home
last modified time | relevance | path

Searched refs:nstr (Results 1 – 20 of 20) sorted by relevance

/illumos-gate/usr/src/lib/pam_modules/authtok_check/
H A Dpacklib.c214 register char *nstr; in PutPW() local
216 nstr = pwp->data[i]; in PutPW()
218 if (nstr[0]) { in PutPW()
219 for (j = 0; ostr[j] && nstr[j] && in PutPW()
220 (ostr[j] == nstr[j]); j++) in PutPW()
227 ostr = nstr; in PutPW()
242 register char *nstr; in GetPW() local
282 nstr = data[i]; in GetPW()
283 (void) strcpy(nstr, ostr); in GetPW()
284 ostr = nstr + *(bptr++); in GetPW()
[all …]
/illumos-gate/usr/src/cmd/bhyve/
H A Dnet_utils.c107 char nstr[80]; in net_genmac() local
109 snprintf(nstr, sizeof(nstr), "%d-%d-%s", pi->pi_slot, in net_genmac()
113 MD5Update(&mdctx, nstr, (unsigned int)strlen(nstr)); in net_genmac()
H A Dpci_e82545.c2293 char nstr[80]; in e82545_init() local
2312 snprintf(nstr, sizeof(nstr), "e82545-%d:%d tx", pi->pi_slot, in e82545_init()
2314 pthread_set_name_np(sc->esc_tx_tid, nstr); in e82545_init()
/illumos-gate/usr/src/common/elfcap/
H A Delfcap.c434 token(char **ostr, size_t *olen, const elfcap_str_t *nstr) in token() argument
436 if (*olen < nstr->s_len) in token()
439 (void) strcat(*ostr, nstr->s_str); in token()
440 *ostr += nstr->s_len; in token()
441 *olen -= nstr->s_len; in token()
478 const elfcap_str_t *nstr; in expand() local
491 err = get_str_desc(style, &cdp[cnt - 1], &nstr); in expand()
611 const elfcap_str_t *nstr; in value() local
623 if ((err = get_str_desc(style, &cdp[num], &nstr)) != 0) in value()
626 if (strcasecmp(str, nstr->s_str) == 0) in value()
[all …]
/illumos-gate/usr/src/lib/libpkg/common/
H A Dlogerr.c46 char *nstr = pkg_gt("NOTE:"); in logerr() local
53 strncmp(fmt, nstr, strlen(nstr))) { in logerr()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/pppoe/
H A Dlogging.c111 char *nstr; in vlogat() local
166 for (; *ostr != '\0'; ostr = nstr + 1) { in vlogat()
167 nstr = strchr(ostr, '\n'); in vlogat()
170 if (nstr == ostr) in vlogat()
173 slen = nstr - ostr + 1; in vlogat()
/illumos-gate/usr/src/cmd/devctl/
H A Ddevctl.c400 int nstr; in add_prop() local
416 nstr = 0; in add_prop()
424 nstr++; in add_prop()
425 strs = (char **)s_realloc(strs, nstr * sizeof (char *)); in add_prop()
426 strs[nstr - 1] = pval; in add_prop()
428 (void) printf("string[%d] = %s\n", nstr - 1, pval); in add_prop()
437 (void) devctl_ddef_string_array(ddef_hdl, pname, nstr, strs); in add_prop()
/illumos-gate/usr/src/lib/libeti/form/common/
H A Dchg_data.c67 extra_padding(char *str, int nstr) /* used for word wrapping */ in extra_padding() argument
69 int c = *(str + nstr - 1); in extra_padding()
72 c = *(str + nstr - 2); in extra_padding()
174 insert_str(FORM *f, int y, int off, int nstr) /* used for word wrapping */ in insert_str() argument
182 int pad = extra_padding(Buf(c) + off, nstr); in insert_str()
183 int siz = nstr + 1 + pad; in insert_str()
188 (void) winsnstr(w, Buf(c) + off, nstr); in insert_str()
189 (void) wmove(w, y, nstr); in insert_str()
210 (void) winsnstr(w, Buf(c) + off, nstr); in insert_str()
211 (void) wmove(w, y, nstr); in insert_str()
/illumos-gate/usr/src/cmd/allocate/
H A Dadd_allocatable.c392 char *kval, *nopts, *ntok, *nstr, in check_args() local
455 nstr = defmin; in check_args()
459 strlen(nstr) + 1; in check_args()
464 ntok, KV_ASSIGN, nstr); in check_args()
471 nstr = defmax; in check_args()
475 strlen(nstr) + 1; in check_args()
480 ntok, KV_ASSIGN, nstr); in check_args()
/illumos-gate/usr/src/test/libc-tests/tests/regex/
H A Dtestregex.c1226 int nstr; in main() local
1821 nstr = -1; in main()
1827 nstr = escape(s); in main()
1829 if (nstr != strlen(s)) in main()
1830 nexec = nstr; in main()
1921 quote(s, nstr, test|TEST_DELIMIT); in main()
1928 if (nstr >= 0 && nstr != strlen(s)) in main()
1929 nexec = nstr; in main()
2002 report("failed", fun, re, s, nstr, msg, flags, test); in main()
2220 report("failed", fun, re, s, nstr, msg, flags, test); in main()
[all …]
/illumos-gate/usr/src/cmd/ctstat/
H A Dctstat.c525 char hstr[100], qstr[20], nstr[20]; in print_contract() local
579 qstr[0] = nstr[0] = '-'; in print_contract()
580 qstr[1] = nstr[1] = '\0'; in print_contract()
583 (void) snprintf(nstr, sizeof (nstr), "%d", in print_contract()
597 ct_status_get_nevents(status), qstr, nstr); in print_contract()
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dplace.c367 #define NSTR_CH1(ch) (*(nstr + 1) == (ch))
368 #define NSTR_CH2(ch) (*(nstr + 2) == (ch))
369 #define NSTR_CH3(ch) (*(nstr + 3) == (ch))
374 const char *nstr = &ostr[MSG_SCN_GNU_LINKONCE_SIZE]; in gnu_linkonce_sec() local
376 switch (*nstr) { in gnu_linkonce_sec()
/illumos-gate/usr/src/contrib/ast/src/cmd/msgcc/
H A Dmsgcc.tst17 OUTPUT t.mso $'str "foo bar"\nstr "%s: bar foo"'
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_typedef.c131 typedef_join_strings(int nstr, const mdb_arg_t *args, int flags) in typedef_join_strings() argument
136 for (i = 0; i <= nstr; i++) { in typedef_join_strings()
144 for (i = 0; i <= nstr; i++) { in typedef_join_strings()
/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A Dutil.c2125 char *nstr, *sstr, *estr = NULL; in ld_flags_env() local
2136 if ((nstr = malloc(len + 1)) == NULL) in ld_flags_env()
2138 (void) strcpy(nstr, str); in ld_flags_env()
2140 for (sstr = nstr; sstr; sstr++, len--) { in ld_flags_env()
2166 nlen = estr - nstr; in ld_flags_env()
2175 nlen = sstr - nstr; in ld_flags_env()
2196 if ((flags |= ld_arch_env(nstr, &nlen)) != ENV_TYP_IGNORE) { in ld_flags_env()
2197 ld_generic_env(nstr, nlen, estr, lmflags, in ld_flags_env()
2203 nstr = sstr + 1; in ld_flags_env()
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Ddigest_md5.c457 static const char nstr[] = "nonce"; in digest_parse() local
545 if (lstreqcase(nstr, attr, alen)) { in digest_parse()
/illumos-gate/usr/src/uts/common/io/cardbus/
H A Dcardbus.c1544 char *nstr = kmem_zalloc(len + 1, KM_SLEEP); in cardbus_add_stringprop() local
1546 bcopy(vp, nstr, len); in cardbus_add_stringprop()
1547 cardbus_add_prop(cdsp, DDI_PROP_TYPE_STRING, name, (caddr_t)nstr, in cardbus_add_stringprop()
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dspd.c4565 char *nstr; in ipsid_lookup() local
4592 nstr = kmem_alloc(idlen, KM_NOSLEEP); in ipsid_lookup()
4593 if (!nstr) { in ipsid_lookup()
4605 retval->ipsid_cid = nstr; in ipsid_lookup()
4607 bcopy(idstring, nstr, idlen); in ipsid_lookup()
/illumos-gate/usr/src/uts/common/io/
H A Dgld.c5911 int nstr = 0; in gld_check_assertions() local
5928 nstr++; in gld_check_assertions()
5930 ASSERT(vlan->gldv_nstreams == nstr); in gld_check_assertions()
/illumos-gate/usr/src/cmd/svc/svccfg/
H A Dsvccfg_libscf.c1054 char *dup, *nstr; in string_to_value() local
1070 nstr = dup = safe_strdup(str); in string_to_value()
1076 nstr = dup + 1; in string_to_value()
1079 if (scf_value_set_from_string(v, ty, (const char *)nstr) != 0) { in string_to_value()
1082 scf_type_to_string(ty), nstr); in string_to_value()