PRInt32 rv; rv = lockf(f, F_ULOCK, 0); if (rv == 0) return PR_SUCCESS; _PR_MD_MAP_LOCKF_ERROR(_MD_ERRNO()); return PR_FAILURE;
struct utsname info;  PR_ASSERT((cmd == PR_SI_SYSNAME) || (cmd == PR_SI_RELEASE));  if (uname(&info) == -1) { _PR_MD_MAP_DEFAULT_ERROR(errno); return PR_FAILURE; } if (PR_SI_SYSNAME == cmd) (void)PR_snprintf(name, namelen, info.sysname); else if (PR_SI_RELEASE == cmd) (void)PR_snprintf(name, namelen, info.release); else return PR_FAILURE; return PR_SUCCESS;
PR_IMPLEMENT(PRStatus)_MD_UnlockFile(PRInt32 f){    PRInt32 rv;    rv = lockf(f, F_ULOCK, 0);    if (rv == 0)        return PR_SUCCESS;    _PR_MD_MAP_LOCKF_ERROR(_MD_ERRNO());    return PR_FAILURE;}