/macosx-10.5.8/xnu-1228.15.4/bsd/libkern/ |
H A D | locc.c | 71 register u_char *cp, *end, mask; local 74 cp = (u_char *)cp0; 75 for (end = &cp[size]; cp < end && *cp != mask; ++cp); 76 return (end - cp);
|
H A D | skpc.c | 68 register u_char *cp, *end, mask; local 71 cp = (u_char *)cp0; 72 for (end = &cp[size]; cp < end && *cp == mask; ++cp); 73 return (end - cp);
|
H A D | scanc.c | 66 scanc(u_int size, u_char *cp, const u_char table[], int mask0) argument 72 for (end = &cp[size]; cp != end && (table[*cp] & mask) == 0; ++cp); 73 return (end - cp);
|
/macosx-10.5.8/xnu-1228.15.4/libsa/ |
H A D | strrchr.c | 71 __private_extern__ char * strrchr(const char *cp, int ch) argument 76 for (save = (char *) 0; (c = *cp); cp++) { 78 save = (char *) cp;
|
/macosx-10.5.8/xnu-1228.15.4/bsd/hfs/ |
H A D | hfs_chash.c | 138 struct cnode *cp; local 150 for (cp = CNODEHASH(dev, inum)->lh_first; cp; cp = cp->c_hash.le_next) { 151 if ((cp->c_fileid != inum) || (cp->c_dev != dev)) 154 if (ISSET(cp->c_hflag, H_ALLOC | H_TRANSIT | H_ATTACH)) { 155 SET(cp->c_hflag, H_WAITING); 157 (void) msleep(cp, 211 struct cnode *cp; local 247 struct cnode *cp; local 375 hfs_chashwakeup(struct cnode *cp, int hflags) argument 412 hfs_chashremove(struct cnode *cp) argument 435 hfs_chash_abort(struct cnode *cp) argument 457 hfs_chash_mark_in_transit(struct cnode *cp) argument 475 struct cnode *cp; local 506 struct cnode *cp; local [all...] |
H A D | hfs_cnode.c | 71 struct cnode *cp; local 86 cp = VTOC(vp); 96 if (cp->c_mode == 0) { 102 hfs_lock_truncate(cp, TRUE); 106 (void) hfs_lock(cp, HFS_FORCE_LOCK); 115 (cp->c_flag & C_DELETED) && 117 hfs_unlock(cp); 119 (void) hfs_lock(cp, HFS_FORCE_LOCK); 122 if (v_type == VREG && !ISSET(cp->c_flag, C_DELETED) && VTOF(vp)->ff_blocks) { 129 hfs_reldirhints(cp, 321 struct cnode *cp; local 396 struct cnode *cp; local 534 struct cnode *cp = NULL; local 822 hfs_reclaim_cnode(struct cnode *cp) argument 902 hfs_touchtimes(struct hfsmount *hfsmp, struct cnode* cp) argument 980 hfs_lock(struct cnode *cp, enum hfslocktype locktype) argument 1179 hfs_unlock(struct cnode *cp) argument 1294 hfs_lock_truncate(struct cnode *cp, int exclusive) argument 1309 hfs_unlock_truncate(struct cnode *cp, int exclusive) argument [all...] |
H A D | hfs_link.c | 123 * Make a link to the cnode cp in the directory dp 126 * The cnodes cp and dcp must be locked. 129 hfs_makelink(struct hfsmount *hfsmp, struct cnode *cp, struct cnode *dcp, argument 147 type = S_ISDIR(cp->c_mode) ? DIR_HARDLINKS : FILE_HARDLINKS; 173 orig_cnid = cp->c_desc.cd_cnid; 179 if ((cp->c_linkcount == 2) && !(cp->c_flag & C_HARDLINK)) { 183 to_desc.cd_cnid = cp->c_fileid; 189 indnodeno = cp->c_fileid; 195 indnodeno = cp 376 struct cnode *cp; local 638 struct cnode *cp; local 1022 hfs_savelinkorigin(cnode_t *cp, cnid_t parentcnid) argument 1061 hfs_relorigins(struct cnode *cp) argument 1078 hfs_relorigin(struct cnode *cp, cnid_t parentcnid) argument 1100 hfs_haslinkorigin(cnode_t *cp) argument 1122 hfs_currentparent(cnode_t *cp) argument 1144 hfs_currentcnid(cnode_t *cp) argument [all...] |
H A D | hfs_vnops.c | 189 struct cnode *cp; local 201 cp = VTOC(*vpp); 202 cp->c_touch_acctime = TRUE; 203 cp->c_touch_chgtime = TRUE; 204 cp->c_touch_modtime = TRUE; 208 cp->c_rdev = vap->va_rdev; 258 struct cnode *cp = VTOC(vp); local 268 ((now.tv_sec - cp->c_mtime) > 60)) { 292 register struct cnode *cp; local 301 cp 358 hfs_touchtimes(VTOHFS(vp), cp); local 394 struct cnode *cp; local 721 struct cnode *cp = NULL; local 898 register struct cnode *cp = VTOC(vp); local 929 struct cnode *cp = VTOC(vp); local 985 register struct cnode *cp = VTOC(vp); local 1323 struct cnode *cp = VTOC(vp); local 1570 struct cnode *cp = VTOC(vp); local 1606 struct cnode *cp = VTOC(vp); local 1633 struct cnode *cp; local 1792 struct cnode *cp = VTOC(vp); local 1868 struct cnode *cp; local 2230 replace_desc(struct cnode *cp, struct cat_desc *cdp) argument 2775 struct cnode *cp = NULL; local 2964 struct cnode *cp; local 3205 struct cnode *cp; local 3346 struct cnode *cp = VTOC(vp); local 3473 struct cnode *cp = NULL; local 3755 struct cnode *cp = VTOC(vp); local 4102 struct cnode *cp; local 4107 hfs_touchtimes(VTOHFS(vp), cp); local 4168 struct cnode *cp; local 4173 hfs_touchtimes(VTOHFS(vp), cp); local [all...] |
H A D | hfs_quota.c | 103 hfs_getinoquota(cp) 104 register struct cnode *cp; 110 vp = cp->c_vp ? cp->c_vp : cp->c_rsrc_vp; 116 if (cp->c_dquot[USRQUOTA] == NODQUOT && 118 dqget(cp->c_uid, &hfsmp->hfs_qfiles[USRQUOTA], USRQUOTA, &cp->c_dquot[USRQUOTA])) && 125 if (cp->c_dquot[GRPQUOTA] == NODQUOT && 127 dqget(cp 566 struct cnode *cp; local 790 struct cnode *cp; local [all...] |
H A D | hfs_cnode.h | 203 #define CTOV(cp,rsrc) (((rsrc) && S_ISREG((cp)->c_mode)) ? \ 204 (cp)->c_rsrc_vp : (cp)->c_vp) 218 #define VCTOF(vp, cp) ((vp) == (cp)->c_rsrc_vp ? \ 219 (cp)->c_rsrcfork : \ 220 (cp)->c_datafork) 264 extern void hfs_chashinsert(struct cnode *cp); 265 extern int hfs_chashremove(struct cnode *cp); [all...] |
H A D | hfs_xattr.c | 110 struct cnode *cp; local 121 cp = VTOC(vp); 122 if ( !S_ISREG(cp->c_mode) ) { 128 if (!RSRC_FORK_EXISTS(cp) && (ap->a_operation != NS_OPEN)) { 129 hfs_unlock(cp); 133 hfs_unlock(cp); 146 struct cnode *cp; local 157 cp = VTOC(vp); 158 if ( !S_ISREG(cp->c_mode) ) { 161 if ((error = hfs_lock(cp, HFS_EXCLUSIVE_LOC 223 struct cnode *cp; local 493 struct cnode *cp = NULL; local 931 struct cnode *cp = VTOC(vp); local 1264 struct cnode *cp = VTOC(vp); local [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/net/ |
H A D | bpf_compat.h | 75 #define free(cp, type) m_free(*(struct mbuf **)(cp - 8))
|
H A D | net_osdep.c | 81 char *cp; local 84 cp = nam[ifbufround]; 86 snprintf(cp, IFNAMSIZ + 10, "%s%d", ifp->if_name, ifp->if_unit); 87 return((const char *)cp);
|
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/ |
H A D | mcache.c | 263 mcache_t *cp = NULL; local 295 cp = (mcache_t *) 297 pbuf = (void **)((intptr_t)cp - sizeof (void *)); 312 cp->mc_align = align; 313 cp->mc_slab_alloc = allocfn; 314 cp->mc_slab_free = freefn; 315 cp->mc_slab_audit = auditfn; 316 cp->mc_slab_notify = notifyfn; 317 cp->mc_private = need_zone ? cp 421 mcache_alloc_ext(mcache_t *cp, mcache_obj_t **list, unsigned int num, int wait) argument 574 mcache_alloc(mcache_t *cp, int wait) argument 583 mcache_waiter_inc(mcache_t *cp) argument 589 mcache_waiter_dec(mcache_t *cp) argument 595 mcache_bkt_isempty(mcache_t *cp) argument 609 mcache_notify(mcache_t *cp, u_int32_t event) argument 621 mcache_t *cp = arg; local 638 mcache_purge_cache(mcache_t *cp) argument 664 mcache_free(mcache_t *cp, void *buf) argument 674 mcache_free_ext(mcache_t *cp, mcache_obj_t *list) argument 802 mcache_destroy(mcache_t *cp) argument 857 mcache_t *cp = arg; local 934 mcache_t *cp = arg; local 984 mcache_t *cp = arg; local 1039 mcache_bkt_alloc(mcache_t *cp, mcache_bktlist_t *blp, mcache_bkttype_t **btp) argument 1072 mcache_bkt_free(mcache_t *cp, mcache_bktlist_t *blp, mcache_bkt_t *bkt) argument 1087 mcache_cache_bkt_enable(mcache_t *cp) argument 1107 mcache_bkt_purge(mcache_t *cp) argument 1153 mcache_bkt_destroy(mcache_t *cp, mcache_bkttype_t *btp, mcache_bkt_t *bkt, int nobjs) argument 1191 mcache_bkt_ws_update(mcache_t *cp) argument 1207 mcache_bkt_ws_reap(mcache_t *cp) argument 1264 mcache_cache_reap(mcache_t *cp) argument 1273 mcache_cache_update(mcache_t *cp) argument 1323 mcache_t *cp = arg; local 1349 mcache_t *cp = arg; local 1375 mcache_t *cp; local 1392 mcache_buffer_log(mcache_audit_t *mca, void *addr, mcache_t *cp) argument [all...] |
H A D | tty_subr.c | 173 q_to_b(struct clist *clp, u_char *cp, int count) argument 176 u_char *p = cp; 195 return p - cp; 317 * clrbit(cp, off + len); 320 clrbits(u_char *cp, int off, int len) argument 327 clrbit(cp, off); 337 cp[sby] &= ~mask; 340 cp[sby++] &= mask; 343 cp[eby] &= ~mask; 346 cp[ 356 b_to_q(const u_char *cp, int count, struct clist *clp) argument 416 nextc(struct clist *clp, u_char *cp, int *c) argument 456 u_char *cp; local [all...] |
H A D | subr_xxx.c | 192 cfreemem(caddr_t cp, int size) argument 194 printf("freeing %p, size %d\n", cp, size);
|
/macosx-10.5.8/xnu-1228.15.4/osfmk/ddb/ |
H A D | db_cond.c | 155 register struct db_cond *cp; local 179 cp = &db_cond[bkpt->tb_cond - 1]; 180 db_switch_input(cp->c_cond_cmd, cp->c_size); 203 register struct db_cond *cp; local 207 cp = &db_cond[bkpt->tb_cond-1]; 208 p = cp->c_cond_cmd; 209 ep = p + cp->c_size; 221 register struct db_cond *cp; local 240 cp [all...] |
H A D | db_lex.c | 326 register char *cp; local 336 cp = db_tok_string; 337 *cp++ = c; 354 cp--; 359 *cp++ = c; 376 if (cp < &db_tok_string[sizeof(db_tok_string)-1]) 377 *cp++ = c; 379 cp[-1] = 0; 403 cp[-1] = c; 417 *cp [all...] |
H A D | tr.c | 200 char *filename, *cp; local 255 for (cp = trace_buffer[i].file; *cp; ++cp) 256 if (*cp == '/') 257 filename = cp + 1; 312 char *cp, *cp1, *cp2; local 314 for (cp = target; *cp; ++cp) { 333 char *filename, *cp; local [all...] |
H A D | db_expr.c | 105 char *cp; local 110 for (cp = db_tok_string; *cp; cp++) { 111 if (*cp >= 'a' && *cp <= 'f') { 112 value = value * 16 + 10 + (*cp - 'a'); 113 } else if (*cp >= 'A' && *cp <= 'F') { 114 value = value * 16 + 10 + (*cp 171 char *sp, *cp; local [all...] |
H A D | db_aout.c | 674 struct nlist *sp, *ep, *cp; local 692 for (cp = ep-1; cp >= sp; cp--) { 693 if (cp->n_un.n_name == 0) 695 if ((cp->n_type & N_STAB) != 0) 697 if (strategy == DB_STGY_XTRN && (cp->n_type & N_EXT) == 0) 699 if (off >= cp->n_value) { 700 if (off - cp->n_value < diff) { 701 diff = off - cp 763 struct nlist *sp, *cp; local [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/nfs/ |
H A D | nfs_gss.c | 238 struct nfs_gss_clnt_ctx *cp; local 245 TAILQ_FOREACH(cp, &nmp->nm_gsscl, gss_clnt_entries) { 246 if (cp->gss_clnt_uid == uid) { 247 if (cp->gss_clnt_flags & GSS_CTX_INVAL) 250 nfs_gss_clnt_ctx_ref(req, cp); 263 TAILQ_FOREACH(cp, &nmp->nm_gsscl, gss_clnt_entries) { 264 if (!(cp->gss_clnt_flags & GSS_CTX_INVAL)) { 266 nfs_gss_clnt_ctx_ref(req, cp); 295 MALLOC(cp, struct nfs_gss_clnt_ctx *, sizeof(*cp), M_TEM 346 struct nfs_gss_clnt_ctx *cp; local 375 struct nfs_gss_clnt_ctx *cp; local 626 struct nfs_gss_clnt_ctx *cp = req->r_gss_ctx; local 854 struct nfs_gss_clnt_ctx *cp = req->r_gss_ctx; local 921 nfs_gss_clnt_ctx_init(struct nfsreq *req, struct nfs_gss_clnt_ctx *cp) argument 1066 nfs_gss_clnt_ctx_callserver(struct nfsreq *req, struct nfs_gss_clnt_ctx *cp) argument 1182 nfs_gss_clnt_gssd_upcall(struct nfsreq *req, struct nfs_gss_clnt_ctx *cp) argument 1301 struct nfs_gss_clnt_ctx *cp = req->r_gss_ctx; local 1344 nfs_gss_clnt_ctx_ref(struct nfsreq *req, struct nfs_gss_clnt_ctx *cp) argument 1362 struct nfs_gss_clnt_ctx *cp = req->r_gss_ctx; local 1389 nfs_gss_clnt_ctx_remove(struct nfsmount *nmp, struct nfs_gss_clnt_ctx *cp) argument 1420 struct nfs_gss_clnt_ctx *cp = req->r_gss_ctx; local 1498 struct nfs_gss_clnt_ctx *cp; local 1604 struct nfs_gss_svc_ctx *cp; local 1622 nfs_gss_svc_ctx_insert(struct nfs_gss_svc_ctx *cp) argument 1649 struct nfs_gss_svc_ctx *cp, *next; local 1713 struct nfs_gss_svc_ctx *cp = NULL; local 2009 struct nfs_gss_svc_ctx *cp; local 2061 struct nfs_gss_svc_ctx *cp = nd->nd_gss_context; local 2095 struct nfs_gss_svc_ctx *cp = nd->nd_gss_context; local 2193 struct nfs_gss_svc_ctx *cp = NULL; local 2359 nfs_gss_svc_gssd_upcall(struct nfs_gss_svc_ctx *cp) argument 2445 nfs_gss_svc_seqnum_valid(struct nfs_gss_svc_ctx *cp, uint32_t seq) argument 2496 struct nfs_gss_svc_ctx *cp, *ncp; local [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/ufs/ffs/ |
H A D | ffs_subr.c | 169 ffs_isblock(fs, cp, h) 171 unsigned char *cp; 178 return (cp[h] == 0xff); 181 return ((cp[h >> 1] & mask) == mask); 184 return ((cp[h >> 2] & mask) == mask); 187 return ((cp[h >> 3] & mask) == mask); 199 ffs_clrblock(fs, cp, h) 201 u_char *cp; 207 cp[h] = 0; 210 cp[ [all...] |
/macosx-10.5.8/xnu-1228.15.4/pexpert/gen/ |
H A D | bootargs.c | 61 char *cp, c; local 81 cp = args; 82 while (!isargsep (*cp) && *cp != '=') 83 cp++; 84 if (*cp != '=' && !arg_boolean) 87 c = *cp; 89 i = cp-args; 98 while (isargsep (*cp)) 99 cp [all...] |
/macosx-10.5.8/xnu-1228.15.4/osfmk/device/ |
H A D | subrs.c | 316 atoi(const char *cp) argument 320 for (number = 0; ('0' <= *cp) && (*cp <= '9'); cp++) 321 number = (number * 10) + (*cp - '0'); 407 char *cp = str; local 410 *cp++ = '0'; 419 *cp++ = *--dp; 422 *cp++ = '\0';
|