Home
last modified time | relevance | path

Searched refs:name_len (Results 1 – 25 of 199) sorted by relevance

12345678

/third_party/musl/src/passwd/
Dgetgr_a.c81 uint32_t name_len; in __getgr_a() local
82 if (fread(&name_len, sizeof name_len, 1, f) < 1) { in __getgr_a()
87 name_len = bswap_32(name_len); in __getgr_a()
89 if (name_len > SIZE_MAX - grlist_len in __getgr_a()
90 || name_len > SIZE_MAX - len) { in __getgr_a()
94 len += name_len; in __getgr_a()
95 grlist_len += name_len; in __getgr_a()
/third_party/lwip/src/apps/snmp/
Dsnmp_snmpv2_usm.c91 u8_t name_len; in usmusertable_get_instance() local
126 name_len = (u8_t)row_oid[engineid_start + engineid_len]; in usmusertable_get_instance()
129 if (name_len > SNMP_V3_MAX_USER_LENGTH) { in usmusertable_get_instance()
134 if (1 + engineid_len + 1 + name_len != row_oid_len) { in usmusertable_get_instance()
140 if (!snmp_oid_in_range(&row_oid[name_start], name_len, usmUserTable_oid_ranges, name_len)) { in usmusertable_get_instance()
146 snmp_oid_to_name(username, &row_oid[name_start], name_len); in usmusertable_get_instance()
153 cell_instance->reference_len = name_len; in usmusertable_get_instance()
177 u8_t name_len; in usmusertable_get_next_instance() local
220 name_len = (u8_t)row_oid->id[engineid_start + engineid_len]; in usmusertable_get_next_instance()
223 if (name_len > SNMP_V3_MAX_USER_LENGTH) { in usmusertable_get_next_instance()
[all …]
/third_party/e2fsprogs/ext2ed/
Ddir_com.c229 strncpy (full_dir_name,dir_entry_ptr->name,dir_entry_ptr->name_len); in type_dir___cd()
230 full_dir_name [dir_entry_ptr->name_len]=0; in type_dir___cd()
256 if (dir_entry_ptr->name_len != strlen (dir_name) || in type_dir___cd()
257 strncmp (dir_name,dir_entry_ptr->name,dir_entry_ptr->name_len)!=0) in type_dir___cd()
327 if (dir_entry_ptr->name_len != strlen (name_search)) in action_name()
330 if (strncmp (dir_entry_ptr->name,name_search,dir_entry_ptr->name_len)==0) in action_name()
462 strncpy (temp,dir_entry_ptr->name,dir_entry_ptr->name_len); /* The name is not terminated */ in action_show()
463 temp [dir_entry_ptr->name_len]=0; in action_show()
464 if (dir_entry_ptr->name_len > (COLS - 55) && COLS > 55) in action_show()
467 dir_entry_ptr->inode,dir_entry_ptr->rec_len,dir_entry_ptr->name_len,temp); in action_show()
[all …]
/third_party/protobuf/ruby/ext/google/protobuf_c/
Dmessage.c150 size_t name_len; in extract_method_call() local
160 name_len = RSTRING_LEN(method_str); in extract_method_call()
162 if (name[name_len - 1] == '=') { in extract_method_call()
164 name_len--; in extract_method_call()
168 !upb_msgdef_lookupname(self->descriptor->msgdef, name, name_len, in extract_method_call()
172 name_len = name_len - 6; in extract_method_call()
173 } else if (strncmp("has_", name, 4) == 0 && name[name_len - 1] == '?' && in extract_method_call()
174 !upb_msgdef_lookupname(self->descriptor->msgdef, name, name_len, in extract_method_call()
178 name_len = name_len - 5; in extract_method_call()
183 has_field = upb_msgdef_lookupname(self->descriptor->msgdef, name, name_len, in extract_method_call()
[all …]
/third_party/ntfs-3g/include/ntfs-3g/
Ddir.h71 const ntfschar *name, u8 name_len, mode_t type);
73 const ntfschar *name, u8 name_len, mode_t type, dev_t dev);
75 const ntfschar *name, u8 name_len, const ntfschar *target,
80 u8 name_len);
83 u8 name_len);
106 const int name_len, const int name_type, const s64 pos,
Dattrib.h103 const u32 name_len, const IGNORE_CASE_BOOL ic,
191 u32 name_len; member
296 ntfschar *name, u32 name_len);
306 ntfschar *name, u32 name_len, s64 *data_size);
329 const ntfschar *name, u8 name_len, const u8 *val, u32 size,
332 const ntfschar *name, u8 name_len, VCN lowest_vcn,
337 ntfschar *name, u8 name_len, const u8 *val, s64 size);
339 const ntfschar *name, u8 name_len, ATTR_FLAGS flags,
389 const ntfschar *name, u32 name_len);
391 ntfschar *name, u32 name_len);
Dplugin.h161 le32 securid, ntfschar *name, int name_len,
172 ntfs_inode *ni, ntfschar *name, int name_len);
181 ntfs_inode *ni, ntfschar *name, int name_len);
/third_party/glib/gmodule/
Dgmodule-ar.c54 long name_len; in _g_module_get_member() local
79 name_len = atol(ar_header.ar_namlen); in _g_module_get_member()
81 member = g_malloc(name_len+1); in _g_module_get_member()
85 if (read(fd, (void*)member, name_len) != name_len) in _g_module_get_member()
92 member[name_len] = 0; in _g_module_get_member()
/third_party/weston/shared/
Dfile-util.c87 char *name_out, size_t name_len) in file_create_dated() argument
100 ret = snprintf(name_out, name_len, "%s%s%s%s%s", in file_create_dated()
103 if (ret < 0 || (size_t)ret >= name_len) { in file_create_dated()
113 ret = snprintf(name_out, name_len, "%s%s%s%s-%d%s", in file_create_dated()
116 if (ret < 0 || (size_t)ret >= name_len) { in file_create_dated()
/third_party/mindspore/third_party/patch/c-ares/
DCVE-2021-3672.patch36 + int name_len = *p;
37 + len = name_len;
47 + if (!isprint(*p) && !(name_len == 1 && *p == 0))
79 + int name_len = *encoded;
80 + offset = name_len;
88 + if (!isprint(*encoded) && !(name_len == 1 && *encoded == 0))
/third_party/node/deps/cares/src/lib/
Dares_expand_name.c169 int name_len = *p; in ares__expand_name_validated() local
170 len = name_len; in ares__expand_name_validated()
177 if (!ares__isprint(*p) && !(name_len == 1 && *p == 0)) in ares__expand_name_validated()
252 int name_len = *encoded; in name_length() local
253 offset = name_len; in name_length()
260 if (!ares__isprint(*encoded) && !(name_len == 1 && *encoded == 0)) in name_length()
/third_party/libuv/src/win/
Dgetaddrinfo.c108 int name_len = 0; in uv__getaddrinfo_done() local
134 name_len = WideCharToMultiByte(CP_UTF8, in uv__getaddrinfo_done()
142 if (name_len == 0) { in uv__getaddrinfo_done()
146 addrinfo_len += ALIGNED_SIZE(name_len); in uv__getaddrinfo_done()
185 name_len = WideCharToMultiByte(CP_UTF8, in uv__getaddrinfo_done()
193 assert(name_len > 0); in uv__getaddrinfo_done()
194 assert(cur_ptr + name_len <= alloc_ptr + addrinfo_len); in uv__getaddrinfo_done()
195 name_len = WideCharToMultiByte(CP_UTF8, in uv__getaddrinfo_done()
200 name_len, in uv__getaddrinfo_done()
203 assert(name_len > 0); in uv__getaddrinfo_done()
[all …]
/third_party/e2fsprogs/lib/ext2fs/
Dext2_ext_attr.h43 #define EXT2_EXT_ATTR_LEN(name_len) \ argument
44 (((name_len) + EXT2_EXT_ATTR_ROUND + \
54 #define EXT2_XATTR_LEN(name_len) \ argument
55 (((name_len) + EXT2_EXT_ATTR_ROUND + \
Dget_pathname.c52 int name_len = ext2fs_dirent_name_len(dirent); in get_pathname_proc() local
56 if ((name_len == 2) && !strncmp(dirent->name, "..", 2)) in get_pathname_proc()
59 retval = ext2fs_get_mem(name_len + 1, &gp->name); in get_pathname_proc()
64 strncpy(gp->name, dirent->name, name_len); in get_pathname_proc()
65 gp->name[name_len] = '\0'; in get_pathname_proc()
Dswapfs.c419 unsigned int name_len, rec_len, left; in ext2fs_dirent_swab_in2() local
428 dirent->name_len = ext2fs_swab16(dirent->name_len); in ext2fs_dirent_swab_in2()
429 name_len = dirent->name_len; in ext2fs_dirent_swab_in2()
431 dirent->name_len = ext2fs_swab16(dirent->name_len); in ext2fs_dirent_swab_in2()
438 } else if (((name_len & 0xFF) + 8) > rec_len) in ext2fs_dirent_swab_in2()
477 dirent->name_len = ext2fs_swab16(dirent->name_len); in ext2fs_dirent_swab_out2()
483 dirent->name_len = ext2fs_swab16(dirent->name_len); in ext2fs_dirent_swab_out2()
/third_party/ffmpeg/libavutil/
Dchannel_layout.c115 static uint64_t get_channel_layout_single(const char *name, int name_len) in get_channel_layout_single() argument
122 if (strlen(channel_layout_map[i].name) == name_len && in get_channel_layout_single()
123 !memcmp(channel_layout_map[i].name, name, name_len)) in get_channel_layout_single()
128 strlen(channel_names[i].name) == name_len && in get_channel_layout_single()
129 !memcmp(channel_names[i].name, name, name_len)) in get_channel_layout_single()
135 if (!errno && (end + 1 - name == name_len && *end == 'c')) in get_channel_layout_single()
140 if (!errno && end - name == name_len) in get_channel_layout_single()
/third_party/skia/third_party/externals/microhttpd/src/testcurl/https/
Dtest_https_sni.c143 size_t name_len; in sni_callback() local
147 name_len = sizeof (name); in sni_callback()
151 &name_len, in sni_callback()
156 if (0 == strncmp (name, host->hostname, name_len)) in sni_callback()
162 (int) name_len, in sni_callback()
169 (int) name_len, in sni_callback()
/third_party/python/PC/
Dvalidate_ucrtbase.py48 name_len = actual_len = 130 variable
49 while actual_len == name_len:
50 name_len *= 2
51 name = create_unicode_buffer(name_len)
/third_party/python/Python/
Dimportdl.c40 Py_ssize_t name_len, lastdot; in get_encoded_name() local
44 name_len = PyUnicode_GetLength(name); in get_encoded_name()
45 if (name_len < 0) { in get_encoded_name()
48 lastdot = PyUnicode_FindChar(name, '.', 0, name_len, -1); in get_encoded_name()
52 tmp = PyUnicode_Substring(name, lastdot + 1, name_len); in get_encoded_name()
/third_party/mbedtls/library/
Dx509_create.c36 size_t name_len; /* Length of 'name', without trailing 0 byte. */ member
108 static const x509_attr_descriptor_t *x509_attr_descr_from_name( const char *name, size_t name_len ) in x509_attr_descr_from_name() argument
113 if( cur->name_len == name_len && in x509_attr_descr_from_name()
114 strncmp( cur->name, name, name_len ) == 0 ) in x509_attr_descr_from_name()
244 size_t name_len = cur_name->val.len; in x509_write_name() local
250 name_len ) ); in x509_write_name()
/third_party/e2fsprogs/contrib/android/
Dfsmap.c117 int name_len = de->name_len & 0xff; in walk_ext_dir() local
121 if (!strncmp(name, ".", name_len) in walk_ext_dir()
122 || !strncmp(name, "..", name_len) in walk_ext_dir()
126 if (asprintf(&filename, "%s/%.*s", pdata->path, name_len, name) < 0) in walk_ext_dir()
/third_party/boost/tools/build/src/engine/modules/
Dproperty-set.cpp205 size_t name_len = strlen( name ); in property_set_get() local
222 res = strncmp( object_str( list_item( mid ) ), name, name_len ); in property_set_get()
238 res = strncmp( object_str( list_item( tmp ) ), name, name_len ); in property_set_get()
250 res = strncmp( object_str( list_item( tmp ) ), name, name_len ); in property_set_get()
262 object_new( object_str( list_item( begin ) ) + name_len ) ); in property_set_get()
281 size_t name_len = strlen( name ); in property_set_contains_features() local
296 res = strncmp( object_str( list_item( mid ) ), name, name_len ); in property_set_contains_features()
/third_party/mesa3d/src/mesa/drivers/dri/common/
Dmegadriver_stub.c66 size_t name_len; in megadriver_stub_init() local
91 name_len = strlen(driver_name); in megadriver_stub_init()
92 i = name_len - LIB_PATH_SUFFIX_LENGTH; in megadriver_stub_init()
/third_party/ntfs-3g/libntfs-3g/
Dattrib.c334 const ATTR_TYPES type, ntfschar *name, const u32 name_len) in __ntfs_attr_init() argument
341 na->name_len = name_len; in __ntfs_attr_init()
343 na->name_len = 0; in __ntfs_attr_init()
411 ntfschar *name, u32 name_len) in ntfs_attr_open() argument
429 if (!name_len) in ntfs_attr_open()
433 if (ntfs_ucsnlen(name, name_len) != name_len) { in ntfs_attr_open()
438 name = ntfs_ucsndup(name, name_len); in ntfs_attr_open()
448 if (ntfs_attr_lookup(type, name, name_len, 0, 0, NULL, 0, ctx)) in ntfs_attr_open()
471 name_len = a->name_length; in ntfs_attr_open()
474 name_len = 0; in ntfs_attr_open()
[all …]
/third_party/node/src/
Dnode_crypto_clienthello.cc144 uint16_t name_len = (data[offset + 1] << 8) + data[offset + 2]; in ParseExtension() local
146 if (offset + name_len > len) in ParseExtension()
149 servername_size_ = name_len; in ParseExtension()
150 offset += name_len; in ParseExtension()

12345678