O'Reilly logo
  • Ivan Petrov thinks this is interesting:

Directories are processed with the opendir(), readdir(), rewinddir(), and closedir() functions. A struct dirent contains the inode number and the file’s name. Maximally portable code uses only the filename in the d_name member. The BSD telldir() and seekdir() functions for saving and restoring the current position in a directory are widely available but are not as fully portable as the other directory processing functions.

From

Cover of Linux® Programming by Example

Note

directory commands