Exemplo n.º 1
0
def formatMmapProt(argument):
    return formatBits(argument.value, MMAP_PROT_BITMASK, "PROT_NONE")
Exemplo n.º 2
0
def formatAccessMode(argument):
    return formatBits(argument.value, ACCESS_MODE_BITMASK, "F_OK")
Exemplo n.º 3
0
def formatOpenMode(mode):
    return formatBits(int(mode), OPEN_MODE_BITMASK, "O_RDONLY", oct)
Exemplo n.º 4
0
def formatOpenMode(argument):
    return formatBits(int(argument.value), OPEN_MODE_BITMASK, "O_RDONLY", oct)
Exemplo n.º 5
0
def formatAccessMode(mode):
    return formatBits(mode, ACCESS_MODE_BITMASK, "F_OK")
Exemplo n.º 6
0
def formatMmapProt(prot):
    return formatBits(prot, MMAP_PROT_BITMASK, "PROT_NONE")
Exemplo n.º 7
0
def formatAccessMode(argument):
    return formatBits(argument.value, ACCESS_MODE_BITMASK, "F_OK")
Exemplo n.º 8
0
def formatMmapProt(argument):
    return formatBits(argument.value, MMAP_PROT_BITMASK, "PROT_NONE")
Exemplo n.º 9
0
def formatOpenMode(argument):
    return formatBits(int(argument.value), OPEN_MODE_BITMASK, "O_RDONLY", oct)