---
name: "sysdecode_acltype"
section: "3"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["freebsd"]
url: "https://new.carta.tech/sysdecode_acltype"
---

# sysdecode\_acltype(3)

lookup name of various enumerated values

## NAME

**sysdecode\_enum**, **sysdecode\_acltype**, **sysdecode\_atfd**, **sysdecode\_extattrnamespace**, **sysdecode\_fadvice**, **sysdecode\_fcntl\_cmd**, **sysdecode\_getfsstat\_mode**, **sysdecode\_getrusage\_who**, **sysdecode\_idtype**, **sysdecode\_ipproto**, **sysdecode\_itimer**, **sysdecode\_kldsym\_cmd**, **sysdecode\_kldunload\_flags**, **sysdecode\_lio\_listio\_mode**, **sysdecode\_madvice**, **sysdecode\_minherit\_flags**, **sysdecode\_msgctl\_cmd**, **sysdecode\_nfssvc\_flags**, **sysdecode\_pathconf\_name**, **sysdecode\_prio\_which**, **sysdecode\_procctl\_cmd**, **sysdecode\_ptrace\_request**, **sysdecode\_rlimit**, **sysdecode\_rtprio\_function**, **sysdecode\_scheduler\_policy**, **sysdecode\_sctp\_pr\_policy**, **sysdecode\_sctp\_sinfo\_flags**, **sysdecode\_semctl\_cmd**, **sysdecode\_shmctl\_cmd**, **sysdecode\_shutdown\_how**, **sysdecode\_sigbus\_code**, **sysdecode\_sigchld\_code**, **sysdecode\_sigfpe\_code**, **sysdecode\_sigill\_code**, **sysdecode\_signal**, **sysdecode\_sigprocmask\_how**, **sysdecode\_sigsegv\_code**, **sysdecode\_sigtrap\_code**, **sysdecode\_sockaddr\_family**, **sysdecode\_socketdomain**, **sysdecode\_sockettype**, **sysdecode\_sockopt\_level**, **sysdecode\_sysarch\_number**, **sysdecode\_umtx\_op**, **sysdecode\_vmresult**, **sysdecode\_whence** – lookup name of various enumerated values

## LIBRARY

library “libsysdecode”

## SYNOPSIS

**#include \<sysdecode.h\>**

*const* *char* *\**\

**sysdecode\_acltype**(*int type*);

*const* *char* *\**\

**sysdecode\_atfd**(*int fd*);

*const* *char* *\**\

**sysdecode\_extattrnamespace**(*int namespace*);

*const* *char* *\**\

**sysdecode\_fadvice**(*int advice*);

*const* *char* *\**\

**sysdecode\_fcntl\_cmd**(*int cmd*);

*const* *char* *\**\

**sysdecode\_getfsstat\_mode**(*int mode*);

*const* *char* *\**\

**sysdecode\_getrusage\_who**(*int who*);

*const* *char* *\**\

**sysdecode\_idtype**(*int idtype*);

*const* *char* *\**\

**sysdecode\_ipproto**(*int protocol*);

*const* *char* *\**\

**sysdecode\_itimer**(*int which*);

*const* *char* *\**\

**sysdecode\_kldsym\_cmd**(*int cmd*);

*const* *char* *\**\

**sysdecode\_kldunload\_flags**(*int flags*);

*const* *char* *\**\

**sysdecode\_lio\_listio\_mode**(*int mode*);

*const* *char* *\**\

**sysdecode\_madvice**(*int advice*);

*const* *char* *\**\

**sysdecode\_minherit\_flags**(*int inherit*);

*const* *char* *\**\

**sysdecode\_msgctl\_cmd**(*int cmd*);

*const* *char* *\**\

**sysdecode\_nfssvc\_flags**(*int flags*);

*const* *char* *\**\

**sysdecode\_pathconf\_name**(*int name*);

*const* *char* *\**\

**sysdecode\_prio\_which**(*int which*);

*const* *char* *\**\

**sysdecode\_procctl\_cmd**(*int cmd*);

*const* *char* *\**\

**sysdecode\_ptrace\_request**(*int request*);

*const* *char* *\**\

**sysdecode\_rlimit**(*int resource*);

*const* *char* *\**\

**sysdecode\_rtprio\_function**(*int function*);

*const* *char* *\**\

**sysdecode\_scheduler\_policy**(*int policy*);

*const* *char* *\**\

**sysdecode\_sctp\_pr\_policy**(*int policy*);

*const* *char* *\**\

**sysdecode\_semctl\_cmd**(*int cmd*);

*const* *char* *\**\

**sysdecode\_shmctl\_cmd**(*int cmd*);

*const* *char* *\**\

**sysdecode\_shutdown\_how**(*int how*);

*const* *char* *\**\

**sysdecode\_sigbus\_code**(*int si\_code*);

*const* *char* *\**\

**sysdecode\_sigchld\_code**(*int si\_code*);

*const* *char* *\**\

**sysdecode\_sigfpe\_code**(*int si\_code*);

*const* *char* *\**\

**sysdecode\_sigill\_code**(*int si\_code*);

*const* *char* *\**\

**sysdecode\_signal**(*int sig*);

*const* *char* *\**\

**sysdecode\_sigprocmask\_how**(*int how*);

*const* *char* *\**\

**sysdecode\_sigsegv\_code**(*int si\_code*);

*const* *char* *\**\

**sysdecode\_sigtrap\_code**(*int si\_code*);

*const* *char* *\**\

**sysdecode\_sockaddr\_family**(*int sa\_family*);

*const* *char* *\**\

**sysdecode\_socketdomain**(*int domain*);

*const* *char* *\**\

**sysdecode\_sockettype**(*int type*);

*const* *char* *\**\

**sysdecode\_sockopt\_level**(*int level*);

*const* *char* *\**\

**sysdecode\_sysarch\_number**(*int number*);

*const* *char* *\**\

**sysdecode\_umtx\_op**(*int op*);

*const* *char* *\**\

**sysdecode\_vmresult**(*int result*);

*const* *char* *\**\

**sysdecode\_whence**(*int whence*);

## DESCRIPTION

The **sysdecode\_enum** functions return a text description of an integer value. The text description matches the name of a C macro with the same value as the sole function argument. NULL is returned if there is no matching C macro name.

Most of these functions decode an argument passed to a system call:

| | | |
| --- | --- | --- |
| **Function** | **System** **Call** | **Argument** |
| **sysdecode\_acltype**() | [acl\_get\_file(3)](/acl_get_file/3.md) | *type* |
| **sysdecode\_atfd**() | [openat(2)](/openat/2.md) | *fd* |
| **sysdecode\_extattrnamespace**() | [extattr\_get\_fd(2)](/extattr_get_fd/2.md) | *attrnamespace* |
| **sysdecode\_fadvice**() | [posix\_fadvise(2)](/posix_fadvise/2.md) | *advice* |
| **sysdecode\_fcntl\_cmd**() | [fcntl(2)](/fcntl/2.md) | *cmd* |
| **sysdecode\_getfsstat\_mode**() | [getfsstat(2)](/getfsstat/2.md) | *mode* |
| **sysdecode\_idtype**() |  |
| **sysdecode\_itimer**() |  |
| **sysdecode\_kldsym\_cmd**() | [kldsym(2)](/kldsym/2.md) | *cmd* |
| **sysdecode\_kldunload\_flags**() | [kldunloadf(2)](/kldunloadf/2.md) | *flags* |
| **sysdecode\_lio\_listio\_mode**() | [lio\_listio(2)](/lio_listio/2.md) | *mode* |
| **sysdecode\_madvice**() | [madvise(2)](/madvise/2.md) | *advice* |
| **sysdecode\_minherit\_inherit**() | [minherit(2)](/minherit/2.md) | *inherit* |
| **sysdecode\_msgctl\_cmd**() | [msgctl(2)](/msgctl/2.md) | *cmd* |
| **sysdecode\_nfssvc\_flags**() | [nfssvc(2)](/nfssvc/2.md) | *flags* |
| **sysdecode\_pathconf\_name**() | [pathconf(2)](/pathconf/2.md) | *name* |
| **sysdecode\_prio\_which**() | [getpriority(2)](/getpriority/2.md) | *which* |
| **sysdecode\_procctl\_cmd**() | [procctl(2)](/procctl/2.md) | *cmd* |
| **sysdecode\_ptrace\_request**() | [ptrace(2)](/ptrace/2.md) | *request* |
| **sysdecode\_rlimit**() | [getrlimit(2)](/getrlimit/2.md) | *resource* |
| **sysdecode\_rtprio\_function**() | [rtprio(2)](/rtprio/2.md) | *function* |
| **sysdecode\_getrusage\_who**() | [getrusage(2)](/getrusage/2.md) | *who* |
| **sysdecode\_scheduler\_policy**() | [sched\_setscheduler(2)](/sched_setscheduler/2.md) | *policy* |
| **sysdecode\_semctl\_cmd**() | [semctl(2)](/semctl/2.md) | *cmd* |
| **sysdecode\_shmctl\_cmd**() | [shmctl(2)](/shmctl/2.md) | *cmd* |
| **sysdecode\_shutdown\_how**() | [shutdown(2)](/shutdown/2.md) | *how* |
| **sysdecode\_sigprocmask\_how**() | [sigprocmask(2)](/sigprocmask/2.md) | *how* |
| **sysdecode\_sockopt\_level**() | [getsockopt(2)](/getsockopt/2.md) | *level* |
| **sysdecode\_sysarch\_number**() | [sysarch(2)](/sysarch/2.md) | *number* |
| **sysdecode\_umtx\_op**() | [\_umtx\_op(2)](/_umtx_op/2.md) | *op* |
| **sysdecode\_whence**() | [lseek(2)](/lseek/2.md) | *whence* |

These functions decode signal-specific signal codes stored in the *si\_code* field of the *siginfo\_t* object associated with an instance of signal:

| | |
| --- | --- |
| **Function** | **Signal** |
| **sysdecode\_sigbus\_code**() | SIGBUS |
| **sysdecode\_sigchld\_code**() | SIGCHLD |
| **sysdecode\_sigfpe\_code**() | SIGFPE |
| **sysdecode\_sigill\_code**() | SIGILL |
| **sysdecode\_sigsegv\_code**() | SIGSEGV |
| **sysdecode\_sigtrap\_code**() | SIGTRAP |

Other functions decode the values described below:

- **sysdecode\_ipproto**()

  An IP protocol.

- **sysdecode\_sctp\_pr\_policy**()

  A PR-SCTP policy.

- **sysdecode\_signal**()

  A process signal.

- **sysdecode\_sockaddr\_family**()

  A socket address family.

- **sysdecode\_socketdomain**()

  A socket domain.

- **sysdecode\_vmresult**()

  The return value of a function in the virtual memory subsystem of the kernel indicating the status of the associated request.

## RETURN VALUES

The **sysdecode\_enum** functions return the name of a matching C macro or NULL if no matching C macro was found.

## SEE ALSO

[sysdecode(3)](/sysdecode/3.md), [sysdecode\_mask(3)](/sysdecode_mask/3.md), [sysdecode\_sigcode(3)](/sysdecode_sigcode/3.md)
