/bionic/libc/unistd/ |
gethostname.c | 41 int namelen = strlen(name.nodename); local 43 if ((int)buflen < namelen+1) { 47 memcpy( buff, name.nodename, namelen+1 );
|
/external/ipsec-tools/src/racoon/ |
dnssec.c | 67 int namelen; local 72 namelen = id->l - sizeof(*id_b); 73 name = racoon_malloc(namelen + 1); 79 memcpy(name, id_b + 1, namelen); 80 name[namelen] = '\0';
|
/system/core/libcutils/ |
socket_local_client.c | 49 size_t namelen; local 54 namelen = strlen(name); 57 if ((namelen + 1) > sizeof(p_addr->sun_path)) { 67 memcpy(p_addr->sun_path + 1, name, namelen); 71 namelen = strlen(name) + strlen(FILESYSTEM_SOCKET_PREFIX); 73 if (namelen > sizeof(*p_addr) 84 namelen = strlen(name) + strlen(ANDROID_RESERVED_SOCKET_PREFIX); 86 if (namelen > sizeof(*p_addr) 96 namelen = strlen(name); 98 if (namelen > sizeof(*p_addr) 129 size_t namelen; local [all...] |
/bionic/libc/netbsd/net/ |
getservent.c | 55 int namelen; local 68 namelen = p[0]; 69 total += namelen + 1; 70 q = p + 1 + namelen + 3; /* skip name + port + proto */ 90 p2 += namelen + 1; 94 memcpy( rs->servent.s_name, p+1, namelen ); 95 rs->servent.s_name[namelen] = 0; 96 p += 1 + namelen;
|
/bionic/linker/ |
debugger.c | 53 size_t namelen; local 57 namelen = strlen(name); 60 if ((namelen + 1) > sizeof(addr.sun_path)) { 74 memcpy(addr.sun_path + 1, name, namelen); 76 alen = namelen + offsetof(struct sockaddr_un, sun_path) + 1;
|
/external/chromium/net/base/ |
dns_util.cc | 18 unsigned int namelen = 0; /* <= sizeof name */ local 28 if (namelen + labellen + 1 > sizeof name) 30 name[namelen++] = labellen; 31 memcpy(name + namelen, label, labellen); 32 namelen += labellen; 43 if (namelen + labellen + 1 > sizeof name) 45 name[namelen++] = labellen; 46 memcpy(name + namelen, label, labellen); 47 namelen += labellen; 51 if (namelen + 1 > sizeof name [all...] |
/external/e2fsprogs/lib/ext2fs/ |
unlink.c | 23 int namelen; member in struct:link_struct 46 if ((dirent->name_len & 0xFF) != ls->namelen) 86 ls.namelen = name ? strlen(name) : 0;
|
link.c | 24 int namelen; member in struct:link_struct 44 rec_len = EXT2_DIR_REC_LEN(ls->namelen); 95 dirent->name_len = ls->namelen; 96 strncpy(dirent->name, ls->name, ls->namelen); 125 ls.namelen = name ? strlen(name) : 0;
|
namei.c | 78 const char **name, int *namelen, 108 *namelen = len; 118 int namelen; local 127 link_count, buf, &base_name, &namelen, &dir); 129 if (!namelen) { /* special case: '/usr/' etc */ 133 retval = ext2fs_lookup (fs, dir, base_name, namelen, buf, &inode);
|
/external/openssl/crypto/pkcs12/ |
p12_crt.c | 191 int namelen = -1; local 203 name = (char *)X509_alias_get0(cert, &namelen); 205 if(name && !PKCS12_add_friendlyname(bag, name, namelen))
|
/hardware/libhardware/include/hardware/ |
qemud.h | 67 int namelen = strlen(name); local 86 if (qemud_fd_write(fd, name, namelen) != namelen) {
|
/bionic/libc/kernel/common/linux/ |
efs_dir.h | 20 unsigned char namelen; member in struct:efs_dentry
|
/development/ndk/platforms/android-3/include/linux/ |
efs_dir.h | 20 unsigned char namelen; member in struct:efs_dentry
|
/external/kernel-headers/original/linux/ |
efs_dir.h | 15 unsigned char namelen; member in struct:efs_dentry
|
/prebuilt/ndk/android-ndk-r4/platforms/android-3/arch-arm/usr/include/linux/ |
efs_dir.h | 20 unsigned char namelen; member in struct:efs_dentry
|
/prebuilt/ndk/android-ndk-r4/platforms/android-4/arch-arm/usr/include/linux/ |
efs_dir.h | 20 unsigned char namelen; member in struct:efs_dentry
|
/prebuilt/ndk/android-ndk-r4/platforms/android-5/arch-arm/usr/include/linux/ |
efs_dir.h | 20 unsigned char namelen; member in struct:efs_dentry
|
/prebuilt/ndk/android-ndk-r4/platforms/android-5/arch-x86/usr/include/linux/ |
efs_dir.h | 20 unsigned char namelen; member in struct:efs_dentry
|
/prebuilt/ndk/android-ndk-r4/platforms/android-8/arch-arm/usr/include/linux/ |
efs_dir.h | 20 unsigned char namelen; member in struct:efs_dentry
|
/prebuilt/ndk/android-ndk-r4/platforms/android-8/arch-x86/usr/include/linux/ |
efs_dir.h | 20 unsigned char namelen; member in struct:efs_dentry
|
/prebuilt/ndk/android-ndk-r5/platforms/android-3/arch-arm/usr/include/linux/ |
efs_dir.h | 20 unsigned char namelen; member in struct:efs_dentry
|
/prebuilt/ndk/android-ndk-r6/platforms/android-3/arch-arm/usr/include/linux/ |
efs_dir.h | 20 unsigned char namelen; member in struct:efs_dentry
|
/prebuilt/ndk/android-ndk-r6/platforms/android-3/arch-x86/usr/include/linux/ |
efs_dir.h | 20 unsigned char namelen; member in struct:efs_dentry
|
/external/dropbear/ |
svr-tcpfwd.c | 69 unsigned int namelen; local 80 reqname = buf_getstring(ses.payload, &namelen); 83 if (namelen > MAX_NAME_LEN) { 84 TRACE(("name len is wrong: %d", namelen))
|
/external/qemu/ |
path.c | 122 unsigned int i, namelen; local 125 namelen = strcspn(name, "/"); 127 if (namelen == 0) 130 if (strneq(name, namelen, "..")) 131 return follow_path(cursor->parent, name + namelen); 133 if (strneq(name, namelen, ".")) 134 return follow_path(cursor, name + namelen); 137 if (strneq(name, namelen, cursor->entries[i]->name)) 138 return follow_path(cursor->entries[i], name + namelen);
|