/illumos-gate/usr/src/tools/smatch/src/validation/ |
H A D | typeof-mods.c | 8 unsigned int obj, *ptr; in test_spec() local 9 typeof(obj) var = obj; in test_spec() 11 typeof(*ptr) var2 = obj; in test_spec() 13 typeof(obj) *ptr4 = ptr; in test_spec() 14 obj = obj; in test_spec() 16 ptr = &obj; in test_spec() 17 obj = *ptr; in test_spec() 22 const int obj, *ptr; in test_const() local 23 typeof(obj) var = obj; in test_const() 25 typeof(*ptr) var2 = obj; in test_const() [all …]
|
/illumos-gate/usr/src/lib/krb5/dyn/ |
H A D | dyn_delete.c | 24 int DynDelete(obj, idx) in DynDelete() argument 25 DynObjectP obj; in DynDelete() 29 if (obj->debug) 34 if (idx >= obj->num_el) { 35 if (obj->debug) 37 obj->num_el); 41 if (idx == obj->num_el-1) { 42 if (obj->paranoid) { 43 if (obj->debug) 45 memset(obj->array + idx*obj->el_size, 0, obj->el_size); [all …]
|
H A D | dyn_insert.c | 17 int DynInsert(obj, idx, els_in, num) in DynInsert() argument 18 DynObjectP obj; in DynInsert() 25 if (idx < 0 || idx > obj->num_el) { 26 if (obj->debug) 28 idx, obj->num_el); 33 if (obj->debug) 39 if (obj->debug) 41 (obj->num_el-idx)*obj->el_size, obj->array, 42 obj->el_size*idx, obj->el_size*(idx+num)); 44 if ((ret = _DynResize(obj, obj->num_el + num)) != DYN_OK) [all …]
|
H A D | dyn_create.c | 29 DynObjectP obj; local 31 obj = (DynObjectP) malloc(sizeof(DynObjectRecP)); 32 if (obj == NULL) 36 obj->array = (DynPtr) malloc(1); 38 obj->array = (DynPtr) malloc(0); 40 obj->el_size = el_size; 41 obj->num_el = obj->size = 0; 42 obj->debug = obj->paranoid = 0; 43 obj->inc = (!! inc) ? inc : default_increment; 45 return obj; [all …]
|
H A D | dyn_put.c | 18 DynPtr DynArray(obj) in DynArray() argument 19 DynObjectP obj; in DynArray() 21 if (obj->debug) 23 obj->array); 25 return obj->array; 28 DynPtr DynGet(obj, num) in DynGet() argument 29 DynObjectP obj; in DynGet() 33 if (obj->debug) 38 if (num >= obj->num_el) { 39 if (obj->debug) [all …]
|
H A D | dyn_realloc.c | 21 int _DynResize(obj, req) in _DynResize() argument 22 DynObjectP obj; in _DynResize() 27 if (obj->size > req) 29 else if (obj->inc > 0) 30 return _DynRealloc(obj, (req - obj->size) / obj->inc + 1); 32 if (obj->size == 0) 33 size = -obj->inc; 35 size = obj->size; 40 return _DynRealloc(obj, size); 52 int _DynRealloc(obj, num_incs) in _DynRealloc() argument [all …]
|
H A D | dyn.h | 41 #define DynHigh(obj) (DynSize(obj) - 1) argument 42 #define DynLow(obj) (0) argument 57 DynObject DynCreate P((int el_size, int inc)), DynCopy P((DynObject obj)); 58 int DynDestroy P((DynObject obj)), DynRelease P((DynObject obj)); 59 int DynAdd P((DynObject obj, void *el)); 60 int DynPut P((DynObject obj, void *el, int idx)); 61 int DynInsert P((DynObject obj, int idx, void *els, int num)); 62 int DynDelete P((DynObject obj, int idx)); 63 DynPtr DynGet P((DynObject obj, int num)); 64 DynPtr DynArray P((DynObject obj)); [all …]
|
H A D | dyn_size.c | 17 int DynSize(obj) in DynSize() argument 18 DynObjectP obj; in DynSize() 20 if (obj->debug) 21 fprintf(stderr, "dyn: size: returning size %d.\n", obj->num_el); 23 return obj->num_el; 26 int DynCapacity(obj) in DynCapacity() argument 27 DynObjectP obj; in DynCapacity() 29 if (obj->debug) 30 fprintf(stderr, "dyn: capacity: returning cap of %d.\n", obj->size); 32 return obj->size;
|
/illumos-gate/usr/src/cmd/perl/contrib/Sun/Solaris/BSM/ |
H A D | _BSMparse.pm | 49 my $obj = shift; 62 $obj = ref($obj) || $obj; 83 'userFile' => $userf}, $obj); 92 my $obj = shift; 94 my $file = $obj->{'attrFile'}; 117 my $classFilter = $obj->{'classFilter'}; 165 $obj->{'kernelDefault'} = $1; 170 $obj->{'userDefault'} = $1; 198 if ($obj->{'debug'}) { 205 $callName = $obj->filterCallName($label, [all …]
|
/illumos-gate/usr/src/cmd/isns/isnsd/ |
H A D | dseng.c | 59 isns_obj_t *obj; in load_data() local 74 ec = target_load_obj(&prev, &obj, &phase); in load_data() 75 while (ec == 0 && obj != NULL) { in load_data() 77 switch (obj->type) { in load_data() 80 ptype = obj->type; in load_data() 81 ec = register_object(obj, &puid, NULL); in load_data() 85 ec = register_object(obj, &puid, NULL); in load_data() 87 eid_attr = &obj->attrs[ in load_data() 95 scn_bitmap = &obj->attrs[ATTR_INDEX_ISCSI( in load_data() 97 scn_name = &obj->attrs[ATTR_INDEX_ISCSI( in load_data() [all …]
|
H A D | obj.c | 360 isns_obj_t *obj; in entity_hval() local 365 obj = (isns_obj_t *)p; in entity_hval() 366 key = obj->attrs[ATTR_INDEX_ENTITY(ISNS_EID_ATTR_ID)]. in entity_hval() 401 isns_obj_t *obj; in iscsi_hval() local 406 obj = (isns_obj_t *)p; in iscsi_hval() 407 key = obj->attrs[ATTR_INDEX_ISCSI(ISNS_ISCSI_NAME_ATTR_ID)]. in iscsi_hval() 443 isns_obj_t *obj; in portal_hval() local 451 obj = (isns_obj_t *)p; in portal_hval() 452 ip = obj->attrs[ATTR_INDEX_PORTAL in portal_hval() 454 port = obj->attrs[ATTR_INDEX_PORTAL in portal_hval() [all …]
|
/illumos-gate/usr/src/cmd/abi/appcert/static_prof/ |
H A D | static_prof.c | 115 bkts[bktno].obj = bind->obj; in store_binding() 146 if (strcmp(bkts[bktno].obj, bind->obj)) in check_store_binding() 147 bkts[bktno].ref_lib = bind->obj; in check_store_binding() 158 if (strcmp(bkts[i].obj, bind->obj)) in check_store_binding() 159 bkts[i].ref_lib = bind->obj; in check_store_binding() 215 bind->obj); in profile_binding() 225 bind->obj); in profile_binding() 229 bind->obj, in profile_binding() 286 bkts[i].obj); in output_binding() 296 bkts[i].obj); in output_binding() [all …]
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | obj_mgr.c | 501 OBJECT * obj, in object_mgr_add_to_map() argument 505 if (! sess || ! obj || ! handle) { in object_mgr_add_to_map() 515 map_node->ptr = obj; in object_mgr_add_to_map() 517 if (obj->session != NULL) in object_mgr_add_to_map() 692 OBJECT ** obj) in object_mgr_create_skel() argument 699 if (! sess || ! obj) { in object_mgr_create_skel() 746 *obj = o; in object_mgr_create_skel() 752 OBJECT * obj, in object_mgr_create_final() argument 759 if (!sess || !obj || !handle) in object_mgr_create_final() 766 sess_obj = object_is_session_object(obj); in object_mgr_create_final() [all …]
|
H A D | object.c | 306 OBJECT ** obj) in object_create() argument 402 *obj = o; in object_create() 515 object_flatten(OBJECT * obj, in object_flatten() argument 525 if (! obj) { in object_flatten() 528 count = template_get_count(obj->template); in object_flatten() 529 tmpl_len = template_get_compressed_size(obj->template); in object_flatten() 543 (void) memcpy(buf + offset, &obj->class, sizeof (CK_OBJECT_CLASS_32)); in object_flatten() 549 (void) memcpy(buf + offset, &obj->name, sizeof (CK_BYTE) * 8); in object_flatten() 551 rc = template_flatten(obj->template, buf + offset); in object_flatten() 564 object_free(OBJECT *obj) in object_free() argument [all …]
|
/illumos-gate/usr/src/lib/libbsm/ |
H A D | auditxml.pm | 37 my $obj = shift; 39 my @kid = $obj->getKids(); # kids of event are entry or allowed_types 98 'xmlObj' => $obj}, $pkg; 188 my $obj = shift; 190 my @kid = $obj->getKids(); # kids of event are entry 195 if ($reorder = $obj->getAttr('reorder')) { 216 'xmlObj' => $obj}, $pkg; 250 my $obj = shift; 262 $omit = '' unless $omit = $obj->getAttr('omit'); 263 $type = '' unless $type = $obj->getAttr('type'); [all …]
|
/illumos-gate/usr/src/lib/libdwarf/common/ |
H A D | dwarf_elf_access.c | 158 dwarf_elf_object_access_internals_t*obj = in dwarf_elf_object_access_internals_init() local 162 obj->elf = elf; in dwarf_elf_object_access_internals_init() 169 obj->is_64bit = (ehdr_ident[EI_CLASS] == ELFCLASS64); in dwarf_elf_object_access_internals_init() 173 obj->endianness = DW_OBJECT_LSB; in dwarf_elf_object_access_internals_init() 175 obj->endianness = DW_OBJECT_MSB; in dwarf_elf_object_access_internals_init() 178 if (obj->is_64bit) { in dwarf_elf_object_access_internals_init() 180 obj->ehdr64 = elf64_getehdr(elf); in dwarf_elf_object_access_internals_init() 181 if (obj->ehdr64 == NULL) { in dwarf_elf_object_access_internals_init() 185 obj->section_count = obj->ehdr64->e_shnum; in dwarf_elf_object_access_internals_init() 186 machine = obj->ehdr64->e_machine; in dwarf_elf_object_access_internals_init() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_nfs4.c | 92 static void sumarg_cb_getattr(char *buf, size_t buflen, void *obj); 93 static void dtlarg_cb_getattr(void *obj); 94 static void sumarg_cb_recall(char *buf, size_t buflen, void *obj); 95 static void dtlarg_cb_recall(void *obj); 98 static void sumarg_access(char *buf, size_t buflen, void *obj); 99 static void dtlarg_access(void *obj); 100 static void sumarg_close(char *buf, size_t buflen, void *obj); 101 static void dtlarg_close(void *obj); 102 static void sumarg_commit(char *buf, size_t buflen, void *obj); 103 static void dtlarg_commit(void *obj); [all …]
|
/illumos-gate/usr/src/lib/libexacct/common/ |
H A D | exacct_ops.c | 317 ea_next_object(ea_file_t *ef, ea_object_t *obj) in ea_next_object() argument 344 ret = fread(&obj->eo_catalog, 1, sizeof (ea_catalog_t), f->ef_fp); in ea_next_object() 352 exacct_order32(&obj->eo_catalog); in ea_next_object() 355 obj->eo_type = EO_ITEM; in ea_next_object() 358 switch (obj->eo_catalog & EXT_TYPE_MASK) { in ea_next_object() 360 obj->eo_type = EO_GROUP; in ea_next_object() 368 obj->eo_type = EO_NONE; in ea_next_object() 399 obj->eo_type = EO_NONE; in ea_next_object() 406 obj->eo_type = EO_NONE; in ea_next_object() 413 return (obj->eo_type); in ea_next_object() [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | multilist.c | 36 multilist_d2l(multilist_t *ml, void *obj) in multilist_d2l() argument 38 return ((multilist_node_t *)((char *)obj + ml->ml_offset)); in multilist_d2l() 151 multilist_insert(multilist_t *ml, void *obj) in multilist_insert() argument 153 unsigned int sublist_idx = ml->ml_index_func(ml, obj); in multilist_insert() 158 unsigned int, sublist_idx, void *, obj); in multilist_insert() 178 ASSERT(!multilist_link_active(multilist_d2l(ml, obj))); in multilist_insert() 180 multilist_sublist_insert_head(mls, obj); in multilist_insert() 196 multilist_remove(multilist_t *ml, void *obj) in multilist_remove() argument 198 unsigned int sublist_idx = ml->ml_index_func(ml, obj); in multilist_remove() 203 unsigned int, sublist_idx, void *, obj); in multilist_remove() [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_rename/ |
H A D | zfs_rename_007_pos.ksh | 62 typeset obj 65 obj=$(get_prop mountpoint $dtst)/${SRC_FILE##*/} 67 obj=/dev/zvol/dsk/$dtst 70 echo $obj 87 obj=$(target_obj $fs) 88 log_must cp $SRC_FILE $obj 101 obj=$(target_obj ${fs}-new) 102 log_must diff $SRC_FILE $obj 103 obj=$(target_obj ${fsclone}-new) 104 log_must diff $SRC_FILE $obj [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/acl/nontrivial/ |
H A D | zfs_acl_mv_001_pos.ksh | 58 set -A obj $2 $3 71 log_must mv ${obj[i]} $dst_file 75 log_must mv ${obj[i]} $TESTDIR1 76 dst_acl=$(get_acl $TESTDIR1/${obj[i]}) 77 dst_mode=$(get_mode $TESTDIR1/${obj[i]}) 95 orig_acl=$(get_acl ${obj[i]}) 96 orig_mode=$(get_mode ${obj[i]}) 97 orig_nested_acl=$(get_acl ${obj[i]}/$nestedfile) 98 orig_nested_mode=$(get_mode ${obj[i]}/$nestedfile) 100 log_must mv ${obj[i]} $dst_dir [all …]
|
/illumos-gate/usr/src/cmd/sgs/crle/common/ |
H A D | inspect.c | 77 Hash_obj *obj) in enteralt() argument 83 if (obj->o_alter) { in enteralt() 88 if (strcmp(path, obj->o_path)) in enteralt() 104 if (strcmp(alter, obj->o_path) == 0) { in enteralt() 106 obj->o_path); in enteralt() 109 obj->o_flags |= RTC_OBJ_DUMP; in enteralt() 114 obj->o_flags |= RTC_OBJ_ALTER; in enteralt() 120 if (obj->o_alter) { in enteralt() 131 if ((obj->o_alter = malloc(altsz)) == NULL) in enteralt() 133 (void) strcpy(obj->o_alter, alter); in enteralt() [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/reservation/ |
H A D | reservation_014_pos.sh | 56 for obj in $OBJ_LIST ; do 57 datasetexists $obj && log_must zfs destroy -f $obj 80 for obj in $TESTPOOL/$TESTFS $OBJ_LIST ; do 95 if [[ $obj == $TESTPOOL/$TESTFS ]]; then 96 log_must zfs set quota=$quota_set_size $obj 99 elif [[ $obj == $TESTPOOL/$TESTVOL2 ]] ; then 103 elif [[ $obj == $TESTPOOL/$TESTVOL ]] ; then 108 orig_quota=`get_prop quota $obj` 110 log_mustnot zfs set reservation=$resv_set_size $obj 111 new_quota=`get_prop quota $obj` [all …]
|
/illumos-gate/usr/src/common/smbsrv/ |
H A D | smb_token.c | 104 smb_token_encode(smb_token_t *obj, uint32_t *len) in smb_token_encode() argument 109 if (!obj) { in smb_token_encode() 114 *len = xdr_sizeof(smb_token_xdr, obj); in smb_token_encode() 123 if (!smb_token_xdr(&xdrs, obj)) { in smb_token_encode() 140 smb_logon_t *obj; in smb_logon_decode() local 145 if ((obj = malloc(sizeof (smb_logon_t))) == NULL) { in smb_logon_decode() 151 bzero(obj, sizeof (smb_logon_t)); in smb_logon_decode() 152 if (!smb_logon_xdr(&xdrs, obj)) { in smb_logon_decode() 154 free(obj); in smb_logon_decode() 155 obj = NULL; in smb_logon_decode() [all …]
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/ |
H A D | kernelObjectUtil.c | 577 add_to_search_result(kernel_object_t *obj, find_context_t *fcontext, in add_to_search_result() argument 593 (fcontext->objs_found)[(fcontext->num_results)++] = obj; in add_to_search_result() 602 kernel_object_t *obj; in search_for_objects() local 627 obj = session_p->object_list; in search_for_objects() 628 while (obj) { in search_for_objects() 629 (void) pthread_mutex_lock(&obj->object_mutex); in search_for_objects() 631 if (kernel_find_match_attrs(obj, pclasses, in search_for_objects() 634 obj, fcontext, &num_result_alloc); in search_for_objects() 638 rv = add_to_search_result(obj, fcontext, in search_for_objects() 641 (void) pthread_mutex_unlock(&obj->object_mutex); in search_for_objects() [all …]
|