/glibc-2.36/stdlib/ |
D | setenv.c | 128 const size_t namelen = strlen (name); in __add_to_environ() local 143 if (!strncmp (*ep, name, namelen) && (*ep)[namelen] == '=') in __add_to_environ() 183 const size_t varlen = namelen + 1 + vallen; in __add_to_environ() 199 __mempcpy (__mempcpy (__mempcpy (new_value, name, namelen), "=", 1), in __add_to_environ() 202 memcpy (new_value, name, namelen); in __add_to_environ() 203 new_value[namelen] = '='; in __add_to_environ() 204 memcpy (&new_value[namelen + 1], value, vallen); in __add_to_environ() 227 memcpy (np, name, namelen); in __add_to_environ() 228 np[namelen] = '='; in __add_to_environ() 229 memcpy (&np[namelen + 1], value, vallen); in __add_to_environ()
|
/glibc-2.36/locale/ |
D | findlocale.c | 74 size_t namelen = strlen (name); in valid_locale_name() local 77 if (__glibc_unlikely (namelen > 255)) in valid_locale_name() 81 if (__glibc_unlikely (__memmem (name, namelen, in valid_locale_name() 84 if (namelen == 2 && __glibc_unlikely (name[0] == '.' && name [1] == '.')) in valid_locale_name() 86 if (namelen >= 3 in valid_locale_name() 90 || (name[namelen - 3] == '/' in valid_locale_name() 91 && name[namelen - 2] == '.' in valid_locale_name() 92 && name[namelen - 1] == '.')))) in valid_locale_name() 95 if (__glibc_unlikely (memchr (name, '/', namelen) != NULL) && name[0] != '/') in valid_locale_name()
|
/glibc-2.36/elf/ |
D | dl-usage.c | 64 size_t namelen = (*list)->dirnamelen; in print_search_path_for_help_1() local 65 if (namelen == 0) in print_search_path_for_help_1() 69 namelen = 1; in print_search_path_for_help_1() 71 else if (namelen > 1) in print_search_path_for_help_1() 73 --namelen; in print_search_path_for_help_1() 74 _dl_write (STDOUT_FILENO, name, namelen); in print_search_path_for_help_1()
|
D | tst-auditmod12.c | 36 size_t namelen = strlen (name); in la_objsearch() local 37 if (namelen >= sizeof (target) - 1 in la_objsearch() 38 && strcmp (name + namelen - (sizeof (target) - 1), target) == 0) in la_objsearch()
|
D | dl-load.c | 1796 open_path (const char *name, size_t namelen, int mode, in open_path() argument 1812 buf = alloca (max_dirnamelen + max_capstrlen + namelen); in open_path() 1842 name, namelen) in open_path() 1845 buflen = (char *) __mempcpy (edp, name, namelen) - buf; in open_path() 1868 buf[buflen - namelen - 1] = '\0'; in open_path() 2025 size_t namelen = strlen (name) + 1; in _dl_map_object() local 2046 fd = open_path (name, namelen, mode, in _dl_map_object() 2062 fd = open_path (name, namelen, mode, in _dl_map_object() 2077 fd = open_path (name, namelen, mode, &l_rpath_dirs, in _dl_map_object() 2085 fd = open_path (name, namelen, mode, &__rtld_env_path_list, in _dl_map_object() [all …]
|
D | dl-sysdep-open.h | 39 _dl_sysdep_open_object (const char *name, size_t namelen, int *fd) in _dl_sysdep_open_object() argument
|
/glibc-2.36/sysdeps/pthread/ |
D | sem_routines.c | 72 size_t namelen = strlen (name); in __sem_check_add_mapping() local 73 if (namelen > NAME_MAX) in __sem_check_add_mapping() 75 namelen += 1; in __sem_check_add_mapping() 88 memcpy (fake.name, name, namelen); in __sem_check_add_mapping() 104 newp = (struct inuse_sem *) malloc (sizeof (*newp) + namelen); in __sem_check_add_mapping() 117 memcpy (newp->name, name, namelen); in __sem_check_add_mapping()
|
/glibc-2.36/posix/ |
D | shm-directory.c | 32 size_t namelen = strlen (name); in __shm_get_name() local 39 alloc_buffer_copy_bytes (&buffer, name, namelen + 1); in __shm_get_name() 40 if (namelen == 0 || memchr (name, '/', namelen) != NULL in __shm_get_name()
|
D | getopt.c | 199 size_t namelen; in process_long_option() local 207 namelen = nameend - d->__nextchar; in process_long_option() 212 if (!strncmp (p->name, d->__nextchar, namelen) in process_long_option() 213 && namelen == strlen (p->name)) in process_long_option() 230 if (!strncmp (p->name, d->__nextchar, namelen)) in process_long_option()
|
/glibc-2.36/sysdeps/unix/sysv/linux/ |
D | readdir64_r.c | 87 size_t namelen = _D_EXACT_NAMLEN (dp); in __readdir64_r() local 88 if (namelen <= NAME_MAX) in __readdir64_r() 89 reclen = offsetof (struct dirent64, d_name) + namelen + 1; in __readdir64_r() 192 size_t namelen = _D_EXACT_NAMLEN (dp); 193 if (namelen <= NAME_MAX) 194 reclen = offsetof (struct __old_dirent64, d_name) + namelen + 1;
|
D | readdir_r.c | 43 size_t namelen = _D_EXACT_NAMLEN (dp); in __readdir_r() local 44 if (namelen <= NAME_MAX) in __readdir_r() 46 reclen = offsetof (struct dirent, d_name) + namelen + 1; in __readdir_r()
|
/glibc-2.36/sysdeps/posix/ |
D | ttyname.c | 40 static size_t namelen; in getttyname() local 59 if (sizeof (dev) + dlen > namelen) in getttyname() 62 namelen = 2 * (sizeof (dev) + dlen); /* Big enough. */ in getttyname() 63 getttyname_name = malloc (namelen); in getttyname()
|
/glibc-2.36/nss/nss_compat/ |
D | compat-initgroups.c | 522 int namelen = strlen (name); in blacklist_store_name() local 528 ent->blacklist.size = MAX (BLACKLIST_INITIAL_SIZE, 2 * namelen); in blacklist_store_name() 538 if (in_blacklist (name, namelen, ent)) in blacklist_store_name() 541 if (ent->blacklist.current + namelen + 1 >= ent->blacklist.size) in blacklist_store_name() 543 ent->blacklist.size += MAX (BLACKLIST_INCREMENT, 2 * namelen); in blacklist_store_name() 558 ent->blacklist.current += namelen + 1; in blacklist_store_name() 565 in_blacklist (const char *name, int namelen, ent_t *ent) in in_blacklist() argument 567 char buf[namelen + 3]; in in_blacklist()
|
D | compat-grp.c | 634 int namelen = strlen (name); in blacklist_store_name() local 640 ent->blacklist.size = MAX (BLACKLIST_INITIAL_SIZE, 2 * namelen); in blacklist_store_name() 650 if (in_blacklist (name, namelen, ent)) in blacklist_store_name() 653 if (ent->blacklist.current + namelen + 1 >= ent->blacklist.size) in blacklist_store_name() 655 ent->blacklist.size += MAX (BLACKLIST_INCREMENT, 2 * namelen); in blacklist_store_name() 670 ent->blacklist.current += namelen + 1; in blacklist_store_name() 677 in_blacklist (const char *name, int namelen, ent_t *ent) in in_blacklist() argument 679 char buf[namelen + 3]; in in_blacklist()
|
D | compat-spwd.c | 806 int namelen = strlen (name); in blacklist_store_name() local 812 ent->blacklist.size = MAX (BLACKLIST_INITIAL_SIZE, 2 * namelen); in blacklist_store_name() 822 if (in_blacklist (name, namelen, ent)) in blacklist_store_name() 825 if (ent->blacklist.current + namelen + 1 >= ent->blacklist.size) in blacklist_store_name() 827 ent->blacklist.size += MAX (BLACKLIST_INCREMENT, 2 * namelen); in blacklist_store_name() 842 ent->blacklist.current += namelen + 1; in blacklist_store_name() 850 in_blacklist (const char *name, int namelen, ent_t *ent) in in_blacklist() argument 852 char buf[namelen + 3]; in in_blacklist()
|
D | compat-pwd.c | 1083 int namelen = strlen (name); in blacklist_store_name() local 1089 ent->blacklist.size = MAX (BLACKLIST_INITIAL_SIZE, 2 * namelen); in blacklist_store_name() 1099 if (in_blacklist (name, namelen, ent)) in blacklist_store_name() 1102 if (ent->blacklist.current + namelen + 1 >= ent->blacklist.size) in blacklist_store_name() 1104 ent->blacklist.size += MAX (BLACKLIST_INCREMENT, 2 * namelen); in blacklist_store_name() 1119 ent->blacklist.current += namelen + 1; in blacklist_store_name() 1126 in_blacklist (const char *name, int namelen, ent_t *ent) in in_blacklist() argument 1128 char buf[namelen + 3]; in in_blacklist()
|
/glibc-2.36/nss/ |
D | test-netdb.c | 141 size_t namelen = 0; in test_hosts() local 178 while (gethostname (name, namelen) < 0 && errno == ENAMETOOLONG) in test_hosts() 180 namelen += 2; /* tiny increments to test a lot */ in test_hosts() 181 name = xrealloc (name, namelen); in test_hosts() 183 if (gethostname (name, namelen) == 0) in test_hosts()
|
/glibc-2.36/nis/ |
D | nis_modify.c | 32 size_t namelen = strlen (name); in nis_modify() local 33 char buf1[namelen + 20]; in nis_modify() 34 char buf4[namelen + 20]; in nis_modify()
|
D | nis_add.c | 32 size_t namelen = strlen (name); in nis_add() local 33 char buf1 [namelen + 20]; in nis_add() 34 char buf4 [namelen + 20]; in nis_add()
|
D | nis_table.c | 580 size_t namelen = strlen (name); in libnsl_hidden_nolink_def() local 581 char buf1[namelen + 20]; in libnsl_hidden_nolink_def() 582 char buf4[namelen + 20]; in libnsl_hidden_nolink_def() 626 size_t namelen = strlen (name); in libnsl_hidden_nolink_def() local 627 char buf1[namelen + 20]; in libnsl_hidden_nolink_def() 628 char buf4[namelen + 20]; in libnsl_hidden_nolink_def()
|
/glibc-2.36/sunrpc/ |
D | pm_getport.c | 56 socklen_t namelen = sizeof (laddr); in __get_socket() local 61 int cc = __bind (so, (struct sockaddr *) &laddr, namelen); in __get_socket() 69 cc = __connect (so, (struct sockaddr *) saddr, namelen); in __get_socket()
|
D | svcauth_des.c | 118 uint32_t namelen; in _svcauth_des() local 146 namelen = IXDR_GET_U_INT32 (ixdr); in _svcauth_des() 147 if (namelen > MAXNETNAMELEN) in _svcauth_des() 152 memcpy (cred->adc_fullname.name, (char *) ixdr, namelen); in _svcauth_des() 153 cred->adc_fullname.name[namelen] = 0; in _svcauth_des() 154 ixdr += (RNDUP (namelen) / BYTES_PER_XDR_UNIT); in _svcauth_des()
|
/glibc-2.36/iconv/ |
D | gconv_dl.c | 84 size_t namelen = strlen (name) + 1; in __gconv_find_shlib() local 86 found = malloc (sizeof (struct __gconv_loaded_object) + namelen); in __gconv_find_shlib() 90 found->name = (char *) memcpy (found + 1, name, namelen); in __gconv_find_shlib()
|
/glibc-2.36/io/ |
D | fts.c | 985 fts_alloc (FTSOBJ *sp, const char *name, size_t namelen) in fts_alloc() argument 998 len = sizeof(FTSENTRY) + namelen; in fts_alloc() 1005 memmove(p->fts_name, name, namelen); in fts_alloc() 1006 p->fts_name[namelen] = '\0'; in fts_alloc() 1009 p->fts_statp = (struct STRUCT_STAT *)ALIGN(p->fts_name + namelen + 2); in fts_alloc() 1010 p->fts_namelen = namelen; in fts_alloc()
|
/glibc-2.36/locale/programs/ |
D | ld-collate.c | 334 const uint32_t *wcs, const char *name, size_t namelen, in new_element() argument 342 name, namelen); in new_element() 1198 size_t namelen; in handle_ellipsis() local 1202 namelen = strlen (seq->name); in handle_ellipsis() 1206 namelen); in handle_ellipsis() 1212 if (find_entry (&collate->seq_table, seq->name, namelen, in handle_ellipsis() 1221 namelen, 1); in handle_ellipsis() 1225 namelen, elem) != 0) in handle_ellipsis() 1239 (int) namelen, seq->name, in handle_ellipsis() 2441 uint32_t namelen = strlen (runp->name); in collate_output() local [all …]
|