Searched refs:len (Results 1 - 25 of 3955) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dbcmp.c30 bcmp(char *s1, char *s2, int len) argument
33 while (len--)
H A Dmlock.c39 mlock(caddr_t addr, u_int len) argument
41 if((int)len <= 0) {
45 return (mctl(addr, len, MC_LOCK, 0));
/illumos-gate/usr/src/ucblib/libucb/port/gen/
H A Dbcopy.c53 bcopy(char *s1, char *s2, int len) argument
55 if (len > 0)
56 (void) _memmove(s2, s1, (size_t)len);
H A Dbzero.c53 bzero(char *sp, int len) argument
55 if (len > 0)
56 (void) _memset(sp, 0, (size_t)len);
H A Dbcmp.c50 bcmp(char *s1, char *s2, int len) argument
52 if (_memcmp(s1, s2, (size_t)len) == 0)
/illumos-gate/usr/src/lib/libfakekernel/common/
H A Drandom.c19 random_get_bytes(uint8_t *ptr, size_t len) argument
21 return (pkcs11_get_random(ptr, len));
25 random_get_pseudo_bytes(uint8_t *ptr, size_t len) argument
27 return (pkcs11_get_urandom(ptr, len));
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dexplicit_bzero.c12 __explicit_bzero_hook(void *buf __unused, size_t len __unused)
17 explicit_bzero(void *buf, size_t len) argument
19 (void) memset(buf, 0, len);
20 __explicit_bzero_hook(buf, len);
H A Dstrlcpy.c40 strlcpy(char *dst, const char *src, size_t len) argument
45 if (len == 0)
48 if (slen >= len)
49 copied = len - 1;
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dgetline.c25 int s, len; local
28 for (p = str, s = size; ; p += (len - 1), s -= (len - 1)) {
35 len = strlen(p);
36 if (p[len - 1] != '\n') {
37 p[len] = '\0';
41 p[len - 1] = '\0';
42 if (len < 2 || p[len - 2] != '\\')
49 p[len
[all...]
/illumos-gate/usr/src/cmd/smbsrv/test-msgbuf/
H A Dtest_conv.c49 int len; local
51 len = smb_wctomb(mbs, U_FW_A);
52 if (len != 3) {
53 printf("Fail: conv_wctomb fwA ret=%d\n", len);
56 mbs[len] = '\0';
59 hexdump((uchar_t *)mbs, len+1);
63 len = smb_wctomb(mbs, U_POOP);
64 if (len != 4) {
65 printf("Fail: conv_wctomb poop ret=%d\n", len);
68 mbs[len]
94 int len; local
139 int len; local
171 int len; local
209 int len; local
241 int len; local
282 int len; local
308 int len; local
[all...]
/illumos-gate/usr/src/cmd/acct/lib/
H A Dsubstr.c28 Place the `len' length substring of `as' starting at `as[origin]'
33 specified number (len) characters have been copied,
35 A negative len generally guarantees that everything gets copied.
38 char *substr(as, aresult, origin, len)
41 register unsigned len;
47 ++len;
48 while (--len && (*result++ = *s++)) ;
49 if (len == 0)
/illumos-gate/usr/src/lib/libmp/common/
H A Dmsqrt.c32 a0.len = junk.len = y.len = 0;
33 if (a->len < 0)
35 if (a->len == 0) {
36 b->len = 0;
37 r->len = 0;
40 if (a->len % 2 == 1)
41 x.len = (1 + a->len) /
[all...]
/illumos-gate/usr/src/psm/promif/ieee1275/common/
H A Dprom_devtype.c35 register int len; local
38 len = prom_getproplen(id, OBP_DEVICETYPE);
39 if (len <= 0 || len >= OBP_MAXDRVNAME)
53 int len; local
56 len = prom_getproplen(id, OBP_NAME);
57 if (len <= 0 || len >= OBP_MAXDRVNAME)
/illumos-gate/usr/src/boot/sys/boot/efi/loader/arch/i386/
H A Di386_copy.c41 i386_copyin(const void *src, vm_offset_t dest, const size_t len) argument
43 bcopy(src, PTOV(dest), len);
44 return(len);
48 i386_copyout(const vm_offset_t src, void *dest, const size_t len) argument
50 bcopy(PTOV(src), dest, len); local
51 return(len);
56 i386_readin(const int fd, vm_offset_t dest, const size_t len) argument
58 return (read(fd, PTOV(dest), len));
/illumos-gate/usr/src/tools/smatch/src/validation/
H A Douter-scope.c2 struct st { int len; }; member in struct:st
9 return s->len;
/illumos-gate/usr/src/test/libc-tests/tests/
H A Dwcsncasecmp.c48 size_t len = strlen(str); local
58 ret = mbstowcs(a, str, len);
59 VERIFY3U(ret, ==, len);
60 ret = mbstowcs(b, str, len);
61 VERIFY3U(ret, ==, len);
63 VERIFY0(wcsncasecmp(a, a, len));
64 VERIFY0(wcsncasecmp(a, b, len));
66 ret = mbstowcs(b, caps, len);
67 VERIFY3U(ret, ==, len);
68 VERIFY0(wcsncasecmp(a, b, len));
[all...]
/illumos-gate/usr/src/cmd/msgfmt/
H A Dgnu_po.y81 och1.len = $2.len;
87 och2.len = $4.len;
96 size_t len;
101 len = $2.len + $4.len;
102 id_str = (char *)Xmalloc(len);
103 (void) memcpy(id_str, $2.str, $2.len);
[all...]
/illumos-gate/usr/src/cmd/bnu/
H A Dgio.c94 int len, i; local
105 len = strlen(bufr) + 1;
106 if ((i = len % xpacksize) != 0) {
107 len = len + xpacksize - i;
108 bufr[len - 1] = '\0';
110 gwrblk(bufr, len);
120 unsigned len; local
125 len = pkread(str, packsize);
126 if (len
143 int len; local
172 int len; local
[all...]
/illumos-gate/usr/src/lib/libumem/common/
H A Dinit_stand.c46 umem_type_init(caddr_t base, size_t len, size_t pgsize) argument
51 (void) vmem_stand_add(base, len);
61 umem_add(caddr_t base, size_t len) argument
63 return (vmem_stand_add(base, len));
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dnet_read.c32 * "buf", until either 1) "len" bytes have been read or 2) cannot
42 krb5_net_read(krb5_context context, int fd, register char *buf, register int len) argument
47 cc = SOCKET_READ((SOCKET)fd, buf, len);
62 len -= cc;
64 } while (len > 0);
/illumos-gate/usr/src/lib/libc/amd64/gen/
H A Dsync_instruction_memory.c32 * void sync_instruction_memory(caddr_t addr, int len)
34 * Make the memory at {addr, addr+len} valid for instruction execution.
40 sync_instruction_memory(caddr_t addr, int len) argument
/illumos-gate/usr/src/lib/libc/i386/gen/
H A Dsync_instruction_memory.c32 * void sync_instruction_memory(caddr_t addr, int len)
34 * Make the memory at {addr, addr+len} valid for instruction execution.
40 sync_instruction_memory(caddr_t addr, int len) argument
/illumos-gate/usr/src/psm/stand/lib/names/sparc/common/
H A Dmfgname.c47 int len; local
52 (len = prom_getproplen(n, OBP_NAME)) > 0 && len < MAXNMLEN) {
54 mfgname[len] = '\0'; /* broken clones don't terminate name */
/illumos-gate/usr/src/lib/libast/common/comp/
H A Dgetgroups.c48 ast_getgroups(int len, gid_t* set)
61 if (!len) return(NGROUPS_MAX);
62 if (len < 0 || !set)
68 len = getgroups(len > NGROUPS_MAX ? NGROUPS_MAX : len, big);
69 for (i = 0; i < len; i++)
71 return(len);
/illumos-gate/usr/src/boot/lib/libstand/
H A Dstrdup.c39 size_t len; local
43 len = strlen(str) + 1;
44 if ((copy = malloc(len)) == NULL)
46 memcpy(copy, str, len);

Completed in 874 milliseconds

1234567891011>>