---
name: "audit_is_enabled"
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_is_enabled"
---

# audit\_is\_enabled(3)

judge whether auditing is enabled or not

## NAME

audit\_is\_enabled - judge whether auditing is enabled or not

## SYNOPSIS

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

**int audit\_is\_enabled(int** *fd***);**

## DESCRIPTION

**audit\_is\_enabled**() judges whether auditing is enabled or not. *fd* must have been returned by [**audit\_open**(3)](/audit_open/3.md).

## RETURN VALUE

This function will return 0 if auditing is NOT enabled and 1 if enabled, and -1 on error.

## SEE ALSO

[**audit\_set\_enabled**(3)](/audit_set_enabled/3.md).

## AUTHOR

Steve Grubb
