/illumos-gate/usr/src/lib/libc/port/threads/ |
H A D | pthr_attr.c | 67 pthread_attr_init(pthread_attr_t *attr) in pthread_attr_init() argument 73 attr->__pthread_attrp = ap; in pthread_attr_init() 84 pthread_attr_destroy(pthread_attr_t *attr) in pthread_attr_destroy() argument 86 if (attr == NULL || attr->__pthread_attrp == NULL) in pthread_attr_destroy() 88 lfree(attr->__pthread_attrp, sizeof (thrattr_t)); in pthread_attr_destroy() 89 attr->__pthread_attrp = NULL; in pthread_attr_destroy() 97 pthread_attr_clone(pthread_attr_t *attr, const pthread_attr_t *old_attr) in pthread_attr_clone() argument 108 attr->__pthread_attrp = ap; in pthread_attr_clone() 134 pthread_attr_setstacksize(pthread_attr_t *attr, size_t stacksize) in pthread_attr_setstacksize() argument 138 if (attr != NULL && (ap = attr->__pthread_attrp) != NULL && in pthread_attr_setstacksize() [all …]
|
H A D | pthr_mutex.c | 41 pthread_mutexattr_init(pthread_mutexattr_t *attr) in pthread_mutexattr_init() argument 51 attr->__pthread_mutexattrp = ap; in pthread_mutexattr_init() 60 pthread_mutexattr_destroy(pthread_mutexattr_t *attr) in pthread_mutexattr_destroy() argument 62 if (attr == NULL || attr->__pthread_mutexattrp == NULL) in pthread_mutexattr_destroy() 64 lfree(attr->__pthread_mutexattrp, sizeof (mattr_t)); in pthread_mutexattr_destroy() 65 attr->__pthread_mutexattrp = NULL; in pthread_mutexattr_destroy() 76 pthread_mutexattr_setpshared(pthread_mutexattr_t *attr, int pshared) in pthread_mutexattr_setpshared() argument 80 if (attr == NULL || (ap = attr->__pthread_mutexattrp) == NULL || in pthread_mutexattr_setpshared() 93 pthread_mutexattr_getpshared(const pthread_mutexattr_t *attr, int *pshared) in pthread_mutexattr_getpshared() argument 97 if (attr == NULL || (ap = attr->__pthread_mutexattrp) == NULL || in pthread_mutexattr_getpshared() [all …]
|
H A D | pthr_cond.c | 36 pthread_condattr_init(pthread_condattr_t *attr) in pthread_condattr_init() argument 44 attr->__pthread_condattrp = ap; in pthread_condattr_init() 53 pthread_condattr_destroy(pthread_condattr_t *attr) in pthread_condattr_destroy() argument 55 if (attr == NULL || attr->__pthread_condattrp == NULL) in pthread_condattr_destroy() 57 lfree(attr->__pthread_condattrp, sizeof (cvattr_t)); in pthread_condattr_destroy() 58 attr->__pthread_condattrp = NULL; in pthread_condattr_destroy() 66 pthread_condattr_setclock(pthread_condattr_t *attr, clockid_t clock_id) in pthread_condattr_setclock() argument 70 if (attr != NULL && (ap = attr->__pthread_condattrp) != NULL && in pthread_condattr_setclock() 82 pthread_condattr_getclock(const pthread_condattr_t *attr, clockid_t *clock_id) in pthread_condattr_getclock() argument 86 if (attr != NULL && (ap = attr->__pthread_condattrp) != NULL && in pthread_condattr_getclock() [all …]
|
H A D | pthr_rwlock.c | 36 pthread_rwlockattr_init(pthread_rwlockattr_t *attr) in pthread_rwlockattr_init() argument 43 attr->__pthread_rwlockattrp = ap; in pthread_rwlockattr_init() 53 pthread_rwlockattr_destroy(pthread_rwlockattr_t *attr) in pthread_rwlockattr_destroy() argument 55 if (attr == NULL || attr->__pthread_rwlockattrp == NULL) in pthread_rwlockattr_destroy() 57 lfree(attr->__pthread_rwlockattrp, sizeof (rwlattr_t)); in pthread_rwlockattr_destroy() 58 attr->__pthread_rwlockattrp = NULL; in pthread_rwlockattr_destroy() 67 pthread_rwlockattr_setpshared(pthread_rwlockattr_t *attr, int pshared) in pthread_rwlockattr_setpshared() argument 71 if (attr != NULL && (ap = attr->__pthread_rwlockattrp) != NULL && in pthread_rwlockattr_setpshared() 85 pthread_rwlockattr_getpshared(const pthread_rwlockattr_t *attr, int *pshared) in pthread_rwlockattr_getpshared() argument 89 if (attr != NULL && (ap = attr->__pthread_rwlockattrp) != NULL && in pthread_rwlockattr_getpshared() [all …]
|
H A D | pthr_barrier.c | 39 pthread_barrierattr_init(pthread_barrierattr_t *attr) in pthread_barrierattr_init() argument 46 attr->__pthread_barrierattrp = ap; in pthread_barrierattr_init() 51 pthread_barrierattr_destroy(pthread_barrierattr_t *attr) in pthread_barrierattr_destroy() argument 53 if (attr == NULL || attr->__pthread_barrierattrp == NULL) in pthread_barrierattr_destroy() 55 lfree(attr->__pthread_barrierattrp, sizeof (barrierattr_t)); in pthread_barrierattr_destroy() 56 attr->__pthread_barrierattrp = NULL; in pthread_barrierattr_destroy() 61 pthread_barrierattr_setpshared(pthread_barrierattr_t *attr, int pshared) in pthread_barrierattr_setpshared() argument 65 if (attr == NULL || (ap = attr->__pthread_barrierattrp) == NULL || in pthread_barrierattr_setpshared() 74 pthread_barrierattr_getpshared(const pthread_barrierattr_t *attr, int *pshared) in pthread_barrierattr_getpshared() argument 78 if (attr == NULL || (ap = attr->__pthread_barrierattrp) == NULL || in pthread_barrierattr_getpshared() [all …]
|
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | vid_puts.c | 66 vid_puts(attr_t attr, short pair, void *opts, int (*putout)(int)) in vid_puts() argument 69 __m_trace("vid_puts(%x, %d, %p, %p)", attr, pair, opts, putout); in vid_puts() 72 if (set_attributes != (char *) 0 && ATTR_STATE != attr) { in vid_puts() 79 (long) ISATTR(attr, WA_STANDOUT), in vid_puts() 80 (long) ISATTR(attr, WA_UNDERLINE), in vid_puts() 81 (long) ISATTR(attr, WA_REVERSE), in vid_puts() 82 (long) ISATTR(attr, WA_BLINK), in vid_puts() 83 (long) ISATTR(attr, WA_DIM), in vid_puts() 84 (long) ISATTR(attr, WA_BOLD), in vid_puts() 85 (long) ISATTR(attr, WA_INVIS), in vid_puts() [all …]
|
/illumos-gate/usr/src/lib/libdladm/common/ |
H A D | libdlflow.c | 129 dladm_flow_parse_db(char *line, dld_flowinfo_t *attr) in dladm_flow_parse_db() argument 136 bzero(attr, sizeof (*attr)); in dladm_flow_parse_db() 142 if (strlcpy(attr->fi_flowname, token, MAXFLOWNAMELEN) >= MAXFLOWNAMELEN) in dladm_flow_parse_db() 156 if ((attr->fi_linkid = in dladm_flow_parse_db() 162 attr->fi_resource_props.mrp_mask |= in dladm_flow_parse_db() 164 attr->fi_resource_props.mrp_maxbw = in dladm_flow_parse_db() 168 attr->fi_resource_props.mrp_mask |= MRP_PRIORITY; in dladm_flow_parse_db() 170 &attr->fi_resource_props.mrp_priority); in dladm_flow_parse_db() 176 &attr->fi_flow_desc); in dladm_flow_parse_db() 182 &attr->fi_flow_desc); in dladm_flow_parse_db() [all …]
|
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | vid_puts.c | 71 vid_puts(attr_t attr, short pair, void *opts, int (*putout)(int)) in vid_puts() argument 75 if (set_attributes != NULL && ATTR_STATE != attr) { in vid_puts() 80 p1 = (long) ISATTR(attr, WA_STANDOUT); in vid_puts() 81 p2 = (long) ISATTR(attr, WA_UNDERLINE); in vid_puts() 82 p3 = (long) ISATTR(attr, WA_REVERSE); in vid_puts() 83 p4 = (long) ISATTR(attr, WA_BLINK); in vid_puts() 84 p5 = (long) ISATTR(attr, WA_DIM); in vid_puts() 85 p6 = (long) ISATTR(attr, WA_BOLD); in vid_puts() 86 p7 = (long) ISATTR(attr, WA_INVIS); in vid_puts() 87 p8 = (long) ISATTR(attr, WA_PROTECT); in vid_puts() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/path/ |
H A D | pathkey.c | 44 pathkey(char* key, char* attr, const char* lang, const char* tool, const char* path) in pathkey() argument 46 return pathkey_20100601(lang, tool, path, key, 16, attr, PATH_MAX); in pathkey() 54 … lang, const char* tool, const char* apath, char* key, size_t keysize, char* attr, size_t attrsize) in pathkey_20100601() argument 119 if (attr) in pathkey_20100601() 120 attr = strcopy(attr, "PREROOT='"); in pathkey_20100601() 128 if (attr && (getpreroot(attr, path) || getpreroot(attr, NiL))) in pathkey_20100601() 129 attr += strlen(attr); in pathkey_20100601() 134 if (attr) in pathkey_20100601() 135 attr = strcopy(attr, k); in pathkey_20100601() 143 if (attr) in pathkey_20100601() [all …]
|
/illumos-gate/usr/src/lib/nsswitch/ldap/common/ |
H A D | getprinter.c | 30 static void append_attr(char *buf, char *attr); 71 ns_ldap_attr_t *attr; in _nss_ldap_printers2str() local 111 attr = __ns_ldap_getAttrStruct(result->entry, "printer-aliases"); in _nss_ldap_printers2str() 112 if (attr != NULL && attr->attrvalue != NULL) { in _nss_ldap_printers2str() 113 for (i = 0; i < attr->value_count; i++) { in _nss_ldap_printers2str() 115 attr->attrvalue[i]); in _nss_ldap_printers2str() 125 attr = getattr(result, i); in _nss_ldap_printers2str() 126 if (attr == NULL) { in _nss_ldap_printers2str() 133 if (strcasecmp(attr->attrname, "sun-printer-kvp") == 0) { in _nss_ldap_printers2str() 134 for (j = 0; j < attr->value_count; j++) { in _nss_ldap_printers2str() [all …]
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | template.c | 306 CK_ATTRIBUTE * attr = NULL; in template_add_attributes() local 314 attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE) + in template_add_attributes() 316 if (! attr) { in template_add_attributes() 319 attr->type = pTemplate[i].type; in template_add_attributes() 320 attr->ulValueLen = pTemplate[i].ulValueLen; in template_add_attributes() 322 if (attr->ulValueLen != 0) { in template_add_attributes() 323 attr->pValue = (CK_BYTE *)attr + sizeof (CK_ATTRIBUTE); in template_add_attributes() 324 (void) memcpy(attr->pValue, pTemplate[i].pValue, in template_add_attributes() 325 attr->ulValueLen); in template_add_attributes() 327 attr->pValue = NULL; in template_add_attributes() [all …]
|
H A D | hwf_obj.c | 298 CK_ATTRIBUTE * attr = NULL; in hwf_object_check_required_attributes() local 301 found = template_attribute_find(tmpl, CKA_HW_FEATURE_TYPE, &attr); in hwf_object_check_required_attributes() 314 CK_ATTRIBUTE *attr = NULL; in clock_check_required_attributes() local 318 found = template_attribute_find(tmpl, CKA_VALUE, &attr); in clock_check_required_attributes() 330 CK_ATTRIBUTE *attr = NULL; in counter_check_required_attributes() local 334 found = template_attribute_find(tmpl, CKA_VALUE, &attr); in counter_check_required_attributes() 339 found = template_attribute_find(tmpl, CKA_HAS_RESET, &attr); in counter_check_required_attributes() 344 found = template_attribute_find(tmpl, CKA_RESET_ON_INIT, &attr); in counter_check_required_attributes() 357 hwf_validate_attribute(TEMPLATE *tmpl, CK_ATTRIBUTE *attr, CK_ULONG mode) in hwf_validate_attribute() argument 359 switch (attr->type) { in hwf_validate_attribute() [all …]
|
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | digest_md5.c | 243 digest_hash_a1(const digest_attrs_t *attr, CONST_UCHAR *hash_pass, in digest_hash_a1() argument 251 MD5Update(&ctx, (CONST_UCHAR *) attr->nonce, attr->nlen); in digest_hash_a1() 253 MD5Update(&ctx, (CONST_UCHAR *) attr->cnonce, attr->clen); in digest_hash_a1() 266 digest_calc_resp(const digest_attrs_t *attr, in digest_calc_resp() argument 284 if (attr->urilen != 0) { in digest_calc_resp() 285 MD5Update(&ctx, (CONST_UCHAR *) attr->uri, attr->urilen); in digest_calc_resp() 287 if (attr->qlen != 4 || strncasecmp(attr->qop, "auth", 4) != 0) { in digest_calc_resp() 304 MD5Update(&ctx, (CONST_UCHAR *) attr->nonce, attr->nlen); in digest_calc_resp() 305 if (attr->ncount != NULL) { in digest_calc_resp() 307 MD5Update(&ctx, (CONST_UCHAR *) attr->ncount, attr->nclen); in digest_calc_resp() [all …]
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_cmn_setfile.c | 56 smb_attr_t *attr = &si->si_attr; in smb_set_basic_info() local 80 bzero(attr, sizeof (*attr)); in smb_set_basic_info() 85 smb_time_nt_to_unix(atime, &attr->sa_vattr.va_atime); in smb_set_basic_info() 86 attr->sa_mask |= SMB_AT_ATIME; in smb_set_basic_info() 92 smb_time_nt_to_unix(mtime, &attr->sa_vattr.va_mtime); in smb_set_basic_info() 93 attr->sa_mask |= SMB_AT_MTIME; in smb_set_basic_info() 99 smb_time_nt_to_unix(ctime, &attr->sa_vattr.va_ctime); in smb_set_basic_info() 100 attr->sa_mask |= SMB_AT_CTIME; in smb_set_basic_info() 106 smb_time_nt_to_unix(crtime, &attr->sa_crtime); in smb_set_basic_info() 107 attr->sa_mask |= SMB_AT_CRTIME; in smb_set_basic_info() [all …]
|
H A D | smb2_close.c | 25 smb_attr_t attr; in smb2_close() local 60 bzero(&attr, sizeof (attr)); in smb2_close() 62 attr.sa_mask = SMB_AT_ALL; in smb2_close() 63 status = smb2_ofile_getattr(sr, of, &attr); in smb2_close() 96 &attr.sa_crtime, /* T */ in smb2_close() 97 &attr.sa_vattr.va_atime, /* T */ in smb2_close() 98 &attr.sa_vattr.va_mtime, /* T */ in smb2_close() 99 &attr.sa_vattr.va_ctime, /* T */ in smb2_close() 100 attr.sa_allocsz, /* q */ in smb2_close() 101 attr.sa_vattr.va_size, /* q */ in smb2_close() [all …]
|
/illumos-gate/usr/src/lib/pkcs11/libpkcs11/common/ |
H A D | metaAttrManager.c | 51 CK_ATTRIBUTE attr; in get_master_attributes_by_object() local 56 attr.type = CKA_CLASS; in get_master_attributes_by_object() 57 attr.pValue = &class; in get_master_attributes_by_object() 58 attr.ulValueLen = sizeof (class); in get_master_attributes_by_object() 60 session->hSession, slot_object->hObject, &attr, 1); in get_master_attributes_by_object() 65 attr.pValue = &subtype; in get_master_attributes_by_object() 66 attr.ulValueLen = sizeof (subtype); in get_master_attributes_by_object() 69 attr.type = CKA_CERTIFICATE_TYPE; in get_master_attributes_by_object() 72 attr.type = CKA_HW_FEATURE_TYPE; in get_master_attributes_by_object() 78 attr.type = CKA_KEY_TYPE; in get_master_attributes_by_object() [all …]
|
/illumos-gate/usr/src/uts/sun4v/sys/ |
H A D | pte.h | 176 #define TTE_VALID_CHECK(attr) \ argument 177 (((attr) & PROT_ALL) ? TTE_VALID_INT : 0) 178 #define TTE_NFO_CHECK(attr) \ argument 179 (((attr) & HAT_NOFAULT) ? TTE_NFO_INT : 0) 183 #define TTE_IE_CHECK(attr) \ argument 184 (((attr) & HAT_STRUCTURE_LE) ? TTE_IE_INT : 0) 185 #define TTE_WRPRM_CHECK(attr) \ argument 186 (((attr) & PROT_WRITE) ? TTE_WRPRM_INT : 0) 187 #define TTE_EXECPRM_CHECK(attr) \ argument 188 (((attr) & PROT_EXEC) ? TTE_EXECPRM_INT : 0) [all …]
|
/illumos-gate/usr/src/lib/libdwarf/common/ |
H A D | dwarf_form.c | 79 Dwarf_Attribute attr, in get_attr_dbg() argument 83 if (attr == NULL) { in get_attr_dbg() 88 cup = attr->ar_cu_context; in get_attr_dbg() 105 dwarf_hasform(Dwarf_Attribute attr, in dwarf_hasform() argument 112 int res =get_attr_dbg(&dbg,&cu_context, attr,error); in dwarf_hasform() 116 *return_bool = (attr->ar_attribute_form == form); in dwarf_hasform() 124 dwarf_whatform_direct(Dwarf_Attribute attr, in dwarf_whatform_direct() argument 127 int res = dwarf_whatform(attr, return_form, error); in dwarf_whatform_direct() 133 *return_form = attr->ar_attribute_form_direct; in dwarf_whatform_direct() 345 dwarf_whatform(Dwarf_Attribute attr, in dwarf_whatform() argument [all …]
|
/illumos-gate/usr/src/uts/sun4u/sys/ |
H A D | pte.h | 219 #define TTE_VALID_CHECK(attr) \ argument 220 (((attr) & PROT_ALL) ? TTE_VALID_INT : 0) 221 #define TTE_IE_CHECK(attr) \ argument 222 (((attr) & HAT_STRUCTURE_LE) ? TTE_IE_INT : 0) 223 #define TTE_NFO_CHECK(attr) \ argument 224 (((attr) & HAT_NOFAULT) ? TTE_NFO_INT : 0) 228 #define TTE_WRPRM_CHECK(attr) \ argument 229 (((attr) & PROT_WRITE) ? TTE_WRPRM_INT : 0) 230 #define TTE_EXECPRM_CHECK(attr) \ argument 231 (((attr) & PROT_EXEC) ? TTE_EXECPRM_INT : 0) [all …]
|
/illumos-gate/usr/src/common/xattr/ |
H A D | xattr_common.c | 71 attr_to_name(f_attr_t attr) in attr_to_name() argument 73 if (attr >= F_ATTR_ALL || attr < 0) in attr_to_name() 76 return (xattrs[attr].x_name); in attr_to_name() 80 attr_to_option(f_attr_t attr) in attr_to_option() argument 82 if (attr >= F_ATTR_ALL || attr < 0) in attr_to_option() 85 return (xattrs[attr].x_option); in attr_to_option() 115 attr_to_xattr_view(f_attr_t attr) in attr_to_xattr_view() argument 117 if (attr >= F_ATTR_ALL || attr < 0) in attr_to_xattr_view() 120 return (xattrs[attr].x_xattr_view); in attr_to_xattr_view() 130 attr_to_data_type(f_attr_t attr) in attr_to_data_type() argument [all …]
|
/illumos-gate/usr/src/head/ |
H A D | spawn.h | 111 posix_spawnattr_t *attr); 114 posix_spawnattr_t *attr); 117 posix_spawnattr_t *attr, 121 const posix_spawnattr_t *_RESTRICT_KYWD attr, 125 posix_spawnattr_t *attr, 129 const posix_spawnattr_t *_RESTRICT_KYWD attr, 133 posix_spawnattr_t *_RESTRICT_KYWD attr, 137 const posix_spawnattr_t *_RESTRICT_KYWD attr, 141 posix_spawnattr_t *attr, 145 const posix_spawnattr_t *_RESTRICT_KYWD attr, [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/acl/cifs/ |
H A D | cifs_attr_002_pos.ksh | 62 typeset attr=$2 # The attribute to set or clear 67 typeset cmd="chmod $op$attr $obj" 76 if [[ $attr =~ 'q' && -d $obj && $op == $add ]]; then 82 if [[ $attr =~ 'q' && -d $obj && $op == $add ]]; then 92 if [[ $attr = 'q' && -d $obj ]]; then 110 [[ $attr == 'q' && $op == $add && -d $obj ]] && return 111 chk_attr $op $obj $attr 118 typeset attr=$3 124 [[ $attrstr =~ $attr ]] || log_fail "$op $attr -> $attrstr" 126 [[ $attrstr =~ $attr ]] && log_fail "$op $attr -> $attrstr" [all …]
|
H A D | cifs_attr_004_pos.ksh | 70 typeset attr=$2 72 if [[ -z $attr ]]; then 73 attr="AHRSadimu" 75 attr="${attr}q" 78 chmod S+c${attr} $object 91 typeset attr=$2 93 if [[ -z $attr ]]; then 95 attr="AHRSadimu" 97 attr="${attr}q" 100 attr="AHRS" [all …]
|
/illumos-gate/usr/src/cmd/hal/hald/ |
H A D | device_info.c | 328 handle_match (ParsingContext * pc, const char **attr) in handle_match() argument 336 for (num_attrib = 0; attr[num_attrib] != NULL; num_attrib++); in handle_match() 341 if (strcmp (attr[0], "key") != 0) in handle_match() 343 key = attr[1]; in handle_match() 364 if (strcmp (attr[2], "string") == 0) { in handle_match() 369 value = attr[3]; in handle_match() 383 } else if (strcmp (attr[2], "int") == 0) { in handle_match() 387 value = strtol (attr[3], NULL, 0); in handle_match() 402 } else if (strcmp (attr[2], "uint64") == 0) { in handle_match() 406 value = strtoull (attr[3], NULL, 0); in handle_match() [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/clients/of/sol_ofs/ |
H A D | sol_kverbs.c | 714 ib_query_device(struct ib_device *device, struct ib_device_attr *attr) in ib_query_device() argument 739 device, attr, rtn); in ib_query_device() 742 attr->fw_ver = (uint64_t)hattr.hca_fw_major_version << 32 | in ib_query_device() 746 attr->device_cap_flags = IB_DEVICE_CHANGE_PHY_PORT | in ib_query_device() 751 attr->device_cap_flags |= IB_DEVICE_BAD_PKEY_CNTR; in ib_query_device() 754 attr->device_cap_flags |= IB_DEVICE_BAD_QKEY_CNTR; in ib_query_device() 757 attr->device_cap_flags |= IB_DEVICE_AUTO_PATH_MIG; in ib_query_device() 760 attr->device_cap_flags |= IB_DEVICE_UD_AV_PORT_ENFORCE; in ib_query_device() 763 attr->vendor_id = hattr.hca_vendor_id; in ib_query_device() 764 attr->vendor_part_id = hattr.hca_device_id; in ib_query_device() [all …]
|