Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ dirent(5) — HP-UX 7.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

directory(3C)

ndir(5)

DIRENT(5)

NAME

dirent.h − format of directory streams and directory entries

SYNOPSIS

#include <sys/types.h>
#include <dirent.h>

DESCRIPTION

This header file defines data types used by the directory stream routines described in directory(3C).

The following data types are defined:

DIR A structure containing information about an open directory stream. 

struct dirent A structure defining the format of entries returned by the readdir function (see directory(3C)).

The struct dirent structure includes the following members:

char d_name[MAXNAMLEN+1]; /* name of directory entry */
ino_t d_ino; /* file serial number */
short d_namlen; /* length of string in d_name */
short d_reclen; /* length of this record */

The constant MAXNAMLEN is defined in <dirent.h>. 

This file also contains external declarations for the functions in the directory(3C) package.

AUTHOR

Dirent.h was developed by AT&T and HP. 

SEE ALSO

directory(3C), ndir(5). 

STANDARDS CONFORMANCE

dirent.h: SVID2, XPG2, XPG3, POSIX.1, FIPS 151-1

Hewlett-Packard Company  —  HP-UX Release 7.0: Sept 1989

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026