Changeset View
Changeset View
Standalone View
Standalone View
head/include/dirent.h
Show All 35 Lines | |||||
/* | /* | ||||
* The kernel defines the format of directory entries returned by | * The kernel defines the format of directory entries returned by | ||||
* the getdirentries(2) system call. | * the getdirentries(2) system call. | ||||
*/ | */ | ||||
#include <sys/cdefs.h> | #include <sys/cdefs.h> | ||||
#include <sys/_types.h> | #include <sys/_types.h> | ||||
#include <sys/dirent.h> | #include <sys/dirent.h> | ||||
#if __BSD_VISIBLE | |||||
#ifndef _SIZE_T_DECLARED | |||||
typedef __size_t size_t; | |||||
#define _SIZE_T_DECLARED | |||||
#endif | |||||
#ifndef _SSIZE_T_DECLARED | |||||
typedef __ssize_t ssize_t; | |||||
#define _SSIZE_T_DECLARED | |||||
#endif | |||||
#ifndef _OFF_T_DECLARED | |||||
typedef __off_t off_t; | |||||
#define _OFF_T_DECLARED | |||||
#endif | |||||
#endif /* __BSD_VISIBLE */ | |||||
#if __XSI_VISIBLE | #if __XSI_VISIBLE | ||||
#ifndef _INO_T_DECLARED | #ifndef _INO_T_DECLARED | ||||
typedef __ino_t ino_t; | typedef __ino_t ino_t; | ||||
#define _INO_T_DECLARED | #define _INO_T_DECLARED | ||||
#endif | #endif | ||||
/* | /* | ||||
Show All 32 Lines | |||||
__BEGIN_DECLS | __BEGIN_DECLS | ||||
#if __POSIX_VISIBLE >= 200809 || __XSI_VISIBLE >= 700 | #if __POSIX_VISIBLE >= 200809 || __XSI_VISIBLE >= 700 | ||||
int alphasort(const struct dirent **, const struct dirent **); | int alphasort(const struct dirent **, const struct dirent **); | ||||
int dirfd(DIR *); | int dirfd(DIR *); | ||||
#endif | #endif | ||||
#if __BSD_VISIBLE | #if __BSD_VISIBLE | ||||
DIR *__opendir2(const char *, int); | DIR *__opendir2(const char *, int); | ||||
int fdclosedir(DIR *); | int fdclosedir(DIR *); | ||||
int getdents(int, char *, int); | ssize_t getdents(int, char *, size_t); | ||||
int getdirentries(int, char *, int, long *); | ssize_t getdirentries(int, char *, size_t, off_t *); | ||||
#endif | #endif | ||||
DIR *opendir(const char *); | DIR *opendir(const char *); | ||||
DIR *fdopendir(int); | DIR *fdopendir(int); | ||||
struct dirent * | struct dirent * | ||||
readdir(DIR *); | readdir(DIR *); | ||||
#if __POSIX_VISIBLE >= 199506 || __XSI_VISIBLE >= 500 | #if __POSIX_VISIBLE >= 199506 || __XSI_VISIBLE >= 500 | ||||
int readdir_r(DIR *, struct dirent *, struct dirent **); | int readdir_r(DIR *, struct dirent *, struct dirent **); | ||||
#endif | #endif | ||||
Show All 21 Lines |