AUPARSE\_FIRST\_RECORD(3) Linux Audit API AUPARSE\_FIRST\_RECORD(3)

# [NAME](#NAME)

auparse\_first\_record - reposition record cursor

# [SYNOPSIS](#SYNOPSIS)

**#include &lt;auparse.h&gt;**

**int auparse\_first\_record(auparse\_state\_t \*au);"**

# [DESCRIPTION](#DESCRIPTION)

auparse\_first\_record repositions the internal cursors of the parsing library to point to the first field of the first record in the current event.

# [RETURN VALUE](#RETURN_VALUE)

Returns -1 if an error occurs, 0 if there is no event data, or 1 for success.

# [SEE ALSO](#SEE_ALSO)

[**auparse\_next\_event**(3)](/man/os/audit/auparse_next_event.3), [**auparse\_next\_record**(3)](/man/os/audit/auparse_next_record.3).

# [AUTHOR](#AUTHOR)

Steve Grubb

Sep 2014 Red Hat

---

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