osf1 man page for dir

Query: dir

OS: osf1

Section: 4

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

dir(4)							     Kernel Interfaces Manual							    dir(4)

NAME
dir - Format of directories
SYNOPSIS
#include <sys/types.h> #include <dirent.h>
DESCRIPTION
A directory behaves like an ordinary file except that no user may write into a directory. The fact that a file is a directory is indicated by a bit in the flag word of its inode entry. See the fs reference page. The POSIX standard way of returning directory entries is in directory entry structures, which are of variable length. Each directory entry has a struct direct at the front of it, containing its inode number, the length of the entry, and the length of the name contained in the entry. These are followed by the name padded to a 4-byte boundary with null bytes. All names are guaranteed null terminated. The maximum length of a name in a directory is _D_NAME_MAX. By convention, the first two entries in each directory are for . (dot) and .. (dot-dot). The first is an entry for the directory itself. The second is for the parent directory. The meaning of .. (dot-dot) is modified for the root directory (/) of the master file system, where .. (dot-dot) has the same meaning as . (dot).
RELATED INFORMATION
Functions: opendir(3) Files: fs(4) delim off dir(4)
Related Man Pages
dir_ufs(4) - opensolaris
dir(5) - freebsd
dir(5) - osx
dirent(5) - osx
dirent(5) - freebsd
Similar Topics in the Unix Linux Community
Automated FTP task
How can i copy a list of files with different names into others directory have the same name?
Help for shell scripts for moving all files from one directory to another
Create directories in stagging and informatica server
Need to delete large set of files (i.e) close to 100K from a directory based on the input file