AUDIT\_SYSCALL\_TO\_NAME(3) Linux Audit API AUDIT\_SYSCALL\_TO\_NAME(3)

# [NAME](#NAME)

audit\_syscall\_to\_name - Convert the numeric syscall value to the syscall name

# [SYNOPSIS](#SYNOPSIS)

```
#include <libaudit.h>
```

```
const char *audit_syscall_to_name(int sc, int machine);
```

# [DESCRIPTION](#DESCRIPTION)

**audit\_syscall\_to\_name**() converts the numeric syscall value to the syscall name. *sc* is the numeric syscall value. *machine* is the enum value of the machine type defined in machine\_t. *machine* can be obtained by calling [**audit\_detect\_machine**(3)](/man/os/audit/audit_detect_machine.3).

# [RETURN VALUE](#RETURN_VALUE)

Returns NULL if an error occurs; otherwise, the return value is the syscall name.

# [SEE ALSO](#SEE_ALSO)

[**audit\_name\_to\_syscall**(3)](/man/os/audit/audit_name_to_syscall.3), [**audit\_detect\_machine**(3)](/man/os/audit/audit_detect_machine.3).

# [AUTHOR](#AUTHOR)

Steve Grubb

Nov 2021 Red Hat

---

Document: audit_syscall_to_name(3) from audit 4.2.1-r1 (Chainguard OS)
Source: https://github.com/linux-audit/audit-userspace
