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.c37491 struct _ht *new_ht; /* The new hash table */ in rehash() local
37510 new_ht = (struct _ht *)sqlite3Malloc( new_size*sizeof(struct _ht) ); in rehash()
37513 if( new_ht==0 ) return 0; in rehash()
37515 pH->ht = new_ht; in rehash()
37516 pH->htsize = new_size = sqlite3MallocSize(new_ht)/sizeof(struct _ht); in rehash()
37517 memset(new_ht, 0, new_size*sizeof(struct _ht)); in rehash()
37520 insertElement(pH, &new_ht[elem->h % new_size], elem); in rehash()
197366 struct _fts3ht *new_ht; /* The new hash table */
197371 new_ht = (struct _fts3ht *)fts3HashMalloc( new_size*sizeof(struct _fts3ht) );
197372 if( new_ht==0 ) return 1;
[all …]