---
name: "audit_name_to_syscall"
section: "3"
platform: "linux"
package: "audit"
version: "4.2.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/audit_name_to_syscall"
---

# audit\_name\_to\_syscall(3)

Convert the syscall name to the numeric syscall value

## NAME

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

## SYNOPSIS

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

**int audit\_name\_to\_syscall(const char** *\*sc***, int** *machine***);**

## DESCRIPTION

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

## RETURN VALUE

Returns -1 if an error occurs; otherwise, the return value is the numeric syscall value.

## SEE ALSO

[**audit\_syscall\_to\_name**(3)](/audit_syscall_to_name/3.md), [**audit\_detect\_machine**(3)](/audit_detect_machine/3.md).

## AUTHOR

Steve Grubb
