version 1.15, 2005/12/13 00:35:22 |
version 1.16, 2006/04/01 18:06:59 |
|
|
/* definitions for library routines operating on directories. */ |
/* definitions for library routines operating on directories. */ |
#define DIRBLKSIZ 1024 |
#define DIRBLKSIZ 1024 |
|
|
|
struct _telldir; |
/* structure describing an open directory. */ |
/* structure describing an open directory. */ |
typedef struct _dirdesc { |
typedef struct _dirdesc { |
int dd_fd; /* file descriptor associated with directory */ |
int dd_fd; /* file descriptor associated with directory */ |
|
|
long dd_seek; /* magic cookie returned by getdirentries */ |
long dd_seek; /* magic cookie returned by getdirentries */ |
long dd_rewind; /* magic cookie for rewinding */ |
long dd_rewind; /* magic cookie for rewinding */ |
int dd_flags; /* flags for readdir */ |
int dd_flags; /* flags for readdir */ |
|
struct _telldir *dd_td; /* telldir position recording */ |
} DIR; |
} DIR; |
|
|
#define dirfd(dirp) ((dirp)->dd_fd) |
#define dirfd(dirp) ((dirp)->dd_fd) |
|
|
__attribute__ ((__bounded__(__string__,2,3))); |
__attribute__ ((__bounded__(__string__,2,3))); |
#endif /* __BSD_VISIBLE */ |
#endif /* __BSD_VISIBLE */ |
#if __XPG_VISIBLE |
#if __XPG_VISIBLE |
long telldir(const DIR *); |
long telldir(DIR *); |
void seekdir(DIR *, long); |
void seekdir(DIR *, long); |
#endif |
#endif |
#if __POSIX_VISIBLE >= 199506 || __XPG_VISIBLE >= 500 |
#if __POSIX_VISIBLE >= 199506 || __XPG_VISIBLE >= 500 |