/freebsd-10.0-release/contrib/ntp/include/isc/ |
H A D | mutex.h | 27 #define isc_mutex_init(mp) \ 28 (*(mp) = 0, ISC_R_SUCCESS) 29 #define isc_mutex_lock(mp) \ 30 ((*(mp))++ == 0 ? ISC_R_SUCCESS : ISC_R_UNEXPECTED) 31 #define isc_mutex_unlock(mp) \ 32 (--(*(mp)) == 0 ? ISC_R_SUCCESS : ISC_R_UNEXPECTED) 33 #define isc_mutex_trylock(mp) \ 34 (*(mp) == 0 ? ((*(mp))++, ISC_R_SUCCESS) : ISC_R_LOCKBUSY) 35 #define isc_mutex_destroy(mp) \ [all...] |
/freebsd-10.0-release/contrib/amd/amd/ |
H A D | map.c | 105 static void exported_ap_free(am_node *mp); 106 static void remove_am(am_node *mp); 153 am_node *mp; local 155 mp = get_first_exported_ap(&index); 156 while (mp != NULL) { 157 if (STREQ(mp->am_path, path)) 159 mp = get_next_exported_ap(&index); 161 return mp; 190 get_ap_child(am_node *mp, char *fname) argument 193 mntfs *mf = mp 237 am_node *mp, **mpp; local 272 exported_ap_free(am_node *mp) argument 311 insert_am(am_node *mp, am_node *p_mp) argument 338 remove_am(am_node *mp) argument 367 new_ttl(am_node *mp) argument 405 init_map(am_node *mp, char *dir) argument 441 free_map(am_node *mp) argument 476 find_ap_recursive(char *dir, am_node *mp) argument 507 am_node *mp = exported_ap[i]; local 530 am_node *mp = exported_ap[i]; local 548 am_node *mp = get_root_ap(dir); local 566 am_node *mp = find_ap(dir); local 586 am_node *mp = exported_ap[i]; local 608 am_node *mp = (am_node *) arg; local 693 am_node *mp = exported_ap[i]; local 764 am_node *mp = (am_node *) arg; local 786 am_node *mp = (am_node *) arg; local 821 am_node *mp = (am_node *) arg; local 878 unmount_mp(am_node *mp) argument 955 am_node *mp = exported_ap[i]; local [all...] |
H A D | amfs_linkx.c | 55 static int amfs_linkx_mount(am_node *mp, mntfs *mf); 56 static int amfs_linkx_umount(am_node *mp, mntfs *mf); 84 amfs_linkx_mount(am_node *mp, mntfs *mf) argument 92 if (mp->am_link) 93 ln = mp->am_link; 110 amfs_linkx_umount(am_node *mp, mntfs *mf) argument
|
H A D | amfs_auto.c | 67 static int amfs_auto_mount(am_node *mp, mntfs *mf); 102 amfs_auto_mount(am_node *mp, mntfs *mf) argument 111 mp->am_parent->am_fattr.na_nlink++; 118 mf->mf_info = strealloc(mf->mf_info, mp->am_parent->am_mnt->mf_info); 134 mp->am_pref = strdup(""); 139 mp->am_pref = strdup(mf->mf_fo->opt_pref); 147 char *ppref = mp->am_parent->am_pref; 150 mp->am_pref = str3cat((char *) 0, ppref, mp->am_name, "/"); 158 autofs_get_opts(opts, sizeof(opts), mp [all...] |
H A D | amfs_direct.c | 57 static am_node *amfs_direct_readlink(am_node *mp, int *error_return); 89 amfs_direct_readlink(am_node *mp, int *error_return) argument 94 xp = next_nonerror_node(mp->am_child); 96 if (!mp->am_mnt->mf_private) 97 amfs_mkcacheref(mp->am_mnt); /* XXX */ 98 xp = amfs_generic_lookup_child(mp, mp->am_path + 1, &rc, VLOOK_CREATE);
|
H A D | autil.c | 161 forcibly_timeout_mp(am_node *mp) argument 163 mntfs *mf = mp->am_mnt; 167 if (mf && ((mp->am_flags & AMF_ROOT) || 170 plog(XLOG_WARNING, "node %s is currently being unmounted, ignoring timeout request", mp->am_path); 172 plog(XLOG_WARNING, "ignoring timeout request for active node %s", mp->am_path); 174 plog(XLOG_INFO, "\"%s\" forcibly timed out", mp->am_path); 175 mp->am_flags &= ~AMF_NOTIMEOUT; 176 mp->am_ttl = clocktime(NULL); 182 clocktime(&mp->am_parent->am_fattr.na_mtime); 249 am_mounted(am_node *mp) argument 359 assign_error_mntfs(am_node *mp) argument 447 amfs_mount(am_node *mp, mntfs *mf, char *opts) argument 657 am_unmounted(am_node *mp) argument [all...] |
/freebsd-10.0-release/lib/libc/db/mpool/ |
H A D | mpool.c | 66 MPOOL *mp; local 83 if ((mp = (MPOOL *)calloc(1, sizeof(MPOOL))) == NULL) 85 TAILQ_INIT(&mp->lqh); 87 TAILQ_INIT(&mp->hqh[entry]); 88 mp->maxcache = maxcache; 89 mp->npages = sb.st_size / pagesize; 90 mp->pagesize = pagesize; 91 mp->fd = fd; 92 return (mp); 100 mpool_filter(MPOOL *mp, voi argument 113 mpool_new(MPOOL *mp, pgno_t *pgnoaddr, u_int flags) argument 147 mpool_delete(MPOOL *mp, void *page) argument 178 mpool_get(MPOOL *mp, pgno_t pgno, u_int flags) argument 273 mpool_put(MPOOL *mp, void *page, u_int flags) argument 299 mpool_close(MPOOL *mp) argument 320 mpool_sync(MPOOL *mp) argument 339 mpool_bkt(MPOOL *mp) argument 394 mpool_write(MPOOL *mp, BKT *bp) argument 428 mpool_look(MPOOL *mp, pgno_t pgno) argument 454 mpool_stat(MPOOL *mp) argument [all...] |
H A D | mpool-compat.c | 37 __mpool_new__44bsd(MPOOL *mp, pgno_t *pgnoaddr) argument 40 return (mpool_new(mp, pgnoaddr, MPOOL_PAGE_NEXT));
|
/freebsd-10.0-release/usr.sbin/ppp/ |
H A D | mp.c | 77 #include "mp.h" 136 mp_ReadHeader(struct mp *mp, struct mbuf *m, struct mp_header *header) argument 138 if (mp->local_is12bit) { 194 struct mp *mp = (struct mp *)v; local 197 percent = MAX(mp->link.stats.total.in.OctetsPerSecond, 198 mp->link.stats.total.out.OctetsPerSecond) * 800 / 199 mp 210 mp_StopAutoloadTimer(struct mp *mp) argument 216 mp_CheckAutoloadTimer(struct mp *mp) argument 231 mp_RestartAutoloadTimer(struct mp *mp) argument 240 mp_Init(struct mp *mp, struct bundle *bundle) argument 297 mp_Up(struct mp *mp, struct datalink *dl) argument 381 mp_Down(struct mp *mp) argument 415 mp_Assemble(struct mp *mp, struct mbuf *m, struct physical *p) argument 632 mp_Output(struct mp *mp, struct bundle *bundle, struct link *l, struct mbuf *m, u_int32_t begin, u_int32_t end) argument 668 struct mp *mp = &bundle->ncp.mp; local 827 struct mp *mp = &arg->bundle->ncp.mp; local 959 struct mp *mp = &arg->bundle->ncp.mp; local 1198 mp_LinkLost(struct mp *mp, struct datalink *dl) argument 1206 mp_QueueLen(struct mp *mp) argument [all...] |
/freebsd-10.0-release/lib/libstand/ |
H A D | zalloc.c | 80 znalloc(MemPool *mp, uintptr_t bytes) argument 97 if (bytes <= mp->mp_Size - mp->mp_Used) { 101 for (pmn = &mp->mp_First; (mn=*pmn) != NULL; pmn = &mn->mr_Next) { 121 mp->mp_Used += bytes; 139 zfree(MemPool *mp, void *ptr, uintptr_t bytes) argument 154 if ((char *)ptr < (char *)mp->mp_Base || 155 (char *)ptr + bytes > (char *)mp->mp_End || 167 mp->mp_Used -= bytes; 169 for (pmn = &mp 248 zextendPool(MemPool *mp, void *base, uintptr_t bytes) argument 275 zallocstats(MemPool *mp) argument [all...] |
H A D | zalloc_protos.h | 34 Library void zextendPool(MemPool *mp, void *base, uintptr_t bytes); 35 Library void zallocstats(struct MemPool *mp);
|
/freebsd-10.0-release/sys/fs/nullfs/ |
H A D | null_vfsops.c | 73 nullfs_mount(struct mount *mp) argument 84 NULLFSDEBUG("nullfs_mount(mp = %p)\n", (void *)mp); 88 if (mp->mnt_flag & MNT_ROOTFS) 94 if (mp->mnt_flag & MNT_UPDATE) { 98 if (vfs_flagopt(mp->mnt_optnew, "export", NULL, 0)) 107 error = vfs_getopt(mp->mnt_optnew, "target", (void **)&target, &len); 114 if ((mp->mnt_vnodecovered->v_op == &null_vnodeops) && 115 VOP_ISLOCKED(mp->mnt_vnodecovered) == LK_EXCLUSIVE) { 116 VOP_UNLOCK(mp 386 nullfs_reclaim_lowervp(struct mount *mp, struct vnode *lowervp) argument 399 nullfs_unlink_lowervp(struct mount *mp, struct vnode *lowervp) argument [all...] |
/freebsd-10.0-release/contrib/opie/libopie/ |
H A D | challenge.c | 54 int opiechallenge FUNCTION((mp, name, ss), struct opie *mp AND char *name AND char *ss) 58 rval = opielookup(mp, name); 60 if (rval) syslog(LOG_DEBUG, "opiechallenge: opielookup(mp, name=%s) returned %d", name, rval); 71 (snprintf(ss, OPIE_CHALLENGE_MAX, "otp-%s %d %s ext", algids[MDX], mp->opie_n - 1, mp->opie_seed) >= OPIE_CHALLENGE_MAX)) { 73 memset(mp, 0, sizeof(*mp));
|
/freebsd-10.0-release/bin/stty/ |
H A D | modes.c | 212 const struct modes *mp; local 217 for (mp = cmodes; mp->name; ++mp) 218 if (CHK(mp->name)) { 219 ip->t.c_cflag &= ~mp->unset; 220 ip->t.c_cflag |= mp->set; 224 for (mp = imodes; mp->name; ++mp) [all...] |
/freebsd-10.0-release/contrib/ntp/kernel/ |
H A D | tty_clk_STREAMS.c | 132 static int clkrput(q, mp) 134 mblk_t *mp; 138 switch(mp->b_datap->db_type) 142 for(bp=mp; bp!=NULL; bp=bp->b_cont) 148 freemsg(mp); 151 putnext(q,mp); 161 static int clkwput(q, mp) 163 mblk_t *mp; 167 switch(mp->b_datap->db_type) 170 iocp=(struct iocblk*) mp 212 static mblk_t *message,*mp; local [all...] |
/freebsd-10.0-release/usr.sbin/lpr/lpd/ |
H A D | modes.c | 204 struct modes *mp; local 206 for (mp = cmodes; mp->name; ++mp) 207 if (CHK(str, mp->name)) { 208 ip->c_cflag &= ~mp->unset; 209 ip->c_cflag |= mp->set; 212 for (mp = imodes; mp->name; ++mp) [all...] |
/freebsd-10.0-release/usr.bin/mail/ |
H A D | cmd1.c | 60 struct message *mp; local 68 mp = &message[screen * size]; 69 if (mp >= &message[msgCount]) 70 mp = &message[msgCount - size]; 71 if (mp < &message[0]) 72 mp = &message[0]; 74 mesg = mp - &message[0]; 76 dot = mp; 77 for (; mp < &message[msgCount]; mp 167 struct message *mp; local 289 struct message *mp; local 361 struct message *mp; local [all...] |
/freebsd-10.0-release/sys/fs/unionfs/ |
H A D | union_vfsops.c | 73 unionfs_domount(struct mount *mp) argument 95 UNIONFSDEBUG("unionfs_mount(mp = %p)\n", (void *)mp); 108 if (mp->mnt_flag & MNT_ROOTFS) { 109 vfs_mount_error(mp, "Cannot union mount root filesystem"); 116 if (mp->mnt_flag & MNT_UPDATE) { 117 vfs_mount_error(mp, "unionfs does not support mount update"); 124 error = vfs_getopt(mp->mnt_optnew, "target", (void **)&target, &len); 126 error = vfs_getopt(mp->mnt_optnew, "from", (void **)&target, 129 vfs_mount_error(mp, "Invali 322 unionfs_unmount(struct mount *mp, int mntflags) argument 356 unionfs_root(struct mount *mp, int flags, struct vnode **vpp) argument 377 unionfs_quotactl(struct mount *mp, int cmd, uid_t uid, void *arg) argument 390 unionfs_statfs(struct mount *mp, struct statfs *sbp) argument 439 unionfs_sync(struct mount *mp, int waitfor) argument 446 unionfs_vget(struct mount *mp, ino_t ino, int flags, struct vnode **vpp) argument 452 unionfs_fhtovp(struct mount *mp, struct fid *fidp, int flags, struct vnode **vpp) argument 459 unionfs_checkexp(struct mount *mp, struct sockaddr *nam, int *extflagsp, struct ucred **credanonp, int *numsecflavors, int **secflavors) argument 466 unionfs_extattrctl(struct mount *mp, int cmd, struct vnode *filename_vp, int namespace, const char *attrname) argument [all...] |
/freebsd-10.0-release/libexec/talkd/ |
H A D | process.c | 67 process_request(CTL_MSG *mp, CTL_RESPONSE *rp) argument 73 rp->type = mp->type; 75 if (mp->vers != TALK_VERSION) { 76 syslog(LOG_WARNING, "bad protocol version %d", mp->vers); 80 mp->id_num = ntohl(mp->id_num); 81 mp->addr.sa_family = ntohs(mp->addr.sa_family); 82 if (mp->addr.sa_family != AF_INET) { 84 mp 143 do_announce(CTL_MSG *mp, CTL_RESPONSE *rp) argument [all...] |
H A D | print.c | 62 print_request(const char *cp, CTL_MSG *mp) argument 67 if (mp->type > NTYPES) { 68 (void)snprintf(tbuf, sizeof(tbuf), "type %d", mp->type); 71 tp = types[mp->type]; 73 cp, tp, (long)mp->id_num, mp->l_name, mp->r_name, mp->r_tty);
|
/freebsd-10.0-release/sys/fs/tmpfs/ |
H A D | tmpfs_vfsops.c | 137 tmpfs_mount(struct mount *mp) argument 159 if (vfs_filteropt(mp->mnt_optnew, tmpfs_opts)) 162 if (mp->mnt_flag & MNT_UPDATE) { 164 if (vfs_filteropt(mp->mnt_optnew, tmpfs_updateopts) != 0) 166 if (vfs_flagopt(mp->mnt_optnew, "ro", NULL, 0) != 167 ((struct tmpfs_mount *)mp->mnt_data)->tm_ronly) 172 vn_lock(mp->mnt_vnodecovered, LK_SHARED | LK_RETRY); 173 error = VOP_GETATTR(mp->mnt_vnodecovered, &va, mp->mnt_cred); 174 VOP_UNLOCK(mp 276 tmpfs_unmount(struct mount *mp, int mntflags) argument 332 tmpfs_root(struct mount *mp, int flags, struct vnode **vpp) argument 346 tmpfs_fhtovp(struct mount *mp, struct fid *fhp, int flags, struct vnode **vpp) argument 385 tmpfs_statfs(struct mount *mp, struct statfs *sbp) argument [all...] |
/freebsd-10.0-release/lib/libmp/ |
H A D | Makefile | 3 LIB= mp 8 INCS= mp.h
|
/freebsd-10.0-release/contrib/nvi/vi/ |
H A D | v_util.c | 38 v_eof(SCR *sp, MARK *mp) argument 42 if (mp == NULL) 47 if (mp->lno >= lno) 61 v_eol(SCR *sp, MARK *mp) argument 65 if (mp == NULL) 68 if (db_get(sp, mp->lno, DBG_FATAL, NULL, &len)) 70 if (mp->cno == len - 1) 96 v_sof(SCR *sp, MARK *mp) argument 98 if (mp == NULL || mp [all...] |
/freebsd-10.0-release/sys/kern/ |
H A D | vfs_mount.c | 108 struct mount *mp; local 110 mp = (struct mount *)mem; 111 mtx_init(&mp->mnt_mtx, "struct mount mtx", NULL, MTX_DEF); 112 lockinit(&mp->mnt_explock, PVFS, "explock", 0, 0); 119 struct mount *mp; local 121 mp = (struct mount *)mem; 122 lockdestroy(&mp->mnt_explock); 123 mtx_destroy(&mp->mnt_mtx); 429 vfs_ref(struct mount *mp) argument 432 CTR2(KTR_VFS, "%s: mp 439 vfs_rel(struct mount *mp) argument 455 struct mount *mp; local 490 vfs_mount_destroy(struct mount *mp) argument 776 struct mount *mp; local 888 struct mount *mp; local 1139 struct mount *mp; local 1381 vfs_mount_error(struct mount *mp, const char *fmt, ...) argument 1720 __vfs_statfs(struct mount *mp, struct statfs *sbp) argument 1731 vfs_mountedfrom(struct mount *mp, const char *from) argument [all...] |
/freebsd-10.0-release/sys/ufs/ffs/ |
H A D | ffs_suspend.c | 71 ffs_susp_suspended(struct mount *mp) argument 77 ump = VFSTOUFS(mp); 96 struct mount *mp; local 106 error = devfs_get_cdevpriv((void **)&mp); 112 ump = VFSTOUFS(mp); 116 if (ffs_susp_suspended(mp) == 0) { 177 ffs_susp_suspend(struct mount *mp) argument 185 if (!ffs_own_mount(mp)) 187 if (ffs_susp_suspended(mp)) 190 ump = VFSTOUFS(mp); 222 struct mount *mp; local 266 struct mount *mp; local [all...] |