/freebsd-10.1-release/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.1-release/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.1-release/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.1-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.1-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.1-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.1-release/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.1-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.1-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+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.1-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.1-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.1-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.1-release/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.1-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.1-release/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...] |
H A D | print.c | 58 print_request(const char *cp, CTL_MSG *mp) argument 63 if (mp->type > NTYPES) { 64 (void)snprintf(tbuf, sizeof(tbuf), "type %d", mp->type); 67 tp = types[mp->type]; 69 cp, tp, (long)mp->id_num, mp->l_name, mp->r_name, mp->r_tty);
|
/freebsd-10.1-release/sys/fs/tmpfs/ |
H A D | tmpfs_vfsops.c | 131 tmpfs_mount(struct mount *mp) argument 153 if (vfs_filteropt(mp->mnt_optnew, tmpfs_opts)) 156 if (mp->mnt_flag & MNT_UPDATE) { 158 if (vfs_filteropt(mp->mnt_optnew, tmpfs_updateopts) != 0) 160 if (vfs_flagopt(mp->mnt_optnew, "ro", NULL, 0) != 161 ((struct tmpfs_mount *)mp->mnt_data)->tm_ronly) 166 vn_lock(mp->mnt_vnodecovered, LK_SHARED | LK_RETRY); 167 error = VOP_GETATTR(mp->mnt_vnodecovered, &va, mp->mnt_cred); 168 VOP_UNLOCK(mp 270 tmpfs_unmount(struct mount *mp, int mntflags) argument 337 tmpfs_root(struct mount *mp, int flags, struct vnode **vpp) argument 349 tmpfs_fhtovp(struct mount *mp, struct fid *fhp, int flags, struct vnode **vpp) argument 386 tmpfs_statfs(struct mount *mp, struct statfs *sbp) argument 418 tmpfs_sync(struct mount *mp, int waitfor) argument [all...] |
/freebsd-10.1-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...] |