Home
last modified time | relevance | path

Searched refs:u8s (Results 1 – 6 of 6) sorted by relevance

/titanic_44/usr/src/uts/common/fs/nfs/
H A Dnfs4_idmap.c301 nfs_idmap_str_uid(utf8string *u8s, uid_t *uid, bool_t isserver) in nfs_idmap_str_uid() argument
317 if (!u8s || !u8s->utf8string_val || u8s->utf8string_len == 0 || in nfs_idmap_str_uid()
318 (u8s->utf8string_val[0] == '\0')) { in nfs_idmap_str_uid()
326 if (bcmp(u8s->utf8string_val, "nobody", 6) == 0) { in nfs_idmap_str_uid()
347 (!utf8_strchr(u8s, '@') && !isserver)) { in nfs_idmap_str_uid()
350 error = nfs_idmap_s2i_literal(u8s, uid, isserver); in nfs_idmap_str_uid()
362 if (nfs_idmap_cache_s2i_lkup(&nig->s2u_ci, u8s, &hashno, uid)) { in nfs_idmap_str_uid()
368 mapargp = kmem_alloc(MAPID_ARG_LEN(u8s->utf8string_len), KM_SLEEP); in nfs_idmap_str_uid()
370 mapargp->u_arg.len = u8s->utf8string_len; in nfs_idmap_str_uid()
371 (void) bcopy(u8s->utf8string_val, mapargp->str, mapargp->u_arg.len); in nfs_idmap_str_uid()
[all …]
H A Dnfs4_subr.c545 utf8_to_fn(utf8string *u8s, uint_t *lenp, char *s) in utf8_to_fn() argument
549 if (u8s == NULL || u8s->utf8string_len <= 0 || in utf8_to_fn()
550 u8s->utf8string_val == NULL) in utf8_to_fn()
556 if (utf8_strchr(u8s, '/') != NULL) { in utf8_to_fn()
560 int len = u8s->utf8string_len; in utf8_to_fn()
563 bcopy(u8s->utf8string_val, path, len); in utf8_to_fn()
575 return (utf8_to_str(u8s, lenp, s)); in utf8_to_fn()
/titanic_44/usr/src/common/unicode/
H A Duconv.c426 uchar_t *u8s, size_t *utf8len, int flag) in uconv_u16tou8() argument
439 if (u8s == NULL || utf8len == NULL) in uconv_u16tou8()
485 u8s[u8l++] = (uchar_t)lo; in uconv_u16tou8()
489 u8s[u8l++] = (uchar_t)(0xc0 | ((lo & 0x07c0) >> 6)); in uconv_u16tou8()
490 u8s[u8l++] = (uchar_t)(0x80 | (lo & 0x003f)); in uconv_u16tou8()
494 u8s[u8l++] = (uchar_t)(0xe0 | ((lo & 0x0f000) >> 12)); in uconv_u16tou8()
495 u8s[u8l++] = (uchar_t)(0x80 | ((lo & 0x00fc0) >> 6)); in uconv_u16tou8()
496 u8s[u8l++] = (uchar_t)(0x80 | (lo & 0x0003f)); in uconv_u16tou8()
500 u8s[u8l++] = (uchar_t)(0xf0 | ((lo & 0x01c0000) >> 18)); in uconv_u16tou8()
501 u8s[u8l++] = (uchar_t)(0x80 | ((lo & 0x003f000) >> 12)); in uconv_u16tou8()
[all …]
H A Du8_textprep.c171 u8t[k] = u8s[start[(a)] + k]; \
173 u8s[start[(a)] + k] = u8s[start[(b)] + k]; \
176 u8s[start[(b)] + k] = u8t[k]; \
462 do_case_conv(int uv, uchar_t *u8s, uchar_t *s, int sz, boolean_t is_it_toupper) in do_case_conv() argument
480 b3 = u8s[0] = s[0]; in do_case_conv()
481 b4 = u8s[1] = s[1]; in do_case_conv()
483 b2 = u8s[0] = s[0]; in do_case_conv()
484 b3 = u8s[1] = s[1]; in do_case_conv()
485 b4 = u8s[2] = s[2]; in do_case_conv()
487 b1 = u8s[0] = s[0]; in do_case_conv()
[all …]
/titanic_44/usr/src/cmd/fs.d/nfs/nfsmapid/
H A Dnfsmapid_test.c319 nfs_idmap_str_uid(utf8string *u8s, uid_t *uid) in nfs_idmap_str_uid() argument
330 if (!u8s || !u8s->utf8string_val || !u8s->utf8string_len || in nfs_idmap_str_uid()
331 (u8s->utf8string_val[0] == '\0')) { in nfs_idmap_str_uid()
336 if (bcmp(u8s->utf8string_val, "nobody", 6) == 0) { in nfs_idmap_str_uid()
345 if ((mapargp = malloc(MAPID_ARG_LEN(u8s->utf8string_len))) == NULL) { in nfs_idmap_str_uid()
347 MAPID_ARG_LEN(u8s->utf8string_len)); in nfs_idmap_str_uid()
352 mapargp->u_arg.len = u8s->utf8string_len; in nfs_idmap_str_uid()
353 (void) bcopy(u8s->utf8string_val, mapargp->str, mapargp->u_arg.len); in nfs_idmap_str_uid()
422 utf8string *u8s) /* resulting utf-8 string for uid */ in nfs_idmap_uid_str() argument
434 u8s->utf8string_len = strlen("nobody"); in nfs_idmap_uid_str()
[all …]
/titanic_44/usr/src/uts/common/nfs/
H A Dnfs4.h1315 extern int nfs_idmap_str_uid(utf8string *u8s, uid_t *, bool_t);
1316 extern int nfs_idmap_str_gid(utf8string *u8s, gid_t *, bool_t);
1317 extern int nfs_idmap_uid_str(uid_t, utf8string *u8s, bool_t);
1318 extern int nfs_idmap_gid_str(gid_t gid, utf8string *u8s, bool_t);