/*
**  Copyright (C) - Triton
**
**  This program is under the terms of the LGPLv3 License.
*/


#include <iostream>

#include <Syscalls.h>
#include <TritonTypes.h>


extern const char *syscallmap[];

const char *syscallNumberLinux64ToString(uint64 syscallNumber) {
  if (syscallNumber > 0 && syscallNumber < (uint64) NB_SYSCALL)
    return syscallmap[syscallNumber];
  else
    return nullptr;
}

/*
**  Copyright (C) - Triton
**
**  This program is under the terms of the LGPLv3 License.
*/


#include <iostream>

#include <Syscalls.h>
#include <TritonTypes.h>


extern const char *syscallmap[];

const char *syscallNumberLinux64ToString(uint64 syscallNumber) {
  if (syscallNumber >= 0 && syscallNumber < (uint64) NB_SYSCALL)
    return syscallmap[syscallNumber];
  else
    return nullptr;
}

Fix - Failed to returns the syscall names
Fix - Failed to returns the syscall names
