DIR is not meant to be explicit
parent
a71ca7242a
commit
bce8b1eff6
|
@ -141,24 +141,6 @@ C-STRUCT: _opaque_pthread_mutex_t
|
||||||
|
|
||||||
TYPEDEF: _opaque_pthread_mutex_t* __darwin_pthread_mutex_t
|
TYPEDEF: _opaque_pthread_mutex_t* __darwin_pthread_mutex_t
|
||||||
|
|
||||||
C-STRUCT: DIR
|
|
||||||
{ "int" "__dd_fd" }
|
|
||||||
{ "long" "__dd_loc" }
|
|
||||||
{ "long" "__dd_size" }
|
|
||||||
{ "char*" "__dd_buf" }
|
|
||||||
{ "int" "__dd_len" }
|
|
||||||
{ "long" "__dd_seek" }
|
|
||||||
{ "long" "__dd_rewind" }
|
|
||||||
{ "int" "__dd_flags" }
|
|
||||||
{ "__darwin_pthread_mutex_t" "__dd_lock" }
|
|
||||||
{ "void*" "__dd_td" } ;
|
|
||||||
|
|
||||||
|
|
||||||
! #define DIRSIZ(dp) \
|
|
||||||
! ((sizeof (struct direct) - (MAXNAMLEN+1)) + (((dp)->d_namlen+1 + 3) &~ 3))
|
|
||||||
|
|
||||||
! __DARWIN_STRUCT_DIRENTRY { \
|
|
||||||
|
|
||||||
: __DARWIN_MAXPATHLEN 1024 ; inline
|
: __DARWIN_MAXPATHLEN 1024 ; inline
|
||||||
: __DARWIN_MAXNAMELEN 255 ; inline
|
: __DARWIN_MAXNAMELEN 255 ; inline
|
||||||
: __DARWIN_MAXNAMELEN+1 255 ; inline
|
: __DARWIN_MAXNAMELEN+1 255 ; inline
|
||||||
|
|
|
@ -160,7 +160,7 @@ FUNCTION: int pipe ( int* filedes ) ;
|
||||||
FUNCTION: void* popen ( char* command, char* type ) ;
|
FUNCTION: void* popen ( char* command, char* type ) ;
|
||||||
FUNCTION: ssize_t read ( int fd, void* buf, size_t nbytes ) ;
|
FUNCTION: ssize_t read ( int fd, void* buf, size_t nbytes ) ;
|
||||||
|
|
||||||
FUNCTION: int readdir_r ( DIR* dirp, dirent* entry, dirent** result ) ;
|
FUNCTION: int readdir_r ( void* dirp, dirent* entry, dirent** result ) ;
|
||||||
|
|
||||||
FUNCTION: ssize_t readlink ( char* path, char* buf, size_t bufsize ) ;
|
FUNCTION: ssize_t readlink ( char* path, char* buf, size_t bufsize ) ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue