NAME
direntry.h - directory operations
SYNOPSIS
#include <limb/direntry.h>
DESCRIPTION
The header defines the needed functions to deal with directory streams.
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 :
Open a directory stream, with relative path to a given file descriptor.
Close a directory stream.
Similar to dirfd(3)
Scan a directory to fill a stralloc.
Similar to sa_scandirat(3) except for relative path.