Searched refs:cm (Results 1 - 25 of 56) sorted by relevance

123

/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dstricmp.c57 char *cm = charmap; local
59 while (cm[*s1] == cm[*s2++])
62 return(cm[*s1] - cm[*--s2]);
68 char *cm = charmap; local
70 while (--n >= 0 && cm[*s1] == cm[*s2++])
73 return(n < 0 ? 0 : cm[*s1] - cm[*
[all...]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dascii_strcasecmp.c49 const unsigned char *cm = (const unsigned char *)strcase_charmap; local
53 while (cm[*us1] == cm[*us2++])
56 return (cm[*us1] - cm[*(us2 - 1)]);
H A Dascii_strncasecmp.c49 const unsigned char *cm = (const unsigned char *)strcase_charmap; local
53 while (n != 0 && cm[*us1] == cm[*us2++]) {
58 return (n == 0 ? 0 : cm[*us1] - cm[*(us2 - 1)]);
/illumos-gate/usr/src/lib/libresolv2/common/bsd/
H A Dstrcasecmp.c95 const u_char *cm = charmap, local
99 while (cm[*us1] == cm[*us2++])
102 return (cm[*us1] - cm[*--us2]);
108 const u_char *cm = charmap, local
113 if (cm[*us1] != cm[*us2++])
114 return (cm[*us1] - cm[*
[all...]
/illumos-gate/usr/src/cmd/tr/
H A Dcmap.c48 struct cmap *cm; local
50 cm = malloc(sizeof (*cm));
51 if (cm == NULL)
53 cm->cm_root = NULL;
54 cm->cm_def = CM_DEF_SELF;
55 cm->cm_havecache = false;
56 cm->cm_min = cm->cm_max = 0;
57 return (cm);
65 cmap_add(struct cmap *cm, wint_t from, wint_t to) argument
118 cmap_lookup_hard(struct cmap *cm, wint_t ch) argument
134 cmap_cache(struct cmap *cm) argument
151 cmap_default(struct cmap *cm, wint_t def) argument
[all...]
H A Dtr.c58 cmap_lookup(struct cmap *cm, wint_t from) argument
61 if (from < CM_CACHE_SIZE && cm->cm_havecache)
62 return (cm->cm_cache[from]);
63 return (cmap_lookup_hard(cm, from));
67 cmap_max(struct cmap *cm) argument
69 return (cm->cm_max);
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dstrcasecmp.c47 const int *cm; local
59 cm = lct->lc_trans_lower;
63 while (cm[*us1] == cm[*us2++])
66 return (cm[*us1] - cm[*(us2 - 1)]);
H A Dstrcasestr.c49 const int *cm = loc->ctype->lc_trans_lower; local
58 c = cm[*us2];
60 if (c == cm[*us1++]) {
62 while (cm[c = *++us2] == cm[*us1++] && c != '\0')
68 c = cm[*us2];
H A Dstrncasecmp.c47 const int *cm; local
59 cm = lct->lc_trans_lower;
63 while (n != 0 && cm[*us1] == cm[*us2++]) {
68 return (n == 0 ? 0 : cm[*us1] - cm[*(us2 - 1)]);
/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_connmgmt.c58 static int close_conn_mt_when_nouser(ns_conn_mt_t *cm);
62 static void close_conn_mt_by_procchg(ns_conn_mt_t *cm, int rc, char *errmsg);
94 #define NS_CONN_UNLOCK_AND_FREE(free, cm, cmg) \
96 (void) mutex_unlock(&(cm)->lock); \
98 cmg = free_conn_mt((cm), 1); \
887 ns_conn_mt_t *cm; local
890 cm = (ns_conn_mt_t *)calloc(1, sizeof (*cm));
891 if (cm == NULL) {
908 (void) mutex_init(&cm
927 free_conn_mt(ns_conn_mt_t *cm, int unlock_cmg) argument
947 add_cu2cm(ns_conn_user_t *cu, ns_conn_mt_t *cm) argument
962 add_cm2cmg(ns_conn_mt_t *cm, ns_conn_mgmt_t *cmg) argument
987 del_cu4cm(ns_conn_user_t *cu, ns_conn_mt_t *cm) argument
1032 del_cm4cmg(ns_conn_mt_t *cm, ns_conn_mgmt_t *cmg) argument
1080 is_server_cred_matched(const char *server, const ns_cred_t *cred, ns_conn_mt_t *cm) argument
1106 wait_for_conn_mt(ns_conn_user_t *cu, ns_conn_mt_t *cm) argument
1150 check_and_close_conn(ns_conn_mgmt_t *cmg, ns_conn_mt_t **cm, ns_conn_user_t *cu) argument
1274 ns_conn_mt_t *cm = *cmt; local
1537 ns_conn_mt_t *cm = cu->conn_mt; local
1585 ns_conn_mt_t *cm; local
1634 err2cm(ns_conn_mt_t *cm, int rc, ns_ldap_error_t **errorp) argument
1650 err_from_cm(ns_conn_user_t *cu, ns_conn_mt_t *cm) argument
1694 ns_conn_mt_t *cm; local
1781 close_conn_mt(ns_conn_mt_t *cm, int rc, ns_ldap_error_t **errorp, ns_conn_user_t *cu) argument
1855 ns_conn_mt_t *cm; local
1898 close_conn_mt_by_procchg(ns_conn_mt_t *cm, int rc, char *errmsg) argument
1938 close_conn_mt_when_nouser(ns_conn_mt_t *cm) argument
1996 ns_conn_mt_t *cm; local
2189 ns_conn_mt_t *cm; local
[all...]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dstrcasecmp.c96 register const unsigned char *cm = charmap;
102 if (cm[*us1] != cm[*us2++])
103 return (cm[*us1] - cm[*--us2]);
95 register const unsigned char *cm = charmap; local
/illumos-gate/usr/src/uts/common/crypto/core/
H A Dkcf_crypto.c49 crypto_get_provider_mechanisms(crypto_minor_t *cm, crypto_provider_id_t id, argument
52 if (id >= cm->cm_provider_count)
55 return (crypto_build_permitted_mech_names(cm->cm_provider_array[id],
/illumos-gate/usr/src/test/util-tests/tests/iconv/
H A Diconv_test.sh98 mkmap_one > one.cm
99 mkmap_two > two.cm
100 test_conv ./one.cm ./two.cm '\0200\0201\0202\c' ' \0200 \0201 \0202\c'
101 rm one.cm two.cm
/illumos-gate/usr/src/cmd/localedef/
H A DMakefile48 UTF-8.cm UTF-8.ct \
49 8859-1.cm 8859-2.cm 8859-3.cm 8859-4.cm \
50 8859-5.cm 8859-5.cm 8859-6.cm 8859-7.cm \
51 8859-8.cm 885
[all...]
/illumos-gate/usr/src/cmd/iconv/
H A Dcharmap.c234 charmap_t *cm; local
237 cm = avl_first(&cmap_mbs);
238 while (cm != NULL) {
239 (void) printf("name=\"%s\"\n", cm->cm_name);
242 for (i = 0; i < cm->cm_frmbs_len; i++)
243 (void) printf("\\x%02x", cm->cm_frmbs[i] & 0xFF);
247 for (i = 0; i < cm->cm_tombs_len; i++)
248 (void) printf("\\x%02x", cm->cm_tombs[i] & 0xFF);
251 cm = AVL_NEXT(&cmap_mbs, cm);
462 charmap_t *cm = NULL; local
484 charmap_t *cm; local
507 charmap_t *cm; local
[all...]
/illumos-gate/usr/src/lib/libpkg/common/
H A Disdir.c52 #define ISCOMPCPIO ((unsigned char) cm.c_mag[0] == m_h[0] && \
53 (unsigned char) cm.c_mag[1] == m_h[1] && \
54 (MASK_CK((unsigned char) cm.c_mag[2], BLOCK_MASK) || \
55 MASK_CK((unsigned char) cm.c_mag[2], BIT_MASK)))
57 #define ISCPIO (cm.b_mag != CMN_BIN && \
58 (strcmp(cm.c_mag, CMS_ASC) == 0) && \
59 (strcmp(cm.c_mag, CMS_CHR) == 0) && \
60 (strcmp(cm.c_mag, CMS_CRC) == 0))
171 } cm; local
193 if (read(fd, cm
[all...]
/illumos-gate/usr/src/cmd/troff/troff.d/
H A Dtroff.sh44 -c*) cm=`echo $i|sed -e s/c/m/`
45 newargs="$newargs $cm"
/illumos-gate/usr/src/uts/common/os/
H A Dconsole.c256 console_putmsg(console_msg_t *cm) argument
264 vn_rdwr(UIO_WRITE, console_vnode, cm->cm_text, strlen(cm->cm_text),
270 prom_printf("%s", cm->cm_text);
276 kmem_free(cm, cm->cm_size);
282 console_msg_t *cm; local
287 (cm = kmem_alloc(sizeof (*cm) + len, KM_NOSLEEP)) != NULL) {
288 cm
[all...]
/illumos-gate/usr/src/uts/common/crypto/io/
H A Dcrypto.c438 crypto_minor_t *cm = NULL; local
513 cm = kmem_zalloc(sizeof (crypto_minor_t), KM_SLEEP);
514 mutex_init(&cm->cm_lock, NULL, MUTEX_DRIVER, NULL);
515 cv_init(&cm->cm_cv, NULL, CV_DRIVER, NULL);
518 cm->cm_refcnt = 1;
519 crypto_minors[mn - 1] = cm;
532 crypto_minor_t *cm = NULL; local
548 cm = crypto_minors[mn - 1];
549 if (cm == NULL) {
568 mutex_enter(&cm
620 crypto_minor_t *cm; local
637 crypto_release_minor(crypto_minor_t *cm) argument
847 crypto_minor_t *cm; local
1172 crypto_get_provider_list(crypto_minor_t *cm, uint_t *count, crypto_provider_entry_t **array, boolean_t return_slot_list) argument
1231 crypto_minor_t *cm; local
1413 crypto_minor_t *cm; local
1517 crypto_minor_t *cm; local
1616 crypto_minor_t *cm; local
1698 crypto_get_provider_session(crypto_minor_t *cm, crypto_provider_id_t provider_index, crypto_provider_session_t **output_ps) argument
1797 crypto_release_provider_session(crypto_minor_t *cm, crypto_provider_session_t *provider_session) argument
1835 grow_session_table(crypto_minor_t *cm) argument
1893 crypto_minor_t *cm; local
1991 crypto_minor_t *cm; local
2443 get_session_ptr(crypto_session_id_t i, crypto_minor_t *cm, crypto_session_data_t **session_ptr, int *out_error, int *out_rv) argument
2611 crypto_minor_t *cm; local
2747 crypto_minor_t *cm; local
2906 crypto_minor_t *cm; local
3063 crypto_minor_t *cm; local
3192 crypto_minor_t *cm; local
3270 crypto_minor_t *cm; local
3356 crypto_minor_t *cm; local
3434 crypto_minor_t *cm; local
3572 get_pin_and_session_ptr(char *in_pin, char **out_pin, size_t pin_len, crypto_minor_t *cm, crypto_session_id_t sid, crypto_session_data_t **sp, int *rv, int *error) argument
3605 crypto_minor_t *cm; local
3693 crypto_minor_t *cm; local
3767 crypto_minor_t *cm; local
3860 crypto_minor_t *cm; local
3997 crypto_minor_t *cm; local
4114 crypto_minor_t *cm; local
4209 crypto_minor_t *cm; local
4291 crypto_minor_t *cm; local
4382 crypto_minor_t *cm; local
4529 crypto_minor_t *cm; local
4623 crypto_minor_t *cm; local
4718 crypto_minor_t *cm; local
4791 crypto_minor_t *cm; local
4886 crypto_minor_t *cm; local
4955 crypto_minor_t *cm; local
5037 crypto_minor_t *cm; local
5132 crypto_minor_t *cm; local
5257 crypto_minor_t *cm; local
5312 crypto_minor_t *cm; local
5439 crypto_minor_t *cm; local
5575 crypto_minor_t *cm; local
5735 crypto_minor_t *cm; local
5922 crypto_minor_t *cm; local
6081 crypto_minor_t *cm; local
6249 crypto_minor_t *cm; local
6407 crypto_minor_t *cm; local
[all...]
/illumos-gate/usr/src/lib/cfgadm_plugins/sbd/common/
H A Dap_rcm.c155 int cm; local
184 for (cp = cinfo, cm = firstcm; cm <= lastcm; cm++, cp++) {
188 switch (ap_cm_type(a, cm)) {
203 if (ap_cm_capacity(a, cm, cap, ncap, os)) {
423 int cm; local
432 for (ncpu = 0, cm = rcm->firstcm; cm <= rcm->lastcm; cm
501 int cm; local
884 int cm; local
941 int cm; local
1043 int cm; local
1156 int cm; local
[all...]
/illumos-gate/usr/src/lib/libtecla/common/
H A Dpcache.c114 static CacheMem *del_CacheMem(CacheMem *cm);
115 static void rst_CacheMem(CacheMem *cm);
716 CacheMem *cm; /* The object to be returned */ local
720 cm = (CacheMem *)malloc(sizeof(CacheMem));
721 if(!cm) {
730 cm->sg = NULL;
731 cm->files_dim = 0;
732 cm->files = NULL;
733 cm->nfiles = 0;
737 cm
761 del_CacheMem(CacheMem *cm) argument
790 rst_CacheMem(CacheMem *cm) argument
[all...]
/illumos-gate/usr/src/uts/common/io/arn/
H A Darn_regd.c439 const struct cmode *cm,
489 if (IS_HT40_MODE(cm->mode) &&
498 if (IS_HT40_MODE(cm->mode) &&
507 if (IS_HT40_MODE(cm->mode) &&
518 channelFlags = cm->flags;
564 if ((cm->mode == ATH9K_MODE_11A) ||
565 (cm->mode == ATH9K_MODE_11NA_HT20) ||
566 (cm->mode == ATH9K_MODE_11NA_HT40PLUS) ||
567 (cm->mode == ATH9K_MODE_11NA_HT40MINUS)) {
593 if ((cm
428 ath9k_regd_add_channel( struct ath_hal *ah, uint16_t c, uint16_t c_lo, uint16_t c_hi, uint16_t maxChan, uint8_t ctl, int pos, struct regDomain rd5GHz, struct RegDmnFreqBand *fband, struct regDomain *rd, const struct cmode *cm, struct ath9k_channel *ichans, boolean_t enableExtendedChannels) argument
646 const struct cmode *cm; local
[all...]
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dmvcur.c94 cm; /* cost direct cursor motion */ local
112 /* cost of using cm */
113 cm = _COST(Cursor_address);
118 if (cm < LARGECOST && SP->baud >= 2400 &&
135 if (rl < cm) {
159 if (cm >= LARGECOST && rl >= LARGECOST && hu >= LARGECOST &&
164 if (cm <= rl && cm <= hu && cm <= hd)
/illumos-gate/usr/src/common/util/
H A Dstring.c443 const unsigned char *cm = (const unsigned char *)charmap; local
447 while (cm[*us1] == cm[*us2++])
450 return (cm[*us1] - cm[*(us2 - 1)]);
456 const unsigned char *cm = (const unsigned char *)charmap; local
460 while (n != 0 && cm[*us1] == cm[*us2++]) {
465 return (n == 0 ? 0 : cm[*us1] - cm[*(us
[all...]
/illumos-gate/usr/src/uts/sun4u/starfire/io/
H A Ddrmach.c130 drmach_common_t cm; member in struct:__anon10047
141 drmach_common_t cm; member in struct:__anon10048
766 dp->bp->cm.name, dp->cm.name, name);
782 dp->bp->cm.name, dp->cm.name, name);
795 bp->cm.isa = (void *)drmach_board_new;
796 bp->cm.release = drmach_board_release;
797 bp->cm.status = drmach_board_status;
799 (void) drmach_board_name(bnum, bp->cm
[all...]

Completed in 109 milliseconds

123