/freebsd-9.3-release/sys/gnu/fs/xfs/FreeBSD/ |
H A D | xfs_cred.h | 43 #define capable(cap) (1) 44 #define capable_cred(cr, cap) (1)
|
/freebsd-9.3-release/sys/opencrypto/ |
H A D | crypto.c | 177 static int crypto_invoke(struct cryptocap *cap, struct cryptop *crp, int hint); 314 driver_suitable(const struct cryptocap *cap, const struct cryptoini *cri) argument 320 if (cap->cc_alg[cr->cri_alg] == 0) 339 struct cryptocap *cap, *best; local 354 cap = &crypto_drivers[hid]; 360 if (cap->cc_dev == NULL || 361 (cap->cc_flags & CRYPTOCAP_F_CLEANUP) || 362 (cap->cc_flags & match) == 0) 366 if (driver_suitable(cap, cri)) { 368 cap 391 struct cryptocap *cap; local 433 crypto_remove(struct cryptocap *cap) argument 448 struct cryptocap *cap; local 578 struct cryptocap *cap = crypto_checkdriver(hid); local 588 struct cryptocap *cap = crypto_checkdriver(hid); local 599 struct cryptocap *cap; local 636 struct cryptocap *cap; local 670 driver_finis(struct cryptocap *cap) argument 699 struct cryptocap *cap; local 735 struct cryptocap *cap; local 757 struct cryptocap *cap; local 783 struct cryptocap *cap; local 850 kdriver_suitable(const struct cryptocap *cap, const struct cryptkop *krp) argument 868 struct cryptocap *cap, *best, *blocked; local 918 struct cryptocap *cap = NULL; local 1005 crypto_invoke(struct cryptocap *cap, struct cryptop *crp, int hint) argument 1175 struct cryptocap *cap; local 1203 const struct cryptocap *cap = &crypto_drivers[hid]; local 1244 struct cryptocap *cap; local 1465 const struct cryptocap *cap = &crypto_drivers[hid]; local [all...] |
/freebsd-9.3-release/crypto/openssl/crypto/pkcs7/ |
H A D | pk7_attr.c | 70 STACK_OF(X509_ALGOR) *cap) 75 len = i2d_ASN1_SET_OF_X509_ALGOR(cap, NULL, i2d_X509_ALGOR, 83 i2d_ASN1_SET_OF_X509_ALGOR(cap, &p, i2d_X509_ALGOR, V_ASN1_SEQUENCE, 100 ASN1_TYPE *cap; local 103 cap = PKCS7_get_signed_attribute(si, NID_SMIMECapabilities); 104 if (!cap || (cap->type != V_ASN1_SEQUENCE)) 106 p = cap->value.sequence->data; 108 cap->value.sequence->length, 69 PKCS7_add_attrib_smimecap(PKCS7_SIGNER_INFO *si, STACK_OF(X509_ALGOR) *cap) argument
|
/freebsd-9.3-release/usr.sbin/pciconf/ |
H A D | Makefile | 5 SRCS= pciconf.c cap.c err.c
|
H A D | cap.c | 53 uint16_t cap, status; local 55 cap = read_config(fd, &p->pc_sel, ptr + PCIR_POWER_CAP, 2); 58 cap & PCIM_PCAP_SPEC, 59 cap & PCIM_PCAP_D1SUPP ? " D1" : "", 60 cap & PCIM_PCAP_D2SUPP ? " D2" : "", 310 printf(" Intel cap %d version %d", version >> 4, version & 0xf); 413 uint32_t cap; local 454 cap = read_config(fd, &p->pc_sel, ptr + PCIER_DEVICE_CAP, 4); 458 MAX_PAYLOAD(cap & PCIEM_CAP_MAX_PAYLOAD)); 459 if ((cap 512 uint8_t cap; local 525 uint8_t ptr, cap; local 759 uint8_t ptr, cap; local [all...] |
/freebsd-9.3-release/lib/libc/rpc/ |
H A D | pmap_rmt.c | 125 xdr_rmtcall_args(xdrs, cap) 127 struct rmtcallargs *cap; 132 assert(cap != NULL); 134 if (xdr_u_long(xdrs, &(cap->prog)) && 135 xdr_u_long(xdrs, &(cap->vers)) && 136 xdr_u_long(xdrs, &(cap->proc))) { 138 if (! xdr_u_long(xdrs, &(cap->arglen))) 141 if (! (*(cap->xdr_args))(xdrs, cap->args_ptr)) 144 cap [all...] |
/freebsd-9.3-release/contrib/wpa/src/ap/ |
H A D | ieee802_11_ht.c | 30 struct ieee80211_ht_capabilities *cap; local 37 *pos++ = sizeof(*cap); 39 cap = (struct ieee80211_ht_capabilities *) pos; 40 os_memset(cap, 0, sizeof(*cap)); 41 cap->ht_capabilities_info = host_to_le16(hapd->iconf->ht_capab); 42 cap->a_mpdu_params = hapd->iface->current_mode->a_mpdu_params; 43 os_memcpy(cap->supported_mcs_set, hapd->iface->current_mode->mcs_set, 50 pos += sizeof(*cap); 250 u16 cap; local [all...] |
/freebsd-9.3-release/usr.bin/tput/ |
H A D | tput.c | 133 process(const char *cap, char *str, char **argv) argument 172 warnx(erresc, *cp, cap); 184 errx(2, errfew, 1, cap); 191 errx(2, errfew, 2, cap); 195 errx(2, errfew, 2, cap); 202 errx(2, errmany, arg_need, cap);
|
/freebsd-9.3-release/lib/libutil/ |
H A D | login_cap.c | 360 login_getcapstr(login_cap_t *lc, const char *cap, const char *def, const char *error) argument 365 if (lc == NULL || cap == NULL || lc->lc_cap == NULL || *cap == '\0') 368 if ((ret = cgetstr(lc->lc_cap, cap, &res)) == -1) 382 login_getcaplist(login_cap_t *lc, const char *cap, const char *chars) argument 388 if ((lstring = login_getcapstr(lc, cap, NULL, NULL)) != NULL) 396 * From the login_cap_t <lc>, get the capability <cap> which is 403 login_getpath(login_cap_t *lc, const char *cap, const char *error) argument 409 str = login_getcapstr(lc, cap, NULL, NULL); 528 * From the login_cap_t <lc>, get the capability <cap>, whic 535 login_getcaptime(login_cap_t *lc, const char *cap, rlim_t def, rlim_t error) argument 626 login_getcapnum(login_cap_t *lc, const char *cap, rlim_t def, rlim_t error) argument 678 login_getcapsize(login_cap_t *lc, const char *cap, rlim_t def, rlim_t error) argument 751 login_getcapbool(login_cap_t *lc, const char *cap, int def) argument [all...] |
/freebsd-9.3-release/sys/dev/ata/ |
H A D | atapi-tape.c | 213 if (stp->cap.lock) 231 if (stp->cap.ctl && (stp->flags & F_DATA_WRITTEN)) 243 if (stp->cap.lock && count_dev(cdev) == 1) 269 g->mt_comp = stp->cap.compress; 400 if (bp->bio_bcount > stp->blksize * stp->cap.ctl) { 403 bp->bio_bcount, stp->blksize * stp->cap.ctl); 478 &stp->cap, sizeof(stp->cap)) && 479 stp->cap.page_code == ATAPI_TAPE_CAP_PAGE) { 480 if (stp->cap [all...] |
H A D | atapi-cd.c | 659 if (cdp->cap.media & MST_READ_DVDROM) 666 if (cdp->cap.media & MST_READ_DVDROM) 673 if (cdp->cap.media & MST_READ_DVDROM) 1092 timeout = timeout / (cdp->cap.cur_write_speed / 177); 1127 if (cdp->cap.capabilities & MST_BURNPROOF) 1273 if (cdp->cap.capabilities & MST_BURNPROOF) 1545 if (cdp->cap.mechanism & MST_EJECT) { 1640 0, 0, 0, 0, sizeof(cdp->cap)>>8, sizeof(cdp->cap), 1646 if (!ata_atapicmd(dev, ccb, (caddr_t)&cdp->cap, sizeo [all...] |
/freebsd-9.3-release/contrib/tcpdump/ |
H A D | ieee802_11.h | 141 #define CAPABILITY_ESS(cap) ((cap) & 0x0001) 142 #define CAPABILITY_IBSS(cap) ((cap) & 0x0002) 143 #define CAPABILITY_CFP(cap) ((cap) & 0x0004) 144 #define CAPABILITY_CFP_REQ(cap) ((cap) & 0x0008) 145 #define CAPABILITY_PRIVACY(cap) ((cap) [all...] |
/freebsd-9.3-release/usr.bin/setchannel/ |
H A D | setchannel.c | 99 struct bktr_capture_area cap; local 243 memset(&cap, 0, sizeof(cap)); 244 cap.x_size = x_size; 245 cap.y_size = y_size; 246 if (ioctl(tfd, BT848_SCAPAREA, &cap) < 0) {
|
/freebsd-9.3-release/tools/regression/security/cap_test/ |
H A D | cap_test_fcntl.c | 82 { "file cap", cap_new(files[0].f_fd, rights) }, 83 { "socket cap", cap_new(files[1].f_fd, rights) }, 84 { "SHM cap", cap_new(files[2].f_fd, rights) }, 105 int cap; local 108 REQUIRE(cap = cap_new(f.f_fd, CAP_READ)); 112 CHECK_NOTCAPABLE(fcntl, cap, F_GETFL, 0);
|
/freebsd-9.3-release/contrib/ofed/libmlx4/src/ |
H A D | verbs.c | 410 if (attr->cap.max_send_wr > context->max_qp_wr || 411 attr->cap.max_recv_wr > context->max_qp_wr || 412 attr->cap.max_send_sge > context->max_sge || 413 attr->cap.max_recv_sge > context->max_sge) 416 if (attr->cap.max_inline_data) { 417 nsegs = num_inline_segs(attr->cap.max_inline_data, attr->qp_type); 436 if (attr->cap.max_inline_data > size) 460 mlx4_calc_sq_wqe_size(&attr->cap, attr->qp_type, qp); 467 qp->sq.wqe_cnt = align_queue_size(attr->cap.max_send_wr + qp->sq_spare_wqes); 468 qp->rq.wqe_cnt = align_queue_size(attr->cap [all...] |
/freebsd-9.3-release/sys/dev/acpica/ |
H A D | acpi_battery.c | 107 bst->cap != ACPI_BATT_UNKNOWN && bst->volt != ACPI_BATT_UNKNOWN); 204 bst[i].cap = (bst[i].cap * bif->dvol) / 1000; 217 bi[i].cap = (100 * bst[i].cap) / bif->lfcap; 224 if (bi[i].cap > 100) 225 bi[i].cap = 100; 255 bi[i].min = (60 * bst[i].cap) / valid_rate; 261 if (bi[i].cap != -1) 262 total_cap += bi[i].cap; [all...] |
H A D | acpiio.h | 45 int cap; /* percent */ member in struct:acpi_battinfo 73 uint32_t cap; /* Remaining Capacity */ member in struct:acpi_bst
|
/freebsd-9.3-release/sys/gnu/fs/xfs/ |
H A D | xfs_cap.c | 110 void *cap, 117 posix_cap_xattr *xattr_cap = cap; 160 void *cap, 163 posix_cap_xattr *xattr_cap = cap; 167 if (!cap) 108 xfs_cap_vget( xfs_vnode_t *vp, void *cap, size_t size) argument 158 xfs_cap_vset( xfs_vnode_t *vp, void *cap, size_t size) argument
|
/freebsd-9.3-release/contrib/ncurses/ncurses/tinfo/ |
H A D | MKcaptab.sh | 49 ./make_hash 3 cap $OPT1 <$DATA 125 return termcap ? build_names(cap) : build_names(info) ; 135 return termcap ? build_alias(cap) : build_alias(info) ;
|
/freebsd-9.3-release/crypto/heimdal/lib/roken/ |
H A D | getcap.c | 89 char *ROKEN_LIB_FUNCTION cgetcap(char *buf, const char *cap, int type); 97 int ROKEN_LIB_FUNCTION cgetstr(char *buf, const char *cap, char **str); 98 int ROKEN_LIB_FUNCTION cgetustr(char *buf, const char *cap, char **str); 99 int ROKEN_LIB_FUNCTION cgetnum(char *buf, const char *cap, long *num); 147 * Cgetcap searches the capability record buf for the capability cap with 148 * type `type'. A pointer to the value of cap is returned on success, NULL 151 * Specifying a type of ':' means that nothing should follow cap (:cap:). 153 * cap is found. 155 * If (cap, ' 159 cgetcap(char *buf, const char *cap, int type) argument 236 getent(char **cap, size_t *len, char **db_array, int fd, const char *name, int depth, char *nfield) argument 853 cgetstr(char *buf, const char *cap, char **str) argument 977 cgetustr(char *buf, const char *cap, char **str) argument 1046 cgetnum(char *buf, const char *cap, long *num) argument [all...] |
/freebsd-9.3-release/contrib/ncurses/ncurses/tty/ |
H A D | lib_mvcur.c | 172 static int normalized_cost(const char *const cap, int affcnt); 182 trace_cost_of(const char *capname, const char *cap, int affcnt) argument 184 int result = _nc_msec_cost(cap, affcnt); 186 ("CostOf %s %d %s", capname, result, _nc_visbuf(cap))); 189 #define CostOf(cap,affcnt) trace_cost_of(#cap,cap,affcnt); 192 trace_normalized_cost(const char *capname, const char *cap, int affcnt) argument 194 int result = normalized_cost(cap, affcnt); 196 ("NormalizedCost %s %d %s", capname, result, _nc_visbuf(cap))); 209 _nc_msec_cost(const char *const cap, int affcnt) argument 245 normalized_cost(const char *const cap, int affcnt) argument [all...] |
/freebsd-9.3-release/sys/netncp/ |
H A D | ncp_conn.c | 211 ncp_conn_alloc(struct ncp_conn_args *cap, struct thread *td, struct ucred *cred, argument 218 if (cap->saddr.sa_family != AF_INET && cap->saddr.sa_family != AF_IPX) 224 if (cap->owner != NCP_DEFAULT_OWNER && !isroot) 226 if (cap->group != NCP_DEFAULT_GROUP && 227 !groupmember(cap->group, cred) && !isroot) 229 if (cap->owner != NCP_DEFAULT_OWNER) { 232 owner->cr_uid = cap->owner; 244 ncp->li = *cap; 245 ncp->nc_group = (cap [all...] |
/freebsd-9.3-release/contrib/ofed/libibverbs/src/ |
H A D | marshall.c | 70 dst->cap.max_send_wr = src->max_send_wr; 71 dst->cap.max_recv_wr = src->max_recv_wr; 72 dst->cap.max_send_sge = src->max_send_sge; 73 dst->cap.max_recv_sge = src->max_recv_sge; 74 dst->cap.max_inline_data = src->max_inline_data;
|
/freebsd-9.3-release/sys/ofed/drivers/infiniband/core/ |
H A D | uverbs_marshall.c | 64 dst->max_send_wr = src->cap.max_send_wr; 65 dst->max_recv_wr = src->cap.max_recv_wr; 66 dst->max_send_sge = src->cap.max_send_sge; 67 dst->max_recv_sge = src->cap.max_recv_sge; 68 dst->max_inline_data = src->cap.max_inline_data;
|
/freebsd-9.3-release/crypto/openssl/demos/tunala/ |
H A D | buffer.c | 79 static unsigned int buffer_tobuffer(buffer_t * to, buffer_t * from, int cap) 82 if ((int)tomove > cap) 83 tomove = cap;
|