# stat.h ## **Overview** **Related Modules:** [FS](FS.md) **Description:** Provides functions for file and directory operations. These functions can be used for file system operations, such as file read/write, directory traversal, and file system mounting. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Data Structures

Data Structure Name

Description

stat

Defines the file information structure.

## Functions

Function Name

Description

stat (const char *__restrict path, struct stat *__restrict buf)

int 

Obtains file information.

fstat (int fd, struct stat *buf)

int 

Obtains file status information.

lstat (const char *__restrict path, struct stat *__restrict buf)

int 

Obtains file information.

mkdir (const char *pathname, mode_t mode)

int 

Creates a directory.

mkfifo (const char *name, mode_t mode)

int 

Creates a named pipe to implement inter-process communication.

mkdirat (int fd, const char *pathname, mode_t mode)

int 

Creates a directory.

chmod (const char *pathname, mode_t mode)

int 

Modifies permissions for a file.

umask (mode_t mode)

mode_t 

Sets umask for a process.