stat.h

Overview

Related Modules:

FS

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 statrestrict buf)

int 

Obtains file information.

fstat (int fd, struct statbuf)

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.