O_SHLOCK atomically obtain a shared lock O_EXLOCK atomically obtain an exclusive lock