limb 0.2.0

2024-01-09

direntry.h(0)
limb manual
direntry.h(0)

NAME

direntry.h - directory operations

SYNOPSIS

#include <limb/direntry.h>

DESCRIPTION

The header defines the needed functions to deal with directory streams.

skalibs

This header is a complement to skalibs' own header, intended to be used as a "replacement". However, instead of re-inventing the wheel, it depends/includes skalibs' header, and some of the functions below are actually implemented in skalibs, or macros to such functions.

Types

The following types are defined :

direntry

A struct dirent

Macros

The following macros are defined :

ISDOTDOT(de)

Returns whether the pointed direntry is that of the . or .. file

Functions

The following functions are defined :

opendirat(3)

Open a directory stream, with relative path to a given file descriptor.

dir_close(3)

Close a directory stream.

dir_fd(3)

Similar to dirfd(3)

sa_scandirat(3)

Scan a directory to fill a stralloc.

sa_scandir(3)

Similar to sa_scandirat(3) except for relative path.

limb 0.1.0
2023-07-24
direntry.h(0)