attrs
wcval->attributes = attrs & ~__COLOR;
getcchar(const cchar_t *wcval, wchar_t *wch, attr_t *attrs,
if (attrs == NULL || color_pair == NULL)
*attrs = wcval->attributes;
setcchar(cchar_t *wcval, const wchar_t *wch, const attr_t attrs,
int attrnamespace, size_t *attrsize, uint8_t *attrs,
if (attrs)
uio = rump_pub_uio_setup(attrs, *resid, 0, RUMPUIO_READ);
int attrns, size_t *attrsize, uint8_t *attrs, size_t *resid, int flag,
if (attrs != NULL) {
(void)memcpy(attrs + outlen + 1,
*(attrs + outlen) = (uint8_t)attrlen;
(void)memcpy(attrs + outlen, np + i, attrlen + 1);
unsigned int attrs;
attrs = 0;
attrs |= GETATTR_UID|GETATTR_GID|GETATTR_MODE;
attrs |= GETATTR_TYPE|GETATTR_UID|GETATTR_GID;
attrs |= GETATTR_UID|GETATTR_GID|GETATTR_MODE;
error = getattr(xc, fileid, &ova, attrs);
uintptr_t attrs = 0;
attrs |= (PGA_REFERENCED|PGA_MODIFIED);
attrs |= PGA_REFERENCED;
attrs = (md->pvh_listx |= attrs);
if ((attrs & PGA_REFERENCED) == 0)
else if ((attrs & PGA_MODIFIED) == 0)
uintptr_t const attrs = md->pvh_listx & PGA_ATTRS;
md->pvh_listx = (uintptr_t)newpv | attrs;
GetVariable(efi_char *name, struct uuid *vendor, uint32_t *attrs,
SetVariable(efi_char *name, struct uuid *vendor, uint32_t attrs, u_long datasz,
return &uvm_physseg_get_pmseg(bank)->attrs[pg];
uvm_physseg_get_pmseg(bank)->attrs = attr;
char *attrs;
uint8_t attrs;
#define pp_attrs pp_u.s.attrs
pmap_pp_attrs_to_ept(uint8_t attrs)
if (attrs & PP_ATTRS_D)
if (attrs & PP_ATTRS_A)
if (attrs & PP_ATTRS_W)
pmap_pp_attrs_to_pte(uint8_t attrs)
if (attrs & PP_ATTRS_D)
if (attrs & PP_ATTRS_A)
if (attrs & PP_ATTRS_W)
(scr->scr_attrs[pos] != vdp->attrs[ppos])) {
vdp->attrs[ppos] = scr->scr_attrs[pos];
vdp->attrs[i] = scr->scr_attrs[i];
(scr->scr_attrs[pos] != vdp->attrs[ppos])) {
vdp->attrs[ppos] = scr->scr_attrs[pos];
vdp->attrs[i] = fillattr;
if ((vdp->chars == NULL) || (vdp->attrs == NULL)) {
if ((vdp->chars[pos] != c) || (vdp->attrs[pos] != attr)) {
vdp->attrs[pos] = attr;
vdp->attrs[i] = -1;
vdp->attrs = NULL;
if (vdp->attrs != NULL)
free(vdp->attrs, M_DEVBUF);
vdp->attrs = malloc(size * sizeof(long), M_DEVBUF,
vdp->attrs[boffset] = attrptr[offset];
vdp->attrs[vdp->cursor_offset] = 0xffffffff;
(vdp->attrs[boffset] != attrptr[offset])) {
vdp->attrs[boffset] = attrptr[offset];
long *attrs;
handle_posix_spawn_attrs(struct posix_spawnattr *attrs, struct proc *parent)
if (attrs == NULL)
if (attrs->sa_flags & POSIX_SPAWN_SETPGROUP) {
pid_t pgrp = attrs->sa_pgroup;
if (attrs->sa_flags & POSIX_SPAWN_SETSCHEDULER)
error = do_sched_setparam(p->p_pid, 0, attrs->sa_schedpolicy,
&attrs->sa_schedparam);
else if (attrs->sa_flags & POSIX_SPAWN_SETSCHEDPARAM) {
SCHED_NONE, &attrs->sa_schedparam);
if (attrs->sa_flags & POSIX_SPAWN_RESETIDS) {
if (attrs->sa_flags & POSIX_SPAWN_SETSIGMASK) {
error = sigprocmask1(l, SIG_SETMASK, &attrs->sa_sigmask, NULL);
if (attrs->sa_flags & POSIX_SPAWN_SETSIGDEF) {
if (sigismember(&attrs->sa_sigdefault, i))
struct posix_spawnattr *attrs = spawn_data->sed_attrs;
if ((!attrs || (attrs->sa_flags
error = handle_posix_spawn_attrs(attrs, spawn_data->sed_parent);
struct vattr *attrs;
attrs = malloc(sizeof(struct vattr), M_TEMP, M_WAITOK);
VOP_GETATTR(vp, attrs, l->l_cred);
kauth_cred_setuid(cr, attrs->va_uid);
kauth_cred_seteuid(cr, attrs->va_uid);
kauth_cred_setsvuid(cr, attrs->va_uid);
kauth_cred_setgid(cr, attrs->va_gid);
kauth_cred_setegid(cr, attrs->va_gid);
kauth_cred_setsvgid(cr, attrs->va_gid);
free(attrs, M_TEMP);
#define CFDRIVER_DECL(name, class, attrs) \
.cd_attrs = attrs, \
u_long attrs = 0;
attrs |= VM_PAGEMD_MODIFIED;
attrs |= VM_PAGEMD_REFERENCED;
if (attrs != 0)
pmap_page_set_attributes(mdpg, attrs);
check_list(buf, __arraycount(attrs));
check_list(buf, __arraycount(attrs));
static const char *attrs[] = { E, T };
for (size_t i = 0; i < __arraycount(attrs); i++) {
if (l != strlen(attrs[i]))
strlen(attrs[i]));
if (strncmp(&buf[p], attrs[i], l) != 0)
&buf[p], attrs[i]);
ATF_TC_FSAPPLY_RO(attrs, "can query but not change attributes", filegen);
ATF_TP_FSAPPLY_RO(attrs);
ATF_TC_FSAPPLY(attrs, "check setting attributes works");
ATF_TP_FSAPPLY(attrs);
attr_t attrs;
retval = attr_get(&attrs, &colours, NULL);
report_int(attrs);
ARG_INT(attrs);
report_return(setcchar(&wcval, wch, attrs, color_pair, NULL));
attr_t attrs;
report_return(getcchar(wcval, wch, &attrs, &color_pair, NULL));
report_int(attrs);
ARG_INT(attrs);
report_return(slk_attr_off(attrs, NULL));
ARG_INT(attrs);
report_return(slk_attr_on(attrs, NULL));
ARG_INT(attrs);
report_return(slk_attr_set(attrs, color_pair_number, NULL));
defdev(struct devbase *dev, struct loclist *loclist, struct attrlist *attrs,
if (has_errobj(attrs, &errattr))
attrs = attrlist_cons(attrs, getattr(dev->d_name));
for (al = attrs; al != NULL; al = al->al_next)
dev->d_attrs = attrs;
for (al = attrs; al != NULL; al = al->al_next) {
attrlist_destroyall(attrs);
struct attrlist *attrs)
if (has_errobj(attrs, &errattr))
for (al = attrs; al != NULL; al = al->al_next) {
deva->d_attrs = attrs;
attrlist_destroyall(attrs);
attr_t * attrs;
service_list[j].attrs, service_list[j].nattr))
attribute *old_attrs = list->attrs;
list->attrs = block_zero_alloc(
list->cap * sizeof(*list->attrs), "attribute[]");
memcpy(list->attrs, old_attrs,
list->len * sizeof(*list->attrs));
list->attrs[list->len++] = attr;
attribute_list_add(dst, src.attrs[i]);
type_attributes_string(type_attributes attrs)
attrs.used ? " used" : "",
attrs.noreturn ? " noreturn" : "",
attrs.bit_width == 128 ? " 128bit" :
attrs.bit_width == 64 ? " 64bit" : "");
const attribute *attr = list->attrs + i;
dcs_add_type_attributes(type_attributes attrs)
if (attrs.used)
if (attrs.noreturn)
if (attrs.bit_width == 128)
if (attrs.bit_width == 64)
attribute *attrs;
attributes_contain(const attribute_list *attrs, const char *str)
for (size_t i = 0, n = attrs->len; i < n; i++) {
const attribute *attr = attrs->attrs + i;