/illumos-gate/usr/src/cmd/sendmail/db/btree/ |
H A D | bt_stat.c | 43 PAGE *h; local 76 sp->bt_nrecs = RE_NREC(h); 78 (void)memp_fput(dbp->mpf, h, 0); 120 pgno = h->next_pgno; 131 (void)memp_fput(dbp->mpf, h, 0); 143 sp->bt_levels = h->level; 147 switch (TYPE(h)) { 153 sp->bt_int_pgfree += HOFFSET(h) - LOFFSET(h); 157 sp->bt_leaf_pgfree += HOFFSET(h) - LOFFSET(h); 162 sp->bt_leaf_pgfree += HOFFSET(h) - LOFFSET(h); [all …]
|
/illumos-gate/usr/src/tools/smatch/src/cwchash/ |
H A D | hashtable_itr.c | 12 hashtable_iterator(struct hashtable *h) in hashtable_iterator() argument 18 itr->h = h; in hashtable_iterator() 21 tablelength = h->tablelength; in hashtable_iterator() 27 if (NULL != h->table[i]) in hashtable_iterator() 29 itr->e = h->table[i]; in hashtable_iterator() 75 table = itr->h->table; in hashtable_iterator_advance() 115 itr->h->entrycount--; in hashtable_iterator_remove() 134 hashvalue = hash(h,k); in hashtable_iterator_search() 137 e = h->table[index]; in hashtable_iterator_search() 142 if ((hashvalue == e->h) && (h->eqfn(k, e->k))) in hashtable_iterator_search() [all …]
|
H A D | tester.c | 52 struct hashtable *h; in main() local 80 hashtable_count(h)); in main() 106 itr = hashtable_iterator(h); in main() 108 if (hashtable_count(h) > 0) in main() 155 hashtable_count(h)); in main() 160 hashtable_destroy(h, 1); in main() 161 h = NULL; in main() 165 if (NULL == h) { in main() 184 if (!insert_some(h,k,v)) in main() 191 hashtable_count(h)); in main() [all …]
|
/illumos-gate/usr/src/lib/lib9p/common/ |
H A D | hashtable.h | 66 ht_rdlock(struct ht *h) in ht_rdlock() argument 69 return (pthread_rwlock_rdlock(&h->ht_rwlock)); in ht_rdlock() 76 ht_wrlock(struct ht *h) in ht_wrlock() argument 79 return (pthread_rwlock_wrlock(&h->ht_rwlock)); in ht_wrlock() 86 ht_unlock(struct ht *h) in ht_unlock() argument 89 return (pthread_rwlock_unlock(&h->ht_rwlock)); in ht_unlock() 96 void ht_init(struct ht *h, ssize_t size); 97 void ht_destroy(struct ht *h); 98 void *ht_find(struct ht *h, uint32_t hash); 101 int ht_remove(struct ht *h, uint32_t hash); [all …]
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_aggregate.c | 544 for (h = hash->dtah_hash[ndx]; h != NULL; h = h->dtahe_next) { in dt_aggregate_snap_cpu() 1318 for (h = hash->dtah_all; h != NULL; h = h->dtahe_nextall) { in dt_aggregate_total() 1336 for (h = hash->dtah_all; h != NULL; h = h->dtahe_nextall) { in dt_aggregate_total() 1394 for (h = hash->dtah_all; h != NULL; h = h->dtahe_nextall) { in dt_aggregate_total() 1419 for (h = hash->dtah_all; h != NULL; h = h->dtahe_nextall) { in dt_aggregate_minmaxbin() 1438 for (h = hash->dtah_all; h != NULL; h = h->dtahe_nextall) { in dt_aggregate_minmaxbin() 1507 for (h = hash->dtah_all; h != NULL; h = h->dtahe_nextall) { in dt_aggregate_minmaxbin() 1551 for (h = hash->dtah_all; h != NULL; h = h->dtahe_nextall) in dt_aggregate_walk_sorted() 1559 for (h = hash->dtah_all, i = 0; h != NULL; h = h->dtahe_nextall) in dt_aggregate_walk_sorted() 1759 for (h = hash->dtah_all; h != NULL; h = h->dtahe_nextall) { in dtrace_aggregate_walk_joined() [all …]
|
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo_devlink.h | 235 #define SET_DB_ERR(h) ((h)->error = 1) argument 236 #define DB_ERR(h) ((h)->error) argument 248 #define CACHE(h) (&(h)->cache) argument 249 #define CACHE_ROOT(h) (CACHE(h)->root) argument 250 #define CACHE_HASH(h, i) (CACHE(h)->hash[i]) argument 251 #define CACHE_LAST(h) (CACHE(h)->last_minor) argument 252 #define CACHE_EMPTY(h) (CACHE(h)->root == NULL && CACHE(h)->dngl == NULL) argument 254 #define DB(h) (&(h)->db) argument 255 #define DB_HDR(h) (DB(h)->hdr) argument 257 #define DB_SEG(h, t) (DB(h)->seg_base[t]) argument [all …]
|
/illumos-gate/usr/src/test/libc-tests/cfg/symbols/ |
H A D | stdlib_h.cfg | 41 stdlib.h |\ 47 stdlib.h |\ 53 stdlib.h |\ 59 stdlib.h |\ 65 stdlib.h |\ 71 stdlib.h |\ 77 stdlib.h |\ 83 stdlib.h |\ 89 stdlib.h |\ 95 stdlib.h |\ [all …]
|
H A D | locale_h.cfg | 17 # Definitions found in locale.h 23 type | locale_t | locale.h | -ALL SUSv4+ 24 type | struct lconv | locale.h | ALL 29 value | LC_CTYPE | int | locale.h | ALL 31 value | LC_TIME | int | locale.h | ALL 36 value | NULL | void * | locale.h | ALL 44 locale.h | -ALL SUSv4+ 49 locale.h | -ALL SUSv4+ 54 locale.h | -ALL SUSv4+ 59 locale.h | ALL [all …]
|
/illumos-gate/usr/src/cmd/svc/startd/ |
H A D | libscf.c | 83 o = f(h); in libscf_object_create() 95 o = f(h); in libscf_object_create() 110 scf_handle_t *h; in libscf_get_running_snapshot() local 114 if (h == NULL) in libscf_get_running_snapshot() 136 scf_handle_t *h; in libscf_get_or_make_running_snapshot() local 338 scf_handle_t *h; in libscf_snapshots_refresh() local 343 if (h == NULL) in libscf_snapshots_refresh() 511 scf_handle_t *h; in libscf_read_state() local 726 scf_handle_t *h; in get_boolean() local 849 scf_handle_t *h; in get_count() local [all …]
|
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | util.c | 39 char c, *h; variable 47 for (h = s, l = 1; *h != '\0'; h++, l++) 54 else if (!(isascii(*h) && isprint(*h))) 76 *h++ = c; 80 *h++ = '\\'; 85 *h++ = '\\'; 88 *h++ = 't'; 91 *h++ = 'n'; 94 *h++ = 'r'; 108 h += 3; [all …]
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/recno/ |
H A D | rec_search.c | 70 register PAGE *h; local 82 if (h->flags & P_RLEAF) { 83 t->bt_cur.page = h; 87 for (idx = 0, top = NEXTINDEX(h);;) { 88 r = GETRINTERNAL(h, idx); 99 --GETRINTERNAL(h, (idx - 1))->nrecs; 100 mpool_put(t->bt_mp, h, MPOOL_DIRTY); 103 ++GETRINTERNAL(h, (idx - 1))->nrecs; 104 mpool_put(t->bt_mp, h, MPOOL_DIRTY); 107 mpool_put(t->bt_mp, h, 0); [all …]
|
H A D | rec_delete.c | 125 PAGE *h; local 133 h = e->page; 136 mpool_put(t->bt_mp, h, 0); 154 __rec_dleaf(t, h, idx) in __rec_dleaf() argument 156 PAGE *h; 175 to = rl = GETRLEAF(h, idx); 184 from = (char *)h + h->upper; 186 h->upper += nbytes; 188 offset = h->linp[idx]; 189 for (cnt = &h->linp[idx] - (ip = &h->linp[0]); cnt--; ++ip) [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/ |
H A D | wchar | 3 set stdio ast_common.h 11 lib mbstowcs,wctomb,wcrtomb,wcslen,wcstombs,wcwidth stdlib.h stdio.h wchar.h 12 lib towlower,towupper stdlib.h stdio.h wchar.h 13 typ mbstate_t stdlib.h stdio.h wchar.h 18 #include <ast_common.h> 19 #include <stdio.h> 23 if tst note{ <wchar.h> requires native <stdio.h> }end nocompile{ 27 #include <wchar.h> 30 if tst note{ <stdio.h> defines __va_list for <wchar.h> }end compile{ 36 #include <wchar.h> [all …]
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | cmd2.c | 612 register int h; in retfield() local 624 h = hash(field); in retfield() 635 retain[h] = igp; in retfield() 652 for (h = 0; h < HSHSIZE; h++) in retshow() 661 for (h = 0; h < HSHSIZE; h++) in retshow() 682 for (h = 0; h < HSHSIZE; h++) { in unretfield() 701 h = hash(field); in unretfield() 725 register int h; in igfield() local 763 for (h = 0; h < HSHSIZE; h++) in igshow() 772 for (h = 0; h < HSHSIZE; h++) in igshow() [all …]
|
/illumos-gate/usr/src/lib/iconv_modules/utf-8/ |
H A D | Makefile.com | 137 $(SB_TO_UCS_SOS): $(COMMON)/common_defs.h $(COMMON)/sb_to_ucs.h $(COMMON)/sb_to_ucs.c 142 $(UCS_TO_SB_SOS): $(COMMON)/common_defs.h $(COMMON)/ucs_to_sb.h $(COMMON)/ucs_to_sb.c 147 $(SB_TO_UTF_8_SOS): $(COMMON)/common_defs.h $(COMMON)/sb_to_utf8.h $(COMMON)/sb_to_utf8.c 152 $(UTF_8_TO_SB_SOS): $(COMMON)/common_defs.h $(COMMON)/utf8_to_sb.h $(COMMON)/utf8_to_sb.c 157 $(UCS_4_TO_UCS_SOS): $(COMMON)/common_defs.h $(COMMON)/ucs4_to_ucs.h $(COMMON)/ucs4_to_ucs.c 162 $(UCS_TO_UCS_4_SOS): $(COMMON)/common_defs.h $(COMMON)/ucs_to_ucs4.h $(COMMON)/ucs_to_ucs4.c 167 $(UCS_4_TO_UTF_32_SOS): $(COMMON)/common_defs.h $(COMMON)/ucs4_to_ucs.h $(COMMON)/ucs4_to_ucs.c 177 $(UCS_TO_UTF_8_SOS): $(COMMON)/common_defs.h $(COMMON)/ucs_to_utf8.h $(COMMON)/ucs_to_utf8.c 182 $(UTF_8_TO_UCS_SOS): $(COMMON)/common_defs.h $(COMMON)/utf8_to_ucs.h $(COMMON)/utf8_to_ucs.c 187 $(UCS_TO_UTF_7_SOS): $(COMMON)/common_defs.h $(COMMON)/ucs_to_utf7.h $(COMMON)/ucs_to_utf7.c [all …]
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | Makefile.am | 6 noinst_HEADERS = apic.h defs.h dir.h disk_inode.h disk_inode_ffs.h \ 7 fat.h filesys.h freebsd.h fs.h hercules.h i386-elf.h \ 8 imgact_aout.h iso9660.h jfs.h mb_header.h mb_info.h md5.h \ 9 nbi.h pc_slice.h serial.h shared.h smp-imps.h term.h \ 10 terminfo.h tparm.h nbi.h ufs.h ufs2.h vstafs.h xfs.h graphics.h \ 11 fsys_zfs.h 116 BUILT_SOURCES = stage2_size.h diskless_size.h 118 BUILT_SOURCES = stage2_size.h 123 stage2_size.h: pre_stage2 124 -rm -f stage2_size.h [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/INIT/ |
H A D | iffe.tst | 281 if mem stat.st_atime sys/types.h sys/stat.h { 284 elif mem stat.st_ctime sys/types.h sys/stat.h { 287 elif mem stat.st_mtime sys/types.h sys/stat.h { 319 if mem foo_stat.st_atime sys/types.h sys/stat.h { 322 elif mem stat.st_ctime sys/types.h sys/stat.h { 325 elif mem stat.st_mtime sys/types.h sys/stat.h { 359 if mem foo_stat.st_atime sys/types.h sys/stat.h { 365 elif mem stat.st_mtime sys/types.h sys/stat.h { 400 if mem foo_stat.st_atime sys/types.h sys/stat.h { 1480 mem stat.st_mtime sys/types.h sys/stat.h [all …]
|
/illumos-gate/usr/src/lib/libxcurses2/ |
H A D | Makefile | 46 $(NAMES) src/libc/xcurses/keyindex.c h/term.h 49 HDRS= h/term.h h/curses.h h/unctrl.h 51 ROOTHDRS= $(HDRS:h/%=$(ROOTHDRDIR)/%) 54 $(ROOTHDRDIR)/%: h/% 86 h/term.h : src/libc/xcurses/mkterm.awk src/libc/xcurses/caps 88 cd src/libc/xcurses; $(AWK) -f mkterm.awk caps > term.h 89 $(MV) src/libc/xcurses/term.h h/term.h
|
/illumos-gate/usr/src/lib/libsqlite/src/ |
H A D | hash.c | 108 int h = 0; in binHash() local 111 h = (h<<3) ^ h ^ *(z++); in binHash() 113 return h & 0x7fffffff; in binHash() 181 x = new_ht[h].chain; in rehash() 194 new_ht[h].chain = elem; in rehash() 195 new_ht[h].count++; in rehash() 246 pH->ht[h].count--; in removeElementGivenHash() 248 pH->ht[h].chain = 0; in removeElementGivenHash() 269 h = (*xHash)(pKey,nKey); in sqliteHashFind() 339 elem = pH->ht[h].chain; in sqliteHashInsert() [all …]
|
/illumos-gate/usr/src/uts/intel/asm/ |
H A D | Makefile | 30 atomic.h \ 31 bitmap.h \ 32 byteorder.h \ 33 clock.h \ 34 cpu.h \ 35 cpuvar.h \ 36 htable.h \ 37 mmu.h \ 38 sunddi.h \ 39 thread.h [all …]
|
/illumos-gate/usr/src/cmd/sendmail/db/db/ |
H A D | db_dup.c | 168 PAGE *h; local 223 h = *hp; 239 P_INIT(np, pgsize, PGNO(np), PGNO(h), NEXT_PGNO(h), 0, 241 P_INIT(tp, pgsize, PGNO(h), PREV_PGNO(h), PGNO(np), 0, 291 PGNO(h), &page_dbt, &LSN(h))) != 0) { 304 __bam_ca_split(dbp, PGNO(h), PGNO(h), PGNO(np), i, 0); 355 PGNO(h), &page_dbt, &LSN(h))) != 0) 754 PAGE *h; local 903 h = *pp; 915 h = *pp; [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/features/ |
H A D | poll | 4 lib htons,htonl sys/types.h sys/socket.h netinet/in.h 5 lib getaddrinfo sys/types.h sys/socket.h netdb.h 6 typ fd_set sys/socket.h sys/select.h 7 typ socklen_t unistd.h sys/socket.h = unsigned int 9 #include <ast.h> 10 #include <signal.h> 11 #include <sys/types.h> 12 #include <sys/socket.h> 70 #include <ast.h> 71 #include <fs3d.h> [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/ |
H A D | Makefile | 21 cmd.h rev.h wc.h \ 34 $(INCLUDEDIR) :INSTALLPROTO: cmd.h cmdext.h cmdlist.h 40 cmdext.h : (src) $$(-mam:+$$(src)) 48 $("#")include <shcmd.h> 58 } > 1.$(tmp).h 60 then $(RM) $(RMFLAGS) 1.$(tmp).h 61 else $(MV) 1.$(tmp).h $(<) 64 cmdlist.h : (src) $$(-mam:+$$(src)) 80 } > 1.$(tmp).h 82 then $(RM) $(RMFLAGS) 1.$(tmp).h [all …]
|
/illumos-gate/usr/src/tools/cscope-fast/ |
H A D | history.c | 46 HISTORY *h; in addcmd() local 48 h = (HISTORY *)mymalloc(sizeof (HISTORY)); in addcmd() 50 tail->next = h; in addcmd() 51 h->next = 0; in addcmd() 52 h->previous = tail; in addcmd() 53 tail = h; in addcmd() 55 head = tail = h; in addcmd() 56 h->next = h->previous = 0; in addcmd() 58 h->field = f; in addcmd() 59 h->text = stralloc(s); in addcmd()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | ddi_intr.h | 155 int ddi_intr_free(ddi_intr_handle_t h); 160 int ddi_intr_get_cap(ddi_intr_handle_t h, int *flagsp); 161 int ddi_intr_set_cap(ddi_intr_handle_t h, int flags); 168 int ddi_intr_set_pri(ddi_intr_handle_t h, uint_t pri); 173 int ddi_intr_add_handler(ddi_intr_handle_t h, 177 int ddi_intr_remove_handler(ddi_intr_handle_t h); 183 int ddi_intr_enable(ddi_intr_handle_t h); 184 int ddi_intr_disable(ddi_intr_handle_t h); 191 int ddi_intr_set_mask(ddi_intr_handle_t h); 192 int ddi_intr_clr_mask(ddi_intr_handle_t h); [all …]
|