/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | bcmp.c | 30 bcmp(char *s1, char *s2, int len) argument 33 while (len--)
|
H A D | mlock.c | 39 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 D | bcopy.c | 53 bcopy(char *s1, char *s2, int len) argument 55 if (len > 0) 56 (void) _memmove(s2, s1, (size_t)len);
|
H A D | bzero.c | 53 bzero(char *sp, int len) argument 55 if (len > 0) 56 (void) _memset(sp, 0, (size_t)len);
|
H A D | bcmp.c | 50 bcmp(char *s1, char *s2, int len) argument 52 if (_memcmp(s1, s2, (size_t)len) == 0)
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | explicit_bzero.c | 12 __explicit_bzero_hook(void *buf, size_t len) argument 17 explicit_bzero(void *buf, size_t len) argument 19 (void) memset(buf, 0, len); 20 __explicit_bzero_hook(buf, len);
|
H A D | strlcpy.c | 40 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/lib/libfakekernel/common/ |
H A D | random.c | 19 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/cmd/ipf/lib/common/ |
H A D | getline.c | 25 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/acct/lib/ |
H A D | substr.c | 28 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/boot/sys/boot/arm/at91/boot0iic/ |
H A D | main.c | 37 int len, sec; local 40 while ((len = xmodem_rx(addr)) == -1) 46 len); 49 WriteEEPROM(0, addr, len); 50 printf("\nWrote %d bytes. Press reset\n", len);
|
/illumos-gate/usr/src/lib/libmp/common/ |
H A D | msqrt.c | 32 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 D | prom_devtype.c | 35 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 D | i386_copy.c | 41 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/boot/sys/boot/i386/libi386/ |
H A D | i386_copy.c | 40 i386_copyin(const void *src, vm_offset_t dest, const size_t len) argument 42 if (dest + len >= memtop) { 47 bcopy(src, PTOV(dest), len); 48 return(len); 52 i386_copyout(const vm_offset_t src, void *dest, const size_t len) argument 54 if (src + len >= memtop) { 59 bcopy(PTOV(src), dest, len); local 60 return(len); 65 i386_readin(const int fd, vm_offset_t dest, const size_t len) argument 67 if (dest + len > [all...] |
/illumos-gate/usr/src/test/libc-tests/tests/ |
H A D | wcsncasecmp.c | 48 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 D | gnu_po.y | 81 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 D | gio.c | 96 int len, i; local 107 len = strlen(bufr) + 1; 108 if ((i = len % xpacksize) != 0) { 109 len = len + xpacksize - i; 110 bufr[len - 1] = '\0'; 112 gwrblk(bufr, len); 122 unsigned len; local 127 len = pkread(str, packsize); 128 if (len 145 int len; local 174 int len; local [all...] |
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | net_read.c | 32 * "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/libumem/common/ |
H A D | init_stand.c | 46 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/libc/amd64/gen/ |
H A D | sync_instruction_memory.c | 32 * 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 D | sync_instruction_memory.c | 32 * 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 D | mfgname.c | 47 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 D | getgroups.c | 48 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/sys/boot/userboot/userboot/ |
H A D | copy.c | 35 userboot_copyin(const void *src, vm_offset_t va, size_t len) argument 38 CALLBACK(copyin, src, va, len); 39 return (len); 43 userboot_copyout(vm_offset_t va, void *dst, size_t len) argument 46 CALLBACK(copyout, va, dst, len); 47 return (len); 51 userboot_readin(int fd, vm_offset_t va, size_t len) argument 58 while (len > 0) { 59 sz = len; 68 len [all...] |