---
name: "mode_t"
section: "3type"
platform: "linux"
package: "man-pages"
version: "6.19-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/mode_t"
---

# mode\_t(3type)

file attributes

## NAME

mode\_t - file attributes

## LIBRARY

Standard C library (*libc*)

## SYNOPSIS

```
#include <sys/types.h>
```

**typedef** /\* ... \*/ **mode\_t;**

## DESCRIPTION

Used for some file attributes (e.g., file mode). It is an integer type.

## STANDARDS

POSIX.1-2024.

## HISTORY

POSIX.1-1988.

## NOTES

The following headers also provide this type: *\<fcntl.h\>*, *\<ndbm.h\>*, *\<spawn.h\>*, *\<sys/ipc.h\>*, *\<sys/mman.h\>*, and *\<sys/stat.h\>*.

## SEE ALSO

[**chmod**(2)](/chmod/2.md), [**mkdir**(2)](/mkdir/2.md), [**open**(2)](/open/2.md), [**umask**(2)](/umask/2.md), [**stat**(3type)](/stat/3type.md)
