/freebsd-10-stable/contrib/ntp/lib/isc/nothreads/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...] |
H A D | condition.h | 38 isc_result_t isc__nothread_wait_hack(isc_condition_t *cp, isc_mutex_t *mp); 44 #define isc_condition_wait(cp, mp) \ 45 isc__nothread_wait_hack(cp, mp) 47 #define isc_condition_waituntil(cp, mp, tp) \ 48 ((void)(cp), (void)(mp), (void)(tp), ISC_R_NOTIMPLEMENTED)
|
/freebsd-10-stable/contrib/ntp/lib/isc/win32/include/isc/ |
H A D | mutex.h | 39 #define isc_mutex_init(mp) \ 40 (InitializeCriticalSection((mp)), ISC_R_SUCCESS) 41 #define isc_mutex_lock(mp) \ 42 (EnterCriticalSection((mp)), ISC_R_SUCCESS) 43 #define isc_mutex_unlock(mp) \ 44 (LeaveCriticalSection((mp)), ISC_R_SUCCESS) 45 #define isc_mutex_trylock(mp) \ 46 (TryEnterCriticalSection((mp)) ? ISC_R_SUCCESS : ISC_R_LOCKBUSY) 47 #define isc_mutex_destroy(mp) \ 48 (DeleteCriticalSection((mp)), ISC_R_SUCCES [all...] |
/freebsd-10-stable/contrib/ntp/lib/isc/pthreads/include/isc/ |
H A D | mutex.h | 70 #define isc_mutex_init(mp) \ 71 isc_mutex_init_profile((mp), __FILE__, __LINE__) 74 #define isc_mutex_init(mp) \ 75 isc_mutex_init_errcheck((mp)) 77 #define isc_mutex_init(mp) \ 78 isc__mutex_init((mp), __FILE__, __LINE__) 79 isc_result_t isc__mutex_init(isc_mutex_t *mp, const char *file, unsigned int line); 84 #define isc_mutex_lock(mp) \ 85 isc_mutex_lock_profile((mp), __FILE__, __LINE__) 87 #define isc_mutex_lock(mp) \ [all...] |
/freebsd-10-stable/contrib/amd/amd/ |
H A D | map.c | 101 static void exported_ap_free(am_node *mp); 102 static void remove_am(am_node *mp); 149 am_node *mp; local 151 mp = get_first_exported_ap(&index); 152 while (mp != NULL) { 153 if (STREQ(mp->am_path, path)) 155 mp = get_next_exported_ap(&index); 157 return mp; 186 get_ap_child(am_node *mp, char *fname) argument 189 mntfs *mf = mp 233 am_node *mp, **mpp; local 268 exported_ap_free(am_node *mp) argument 307 insert_am(am_node *mp, am_node *p_mp) argument 334 remove_am(am_node *mp) argument 363 new_ttl(am_node *mp) argument 401 init_map(am_node *mp, char *dir) argument 436 notify_child(am_node *mp, au_etype au_etype, int au_errno, int au_signal) argument 462 free_map(am_node *mp) argument 496 find_ap_recursive(char *dir, am_node *mp) argument 527 am_node *mp = exported_ap[i]; local 548 am_node *mp = get_root_ap(dir); local 569 am_node *mp = find_ap(dir); local 589 am_node *mp = exported_ap[i]; local 612 am_node *mp = (am_node *) arg; local 700 am_node *mp = exported_ap[i]; local 781 am_node *mp = (am_node *) arg; local 803 am_node *mp = (am_node *) arg; local 838 am_node *mp = (am_node *) arg; local 902 unmount_mp(am_node *mp) argument 981 am_node *mp = exported_ap[i]; local [all...] |
H A D | amfs_linkx.c | 51 static int amfs_linkx_mount(am_node *mp, mntfs *mf); 52 static int amfs_linkx_umount(am_node *mp, mntfs *mf); 80 amfs_linkx_mount(am_node *mp, mntfs *mf) argument 88 if (mp->am_link) 89 ln = mp->am_link; 106 amfs_linkx_umount(am_node *mp, mntfs *mf) argument
|
H A D | amfs_auto.c | 63 static int amfs_auto_mount(am_node *mp, mntfs *mf); 98 amfs_auto_mount(am_node *mp, mntfs *mf) argument 100 if (mp->am_parent == NULL) 109 mp->am_parent->am_fattr.na_nlink++; 116 mf->mf_info = strealloc(mf->mf_info, mp->am_parent->am_al->al_mnt->mf_info); 132 mp->am_pref = xstrdup(""); 137 mp->am_pref = xstrdup(mf->mf_fo->opt_pref); 145 char *ppref = mp->am_parent->am_pref; 148 mp->am_pref = str3cat((char *) NULL, ppref, mp [all...] |
H A D | autil.c | 157 forcibly_timeout_mp(am_node *mp) argument 159 mntfs *mf = mp->am_al->al_mnt; 163 if (mf && ((mp->am_flags & AMF_ROOT) || 171 plog(XLOG_WARNING, "node %s is currently being unmounted, ignoring timeout request", mp->am_path); 173 plog(XLOG_WARNING, "ignoring timeout request for active node %s", mp->am_path); 174 notify_child(mp, AMQ_UMNT_FAILED, EBUSY, 0); 177 plog(XLOG_INFO, "\"%s\" forcibly timed out", mp->am_path); 178 mp->am_flags &= ~AMF_NOTIMEOUT; 179 mp->am_ttl = clocktime(NULL); 185 clocktime(&mp 239 am_mounted(am_node *mp) argument 350 assign_error_mntfs(am_node *mp) argument 445 amfs_mount(am_node *mp, mntfs *mf, char *opts) argument 654 am_unmounted(am_node *mp) argument [all...] |
H A D | amfs_direct.c | 53 static am_node *amfs_direct_readlink(am_node *mp, int *error_return); 85 amfs_direct_readlink(am_node *mp, int *error_return) argument 90 xp = next_nonerror_node(mp->am_child); 92 if (!mp->am_al->al_mnt->mf_private) 93 amfs_mkcacheref(mp->am_al->al_mnt); 94 xp = amfs_generic_lookup_child(mp, mp->am_path + 1, &rc, VLOOK_CREATE);
|
/freebsd-10-stable/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...] |
/freebsd-10-stable/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-stable/lib/libstand/ |
H A D | zalloc.c | 89 znalloc(MemPool *mp, uintptr_t bytes) argument 106 if (bytes <= mp->mp_Size - mp->mp_Used) { 110 for (pmn = &mp->mp_First; (mn=*pmn) != NULL; pmn = &mn->mr_Next) { 130 mp->mp_Used += bytes; 148 zfree(MemPool *mp, void *ptr, uintptr_t bytes) argument 163 if ((char *)ptr < (char *)mp->mp_Base || 164 (char *)ptr + bytes > (char *)mp->mp_End || 176 mp->mp_Used -= bytes; 178 for (pmn = &mp 257 zextendPool(MemPool *mp, void *base, uintptr_t bytes) argument 284 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-stable/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 389 nullfs_reclaim_lowervp(struct mount *mp, struct vnode *lowervp) argument 402 nullfs_unlink_lowervp(struct mount *mp, struct vnode *lowervp) argument [all...] |
/freebsd-10-stable/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+1, "otp-%s %d %s ext", algids[MDX], mp->opie_n - 1, mp->opie_seed) >= OPIE_CHALLENGE_MAX+1)) { 75 memset(mp, 0, sizeof(*mp));
|
/freebsd-10-stable/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-stable/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-stable/contrib/netbsd-tests/fs/vfs/ |
H A D | t_rwtoro.c | 58 remount_ro(const atf_tc_t *tc, const char *mp, int expected_errno) argument 72 RL(rump_sys_statvfs1(mp, &sbuf, ST_WAIT)); 77 mount_args_length = rump_sys_mount(sbuf.f_fstypename, mp, MNT_GETARGS, 82 error = rump_sys_mount(sbuf.f_fstypename, mp, MNT_UPDATE | MNT_RDONLY, 129 basic_test(const atf_tc_t *tc, const char *mp, int expected_errno, argument 138 nargs.nulla_target = __UNCONST(mp);; 143 (*pre)(use_layer ? null_mount : mp); 144 remount_ro(tc, mp, expected_errno); 146 (*post)(use_layer ? null_mount : mp); 152 noneopen(const atf_tc_t *tc, const char *mp) argument 159 readopen(const atf_tc_t *tc, const char *mp) argument 166 writeopen(const atf_tc_t *tc, const char *mp) argument 173 read_unlinked(const atf_tc_t *tc, const char *mp) argument 180 layer_noneopen(const atf_tc_t *tc, const char *mp) argument 187 layer_readopen(const atf_tc_t *tc, const char *mp) argument 194 layer_writeopen(const atf_tc_t *tc, const char *mp) argument 201 layer_read_unlinked(const atf_tc_t *tc, const char *mp) argument [all...] |
/freebsd-10-stable/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-stable/sys/fs/autofs/ |
H A D | autofs_vfsops.c | 55 autofs_mount(struct mount *mp) argument 61 if (vfs_filteropt(mp->mnt_optnew, autofs_opts)) 64 if (mp->mnt_flag & MNT_UPDATE) { 65 autofs_flush(VFSTOAUTOFS(mp)); 69 if (vfs_getopt(mp->mnt_optnew, "from", (void **)&from, NULL)) 72 if (vfs_getopt(mp->mnt_optnew, "fspath", (void **)&fspath, NULL)) 75 if (vfs_getopt(mp->mnt_optnew, "master_options", (void **)&options, NULL)) 78 if (vfs_getopt(mp->mnt_optnew, "master_prefix", (void **)&prefix, NULL)) 82 mp->mnt_data = amp; 83 amp->am_mp = mp; 112 autofs_unmount(struct mount *mp, int mntflags) argument 179 autofs_root(struct mount *mp, int flags, struct vnode **vpp) argument 192 autofs_statfs(struct mount *mp, struct statfs *sbp) argument [all...] |
/freebsd-10-stable/contrib/ntp/lib/isc/pthreads/ |
H A D | mutex.c | 99 isc_mutex_init_profile(isc_mutex_t *mp, const char *file, int line) { argument 102 err = pthread_mutex_init(&mp->mutex, NULL); 122 mp->stats = &stats[stats_next++]; 126 mp->stats->file = file; 127 mp->stats->line = line; 128 mp->stats->count = 0; 129 timevalclear(&mp->stats->locked_total); 130 timevalclear(&mp->stats->wait_total); 132 mp->stats->lockers[i].file = NULL; 133 mp 143 isc_mutex_lock_profile(isc_mutex_t *mp, const char *file, int line) argument 186 isc_mutex_unlock_profile(isc_mutex_t *mp, const char *file, int line) argument 238 isc_mutex_init_errcheck(isc_mutex_t *mp) argument 268 isc__mutex_init(isc_mutex_t *mp, const char *file, unsigned int line) argument [all...] |
/freebsd-10-stable/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-stable/libexec/talkd/ |
H A D | process.c | 63 process_request(CTL_MSG *mp, CTL_RESPONSE *rp) argument 69 rp->type = mp->type; 71 if (mp->vers != TALK_VERSION) { 72 syslog(LOG_WARNING, "bad protocol version %d", mp->vers); 76 mp->id_num = ntohl(mp->id_num); 77 mp->addr.sa_family = ntohs(mp->addr.sa_family); 78 if (mp->addr.sa_family != AF_INET) { 80 mp 139 do_announce(CTL_MSG *mp, CTL_RESPONSE *rp) argument [all...] |
/freebsd-10-stable/sys/ufs/ufs/ |
H A D | ufs_vfsops.c | 69 ufs_root(mp, flags, vpp) 70 struct mount *mp; 77 error = VFS_VGET(mp, (ino_t)ROOTINO, flags, &nvp); 88 ufs_quotactl(mp, cmds, id, arg) 89 struct mount *mp; 96 vfs_unbusy(mp); 119 vfs_unbusy(mp); 125 vfs_unbusy(mp); 131 error = quotaon(td, mp, type, arg); 135 error = quotaoff(td, mp, typ [all...] |
/freebsd-10-stable/sys/kern/ |
H A D | vfs_mount.c | 112 struct mount *mp; local 114 mp = (struct mount *)mem; 115 mtx_init(&mp->mnt_mtx, "struct mount mtx", NULL, MTX_DEF); 116 lockinit(&mp->mnt_explock, PVFS, "explock", 0, 0); 123 struct mount *mp; local 125 mp = (struct mount *)mem; 126 lockdestroy(&mp->mnt_explock); 127 mtx_destroy(&mp->mnt_mtx); 433 vfs_ref(struct mount *mp) argument 436 CTR2(KTR_VFS, "%s: mp 443 vfs_rel(struct mount *mp) argument 459 struct mount *mp; local 494 vfs_mount_destroy(struct mount *mp) argument 831 struct mount *mp; local 943 struct mount *mp; local 1194 struct mount *mp; local 1276 dounmount(struct mount *mp, int flags, struct thread *td) argument 1453 vfs_mount_error(struct mount *mp, const char *fmt, ...) argument 1792 __vfs_statfs(struct mount *mp, struct statfs *sbp) argument 1803 vfs_mountedfrom(struct mount *mp, const char *from) argument [all...] |