NetSurf
Functions
dirent.h File Reference

directory traversal and entry More...

#include "utils/config.h"
#include <dirent.h>
Include dependency graph for dirent.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int alphasort (const struct dirent **d1, const struct dirent **d2)
 
int scandir (const char *dir, struct dirent ***namelist, int(*sel)(const struct dirent *), int(*compar)(const struct dirent **, const struct dirent **))
 

Detailed Description

directory traversal and entry

This allows the obtaining of standard directory entry routines functions in a uniform way despite any oddities in headers and supported API between OS.

Note
This functionality was previously provided as a side effect of the utils config header include.

Definition in file dirent.h.

Function Documentation

◆ alphasort()

int alphasort ( const struct dirent **  d1,
const struct dirent **  d2 
)

Definition at line 184 of file os3support.c.

◆ scandir()

int scandir ( const char *  dir,
struct dirent ***  namelist,
int(*)(const struct dirent *)  sel,
int(*)(const struct dirent **, const struct dirent **)  compar 
)

Definition at line 190 of file os3support.c.

References compar().

Referenced by fetch_file_process_dir().

Here is the call graph for this function:
Here is the caller graph for this function: