static PRIntervalTime NonContentiousLock(PRUint32 loops)
static PRIntervalTime NonContentiousLock(PRInt32 loops)
static PRIntervalTime NonContentiousLock(PRUint32 loops){    PRFileDesc *_lockfile;    while (loops-- > 0)    {        _lockfile = PR_Open(LOCKFILE, PR_CREATE_FILE|PR_RDWR, 0666);        if (!_lockfile) {            if (debug_mode) printf(                "could not create lockfile: %d [%d]\n",                PR_GetError(), PR_GetOSError());            return PR_INTERVAL_NO_TIMEOUT;        }        PR_LockFile(_lockfile);        PR_UnlockFile(_lockfile);        PR_Close(_lockfile);    }    return 0;}  /* NonContentiousLock */