| /netbsd-src/external/bsd/openldap/dist/contrib/slapd-modules/nssov/ |
| H A D | group.c | 75 static int mkfilter_group_bymember(nssov_group_cbp *cbp,struct berval *buf) in mkfilter_group_bymember() argument 79 nssov_uid2dn(cbp->op,cbp->ni,&cbp->user,&dn); in mkfilter_group_bymember() 81 …if (cbp->user.bv_len + cbp->mi->mi_filter.bv_len + cbp->mi->mi_attrs[UID_KEY].an_desc->ad_cname.bv… in mkfilter_group_bymember() 85 cbp->mi->mi_filter.bv_val, cbp->mi->mi_attrs[UID_KEY].an_desc->ad_cname.bv_val, in mkfilter_group_bymember() 86 cbp->user.bv_val ); in mkfilter_group_bymember() 88 …if (cbp->user.bv_len + cbp->mi->mi_filter.bv_len + cbp->mi->mi_attrs[UID_KEY].an_desc->ad_cname.bv… in mkfilter_group_bymember() 89 dn.bv_len + cbp->mi->mi_attrs[MEM_KEY].an_desc->ad_cname.bv_len + 12 > buf->bv_len ) in mkfilter_group_bymember() 92 cbp->mi->mi_filter.bv_val, in mkfilter_group_bymember() 93 cbp->mi->mi_attrs[UID_KEY].an_desc->ad_cname.bv_val, cbp->user.bv_val, in mkfilter_group_bymember() 94 cbp->mi->mi_attrs[MEM_KEY].an_desc->ad_cname.bv_val, dn.bv_val ); in mkfilter_group_bymember() [all …]
|
| H A D | network.c | 53 static int write_network(nssov_network_cbp *cbp,Entry *entry) in write_network() argument 61 nssov_find_rdnval( &entry->e_nname, cbp->mi->mi_attrs[0].an_desc, &name); in write_network() 63 a = attr_find( entry->e_attrs, cbp->mi->mi_attrs[0].an_desc ); in write_network() 67 entry->e_name.bv_val,cbp->mi->mi_attrs[0].an_desc->ad_cname.bv_val ); in write_network() 86 a = attr_find( entry->e_attrs, cbp->mi->mi_attrs[1].an_desc ); in write_network() 90 entry->e_name.bv_val, cbp->mi->mi_attrs[1].an_desc->ad_cname.bv_val ); in write_network() 96 WRITE_INT32(cbp->fp,NSLCD_RESULT_BEGIN); in write_network() 97 WRITE_BERVAL(cbp->fp,&name); in write_network() 99 WRITE_INT32(cbp->fp,numname-1); in write_network() 101 WRITE_INT32(cbp->fp,numname); in write_network() [all …]
|
| H A D | host.c | 53 static int write_host(nssov_host_cbp *cbp,Entry *entry) in write_host() argument 61 nssov_find_rdnval( &entry->e_nname, cbp->mi->mi_attrs[0].an_desc, &name ); in write_host() 63 a = attr_find( entry->e_attrs, cbp->mi->mi_attrs[0].an_desc ); in write_host() 67 entry->e_name.bv_val, cbp->mi->mi_attrs[0].an_desc->ad_cname.bv_val ); in write_host() 86 a = attr_find( entry->e_attrs, cbp->mi->mi_attrs[1].an_desc ); in write_host() 90 entry->e_name.bv_val, cbp->mi->mi_attrs[1].an_desc->ad_cname.bv_val ); in write_host() 96 WRITE_INT32(cbp->fp,NSLCD_RESULT_BEGIN); in write_host() 97 WRITE_BERVAL(cbp->fp,&name); in write_host() 99 WRITE_INT32(cbp->fp,numname-1); in write_host() 101 WRITE_INT32(cbp->fp,numname); in write_host() [all …]
|
| H A D | service.c | 115 static int write_service(nssov_service_cbp *cbp,Entry *entry) in write_service() argument 126 nssov_find_rdnval( &entry->e_nname, cbp->mi->mi_attrs[0].an_desc, &name ); in write_service() 128 a = attr_find( entry->e_attrs, cbp->mi->mi_attrs[0].an_desc ); in write_service() 132 entry->e_name.bv_val, cbp->mi->mi_attrs[0].an_desc->ad_cname.bv_val ); in write_service() 151 a = attr_find( entry->e_attrs, cbp->mi->mi_attrs[1].an_desc ); in write_service() 155 entry->e_name.bv_val, cbp->mi->mi_attrs[1].an_desc->ad_cname.bv_val ); in write_service() 159 entry->e_name.bv_val, cbp->mi->mi_attrs[1].an_desc->ad_cname.bv_val ); in write_service() 165 entry->e_name.bv_val, cbp->mi->mi_attrs[1].an_desc->ad_cname.bv_val ); in write_service() 169 if (BER_BVISNULL(&cbp->prot)) in write_service() 171 a = attr_find( entry->e_attrs, cbp->mi->mi_attrs[2].an_desc ); in write_service() [all …]
|
| H A D | rpc.c | 55 static int write_rpc(nssov_rpc_cbp *cbp,Entry *entry) in write_rpc() argument 64 nssov_find_rdnval( &entry->e_nname, cbp->mi->mi_attrs[0].an_desc, &name ); in write_rpc() 66 a = attr_find( entry->e_attrs, cbp->mi->mi_attrs[0].an_desc ); in write_rpc() 70 entry->e_name.bv_val, cbp->mi->mi_attrs[0].an_desc->ad_cname.bv_val ); in write_rpc() 89 a = attr_find( entry->e_attrs, cbp->mi->mi_attrs[1].an_desc ); in write_rpc() 93 entry->e_name.bv_val, cbp->mi->mi_attrs[1].an_desc->ad_cname.bv_val ); in write_rpc() 97 entry->e_name.bv_val, cbp->mi->mi_attrs[1].an_desc->ad_cname.bv_val ); in write_rpc() 103 entry->e_name.bv_val, cbp->mi->mi_attrs[1].an_desc->ad_cname.bv_val ); in write_rpc() 107 WRITE_INT32(cbp->fp,NSLCD_RESULT_BEGIN); in write_rpc() 108 WRITE_BERVAL(cbp->fp,&name); in write_rpc() [all …]
|
| H A D | protocol.c | 53 static int write_protocol(nssov_protocol_cbp *cbp,Entry *entry) in write_protocol() argument 62 nssov_find_rdnval( &entry->e_nname, cbp->mi->mi_attrs[0].an_desc, &name ); in write_protocol() 64 a = attr_find( entry->e_attrs, cbp->mi->mi_attrs[0].an_desc ); in write_protocol() 68 entry->e_name.bv_val, cbp->mi->mi_attrs[0].an_desc->ad_cname.bv_val ); in write_protocol() 87 a = attr_find( entry->e_attrs, cbp->mi->mi_attrs[1].an_desc ); in write_protocol() 91 entry->e_name.bv_val, cbp->mi->mi_attrs[1].an_desc->ad_cname.bv_val ); in write_protocol() 95 entry->e_name.bv_val, cbp->mi->mi_attrs[1].an_desc->ad_cname.bv_val ); in write_protocol() 101 entry->e_name.bv_val, cbp->mi->mi_attrs[1].an_desc->ad_cname.bv_val ); in write_protocol() 105 WRITE_INT32(cbp->fp,NSLCD_RESULT_BEGIN); in write_protocol() 106 WRITE_BERVAL(cbp->fp,&name); in write_protocol() [all …]
|
| H A D | ether.c | 66 static int write_ether(nssov_ether_cbp *cbp,Entry *entry) in write_ether() argument 76 if (BER_BVISNULL(&cbp->name)) in write_ether() 78 a = attr_find(entry->e_attrs, cbp->mi->mi_attrs[0].an_desc); in write_ether() 82 entry->e_name.bv_val,cbp->mi->mi_attrs[0].an_desc->ad_cname.bv_val ); in write_ether() 90 names[0]=cbp->name; in write_ether() 94 if (BER_BVISNULL(&cbp->addr)) in write_ether() 96 a = attr_find(entry->e_attrs, cbp->mi->mi_attrs[1].an_desc); in write_ether() 100 entry->e_name.bv_val,cbp->mi->mi_attrs[1].an_desc->ad_cname.bv_val ); in write_ether() 109 ethers[0]=cbp->addr; in write_ether() 116 WRITE_INT32(cbp->fp,NSLCD_RESULT_BEGIN); in write_ether() [all …]
|
| H A D | passwd.c | 208 static int write_passwd(nssov_passwd_cbp *cbp,Entry *entry) in write_passwd() argument 224 if (BER_BVISNULL(&cbp->name)) in write_passwd() 226 a = attr_find(entry->e_attrs, cbp->mi->mi_attrs[UID_KEY].an_desc); in write_passwd() 230 entry->e_name.bv_val, cbp->mi->mi_attrs[UID_KEY].an_desc->ad_cname.bv_val ); in write_passwd() 238 names[0]=cbp->name; in write_passwd() 258 a = attr_find(entry->e_attrs, cbp->mi->mi_attrs[PWD_KEY].an_desc); in write_passwd() 265 if (BER_BVISNULL(&cbp->id)) in write_passwd() 267 a = attr_find(entry->e_attrs, cbp->mi->mi_attrs[UIDN_KEY].an_desc); in write_passwd() 271 entry->e_name.bv_val, cbp->mi->mi_attrs[UIDN_KEY].an_desc->ad_cname.bv_val ); in write_passwd() 279 uids[0] = cbp->id; in write_passwd() [all …]
|
| H A D | shadow.c | 121 a = attr_find(entry->e_attrs, cbp->mi->mi_attrs[key].an_desc); \ 129 entry->e_name.bv_val, cbp->mi->mi_attrs[key].an_desc->ad_cname.bv_val); \ 135 entry->e_name.bv_val, cbp->mi->mi_attrs[key].an_desc->ad_cname.bv_val); \ 141 a = attr_find(entry->e_attrs, cbp->mi->mi_attrs[key].an_desc); \ 149 entry->e_name.bv_val, cbp->mi->mi_attrs[key].an_desc->ad_cname.bv_val); \ 151 var=to_date(&a->a_vals[0],cbp->mi->mi_attrs[key].an_desc); \ 158 static int write_shadow(nssov_shadow_cbp *cbp,Entry *entry) in write_shadow() argument 175 if (BER_BVISNULL(&cbp->name)) in write_shadow() 177 a = attr_find(entry->e_attrs, cbp->mi->mi_attrs[UID_KEY].an_desc); in write_shadow() 181 entry->e_name.bv_val, cbp->mi->mi_attrs[UID_KEY].an_desc->ad_cname.bv_val ); in write_shadow() [all …]
|
| H A D | alias.c | 51 static int write_alias(nssov_alias_cbp *cbp,Entry *entry) in write_alias() argument 60 if (BER_BVISNULL(&cbp->name)) in write_alias() 62 a = attr_find(entry->e_attrs, cbp->mi->mi_attrs[0].an_desc); in write_alias() 66 entry->e_name.bv_val,cbp->mi->mi_attrs[0].an_desc->ad_cname.bv_val ); in write_alias() 74 names[0]=cbp->name; in write_alias() 78 a = attr_find(entry->e_attrs, cbp->mi->mi_attrs[1].an_desc); in write_alias() 88 WRITE_INT32(cbp->fp,NSLCD_RESULT_BEGIN); in write_alias() 89 WRITE_BERVAL(cbp->fp,&names[i]); in write_alias() 90 WRITE_BVARRAY(cbp->fp,members); in write_alias() 102 READ_STRING(fp,cbp.buf); [all …]
|
| H A D | netgroup.c | 154 static int write_netgroup(nssov_netgroup_cbp *cbp,Entry *entry) in write_netgroup() argument 161 a = attr_find(entry->e_attrs,cbp->mi->mi_attrs[1].an_desc); in write_netgroup() 166 if (write_netgroup_triple(cbp->fp, a->a_vals[i].bv_val)) in write_netgroup() 170 a = attr_find(entry->e_attrs,cbp->mi->mi_attrs[2].an_desc); in write_netgroup() 176 WRITE_INT32(cbp->fp,NSLCD_RESULT_BEGIN); in write_netgroup() 178 WRITE_INT32(cbp->fp,NSLCD_NETGROUP_TYPE_NETGROUP); in write_netgroup() 180 if (write_string_stripspace_len(cbp->fp,a->a_vals[i].bv_val,a->a_vals[i].bv_len)) in write_netgroup() 195 READ_STRING(fp,cbp.buf);, 196 cbp.name.bv_len = tmpint32; 197 cbp.name.bv_val = cbp.buf; [all …]
|
| /netbsd-src/games/gomoku/ |
| H A D | pickmove.c | 262 struct combostr *cbp = sortframes[color]; in scanframes() local 263 if (cbp == NULL) in scanframes() 266 if (four_in_a_row(color, cbp->c_vertex, cbp->c_dir)) in scanframes() 275 ecbp = cbp; in scanframes() 277 sp = &board[cbp->c_vertex]; in scanframes() 278 cp = &sp->s_fval[color][r = cbp->c_dir]; in scanframes() 297 makecombo2(cbp, sp, 0, cb.s); in scanframes() 328 makecombo2(cbp, sp, off, cb.s); in scanframes() 341 board[cbp->c_vertex].s_flags |= MFLAG << r; in scanframes() 342 } while ((cbp = cbp->c_next) != ecbp); in scanframes() [all …]
|
| H A D | makemove.c | 64 sortframes_remove(struct combostr *cbp) in sortframes_remove() argument 67 if (cbp->c_next == NULL) in sortframes_remove() 70 if (sortframes[BLACK] == cbp) in sortframes_remove() 71 sortframes[BLACK] = cbp->c_next; in sortframes_remove() 72 if (sortframes[WHITE] == cbp) in sortframes_remove() 73 sortframes[WHITE] = cbp->c_next; in sortframes_remove() 74 cbp->c_next->c_prev = cbp->c_prev; in sortframes_remove() 75 cbp->c_prev->c_next = cbp->c_next; in sortframes_remove() 127 struct combostr *cbp = &frames[fsp->s_frame[r]]; in makemove() local 128 sortframes_remove(cbp); in makemove() [all …]
|
| /netbsd-src/external/bsd/nvi/dist/common/ |
| H A D | cut.c | 75 CB *cbp; in cut() local 115 namecb: CBNAME(sp, cbp, name); in cut() 122 cbp = &sp->wp->dcb_store; in cut() 129 if (cbp == NULL) { in cut() 130 CALLOC_RET(sp, cbp, CB *, 1, sizeof(CB)); in cut() 131 cbp->name = name; in cut() 132 TAILQ_INIT(&cbp->textq); in cut() 133 LIST_INSERT_HEAD(&sp->wp->cutq, cbp, q); in cut() 135 text_lfree(&cbp->textq); in cut() 136 cbp->len = 0; in cut() [all …]
|
| H A D | put.c | 41 put(SCR *sp, CB *cbp, ARG_CHAR_T *namep, MARK *cp, MARK *rp, int append) in put() argument 51 if (cbp == NULL) { in put() 53 cbp = sp->wp->dcbp; in put() 54 if (cbp == NULL) { in put() 61 CBNAME(sp, cbp, name); in put() 62 if (cbp == NULL) { in put() 69 tp = TAILQ_FIRST(&cbp->textq); in put() 101 if (F_ISSET(cbp, CB_LMODE)) { in put() 189 ltp = TAILQ_LAST(&cbp->textq, _texth); in put()
|
| H A D | cut.h | 67 #define CBNAME(sp, cbp, nch) { \ argument 70 for (cbp = sp->wp->cutq.lh_first; \ 71 cbp != NULL; cbp = cbp->q.le_next) \ 72 if (cbp->name == L__name) \
|
| /netbsd-src/sys/dev/ata/ |
| H A D | ld_ataraid.c | 140 #define CBUF_PUT(cbp) pool_cache_put(sc->sc_cbufpool, (cbp)) argument 267 struct cbuf *cbp = obj; in cbufpool_ctor() local 271 buf_init(&cbp->cb_buf); in cbufpool_ctor() 280 struct cbuf *cbp = obj; in cbufpool_dtor() local 282 buf_destroy(&cbp->cb_buf); in cbufpool_dtor() 289 struct cbuf *cbp; in ld_ataraid_make_cbuf() local 291 cbp = CBUF_GET(); in ld_ataraid_make_cbuf() 292 if (cbp == NULL) in ld_ataraid_make_cbuf() 294 cbp->cb_buf.b_flags = bp->b_flags; in ld_ataraid_make_cbuf() 295 cbp->cb_buf.b_oflags = bp->b_oflags; in ld_ataraid_make_cbuf() [all …]
|
| /netbsd-src/sys/arch/sandpoint/stand/altboot/ |
| H A D | fxp.c | 193 struct fxp_cb_config *cbp = &store_cbc; in fxp_init() local 231 memcpy(cbp, fxp_cb_config_template, sizeof(fxp_cb_config_template)); in fxp_init() 236 cbp->cb_status = 0; in fxp_init() 237 cbp->cb_command = htole16(FXP_CB_COMMAND_CONFIG | in fxp_init() 239 cbp->link_addr = -1; /* (no) next command */ in fxp_init() 240 cbp->byte_count = 22; /* (22) bytes to config */ in fxp_init() 241 cbp->rx_fifo_limit = 8; /* rx fifo threshold (32 bytes) */ in fxp_init() 242 cbp->tx_fifo_limit = 0; /* tx fifo threshold (0 bytes) */ in fxp_init() 243 cbp->adaptive_ifs = 0; /* (no) adaptive interframe spacing */ in fxp_init() 244 cbp->rx_dma_bytecount = 0; /* (no) rx DMA max */ in fxp_init() [all …]
|
| /netbsd-src/external/bsd/nvi/dist/ex/ |
| H A D | ex_display.c | 93 CB *cbp; in bdisplay() local 101 LIST_FOREACH(cbp, &sp->wp->cutq, q) { in bdisplay() 102 if (ISDIGIT(cbp->name)) in bdisplay() 104 if (!TAILQ_EMPTY(&cbp->textq)) in bdisplay() 105 db(sp, cbp, NULL); in bdisplay() 110 LIST_FOREACH(cbp, &sp->wp->cutq, q) { in bdisplay() 111 if (!ISDIGIT(cbp->name)) in bdisplay() 113 if (!TAILQ_EMPTY(&cbp->textq)) in bdisplay() 114 db(sp, cbp, NULL); in bdisplay() 119 if ((cbp = sp->wp->dcbp) != NULL) in bdisplay() [all …]
|
| /netbsd-src/sys/dev/ic/ |
| H A D | i82557.c | 1675 struct fxp_cb_config *cbp; in fxp_init() local 1747 cbp = &sc->sc_control_data->fcd_configcb; in fxp_init() 1748 memset(cbp, 0, sizeof(struct fxp_cb_config)); in fxp_init() 1765 memcpy(cbp, fxp_cb_config_template, sizeof(fxp_cb_config_template)); in fxp_init() 1768 cbp->cb_status = 0; in fxp_init() 1769 cbp->cb_command = htole16(FXP_CB_COMMAND_CONFIG | in fxp_init() 1772 cbp->link_addr = 0xffffffff; /* (no) next command */ in fxp_init() 1774 cbp->byte_count = (sc->sc_flags & FXPF_EXT_RFA) ? in fxp_init() 1776 cbp->rx_fifo_limit = 8; /* rx fifo threshold (32 bytes) */ in fxp_init() 1777 cbp->tx_fifo_limit = 0; /* tx fifo threshold (0 bytes) */ in fxp_init() [all …]
|
| /netbsd-src/sys/dev/ |
| H A D | ccd.c | 156 #define CCD_PUTBUF(cbp) pool_cache_put(ccd_cache, cbp) argument 785 struct ccdbuf *cbp; in ccdstart() local 828 cbp = ccdbuffer(cs, bp, bn, addr, bcount, wait); in ccdstart() 829 KASSERT(cbp != NULL || wait == PR_NOWAIT); in ccdstart() 830 if (cbp == NULL) { in ccdstart() 831 while ((cbp = SIMPLEQ_FIRST(&cbufq)) != NULL) { in ccdstart() 833 CCD_PUTBUF(cbp); in ccdstart() 839 SIMPLEQ_INSERT_TAIL(&cbufq, cbp, cb_q); in ccdstart() 840 rcount = cbp in ccdstart() 876 struct ccdbuf *cbp; ccdbuffer() local 982 struct ccdbuf *cbp = (struct ccdbuf *) vbp; ccdiodone() local [all...] |
| /netbsd-src/external/cddl/osnet/dist/lib/libzfs/common/ |
| H A D | libzfs_util.c | 915 zprop_print_headers(zprop_get_cbdata_t *cbp, zfs_type_t type) in zprop_print_headers() argument 917 zprop_list_t *pl = cbp->cb_proplist; in zprop_print_headers() 922 cbp->cb_first = B_FALSE; in zprop_print_headers() 923 if (cbp->cb_scripted) in zprop_print_headers() 929 cbp->cb_colwidths[GET_COL_NAME] = strlen(dgettext(TEXT_DOMAIN, "NAME")); in zprop_print_headers() 930 cbp->cb_colwidths[GET_COL_PROPERTY] = strlen(dgettext(TEXT_DOMAIN, in zprop_print_headers() 932 cbp->cb_colwidths[GET_COL_VALUE] = strlen(dgettext(TEXT_DOMAIN, in zprop_print_headers() 934 cbp->cb_colwidths[GET_COL_RECVD] = strlen(dgettext(TEXT_DOMAIN, in zprop_print_headers() 936 cbp->cb_colwidths[GET_COL_SOURCE] = strlen(dgettext(TEXT_DOMAIN, in zprop_print_headers() 940 assert(cbp->cb_proplist->pl_prop == in zprop_print_headers() [all …]
|
| /netbsd-src/external/bsd/nvi/dist/vi/ |
| H A D | vs_line.c | 58 CHAR_T *cbp, *ecbp, cbuf[128]; in vs_line() local 382 ecbp = (cbp = cbuf) + sizeof(cbuf)/sizeof(CHAR_T) - 1; in vs_line() 471 *cbp = '\0'; \ in vs_line() 472 (void)gp->scr_waddstr(sp, cbuf, cbp - cbuf); \ in vs_line() 473 cbp = cbuf; \ in vs_line() 484 if (cbp >= ecbp) in vs_line() 486 *cbp++ = TABCH; in vs_line() 489 if (cbp + chlen >= ecbp) in vs_line() 494 *cbp++ = ' '; in vs_line() 508 *cbp++ = L('?'); in vs_line() [all …]
|
| H A D | v_at.c | 44 CB *cbp; in v_at() local 73 CBNAME(sp, cbp, name); in v_at() 74 if (cbp == NULL) { in v_at() 98 TAILQ_FOREACH_REVERSE(tp, &cbp->textq, _texth, q) { in v_at() 100 if (((F_ISSET(cbp, CB_LMODE) || in v_at()
|
| /netbsd-src/sys/ufs/lfs/ |
| H A D | lfs_alloc.c | 121 struct buf *bp, *cbp; in lfs_extend_ifile() local 169 LFS_GET_HEADFREE(fs, cip, cbp, &oldlast); in lfs_extend_ifile() 170 LFS_PUT_HEADFREE(fs, cip, cbp, i); in lfs_extend_ifile() 212 LFS_PUT_TAILFREE(fs, cip, cbp, xmax - 1); in lfs_extend_ifile() 238 struct buf *bp, *cbp; in lfs_valloc() local 252 LFS_GET_HEADFREE(fs, cip, cbp, ino); in lfs_valloc() 272 LFS_PUT_HEADFREE(fs, cip, cbp, lfs_if_getnextfree(fs, ifp)); in lfs_valloc() 292 LFS_PUT_HEADFREE(fs, cip, cbp, *ino); in lfs_valloc() 326 struct buf *bp, *cbp; in lfs_valloc_fixed() local 359 LFS_GET_HEADFREE(fs, cip, cbp, &headino); in lfs_valloc_fixed() [all …]
|