Searched refs:attr (Results 1 - 25 of 824) sorted by relevance

1234567891011>>

/freebsd-current/lib/libthr/thread/
H A Dthr_barrierattr.c47 _pthread_barrierattr_destroy(pthread_barrierattr_t *attr) argument
50 if (attr == NULL || *attr == NULL)
53 free(*attr);
58 _pthread_barrierattr_getpshared(const pthread_barrierattr_t * __restrict attr, argument
62 if (attr == NULL || *attr == NULL)
65 *pshared = (*attr)->pshared;
70 _pthread_barrierattr_init(pthread_barrierattr_t *attr) argument
73 if (attr
84 _pthread_barrierattr_setpshared(pthread_barrierattr_t *attr, int pshared) argument
[all...]
H A Dthr_condattr.c49 _pthread_condattr_init(pthread_condattr_t *attr) argument
60 *attr = pattr;
67 _pthread_condattr_destroy(pthread_condattr_t *attr) argument
71 if (attr == NULL || *attr == NULL) {
74 free(*attr);
75 *attr = NULL;
82 _pthread_condattr_getclock(const pthread_condattr_t * __restrict attr, argument
85 if (attr == NULL || *attr
92 _pthread_condattr_setclock(pthread_condattr_t *attr, clockid_t clock_id) argument
107 _pthread_condattr_getpshared(const pthread_condattr_t * __restrict attr, int * __restrict pshared) argument
118 _pthread_condattr_setpshared(pthread_condattr_t *attr, int pshared) argument
[all...]
H A Dthr_attr.c113 _thr_attr_destroy(pthread_attr_t *attr) argument
116 if (attr == NULL || *attr == NULL)
119 free((*attr)->cpuset);
120 free(*attr);
121 *attr = NULL;
164 *dst = pthread->attr;
184 _thr_attr_getdetachstate(const pthread_attr_t *attr, int *detachstate) argument
187 if (attr == NULL || *attr
201 _thr_attr_getguardsize(const pthread_attr_t * __restrict attr, size_t * __restrict guardsize) argument
216 _thr_attr_getinheritsched(const pthread_attr_t * __restrict attr, int * __restrict sched_inherit) argument
231 _thr_attr_getschedparam(const pthread_attr_t * __restrict attr, struct sched_param * __restrict param) argument
246 _thr_attr_getschedpolicy(const pthread_attr_t * __restrict attr, int * __restrict policy) argument
261 _thr_attr_getscope(const pthread_attr_t * __restrict attr, int * __restrict contentionscope) argument
276 _pthread_attr_getstack(const pthread_attr_t * __restrict attr, void ** __restrict stackaddr, size_t * __restrict stacksize) argument
293 _thr_attr_getstackaddr(const pthread_attr_t *attr, void **stackaddr) argument
307 _thr_attr_getstacksize(const pthread_attr_t * __restrict attr, size_t * __restrict stacksize) argument
322 _thr_attr_init(pthread_attr_t *attr) argument
340 _pthread_attr_setcreatesuspend_np(pthread_attr_t *attr) argument
354 _thr_attr_setdetachstate(pthread_attr_t *attr, int detachstate) argument
373 _thr_attr_setguardsize(pthread_attr_t *attr, size_t guardsize) argument
387 _thr_attr_setinheritsched(pthread_attr_t *attr, int sched_inherit) argument
403 _thr_attr_setschedparam(pthread_attr_t * __restrict attr, const struct sched_param * __restrict param) argument
434 _thr_attr_setschedpolicy(pthread_attr_t *attr, int policy) argument
450 _thr_attr_setscope(pthread_attr_t *attr, int contentionscope) argument
468 _pthread_attr_setstack(pthread_attr_t *attr, void *stackaddr, size_t stacksize) argument
485 _thr_attr_setstackaddr(pthread_attr_t *attr, void *stackaddr) argument
499 _thr_attr_setstacksize(pthread_attr_t *attr, size_t stacksize) argument
534 pthread_attr_t attr; local
577 pthread_attr_t attr; local
[all...]
H A Dthr_mutexattr.c95 _thr_mutexattr_init(pthread_mutexattr_t *attr) argument
106 *attr = pattr;
113 _pthread_mutexattr_setkind_np(pthread_mutexattr_t *attr, int kind) argument
116 if (attr == NULL || *attr == NULL) {
120 (*attr)->m_type = kind;
127 _pthread_mutexattr_getkind_np(pthread_mutexattr_t attr) argument
131 if (attr == NULL) {
135 ret = attr->m_type;
141 _thr_mutexattr_settype(pthread_mutexattr_t *attr, in argument
155 _pthread_mutexattr_gettype(const pthread_mutexattr_t * __restrict attr, int * __restrict type) argument
171 _thr_mutexattr_destroy(pthread_mutexattr_t *attr) argument
185 _pthread_mutexattr_getpshared(const pthread_mutexattr_t *attr, int *pshared) argument
196 _pthread_mutexattr_setpshared(pthread_mutexattr_t *attr, int pshared) argument
[all...]
H A Dthr_stack.c139 mprotect((char *)thrd->attr.stackaddr_attr +
140 round_up(thrd->attr.guardsize_attr),
141 round_up(thrd->attr.stacksize_attr),
183 _thr_stack_alloc(struct pthread_attr *attr) argument
198 stacksize = round_up(attr->stacksize_attr);
199 guardsize = round_up(attr->guardsize_attr);
201 attr->stackaddr_attr = NULL;
202 attr->flags &= ~THR_STACK_USER;
218 attr->stackaddr_attr = spare_stack->stackaddr;
231 attr
287 _thr_stack_free(struct pthread_attr *attr) argument
[all...]
/freebsd-current/contrib/ncurses/ncurses/base/
H A Dlib_slkatrof.c45 NCURSES_SP_NAME(slk_attroff) (NCURSES_SP_DCLx const chtype attr) argument
47 T((T_CALLED("slk_attroff(%p,%s)"), (void *) SP_PARM, _traceattr(attr)));
50 TR(TRACE_ATTRS, ("... current %s", _tracech_t(CHREF(SP_PARM->_slk->attr))));
51 RemAttr(SP_PARM->_slk->attr, attr);
52 if ((attr & A_COLOR) != 0) {
53 SetPair(SP_PARM->_slk->attr, 0);
55 TR(TRACE_ATTRS, ("new attribute is %s", _tracech_t(CHREF(SP_PARM->_slk->attr))));
63 slk_attroff(const chtype attr) argument
65 return NCURSES_SP_NAME(slk_attroff) (CURRENT_SCREEN, attr);
[all...]
H A Dlib_slkatrset.c45 NCURSES_SP_NAME(slk_attrset) (NCURSES_SP_DCLx const chtype attr) argument
47 T((T_CALLED("slk_attrset(%p,%s)"), (void *) SP_PARM, _traceattr(attr)));
50 SetAttr(SP_PARM->_slk->attr, attr);
58 slk_attrset(const chtype attr) argument
60 return NCURSES_SP_NAME(slk_attrset) (CURRENT_SCREEN, attr);
H A Dlib_slkatron.c45 NCURSES_SP_NAME(slk_attron) (NCURSES_SP_DCLx const chtype attr) argument
47 T((T_CALLED("slk_attron(%p,%s)"), (void *) SP_PARM, _traceattr(attr)));
50 TR(TRACE_ATTRS, ("... current %s", _tracech_t(CHREF(SP_PARM->_slk->attr))));
51 AddAttr(SP_PARM->_slk->attr, attr);
52 if ((attr & A_COLOR) != 0) {
53 SetPair(SP_PARM->_slk->attr, PairNumber(attr));
55 TR(TRACE_ATTRS, ("new attribute is %s", _tracech_t(CHREF(SP_PARM->_slk->attr))));
63 slk_attron(const chtype attr) argument
[all...]
H A Dlib_slkatr_set.c46 const attr_t attr,
55 _traceattr(attr),
63 TR(TRACE_ATTRS, ("... current %s", _tracech_t(CHREF(SP_PARM->_slk->attr))));
64 SetAttr(SP_PARM->_slk->attr, attr);
66 SetPair(SP_PARM->_slk->attr, color_pair);
68 TR(TRACE_ATTRS, ("new attribute is %s", _tracech_t(CHREF(SP_PARM->_slk->attr))));
76 slk_attr_set(const attr_t attr, NCURSES_COLOR_T pair_arg, void *opts) argument
78 return NCURSES_SP_NAME(slk_attr_set) (CURRENT_SCREEN, attr,
45 slk_attr_set(NCURSES_SP_DCLx const attr_t attr, NCURSES_PAIRS_T pair_arg, void *opts) argument
/freebsd-current/contrib/wpa/src/wps/
H A Dwps_validate.c1030 struct wps_parse_attr attr; local
1036 if (wps_parse_msg(&buf, &attr) < 0) {
1041 if (wps_validate_network_idx(attr.network_idx, 1) ||
1042 wps_validate_ssid(attr.ssid, attr.ssid_len, 1) ||
1043 wps_validate_auth_type(attr.auth_type, 1) ||
1044 wps_validate_encr_type(attr.encr_type, 1) ||
1045 wps_validate_network_key_index(attr.network_key_idx, 0) ||
1046 wps_validate_network_key(attr.network_key, attr
1085 struct wps_parse_attr attr; local
1124 struct wps_parse_attr attr; local
1182 struct wps_parse_attr attr; local
1229 struct wps_parse_attr attr; local
1258 struct wps_parse_attr attr; local
1287 struct wps_parse_attr attr; local
1343 struct wps_parse_attr attr; local
1398 struct wps_parse_attr attr; local
1450 struct wps_parse_attr attr; local
1486 struct wps_parse_attr attr; local
1524 struct wps_parse_attr attr; local
1555 struct wps_parse_attr attr; local
1591 struct wps_parse_attr attr; local
1622 struct wps_parse_attr attr; local
1658 struct wps_parse_attr attr; local
1689 struct wps_parse_attr attr; local
1726 struct wps_parse_attr attr; local
1764 struct wps_parse_attr attr; local
1800 struct wps_parse_attr attr; local
1837 struct wps_parse_attr attr; local
1871 struct wps_parse_attr attr; local
1906 struct wps_parse_attr attr; local
1940 struct wps_parse_attr attr; local
[all...]
H A Dwps_attr_parse.c20 static int wps_set_vendor_ext_wfa_subelem(struct wps_parse_attr *attr, argument
32 attr->version2 = pos;
35 attr->authorized_macs = pos;
36 attr->authorized_macs_len = len;
44 attr->network_key_shareable = pos;
52 attr->request_to_enroll = pos;
60 attr->settings_delay_time = pos;
68 attr->registrar_configuration_methods = pos;
77 attr->multi_ap_ext = *pos;
79 attr
91 wps_parse_vendor_ext_wfa(struct wps_parse_attr *attr, const u8 *pos, u16 len) argument
111 wps_parse_vendor_ext(struct wps_parse_attr *attr, const u8 *pos, u16 len) argument
152 wps_set_attr(struct wps_parse_attr *attr, u16 type, const u8 *pos, u16 len) argument
596 wps_parse_msg(const struct wpabuf *msg, struct wps_parse_attr *attr) argument
[all...]
H A Dwps_module_tests.c266 struct wps_parse_attr attr; local
286 if (wps_parse_msg(buf, &attr) != test->result) {
293 if (!attr.network_key || !attr.ap_setup_locked)
297 if (attr.num_cred != MAX_CRED_COUNT)
301 if (!attr.network_key_idx)
305 if (attr.num_req_dev_type != MAX_REQ_DEV_TYPE_COUNT)
309 if (attr.num_vendor_ext != MAX_WPS_PARSE_VENDOR_EXT)
313 if (!attr.version2 ||
314 !attr
[all...]
H A Dwps_upnp_ap.c33 struct wps_parse_attr attr; local
38 wps_parse_msg(msg, &attr) < 0)
45 if (attr.selected_registrar == NULL || *attr.selected_registrar == 0) {
51 s->dev_password_id = attr.dev_password_id ?
52 WPA_GET_BE16(attr.dev_password_id) : DEV_PW_DEFAULT;
53 s->config_methods = attr.sel_reg_config_methods ?
54 WPA_GET_BE16(attr.sel_reg_config_methods) : -1;
55 if (attr.authorized_macs) {
56 int count = attr
[all...]
/freebsd-current/tests/sys/fs/fusefs/
H A Dgetattr.cc51 out.body.entry.attr.mode = mode;
53 out.body.entry.attr.nlink = 1;
56 out.body.entry.attr.size = size;
84 out.body.entry.attr.mode = S_IFREG | 0644;
95 SET_OUT_HEADER_LEN(out, attr);
96 out.body.attr.attr_valid = UINT64_MAX;
97 out.body.attr.attr.ino = ino; // Must match nodeid
98 out.body.attr.attr
[all...]
H A Ddefault_permissions_privileged.cc81 SET_OUT_HEADER_LEN(out, attr);
82 out.body.attr.attr.ino = ino; // Must match nodeid
83 out.body.attr.attr.mode = mode;
84 out.body.attr.attr.size = 0;
85 out.body.attr.attr.uid = uid;
86 out.body.attr
[all...]
/freebsd-current/contrib/ncurses/menu/
H A Dm_attribs.c53 MENU_EXPORT(int) NCURSES_API set_menu_ ## name (MENU* menu, chtype attr) \
55 T((T_CALLED("set_menu_" #name "(%p,%s)"), (void *) menu, _traceattr(attr))); \
56 if (!(attr==A_NORMAL || (attr & A_ATTRIBUTES)==attr))\
58 if (menu && ( menu -> name != attr))\
60 (menu -> name) = attr;\
63 Normalize_Menu( menu ) -> name = attr;\
77 | Function : int set_menu_fore(MENU *menu, chtype attr)
103 | Function : int set_menu_back(MENU *menu, chtype attr)
[all...]
/freebsd-current/sys/compat/linuxkpi/common/include/net/
H A Dnetlink.h39 nla_put(struct sk_buff *skb, int attr, size_t len, void *data) argument
47 nla_put_u16(struct sk_buff *skb, int attr, uint32_t val) argument
50 return (nla_put(skb, attr, sizeof(uint32_t), &val));
/freebsd-current/contrib/ncurses/form/
H A Dfld_attr.c43 FORM_IMPEXP int NCURSES_API set_field_ ## name (FIELD * field, chtype attr)\
46 T((T_CALLED("set_field_" #name "(%p,%s)"), (void *)field, _traceattr(attr)));\
47 if ( attr==A_NORMAL || ((attr & A_ATTRIBUTES)==attr) )\
52 if ((field -> name) != attr)\
54 field -> name = attr;\
76 | Function : int set_field_fore(FIELD *field, chtype attr)
99 | Function : int set_field_back(FIELD *field, chtype attr)
/freebsd-current/contrib/ntp/libntp/lib/isc/pthreads/
H A Dthread.c35 pthread_attr_t attr; local
39 pthread_attr_init(&attr);
43 ret = pthread_attr_getstacksize(&attr, &stacksize);
48 ret = pthread_attr_setstacksize(&attr, THREAD_MINSTACKSIZE);
55 ret = pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM);
60 ret = pthread_create(thread, &attr, func, arg);
64 pthread_attr_destroy(&attr);
/freebsd-current/sys/ofed/drivers/infiniband/core/
H A Dib_sysfs.c71 struct attribute attr; member in struct:port_attribute
84 struct port_attribute attr; member in struct:port_table_attribute
91 struct attribute attr; member in struct:hw_stats_attribute
93 struct attribute *attr, char *buf);
95 struct attribute *attr,
103 struct attribute *attr, char *buf)
106 container_of(attr, struct port_attribute, attr);
116 struct attribute *attr,
120 container_of(attr, struc
102 port_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) argument
115 port_attr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t count) argument
133 gid_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) argument
154 struct ib_port_attr attr; local
178 struct ib_port_attr attr; local
192 struct ib_port_attr attr; local
205 struct ib_port_attr attr; local
218 struct ib_port_attr attr; local
231 struct ib_port_attr attr; local
244 struct ib_port_attr attr; local
319 struct ib_port_attr attr; local
380 _show_port_gid_attr(struct ib_port *p, struct port_attribute *attr, char *buf, size_t (*print)(struct ib_gid_attr *gid_attr, char *buf)) argument
405 show_port_gid(struct ib_port *p, struct port_attribute *attr, char *buf) argument
420 show_port_gid_attr_ndev(struct ib_port *p, struct port_attribute *attr, char *buf) argument
426 show_port_gid_attr_gid_type(struct ib_port *p, struct port_attribute *attr, char *buf) argument
433 show_port_pkey(struct ib_port *p, struct port_attribute *attr, char *buf) argument
466 get_perf_mad(struct ib_device *dev, int port_num, __be16 attr, void *data, int offset, size_t size) argument
512 show_pma_counter(struct ib_port *p, struct port_attribute *attr, char *buf) argument
813 show_hw_stats(struct kobject *kobj, struct attribute *attr, char *buf) argument
843 show_stats_lifespan(struct kobject *kobj, struct attribute *attr, char *buf) argument
870 set_stats_lifespan(struct kobject *kobj, struct attribute *attr, const char *buf, size_t count) argument
907 struct attribute **attr; local
1033 struct ib_port_attr attr; local
1198 show_node_type(struct device *device, struct device_attribute *attr, char *buf) argument
1226 show_node_guid(struct device *device, struct device_attribute *attr, char *buf) argument
1238 show_node_desc(struct device *device, struct device_attribute *attr, char *buf) argument
1246 set_node_desc(struct device *device, struct device_attribute *attr, const char *buf, size_t count) argument
1265 show_fw_ver(struct device *device, struct device_attribute *attr, char *buf) argument
[all...]
/freebsd-current/contrib/processor-trace/include/
H A Dpt_compiler.h35 # define __has_attribute(attr) 0
/freebsd-current/sys/contrib/openzfs/lib/libspl/include/sys/
H A Dstack.h37 pthread_attr_t attr; local
40 rc = pthread_getattr_np(pthread_self(), &attr);
44 rc = pthread_attr_getstack(&attr, &sp->ss_sp, &sp->ss_size);
48 pthread_attr_destroy(&attr);
/freebsd-current/sys/compat/linuxkpi/common/include/linux/
H A Dcc_platform.h14 cc_platform_has(enum cc_attr attr __unused)
/freebsd-current/crypto/openssl/crypto/x509/
H A Dx509_att.c75 X509_ATTRIBUTE *attr)
92 if ((new_attr = X509_ATTRIBUTE_dup(attr)) == NULL)
109 X509_ATTRIBUTE *attr)
111 if (x == NULL || attr == NULL) {
115 if (*x != NULL && X509at_get_attr_by_OBJ(*x, attr->object, -1) != -1) {
120 return ossl_x509at_add1_attr(x, attr);
129 X509_ATTRIBUTE *attr; local
132 attr = X509_ATTRIBUTE_create_by_OBJ(NULL, obj, type, bytes, len);
133 if (attr == NULL)
135 ret = ossl_x509at_add1_attr(x, attr);
163 X509_ATTRIBUTE *attr; local
197 X509_ATTRIBUTE *attr; local
214 X509_ATTRIBUTE *attr; local
247 X509_ATTRIBUTE *attr = sk_X509_ATTRIBUTE_value(x, i); local
257 X509_ATTRIBUTE_create_by_NID(X509_ATTRIBUTE **attr, int nid, int atrtype, const void *data, int len) argument
275 X509_ATTRIBUTE_create_by_OBJ(X509_ATTRIBUTE **attr, const ASN1_OBJECT *obj, int atrtype, const void *data, int len) argument
304 X509_ATTRIBUTE_create_by_txt(X509_ATTRIBUTE **attr, const char *atrname, int type, const unsigned char *bytes, int len) argument
323 X509_ATTRIBUTE_set1_object(X509_ATTRIBUTE *attr, const ASN1_OBJECT *obj) argument
332 X509_ATTRIBUTE_set1_data(X509_ATTRIBUTE *attr, int attrtype, const void *data, int len) argument
383 X509_ATTRIBUTE_count(const X509_ATTRIBUTE *attr) argument
390 X509_ATTRIBUTE_get0_object(X509_ATTRIBUTE *attr) argument
397 X509_ATTRIBUTE_get0_data(X509_ATTRIBUTE *attr, int idx, int atrtype, void *data) argument
413 X509_ATTRIBUTE_get0_type(X509_ATTRIBUTE *attr, int idx) argument
[all...]
/freebsd-current/tests/sys/mqueue/
H A Dmqtest2.c28 struct mq_attr attr; local
37 attr.mq_maxmsg = 5;
38 attr.mq_msgsize = 128;
39 mq = mq_open(MQNAME, O_CREAT | O_RDWR | O_EXCL, 0666, &attr);
42 status = mq_getattr(mq, &attr);
58 buf = malloc(attr.mq_msgsize);
61 status = mq_receive(mq, buf, attr.mq_msgsize, &prio);
64 for (i = 0; i < attr.mq_msgsize; ++i)
82 buf = malloc(attr.mq_msgsize);
84 for (i = 0; i < attr
[all...]

Completed in 354 milliseconds

1234567891011>>