/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() 172 read(fd, TermNames, min(127, header.name_size)); in read_entry() [all …]
|
/illumos-gate/usr/src/lib/libsip/common/ |
H A D | sip_headers.c | 174 sip_free_phdr(sip_parsed_header_t *header) in sip_free_phdr() argument 179 if (header == NULL) in sip_free_phdr() 181 value = (sip_hdr_value_t *)header->value; in sip_free_phdr() 188 free(header); in sip_free_phdr() 195 sip_free_cftr_header(sip_parsed_header_t *header) in sip_free_cftr_header() argument 200 if (header == NULL) in sip_free_cftr_header() 202 value = (sip_hdr_value_t *)header->value; in sip_free_cftr_header() 215 free(header); in sip_free_cftr_header() 294 _sip_copy_header(_sip_msg_t *sip_msg, _sip_header_t *header, char *extra_param, in _sip_copy_header() argument 315 if (header->sip_hdr_end - strlen(SIP_CRLF) <= in _sip_copy_header() [all …]
|
H A D | sip_parse_hdrs.c | 50 sip_parse_acpt_header(_sip_header_t *sip_header, sip_parsed_header_t **header) in sip_parse_acpt_header() argument 53 return (sip_parse_hdr_empty(sip_header, header)); in sip_parse_acpt_header() 54 return (sip_parse_hdr_parser1(sip_header, header, SIP_SLASH)); in sip_parse_acpt_header() 64 sip_parsed_header_t **header) in sip_parse_acpt_encode_header() argument 66 return (sip_parse_hdr_parser1(sip_header, header, 0)); in sip_parse_acpt_encode_header() 76 sip_parsed_header_t **header) in sip_parse_acpt_lang_header() argument 79 return (sip_parse_hdr_empty(sip_header, header)); in sip_parse_acpt_lang_header() 80 return (sip_parse_hdr_parser1(sip_header, header, 0)); in sip_parse_acpt_lang_header() 88 sip_parse_alert_header(_sip_header_t *sip_header, sip_parsed_header_t **header) in sip_parse_alert_header() argument 90 return (sip_parse_hdr_parser3(sip_header, header, SIP_STR_VAL, B_TRUE)); in sip_parse_alert_header() [all …]
|
/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/ |
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() 86 ia_ptr->header.handle_type = DAT_HANDLE_TYPE_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() 89 ia_ptr->header.user_context.as_ptr = NULL; in dapl_ia_alloc() 90 dapl_llist_init_entry(&ia_ptr->header.ia_list_entry); in dapl_ia_alloc() 91 dapl_os_lock_init(&ia_ptr->header.lock); in dapl_ia_alloc() 165 &rmr_ptr->header.ia_list_entry); in dapl_ia_abrupt_close() 180 &sp_ptr->header.ia_list_entry); in dapl_ia_abrupt_close() [all …]
|
H A D | dapl_sp_util.c | 83 sp_ptr->header.provider = ia_ptr->header.provider; in dapls_sp_alloc() 85 sp_ptr->header.magic = DAPL_MAGIC_PSP; in dapls_sp_alloc() 86 sp_ptr->header.handle_type = DAT_HANDLE_TYPE_PSP; in dapls_sp_alloc() 88 sp_ptr->header.magic = DAPL_MAGIC_RSP; in dapls_sp_alloc() 89 sp_ptr->header.handle_type = DAT_HANDLE_TYPE_RSP; 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() 93 sp_ptr->header.user_context.as_ptr = NULL; in dapls_sp_alloc() 94 dapl_llist_init_entry(&sp_ptr->header.ia_list_entry); in dapls_sp_alloc() 95 dapl_os_lock_init(&sp_ptr->header.lock); in dapls_sp_alloc() [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_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_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() 57 dapl_llist_init_entry(&rmr->header.ia_list_entry); 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() 64 rmr->param.ia_handle = (DAT_IA_HANDLE)pz->header.owner_ia; in dapl_rmr_alloc() [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 108 MAX_MODE_SENSE_SIZE, &header); in ca_write_display() 126 struct scsi_ms_header header; in ca_write_enable() local 139 MAX_MODE_SENSE_SIZE, &header); in ca_write_enable() 145 MAX_MODE_SENSE_SIZE, &header); in ca_write_enable() 150 &header); in ca_write_enable() 164 header.mode_header.length = 0; in ca_write_enable() 165 header.mode_header.device_specific = 0; in ca_write_enable() 168 (caddr_t)page8, length, &header); in ca_write_enable() 188 struct scsi_ms_header header; in ca_write_disable() local [all …]
|
H A D | menu_defect.c | 84 work_list.header = cur_list.header; in d_restore() 86 deflist_size(cur_blksz, work_list.header.count) * in d_restore() 88 for (i = 0; i < work_list.header.count; i++) in d_restore() 99 work_list.header.count); in d_restore() 151 work_list.header.count); in d_original() 225 work_list.header.count); in d_extract() 235 work_list.header.count); in d_extract() 341 work_list.header.magicno = (uint_t)DEFECT_MAGIC; in d_add() 342 work_list.header.count = 0; in d_add() 378 count = work_list.header.count; in d_delete() [all …]
|
/illumos-gate/usr/src/uts/common/ipp/flowacct/ |
H A D | flowacct.c | 109 flowacct_port_info(header_t *header, void *iph, int af, mblk_t *mp) in flowacct_port_info() argument 125 header->sport = (uint16_t)*up++; in flowacct_port_info() 126 header->dport = (uint16_t)*up; in flowacct_port_info() 177 header->proto = *nexthdrp; in flowacct_port_info() 179 header->sport = (uint16_t)*up++; in flowacct_port_info() 180 header->dport = (uint16_t)*up; in flowacct_port_info() 187 header->proto = *nexthdrp; in flowacct_port_info() 210 flowacct_find_ids(mblk_t *mp, header_t *header) in flowacct_find_ids() argument 216 header->uid = crgetuid(cr); in flowacct_find_ids() 217 header->projid = crgetprojid(cr); in flowacct_find_ids() [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() 79 static inline xge_list_t *xge_list_first_get(xge_list_t *header) in xge_list_first_get() argument 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() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_dns.c | 51 static size_t skip_question(const uchar_t *header, const uchar_t *data, 53 static size_t print_question(char *line, const uchar_t *header, 55 static size_t print_answer(char *line, const uchar_t *header, 62 static const uchar_t *get_domain_name(const uchar_t *header, 64 static size_t print_domain_name(char *line, const uchar_t *header, 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() [all …]
|
/illumos-gate/usr/src/lib/libmalloc/common/ |
H A D | malloc.c | 116 static struct header arena[4] = { 130 static struct header *arenaend; /* ptr to block marking high end of arena */ 131 static struct header *lastblk; /* the highest block in the arena */ 155 register struct header *p; in checkq() 201 struct header *hd; in memalign() 281 hd = (struct header *)((char *)fr - minhead); in memalign() 283 hd->nextblk = ((struct header *)((char *)alloc_buf - minhead))->nextblk; in memalign() 284 ((struct header *)((char *)alloc_buf - minhead))->nextblk = SETBUSY(hd); in memalign() 311 struct header *blk; in malloc_unlocked() 317 arena[1].nextblk = (struct header *)BUSY; in malloc_unlocked() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | array.c | 45 Namarr_t header; member 55 Namarr_t header; member 141 struct index_array *aq = (struct index_array*)ap->header.scope; in array_covered() 142 if(!ap->header.fun && aq) in array_covered() 144 return (ap->header.fixed || ((ap->cur<aq->maxi) && aq->val[ap->cur].cp)); in array_covered() 157 while(*fp && *fp!= &old->header.hdr) in array_setptr() 161 new->header.hdr.next = (*fp)->next; in array_setptr() 162 *fp = &new->header.hdr; in array_setptr() 282 ap->header.nelem &= ~ARRAY_NOSCOPE; in array_find() 284 ap->header.nelem |= ARRAY_NOSCOPE; in array_find() [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/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/uts/sun4u/serengeti/io/ |
H A D | sgcn.c | 233 cnsram_header header; in sgcn_attach() local 255 rv = iosram_read(SBBC_CONSOLE_KEY, 0, (caddr_t)&header, in sgcn_attach() 259 if (header.cnsram_magic != CNSRAM_MAGIC) in sgcn_attach() 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() 911 sgcn_read_header(int rw, cnsram_header *header) in sgcn_read_header() argument 916 rv = iosram_read(SBBC_CONSOLE_KEY, 0, (caddr_t)header, in sgcn_read_header() 930 OFFSETOF((*header), cnsram_in_wrptr), in sgcn_read_header() 931 POINTER((*header), cnsram_in_wrptr), in sgcn_read_header() [all …]
|