waitfor
while (waitfor(NULL, &sig) >= 0)
rv = waitfor(*wp, &sig);
int waitfor(const char *, int *);
zero_waitfor(WSAEVENT waitfor[], WSAEVENT x)
if(waitfor[i] == x)
waitfor[i] = 0;
base->waitfor[numwait++] = base->items[i]->hEvent;
ret = WSAWaitForMultipleEvents(numwait, base->waitfor,
if(!base->waitfor[i])
if(!base->waitfor[i])
base->waitfor[i], /* reset the event handle */
zero_waitfor(ev->ev_base->waitfor, ev->hEvent);
WSAEVENT waitfor[WSK_MAX_ITEMS];
int waitfor; /* interrupts to poll for */
waitfor = PMU_INT_ADB_AUTO | PMU_INT_ADB;
waitfor |= PMU_INT_SNDBRT;
waitfor = PMU_INT_ALL;
if (ifr & waitfor) {
(u_int)ifr, (u_int)waitfor);
dcphy_mii_phy_auto(struct mii_softc *mii, int waitfor)
if (waitfor) {
mii_phy_auto(struct mii_softc *sc, int waitfor)
if (waitfor) {
tlphy_mii_phy_auto(struct tlphy_softc *sc, int waitfor)
switch ((error = mii_phy_auto(&sc->sc_mii, waitfor))) {
cd9660_sync(struct mount *mp, int waitfor, int stall, struct ucred *cred,
udf_sync(struct mount *mp, int waitfor, int stall, struct ucred *cred, struct proc *p)
VOP_FSYNC(struct vnode *vp, struct ucred *cred, int waitfor,
a.a_waitfor = waitfor;
fusefs_sync(struct mount *mp, int waitfor, int stall, struct ucred *cred,
deupdat(struct denode *dep, int waitfor)
if (waitfor)
int waitfor;
msa->waitfor == MNT_LAZY) {
if ((error = VOP_FSYNC(vp, msa->cred, msa->waitfor, msa->p)) != 0)
msdosfs_sync(struct mount *mp, int waitfor, int stall, struct ucred *cred,
msa.waitfor = waitfor;
if (waitfor != MNT_LAZY) {
if ((error = VOP_FSYNC(pmp->pm_devvp, cred, waitfor, p)) != 0)
nfs_sync(struct mount *mp, int waitfor, int stall, struct ucred *cred, struct proc *p)
if (waitfor == MNT_LAZY)
error = VOP_FSYNC(vp, cred, waitfor, p);
nfs_flush(struct vnode *vp, struct ucred *cred, int waitfor, struct proc *p,
if (waitfor != MNT_WAIT || passone)
if (waitfor == MNT_WAIT) {
ntfs_sync(struct mount *mp, int waitfor, int stall, struct ucred *cred, struct proc *p)
int (*vfs_sync)(struct mount *mp, int waitfor, int stall,
tmpfs_sync(struct mount *mp, int waitfor, int stall, struct ucred *cred,
int ext2fs_update(struct inode *ip, int waitfor);
ext2fs_update(struct inode *ip, int waitfor)
if (waitfor)
ext2fs_sbupdate(struct ufsmount *mp, int waitfor)
if (waitfor == MNT_WAIT)
ext2fs_cgupdate(struct ufsmount *mp, int waitfor)
allerror = ext2fs_sbupdate(mp, waitfor);
if (waitfor == MNT_WAIT)
int waitfor;
if ((error = VOP_FSYNC(vp, esa->cred, esa->waitfor, esa->p)) != 0)
ext2fs_sync(struct mount *mp, int waitfor, int stall,
esa.waitfor = waitfor;
if (waitfor != MNT_LAZY) {
if ((error = VOP_FSYNC(ump->um_devvp, cred, waitfor, p)) != 0)
if ((error = ext2fs_cgupdate(ump, waitfor)))
if (waitfor && !DOINGASYNC(vp)) {
ffs_update(struct inode *ip, int waitfor)
if ((ip->i_flag & IN_MODIFIED) == 0 && waitfor == 0)
int waitfor;
if (fsa->waitfor == MNT_WAIT && (ip->i_flag & IN_LAZYMOD)) {
if ((error = VOP_FSYNC(vp, fsa->cred, fsa->waitfor, fsa->p)))
ffs_sync(struct mount *mp, int waitfor, int stall, struct ucred *cred, struct proc *p)
fsa.waitfor = waitfor;
if (waitfor != MNT_LAZY) {
if (waitfor != MNT_LAZY) {
if ((error = VOP_FSYNC(ump->um_devvp, cred, waitfor, p)) != 0)
if (fs->fs_fmod != 0 && (error = ffs_sbupdate(ump, waitfor)) != 0)
ffs_sbupdate(struct ufsmount *mp, int waitfor)
if (waitfor != MNT_WAIT)
if (waitfor != MNT_WAIT)
int (* iv_update)(struct inode *, int waitfor);
zero_waitfor(WSAEVENT waitfor[], WSAEVENT x)
if(waitfor[i] == x)
waitfor[i] = 0;
base->waitfor[numwait++] = base->items[i]->hEvent;
ret = WSAWaitForMultipleEvents(numwait, base->waitfor,
if(!base->waitfor[i])
if(!base->waitfor[i])
base->waitfor[i], /* reset the event handle */
zero_waitfor(ev->ev_base->waitfor, ev->hEvent);
WSAEVENT waitfor[WSK_MAX_ITEMS];