/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | hsearch.c | 36 DIV - use the remainder mod table size as a hashing function. 113 typedef struct entry { /* Hash table entry */ 124 static NODE **table; /* The address of the hash table */ variable 128 typedef ENTRY TABELEM; /* What the table contains (TABle ELEMents) */ 129 static TABELEM *table; /* The address of the hash table */ variable 130 static unsigned int count = 0; /* Number of entries in hash table */ 134 static unsigned int length; /* Size of the hash table */ 202 * Create a hash table n [all...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | hsearch.c | 34 * DIV - use the remainder mod table size as a hashing function. 122 static NODE **table; /* The address of the hash table */ variable 126 typedef ENTRY TABELEM; /* What the table contains (TABle ELEMents) */ 127 static TABELEM *table; /* The address of the hash table */ variable 128 static unsigned int count = 0; /* Number of entries in hash table */ 132 static unsigned int length; /* Size of the hash table */ 197 printf("Do you wish to start another hash table (yes/no?)"); 206 hcreate(size_t size) /* Create a hash table n [all...] |
/illumos-gate/usr/src/cmd/rexd/ |
H A D | rpc.rexd.c | 1284 * Search the mount table to see if the given file system is already 1292 FILE *table; local 1295 table = setmntent(MOUNTED, "r"); 1296 if (table == NULL) 1299 while ((getmntent(table, &mt)) != (-1)) { 1303 endmntent(table); 1307 endmntent(table);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_mip.c | 91 #define REG_TBL_LEN 10 /* update this when adding to the table */ 93 /* Reg: type to description mapping table */ 108 #define GENAUTH_TBL_LEN 1 /* update this when adding to the table */ 116 /* Reg: type to function mapping table */ 133 #define ADV_TBL_LEN 5 /* update this when adding to the table */ 135 /* Adv: type to description mapping table */ 145 /* Adv: type to function mapping table */ 169 static const char *get_desc(struct ext_desc table[], uint8_t type, int max) { argument 172 for (i = 0; i < max && table[i].type != type; i++) 175 return (table[ 187 get_interpreter(struct ext_dispatch table[], uint8_t type, int max) argument [all...] |
/illumos-gate/usr/src/cmd/cmd-crypto/tpmadm/ |
H A D | admin_cmds.c | 259 decode(decode_map_t *table, UINT32 code) argument 264 for (i = 0; table[i].str != NULL; i++) { 265 if (table[i].code == code) 266 return (table[i].str);
|
/illumos-gate/usr/src/uts/common/xen/os/ |
H A D | hypercall.c | 52 HYPERVISOR_set_trap_table(trap_info_t *table) argument 54 return (__hypercall1(__HYPERVISOR_set_trap_table, (ulong_t)table));
|
/illumos-gate/usr/src/uts/sparc/os/ |
H A D | syscall.c | 949 lock_syscall(struct sysent *table, uint_t code) argument 956 module_lock = table[code].sy_lock; 957 callp = &table[code];
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | db_mindex3.cc | 129 (void) mutex_lock(&table->mapping.enumLock); 130 if (table->mapping.enumTid != 0) { 133 stat = pthread_kill(table->mapping.enumTid, 0); 137 myself, table->mapping.enumTid, 138 NIL(t->objName), table->mapping.enumStat, 139 ldap_err2string(table->mapping.enumStat)); 141 table->mapping.enumTid = 0; 142 table->mapping.enumStat = -1; 144 if (table->mapping.enumDeferred) { 147 table 333 db_table *table; local [all...] |
H A D | db_mindex2.cc | 49 /* Pass through configuration information to the table */ 59 if (table != NULL) { 60 return (table->configure(tablePath)); 62 /* Defer table config until we have a table instance */ 142 return (table); 225 * Convert full object name to the db table path used as 248 selectMapping(db_table *table, nis_object *obj, db_query *qin, argument 258 * If 'table' is NULL, we try to find a mapping for 'obj'. 262 if (table [all...] |
/illumos-gate/usr/src/uts/common/io/sfxge/common/ |
H A D | ef10_rx.c | 186 /* NUM_QUEUES is only used to validate indirection table offsets */ 386 __in_ecount(n) unsigned int *table, 416 req_table[i] = (n > 0) ? (uint8_t)table[i % n] : 0; 448 * indirection table and key to be modified. 551 __in_ecount(n) unsigned int *table, 562 enp->en_rss_context, table, n)) != 0) 383 efx_mcdi_rss_context_set_table( __in efx_nic_t *enp, __in uint32_t rss_context, __in_ecount(n) unsigned int *table, __in size_t n) argument 549 ef10_rx_scale_tbl_set( __in efx_nic_t *enp, __in_ecount(n) unsigned int *table, __in size_t n) argument
|
H A D | efx_rx.c | 69 __in_ecount(n) unsigned int *table, 390 __in_ecount(n) unsigned int *table, 399 if ((rc = erxop->erxo_scale_tbl_set(enp, table, n)) != 0) 583 /* Zero the RSS table */ 592 /* The RSS key and indirection table are writable. */ 884 __in_ecount(n) unsigned int *table, 902 /* Calculate the entry to place in the table */ 903 byte = (n > 0) ? (uint32_t)table[index % n] : 0; 905 EFSYS_PROBE2(table, int, index, uint32_t, byte); 909 /* Write the table */ 388 efx_rx_scale_tbl_set( __in efx_nic_t *enp, __in_ecount(n) unsigned int *table, __in size_t n) argument 882 siena_rx_scale_tbl_set( __in efx_nic_t *enp, __in_ecount(n) unsigned int *table, __in size_t n) argument [all...] |
/illumos-gate/usr/src/boot/sys/sys/ |
H A D | module.h | 98 const char *descr; /* Description of the table */ 99 const char *bus; /* Name of the bus for this table */ 100 const void *table; /* Pointer to pnp table */ member in struct:mod_pnp_match_info 101 int entry_len; /* Length of each entry in the table (may be */ 103 int num_entry; /* Number of entries in the table */ 176 .table = t, \ 183 * descr is a string that describes each entry in the table. The general 200 * K Key for whole table. pnp_name=value. must be last, if present.
|
/illumos-gate/usr/src/boot/sys/boot/i386/gptzfsboot/ |
H A D | zfsboot.c | 166 struct ptable *table; local 181 table = ptable_open(&pa, part->end - part->start + 1, 183 if (table != NULL) { 184 ret = ptable_iterate(table, &pa, probe_partition); 185 ptable_close(table); 203 * open partition table on disk and scan partition entries to find 209 struct ptable *table; local 225 table = ptable_open(&pa, mediasz / pa.secsz, pa.secsz, 227 if (table != NULL) { 228 ret = ptable_iterate(table, [all...] |
/illumos-gate/usr/src/lib/libshell/common/include/ |
H A D | name.h | 84 Namval_t *table; member in struct:Namref 151 #define nv_reftable(n) ((n)->nvalue.nrp->table)
|
/illumos-gate/usr/src/lib/libshell/common/sh/ |
H A D | nvtree.c | 39 Namval_t *table; member in struct:nvdir 163 dp->table = sh.last_table; 178 dp->table = sh.last_table; 243 dp->table = np; 293 if(dp->table && dp->otable && !nv_isattr(dp->table,NV_MINIMAL)) 295 sptr = dp->table->nvenv; 296 dp->table->nvenv = (char*)dp->otable; 299 sh.last_table = dp->table; 302 if(dp->table [all...] |
/illumos-gate/usr/src/lib/libfdisk/common/ |
H A D | libfdisk.c | 754 struct ipart *table; local 756 if ((table = calloc(4, size)) == NULL) { 760 return (table); 764 * Reads the master fdisk partition table from the device assuming that it has 765 * a valid table.
|
/illumos-gate/usr/src/lib/libprtdiag/common/ |
H A D | io.c | 261 * configuration. It displays the table header, then displays 271 * Following string is used as a table header. 358 display_ffb(Board_node *board, int table) argument 391 if (table == 1) { 392 /* Print out in table format */
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/cherrystone/common/ |
H A D | cherrystone.c | 69 * these functions will overlay the symbol table of libprtdiag 77 void display_ffb(Board_node *board, int table); 420 display_ffb(Board_node *board, int table) argument
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/daktari/common/ |
H A D | daktari.c | 78 * these functions will overlay the symbol table of libprtdiag 87 void display_ffb(Board_node *board, int table); 283 * Display the table header for CPUs . Then display the CPU 583 display_ffb(Board_node *board, int table) argument
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/javelin/common/ |
H A D | javelin.c | 68 * these functions will overlay the symbol table of libprtdiag 656 display_ffb(Board_node *board, int table) argument 674 if (table == 1) { 675 /* Print out in table format */
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/opl/common/ |
H A D | opl.c | 69 * these functions will overlay the symbol table of libprtdiag 194 display_ffb(Board_node *board, int table) argument 256 * Display the table header for CPUs . Then display the CPU
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/starcat/common/ |
H A D | starcat.c | 74 * these functions will overlay the symbol table of libprtdiag 507 display_ffb(Board_node *board, int table) argument 732 * Display the table header for CPUs . Then display the CPU
|
/illumos-gate/usr/src/lib/auditd_plugins/syslog/ |
H A D | sysplugin.c | 282 init_hash(hashtable_t *table, int bad_key, int table_length, argument 288 table[i].ht_value = malloc(max_value + 1); 289 table[i].ht_key = bad_key; 290 table[i].ht_length = 0; 291 if (table[i].ht_value == NULL) { 294 free(table[j].ht_value); 297 *(table[i].ht_value) = '\0'; 303 free_hash(hashtable_t *table, int table_length) argument 308 free(table[i].ht_value);
|
/illumos-gate/usr/src/cmd/oawk/ |
H A D | b.c | 342 * but someone has length and will includes NULLs in table as one of data. 343 * Please note, CCL table which has a length data and data will include NULLs, 826 * Insert CCL entry to CCL table with maintain optimized order. 835 ccl_chars_t *table; local 842 dprintf("Inserting {%o, %o} to table %o\n", cs, ce, table_base); 844 * Searching the table to find out where should put the new item. 846 for (i = 0, table = table_base; i < table_size; i++, table++) { 847 tns = table->cc_ns; 848 tcs = table 972 ccl_chars_t *table; local 1073 dump_table(ccl_chars_t *table, int size) argument [all...] |
/illumos-gate/usr/src/cmd/picl/plugins/lib/picld_pluginutil/ |
H A D | picld_pluginutil_impl.h | 112 table_cmd_t table; member in union:__anon1076::__anon1077 150 #define tablecmd_tblh u.table.tblh 151 #define tablecmd_newtbl u.table.newtbl 152 #define tablecmd_tname u.table.tname
|