Home
last modified time | relevance | path

Searched refs:new_ht (Results 1 – 2 of 2) sorted by relevance

/freebsd/lib/libc/net/
H A Dgethostnamadr.c264 struct hostent new_ht; in host_marshal_func() local
314 memcpy(&new_ht, ht, sizeof(struct hostent)); in host_marshal_func()
322 if (new_ht.h_name != NULL) { in host_marshal_func()
323 size = strlen(new_ht.h_name); in host_marshal_func()
324 memcpy(p, new_ht.h_name, size); in host_marshal_func()
325 new_ht.h_name = p; in host_marshal_func()
329 if (new_ht.h_aliases != NULL) { in host_marshal_func()
331 memcpy(p, new_ht.h_aliases, sizeof(char *) * aliases_size); in host_marshal_func()
332 new_ht.h_aliases = (char **)p; in host_marshal_func()
335 for (iter = new_ht.h_aliases; *iter; ++iter) { in host_marshal_func()
[all …]
/freebsd/contrib/sqlite3/
H A Dsqlite3.c38760 struct _ht *new_ht; /* The new hash table */ in rehash() local
38779 new_ht = (struct _ht *)sqlite3Malloc( new_size*sizeof(struct _ht) ); in rehash()
38782 if( new_ht==0 ) return 0; in rehash()
38784 pH->ht = new_ht; in rehash()
38785 pH->htsize = new_size = sqlite3MallocSize(new_ht)/sizeof(struct _ht); in rehash()
38786 memset(new_ht, 0, new_size*sizeof(struct _ht)); in rehash()
38789 insertElement(pH, &new_ht[elem->h % new_size], elem); in rehash()
202227 struct _fts3ht *new_ht; /* The new hash table */ local
202232 new_ht = (struct _fts3ht *)fts3HashMalloc( new_size*sizeof(struct _fts3ht) );
202233 if( new_ht==0 ) return 1;
[all …]