Каталог требований LSB Core 3.1

Требования для функции 'opendir'
StandardIDDescription
SUSv3app.opendir.01 The opendir() function shall open a directory stream corresponding to the directory named by the dirname argument.
SUSv3opendir.02 The directory stream is positioned at the first entry.
SUSv3opendir.03 If the type DIR is implemented using a file descriptor, applications shall only be able to open up to a total of {OPEN_MAX} files and directories.
SUSv3opendir.04 Upon successful completion, opendir() shall return a pointer to an object of type DIR.
SUSv3opendir.05 Otherwise, a null pointer shall be returned and errno set to indicate the error.
SUSv3opendir.06 The opendir() function shall fail if:
SUSv3opendir.06.01 [EACCES] Search permission is denied for the component of the path prefix of dirname or read permission is denied for dirname.
SUSv3opendir.06.02 [ELOOP] A loop exists in symbolic links encountered during resolution of the dirname argument.
SUSv3opendir.06.03 [ENAMETOOLONG] The length of the dirname argument exceeds {PATH_MAX} or a pathname component is longer than {NAME_MAX}.
SUSv3opendir.06.04 [ENOENT] A component of dirname does not name an existing directory or dirname is an empty string.
SUSv3opendir.06.05 [ENOTDIR] A component of dirname is not a directory.
SUSv3opendir.07 The opendir() function may fail if:
SUSv3opendir.07.01 [ELOOP] More than {SYMLOOP_MAX} symbolic links were encountered during resolution of the dirname argument.
SUSv3opendir.07.02 [EMFILE] {OPEN_MAX} file descriptors are currently open in the calling process.
SUSv3opendir.07.03 [ENAMETOOLONG] As a result of encountering a symbolic link in resolution of the dirname argument, the length of the substituted pathname string exceeded {PATH_MAX}.
SUSv3opendir.07.04 [ENFILE] Too many files are currently open in the system.
The text in the Description column of SUSv3 requirements is reproduced from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html