/glibc-2.36/nscd/ |
D | pwdcache.c | 86 struct dataset in cache_addpw() struct 91 } *dataset; in cache_addpw() local 93 assert (offsetof (struct dataset, resp) == offsetof (struct datahead, data)); in cache_addpw() 131 else if ((dataset = mempool_alloc (db, (sizeof (struct dataset) in cache_addpw() 134 timeout = datahead_init_neg (&dataset->head, in cache_addpw() 135 (sizeof (struct dataset) in cache_addpw() 140 memcpy (&dataset->resp, ¬found, total); in cache_addpw() 143 char *key_copy = memcpy (dataset->strdata, key, req->key_len); in cache_addpw() 149 uintptr_t pval = (uintptr_t) dataset & ~pagesize_m1; in cache_addpw() 151 ((uintptr_t) dataset & pagesize_m1) in cache_addpw() [all …]
|
D | netgroupcache.c | 61 struct dataset struct 75 const char *key, struct dataset **datasetp, ssize_t *totalp, in do_notfound() 78 struct dataset *dataset; in do_notfound() local 89 dataset = mempool_alloc (db, sizeof (struct dataset) + req->key_len, 1); in do_notfound() 91 if (dataset != NULL) in do_notfound() 93 timeout = datahead_init_neg (&dataset->head, in do_notfound() 94 sizeof (struct dataset) + req->key_len, in do_notfound() 98 memcpy (&dataset->resp, ¬found, total); in do_notfound() 101 memcpy (dataset->strdata, key, req->key_len); in do_notfound() 102 *key_copy = dataset->strdata; in do_notfound() [all …]
|
D | servicescache.c | 74 struct dataset in cache_addserv() struct 79 } *dataset; in cache_addserv() local 81 assert (offsetof (struct dataset, resp) == offsetof (struct datahead, data)); in cache_addserv() 119 else if ((dataset = mempool_alloc (db, (sizeof (struct dataset) in cache_addserv() 122 timeout = datahead_init_neg (&dataset->head, in cache_addserv() 123 (sizeof (struct dataset) in cache_addserv() 128 memcpy (&dataset->resp, ¬found, total); in cache_addserv() 131 memcpy (dataset->strdata, key, req->key_len); in cache_addserv() 137 uintptr_t pval = (uintptr_t) dataset & ~pagesize_m1; in cache_addserv() 139 ((uintptr_t) dataset & pagesize_m1) in cache_addserv() [all …]
|
D | initgrcache.c | 64 struct dataset in addinitgroupsX() struct 69 } *dataset = NULL; in addinitgroupsX() local 208 else if ((dataset = mempool_alloc (db, (sizeof (struct dataset) in addinitgroupsX() 211 timeout = datahead_init_neg (&dataset->head, in addinitgroupsX() 212 (sizeof (struct dataset) in addinitgroupsX() 217 memcpy (&dataset->resp, ¬found, total); in addinitgroupsX() 220 char *key_copy = memcpy (dataset->strdata, key, req->key_len); in addinitgroupsX() 226 uintptr_t pval = (uintptr_t) dataset & ~pagesize_m1; in addinitgroupsX() 228 ((uintptr_t) dataset & pagesize_m1) in addinitgroupsX() 229 + sizeof (struct dataset) + req->key_len, MS_ASYNC); in addinitgroupsX() [all …]
|
D | grpcache.c | 80 struct dataset in cache_addgr() struct 85 } *dataset; in cache_addgr() local 87 assert (offsetof (struct dataset, resp) == offsetof (struct datahead, data)); in cache_addgr() 125 else if ((dataset = mempool_alloc (db, sizeof (struct dataset) + req->key_len, 1)) != NULL) in cache_addgr() 127 timeout = datahead_init_neg (&dataset->head, in cache_addgr() 128 (sizeof (struct dataset) in cache_addgr() 133 memcpy (&dataset->resp, ¬found, total); in cache_addgr() 136 memcpy (dataset->strdata, key, req->key_len); in cache_addgr() 142 uintptr_t pval = (uintptr_t) dataset & ~pagesize_m1; in cache_addgr() 144 ((uintptr_t) dataset & pagesize_m1) in cache_addgr() [all …]
|
D | hstcache.c | 102 struct dataset in cache_addhst() struct 107 } *dataset; in cache_addhst() local 109 assert (offsetof (struct dataset, resp) == offsetof (struct datahead, data)); in cache_addhst() 149 else if ((dataset = mempool_alloc (db, (sizeof (struct dataset) in cache_addhst() 152 timeout = datahead_init_neg (&dataset->head, in cache_addhst() 153 (sizeof (struct dataset) in cache_addhst() 159 memcpy (&dataset->resp, resp, total); in cache_addhst() 162 memcpy (dataset->strdata, key, req->key_len); in cache_addhst() 168 uintptr_t pval = (uintptr_t) dataset & ~pagesize_m1; in cache_addhst() 170 ((uintptr_t) dataset & pagesize_m1) in cache_addhst() [all …]
|
D | aicache.c | 58 struct dataset in addhstaiX() struct 63 } *dataset = NULL; in addhstaiX() local 155 total = sizeof (*dataset) + naddrs + addrslen + canonlen; in addhstaiX() 160 dataset = (struct dataset *) mempool_alloc (db, total in addhstaiX() 163 if (dataset == NULL) in addhstaiX() 168 dataset = (struct dataset *) alloca (total + req->key_len); in addhstaiX() 175 char *addrs = dataset->strdata; in addhstaiX() 326 total = sizeof (*dataset) + naddrs + addrslen + canonlen; in addhstaiX() 332 dataset = (struct dataset *) mempool_alloc (db, total in addhstaiX() 335 if (dataset == NULL) in addhstaiX() [all …]
|
/glibc-2.36/locale/ |
D | duplocale.c | 32 __duplocale (locale_t dataset) in __libc_rwlock_define() 35 if (dataset == _nl_C_locobj_ptr) in __libc_rwlock_define() 36 return dataset; in __libc_rwlock_define() 39 if (dataset == LC_GLOBAL_LOCALE) in __libc_rwlock_define() 40 dataset = &_nl_global_locale; in __libc_rwlock_define() 48 if (cnt != LC_ALL && dataset->__names[cnt] != _nl_C_name) in __libc_rwlock_define() 49 names_len += strlen (dataset->__names[cnt]) + 1; in __libc_rwlock_define() 64 result->__locales[cnt] = dataset->__locales[cnt]; in __libc_rwlock_define() 68 if (dataset->__names[cnt] == _nl_C_name) in __libc_rwlock_define() 73 namep = __stpcpy (namep, dataset->__names[cnt]) + 1; in __libc_rwlock_define() [all …]
|
D | freelocale.c | 31 __freelocale (locale_t dataset) in __libc_rwlock_define() 36 if (dataset == _nl_C_locobj_ptr) in __libc_rwlock_define() 43 if (cnt != LC_ALL && dataset->__locales[cnt]->usage_count != UNDELETABLE) in __libc_rwlock_define() 45 _nl_remove_locale (cnt, dataset->__locales[cnt]); in __libc_rwlock_define() 51 free (dataset); in __libc_rwlock_define()
|
/glibc-2.36/inet/ |
D | getnetgrent_r.c | 37 static struct __netgrent dataset; variable 161 return __nscd_setnetgrent (group, &dataset); in libc_hidden_def() 175 result = __internal_setnetgrent (group, &dataset); in setnetgrent() 197 __internal_endnetgrent (&dataset); in libc_hidden_def() 347 status = __internal_getnetgrent_r (hostp, userp, domainp, &dataset, in libc_hidden_def()
|
/glibc-2.36/ChangeLog.old/ |
D | ChangeLog.17 | 2096 * nscd/aicache.c: Fix mixing up dataset and dataset->resp 6948 * nscd/aicache.c: Don't touch the dataset after cache_add returns
|
D | ChangeLog.18 | 73753 If dataset is large allocate and release it via malloc/free.
|