def formatMmapProt(argument): return formatBits(argument.value, MMAP_PROT_BITMASK, "PROT_NONE")
def formatAccessMode(argument): return formatBits(argument.value, ACCESS_MODE_BITMASK, "F_OK")
def formatOpenMode(mode): return formatBits(int(mode), OPEN_MODE_BITMASK, "O_RDONLY", oct)
def formatOpenMode(argument): return formatBits(int(argument.value), OPEN_MODE_BITMASK, "O_RDONLY", oct)
def formatAccessMode(mode): return formatBits(mode, ACCESS_MODE_BITMASK, "F_OK")
def formatMmapProt(prot): return formatBits(prot, MMAP_PROT_BITMASK, "PROT_NONE")