(value)
return None
Given a value for a syscall number (e.g. execve == 11), return
    the *name* of the syscall.
Given a value for a syscall number (e.g. execve == 11), return
    the *name* of the syscall.
Given a value for a syscall number ( e . g . execve == 11 ) return the * name * of the syscall .
def syscall(value):
    """
    Given a value for a syscall number (e.g. execve == 11), return
    the *name* of the syscall.
    """
    arch = arches.get(pwndbg.arch.current, None)

    if not arch:
        return None

    prefix = '__NR_'

    for k, v in arch.__dict__.items():
        if v != value:
            continue

        if not k.startswith(prefix):
            continue

        return k[len(prefix):].lower()

    return None
def syscall ( value ) : arch = arches . get ( pwndbg . arch . current , None ) if not arch : return None prefix = '__NR_' for k , v in arch . __dict__ . items ( ) : if v != value : continue if not k . startswith ( prefix ) : continue return k [ len ( prefix ) : ] . lower ( ) return None