=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/include/dirent.h,v retrieving revision 1.26 retrieving revision 1.27 diff -c -r1.26 -r1.27 *** src/include/dirent.h 2012/03/22 01:44:19 1.26 --- src/include/dirent.h 2012/03/22 04:11:53 1.27 *************** *** 1,4 **** ! /* $OpenBSD: dirent.h,v 1.26 2012/03/22 01:44:19 guenther Exp $ */ /* $NetBSD: dirent.h,v 1.9 1995/03/26 20:13:37 jtc Exp $ */ /*- --- 1,4 ---- ! /* $OpenBSD: dirent.h,v 1.27 2012/03/22 04:11:53 matthew Exp $ */ /* $NetBSD: dirent.h,v 1.9 1995/03/26 20:13:37 jtc Exp $ */ /*- *************** *** 54,83 **** #define d_ino d_fileno /* backward compatibility */ #endif ! #if __BSD_VISIBLE || __XPG_VISIBLE > 600 ! #define dirfd(dirp) ((dirp)->dd_fd) ! #endif #if __BSD_VISIBLE /* definitions for library routines operating on directories. */ #define DIRBLKSIZ 1024 - struct _telldir; - /* structure describing an open directory. */ - typedef struct _dirdesc { - int dd_fd; /* file descriptor associated with directory */ - long dd_loc; /* offset in current buffer */ - long dd_size; /* amount of data returned by getdirentries */ - char *dd_buf; /* data buffer */ - int dd_len; /* size of data buffer */ - off_t dd_seek; /* magic cookie returned by getdirentries */ - off_t dd_rewind; /* magic cookie for rewinding */ - int dd_unused; /* was flags for readdir */ - struct _telldir *dd_td; /* telldir position recording */ - void *dd_lock; /* mutex to protect struct */ - } DIR; - #ifndef NULL #ifdef __GNUG__ #define NULL __null --- 54,66 ---- #define d_ino d_fileno /* backward compatibility */ #endif ! typedef struct _dirdesc DIR; #if __BSD_VISIBLE /* definitions for library routines operating on directories. */ #define DIRBLKSIZ 1024 #ifndef NULL #ifdef __GNUG__ #define NULL __null *************** *** 88,99 **** #endif /* __GNUG__ */ #endif /* !NULL */ ! #else /* !__BSD_VISIBLE */ - typedef void * DIR; - - #endif /* !__BSD_VISIBLE */ - #ifndef _KERNEL __BEGIN_DECLS DIR *opendir(const char *); --- 71,78 ---- #endif /* __GNUG__ */ #endif /* !NULL */ ! #endif /* __BSD_VISIBLE */ #ifndef _KERNEL __BEGIN_DECLS DIR *opendir(const char *); *************** *** 121,127 **** int alphasort(const struct dirent **, const struct dirent **); #endif #if __POSIX_VISIBLE >= 200809 || __XPG_VISIBLE > 600 ! int (dirfd)(DIR *); #endif __END_DECLS --- 100,106 ---- int alphasort(const struct dirent **, const struct dirent **); #endif #if __POSIX_VISIBLE >= 200809 || __XPG_VISIBLE > 600 ! int dirfd(DIR *); #endif __END_DECLS