/illumos-gate/usr/src/cmd/tic/ |
H A D | tic_read.c | 136 struct header header; in read_entry() local 156 read(fd, &header, sizeof (header)); in read_entry() 159 header.magic = swap(header.magic); in read_entry() 160 header.name_size = swap(header.name_size); in read_entry() 161 header.bool_count = swap(header.bool_count); in read_entry() 162 header.num_count = swap(header.num_count); in read_entry() 163 header.str_count = swap(header.str_count); in read_entry() 164 header.str_size = swap(header.str_size); in read_entry() 167 if (header.magic != MAGIC) { in read_entry() 174 if (header.name_size > 127) in read_entry() [all …]
|
/illumos-gate/usr/src/lib/libsip/common/ |
H A D | sip_headers.c | 188 free(header); in sip_free_phdr() 215 free(header); in sip_free_cftr_header() 445 header = sip_search_for_header(_old_msg, NULL, header); in sip_copy_all_headers() 835 header = header->sip_hdr_next; in sip_search_for_header() 842 header->sip_hdr_current = header->sip_hdr_start; in sip_search_for_header() 845 header = header->sip_hdr_next; in sip_search_for_header() 849 len = header->sip_hdr_end - header->sip_hdr_current; in sip_search_for_header() 856 header = header->sip_hdr_next; in sip_search_for_header() 871 header = header->sip_hdr_next; in sip_search_for_header() 879 header = header->sip_hdr_next; in sip_search_for_header() [all …]
|
H A D | sip_parse_hdrs.c | 242 if (*header != NULL) in sip_parse_date_header() 321 *header = parsed_header; in sip_parse_date_header() 479 if (*header != NULL) in sip_parse_retryaft_header() 531 *header = parsed_header; in sip_parse_retryaft_header() 587 if (*header != NULL) in sip_parse_timestamp_header() 642 *header = parsed_header; in sip_parse_timestamp_header() 691 if (*header != NULL) in sip_parse_warn_header() 793 if (*header != NULL) in sip_parse_rack() 1069 if (*header != NULL) in sip_parse_cseq_header() 1166 if (*header != NULL) in sip_parse_via_header() [all …]
|
/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/ |
H A D | dapl_sp_util.c | 83 sp_ptr->header.provider = ia_ptr->header.provider; in dapls_sp_alloc() 91 sp_ptr->header.owner_ia = ia_ptr; in dapls_sp_alloc() 92 sp_ptr->header.user_context.as_64 = 0; in dapls_sp_alloc() 129 dapl_os_lock(&sp_ptr->header.lock); in dapls_sp_free_sp() 132 dapl_os_unlock(&sp_ptr->header.lock); in dapls_sp_free_sp() 158 dapl_os_lock(&sp_ptr->header.lock); in dapl_sp_link_cr() 162 dapl_os_unlock(&sp_ptr->header.lock); in dapl_sp_link_cr() 191 dapl_os_lock(&sp_ptr->header.lock); in dapl_sp_search_cr() 203 dapl_os_unlock(&sp_ptr->header.lock); in dapl_sp_search_cr() 230 dapl_os_lock(&sp_ptr->header.lock); in dapl_sp_remove_cr() [all …]
|
H A D | dapl_ia_util.c | 84 ia_ptr->header.provider = provider; in dapl_ia_alloc() 85 ia_ptr->header.magic = DAPL_MAGIC_IA; in dapl_ia_alloc() 87 ia_ptr->header.owner_ia = ia_ptr; in dapl_ia_alloc() 88 ia_ptr->header.user_context.as_64 = 0; in dapl_ia_alloc() 180 &sp_ptr->header.ia_list_entry); in dapl_ia_abrupt_close() 195 &ep_ptr->header.ia_list_entry); in dapl_ia_abrupt_close() 232 &sp_ptr->header.ia_list_entry); in dapl_ia_abrupt_close() 549 &ep_ptr->header.ia_list_entry, in dapl_ia_link_ep() 714 &pz_ptr->header.ia_list_entry, in dapl_ia_link_pz() 879 &sp_ptr->header.ia_list_entry, in dapl_ia_link_psp() [all …]
|
H A D | dapl_set_consumer_context.c | 68 DAPL_HEADER *header; in dapl_set_consumer_context() local 72 header = (DAPL_HEADER *)dat_handle; in dapl_set_consumer_context() 73 if (((header) == NULL) || in dapl_set_consumer_context() 74 ((unsigned long) (header) & 3) || in dapl_set_consumer_context() 75 (header->magic != DAPL_MAGIC_IA && in dapl_set_consumer_context() 76 header->magic != DAPL_MAGIC_EVD && in dapl_set_consumer_context() 77 header->magic != DAPL_MAGIC_EP && in dapl_set_consumer_context() 78 header->magic != DAPL_MAGIC_LMR && in dapl_set_consumer_context() 79 header->magic != DAPL_MAGIC_RMR && in dapl_set_consumer_context() 80 header->magic != DAPL_MAGIC_PZ && in dapl_set_consumer_context() [all …]
|
H A D | dapl_get_consumer_context.c | 67 DAPL_HEADER *header; in dapl_get_consumer_context() local 71 header = (DAPL_HEADER *)dat_handle; in dapl_get_consumer_context() 72 if (((header) == NULL) || in dapl_get_consumer_context() 73 ((unsigned long)(header) & 3) || in dapl_get_consumer_context() 74 (header->magic != DAPL_MAGIC_IA && in dapl_get_consumer_context() 75 header->magic != DAPL_MAGIC_EVD && in dapl_get_consumer_context() 76 header->magic != DAPL_MAGIC_EP && in dapl_get_consumer_context() 77 header->magic != DAPL_MAGIC_LMR && in dapl_get_consumer_context() 78 header->magic != DAPL_MAGIC_RMR && in dapl_get_consumer_context() 79 header->magic != DAPL_MAGIC_PZ && in dapl_get_consumer_context() [all …]
|
H A D | dapl_get_handle_type.c | 66 DAPL_HEADER *header; in dapl_get_handle_type() local 70 header = (DAPL_HEADER *)dat_handle; in dapl_get_handle_type() 71 if (((header) == NULL) || in dapl_get_handle_type() 72 ((unsigned long)(header) & 3) || in dapl_get_handle_type() 73 (header->magic != DAPL_MAGIC_IA && in dapl_get_handle_type() 74 header->magic != DAPL_MAGIC_EVD && in dapl_get_handle_type() 75 header->magic != DAPL_MAGIC_EP && in dapl_get_handle_type() 76 header->magic != DAPL_MAGIC_LMR && in dapl_get_handle_type() 77 header->magic != DAPL_MAGIC_RMR && in dapl_get_handle_type() 78 header->magic != DAPL_MAGIC_PZ && in dapl_get_handle_type() [all …]
|
H A D | dapl_rmr_util.c | 51 rmr->header.provider = pz->header.provider; in dapl_rmr_alloc() 52 rmr->header.magic = DAPL_MAGIC_RMR; in dapl_rmr_alloc() 53 rmr->header.handle_type = DAT_HANDLE_TYPE_RMR; in dapl_rmr_alloc() 54 rmr->header.owner_ia = pz->header.owner_ia; in dapl_rmr_alloc() 55 rmr->header.user_context.as_64 = 0; in dapl_rmr_alloc() 56 rmr->header.user_context.as_ptr = 0; in dapl_rmr_alloc() 58 dapl_ia_link_rmr(rmr->header.owner_ia, rmr); in dapl_rmr_alloc() 59 dapl_os_lock_init(&rmr->header.lock); in dapl_rmr_alloc() 82 rmr->header.magic = DAPL_MAGIC_INVALID; in dapl_rmr_dealloc() 84 dapl_ia_unlink_rmr(rmr->header.owner_ia, rmr); in dapl_rmr_dealloc() [all …]
|
H A D | dapl_cr_util.c | 80 cr_ptr->header.provider = ia_ptr->header.provider; in dapls_cr_alloc() 81 cr_ptr->header.magic = DAPL_MAGIC_CR; in dapls_cr_alloc() 82 cr_ptr->header.handle_type = DAT_HANDLE_TYPE_CR; in dapls_cr_alloc() 83 cr_ptr->header.owner_ia = ia_ptr; in dapls_cr_alloc() 84 cr_ptr->header.user_context.as_64 = 0; in dapls_cr_alloc() 85 cr_ptr->header.user_context.as_ptr = NULL; in dapls_cr_alloc() 86 dapl_llist_init_entry(&cr_ptr->header.ia_list_entry); in dapls_cr_alloc() 87 dapl_os_lock_init(&cr_ptr->header.lock); in dapls_cr_alloc() 112 dapl_os_assert(cr_ptr->header.magic == DAPL_MAGIC_CR || in dapls_cr_free() 113 cr_ptr->header.magic == DAPL_MAGIC_CR_DESTROYED); in dapls_cr_free() [all …]
|
H A D | dapl_pz_util.c | 76 pz->header.provider = ia->header.provider; in dapl_pz_alloc() 77 pz->header.magic = DAPL_MAGIC_PZ; in dapl_pz_alloc() 78 pz->header.handle_type = DAT_HANDLE_TYPE_PZ; in dapl_pz_alloc() 79 pz->header.owner_ia = ia; in dapl_pz_alloc() 80 pz->header.user_context.as_64 = 0; in dapl_pz_alloc() 81 pz->header.user_context.as_ptr = NULL; in dapl_pz_alloc() 82 dapl_llist_init_entry(&pz->header.ia_list_entry); in dapl_pz_alloc() 84 dapl_os_lock_init(&pz->header.lock); in dapl_pz_alloc() 114 pz->header.magic = DAPL_MAGIC_INVALID; in dapl_pz_dealloc() 115 dapl_ia_unlink_pz(pz->header.owner_ia, pz); in dapl_pz_dealloc() [all …]
|
H A D | dapl_srq_util.c | 72 srq_ptr->header.provider = ia_ptr->header.provider; in dapl_srq_alloc() 73 srq_ptr->header.magic = DAPL_MAGIC_SRQ; in dapl_srq_alloc() 74 srq_ptr->header.handle_type = DAT_HANDLE_TYPE_SRQ; in dapl_srq_alloc() 75 srq_ptr->header.owner_ia = ia_ptr; in dapl_srq_alloc() 76 srq_ptr->header.user_context.as_64 = 0; in dapl_srq_alloc() 77 dapl_llist_init_entry(&srq_ptr->header.ia_list_entry); in dapl_srq_alloc() 78 dapl_os_lock_init(&srq_ptr->header.lock); in dapl_srq_alloc() 113 dapl_os_assert(srq_ptr->header.magic == DAPL_MAGIC_SRQ); in dapl_srq_dealloc() 116 srq_ptr->header.magic = DAPL_MAGIC_INVALID; in dapl_srq_dealloc() 120 dapl_os_lock_destroy(&srq_ptr->header.lock); in dapl_srq_dealloc()
|
H A D | dapl_cno_util.c | 75 cno_ptr->header.provider = ia_ptr->header.provider; in dapl_cno_alloc() 76 cno_ptr->header.magic = DAPL_MAGIC_CNO; in dapl_cno_alloc() 77 cno_ptr->header.handle_type = DAT_HANDLE_TYPE_CNO; in dapl_cno_alloc() 78 cno_ptr->header.owner_ia = ia_ptr; in dapl_cno_alloc() 79 cno_ptr->header.user_context.as_64 = 0; in dapl_cno_alloc() 80 cno_ptr->header.user_context.as_ptr = NULL; in dapl_cno_alloc() 81 dapl_llist_init_entry(&cno_ptr->header.ia_list_entry); in dapl_cno_alloc() 83 dapl_os_lock_init(&cno_ptr->header.lock); in dapl_cno_alloc() 117 dapl_os_assert(cno_ptr->header.magic == DAPL_MAGIC_CNO); in dapl_cno_dealloc() 124 cno_ptr->header.magic = DAPL_MAGIC_INVALID; in dapl_cno_dealloc()
|
H A D | dapl_lmr_util.c | 67 lmr->header.provider = ia->header.provider; in dapl_lmr_alloc() 68 lmr->header.magic = DAPL_MAGIC_LMR; in dapl_lmr_alloc() 69 lmr->header.handle_type = DAT_HANDLE_TYPE_LMR; in dapl_lmr_alloc() 70 lmr->header.owner_ia = ia; in dapl_lmr_alloc() 71 lmr->header.user_context.as_64 = 0; in dapl_lmr_alloc() 72 lmr->header.user_context.as_ptr = NULL; in dapl_lmr_alloc() 73 dapl_llist_init_entry(&lmr->header.ia_list_entry); in dapl_lmr_alloc() 75 dapl_os_lock_init(&lmr->header.lock); in dapl_lmr_alloc() 95 lmr->header.magic = DAPL_MAGIC_INVALID; in dapl_lmr_dealloc() 96 dapl_ia_unlink_lmr(lmr->header.owner_ia, lmr); in dapl_lmr_dealloc() [all …]
|
/illumos-gate/usr/src/cmd/format/ |
H A D | menu_cache.c | 97 struct scsi_ms_header header; in ca_write_display() local 126 struct scsi_ms_header header; in ca_write_enable() local 150 &header); in ca_write_enable() 164 header.mode_header.length = 0; in ca_write_enable() 188 struct scsi_ms_header header; in ca_write_disable() local 212 &header); in ca_write_disable() 250 struct scsi_ms_header header; in ca_read_display() local 279 struct scsi_ms_header header; in ca_read_enable() local 303 &header); in ca_read_enable() 341 struct scsi_ms_header header; in ca_read_disable() local [all …]
|
/illumos-gate/usr/src/uts/common/ipp/flowacct/ |
H A D | flowacct.c | 219 header->uid = (uid_t)-1; in flowacct_find_ids() 220 header->projid = -1; in flowacct_find_ids() 236 header->sport = 0; in flowacct_extract_header() 237 header->dport = 0; in flowacct_extract_header() 240 V6_SET_ZERO(header->saddr); in flowacct_extract_header() 245 if (header->isv4) { in flowacct_extract_header() 489 item = flowacct_item_present(flow, header->dsfield, header->projid, in flowacct_update_flows_tbl() 490 header->uid); in flowacct_update_flows_tbl() 569 item->uid = header->uid; in flowacct_update_flows_tbl() 878 header_t *header; in flowacct_process() local [all …]
|
/illumos-gate/usr/src/uts/common/io/xge/hal/include/ |
H A D | xge-list.h | 50 static inline void xge_list_init (xge_list_t *header) in xge_list_init() argument 52 header->next = header; in xge_list_init() 53 header->prev = header; in xge_list_init() 64 static inline int xge_list_is_empty(xge_list_t *header) in xge_list_is_empty() argument 66 xge_assert(header != NULL); in xge_list_is_empty() 68 return header->next == header; in xge_list_is_empty() 81 xge_assert(header != NULL); in xge_list_first_get() 82 xge_assert(header->next != NULL); in xge_list_first_get() 83 xge_assert(header->prev != NULL); in xge_list_first_get() 85 if(header->next == header) in xge_list_first_get() [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/modules/disk_label/ |
H A D | disk_label.c | 417 efi_gpt_t *header; in cmd_gpt() local 452 header->efi_gpt_Revision); in cmd_gpt() 459 orig_crc = header->efi_gpt_HeaderCRC32; in cmd_gpt() 461 header->efi_gpt_HeaderCRC32 = 0; in cmd_gpt() 464 header->efi_gpt_HeaderSize); in cmd_gpt() 470 header->efi_gpt_Reserved1); in cmd_gpt() 479 if (header->efi_gpt_MyLBA >= header->efi_gpt_FirstUsableLBA && in cmd_gpt() 480 header->efi_gpt_MyLBA <= header->efi_gpt_LastUsableLBA) { in cmd_gpt() 484 if (header->efi_gpt_AlternateLBA >= header->efi_gpt_FirstUsableLBA && in cmd_gpt() 485 header->efi_gpt_AlternateLBA <= header->efi_gpt_LastUsableLBA) { in cmd_gpt() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_dns.c | 71 dns_header header; in interpret_dns() local 105 (void) memcpy(&header, data, sizeof (header)); in interpret_dns() 106 id = ntohs(header.id); in interpret_dns() 107 qdcount = ntohs(header.qdcount); in interpret_dns() 108 ancount = ntohs(header.ancount); in interpret_dns() 109 nscount = ntohs(header.nscount); in interpret_dns() 117 if (header.qr) { in interpret_dns() 119 if (header.rcode == 0) { in interpret_dns() 136 header.rcode, in interpret_dns() 152 if (header.qr) { in interpret_dns() [all …]
|
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | mknames.awk | 36 function header(file, array) { function 64 header("boolname.c", "boolnames"); 65 header("boolcode.c", "boolcodes"); 66 header("boolfnam.c", "boolfnames"); 67 header("numname.c", "numnames"); 68 header("numcode.c", "numcodes"); 69 header("numfnam.c", "numfnames"); 70 header("strname.c", "strnames"); 71 header("strcode.c", "strcodes"); 72 header("strfnam.c", "strfnames");
|
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | mknames.awk | 34 function header(file, array) { function 61 header("boolname.c", "boolnames"); 62 header("boolcode.c", "boolcodes"); 63 header("boolfnam.c", "boolfnames"); 64 header("numname.c", "numnames"); 65 header("numcode.c", "numcodes"); 66 header("numfnam.c", "numfnames"); 67 header("strname.c", "strnames"); 68 header("strcode.c", "strcodes"); 69 header("strfnam.c", "strfnames");
|
/illumos-gate/usr/src/lib/libmalloc/common/ |
H A D | malloc.c | 116 static struct header arena[4] = { 155 register struct header *p; in checkq() 201 struct header *hd; in memalign() 311 struct header *blk; in malloc_unlocked() 397 CLRSMAL(lblk->header.nextfree)) == in malloc_unlocked() 581 newend = (struct header *) in malloc_unlocked() 590 struct header *nblk; /* next block */ in malloc_unlocked() 666 assert((struct header *)lblk > arena); in free_unlocked() 668 holdblk = lblk->header.holder; in free_unlocked() 754 header.holder)) { in realloc_unlocked() [all …]
|
/illumos-gate/usr/src/cmd/loadkeys/type_101/ |
H A D | neaten.sh | 48 header=/tmp/header.$$ 53 echo "#" > $header 54 echo "# Copyright (c) `date +%Y` by Sun Microsystems, Inc." >> $header 55 echo "# All rights reserved." >> $header 56 echo "#" >> $header 66 $i >> $header 67 echo '#' >> $header 90 cat $header $sorted > $i.neat 91 rm -f $header $sorted
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | array.c | 55 Namarr_t header; member 831 ap->header = arp->header; in array_grow() 1176 if(!ap || (!ap->header.fixed && !ap->header.fun)) in nv_putsub() 1654 if(!ap || is_associative(&ap->header) || ap->header.fixed) in nv_aimax() 1688 …if(!ap->header.scope || (Dt_t*)ap->header.scope==ap->header.table || !nv_search(ap->cur->nvname,(D… in nv_associative() 1699 ap->header.table = dtview(ap->header.table,(Dt_t*)0); in nv_associative() 1709 if((ap->header.nelem&ARRAY_NOSCOPE) && ap->header.scope && dtvnext(ap->header.table)) in nv_associative() 1711 ap->header.scope = dtvnext(ap->header.table); in nv_associative() 1729 if((ap->header.nelem&ARRAY_NOSCOPE) && ap->header.scope && !dtvnext(ap->header.table)) in nv_associative() 1731 ap->header.table->view = (Dt_t*)ap->header.scope; in nv_associative() [all …]
|
/illumos-gate/usr/src/uts/sun4u/serengeti/io/ |
H A D | sgcn.c | 233 cnsram_header header; in sgcn_attach() local 261 if (!header.cnsram_in_end && !header.cnsram_in_begin) in sgcn_attach() 263 if (!header.cnsram_out_end && !header.cnsram_out_begin) in sgcn_attach() 271 header.cnsram_in_end - header.cnsram_in_begin; in sgcn_attach() 947 cnsram_header header; in sgcn_rw() local 975 size = header.cnsram_in_end - header.cnsram_in_begin; in sgcn_rw() 977 size = header.cnsram_out_end - header.cnsram_out_begin; in sgcn_rw() 986 header.cnsram_in_end, in sgcn_rw() 1007 header.cnsram_in_rdptr = in sgcn_rw() 1008 (header.cnsram_in_rdptr - header.cnsram_in_begin in sgcn_rw() [all …]
|