diff options
author | Danny Smith <dannysmith@users.sourceforge.net> | 2002-05-15 05:15:21 +0000 |
---|---|---|
committer | Danny Smith <dannysmith@users.sourceforge.net> | 2002-05-15 05:15:21 +0000 |
commit | 941604f00e91a8d208d54e37a49e04b51713371a (patch) | |
tree | 52ca546cdf9453e49b176696f0ebdc80a26639f4 | |
parent | f1200fa65d8bc99d2110529c55086a6183802c7d (diff) | |
download | gdb-941604f00e91a8d208d54e37a49e04b51713371a.tar.gz |
* include/dirent.h (DIR): Change dd_stat type to int.
-rw-r--r-- | winsup/mingw/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/mingw/include/dirent.h | 10 |
2 files changed, 9 insertions, 6 deletions
diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog index b2fb0538bdd..df25fce3729 100644 --- a/winsup/mingw/ChangeLog +++ b/winsup/mingw/ChangeLog @@ -1,3 +1,8 @@ +2002-05-15 Pascal Obry <obry@gnat.com> + + * include/dirent.h (DIR): Change dd_stat type to int. + (_WDIR): Likewise. + 2002-05-07 Danny Smith <dannysmith@users.sourceforge.net> * include/stdio.h (vsnprintf): Change inline to __inline__; diff --git a/winsup/mingw/include/dirent.h b/winsup/mingw/include/dirent.h index 3d7fae8279c..4df6bd9974e 100644 --- a/winsup/mingw/include/dirent.h +++ b/winsup/mingw/include/dirent.h @@ -50,6 +50,7 @@ struct dirent /* * This is an internal data structure. Good programmers will not use it * except as an argument to one of the functions below. + * dd_stat field is now int (was short in older versions). */ typedef struct { @@ -70,14 +71,12 @@ typedef struct * -1 = off the end * positive = 0 based index of next entry */ - short dd_stat; + int dd_stat; /* given path for dir with search pattern (struct is extended) */ char dd_name[1]; } DIR; - - DIR* opendir (const char*); struct dirent* readdir (DIR*); int closedir (DIR*); @@ -94,8 +93,7 @@ struct _wdirent unsigned short d_reclen; /* Always zero. */ unsigned short d_namlen; /* Length of name in d_name. */ wchar_t* d_name; /* File name. */ - /* NOTE: The name in the dirent structure points to the name in the - * wfinddata_t structure in the _WDIR. */ + /* NOTE: The name in the dirent structure points to the name in the * wfinddata_t structure in the _WDIR. */ }; /* @@ -121,7 +119,7 @@ typedef struct * -1 = off the end * positive = 0 based index of next entry */ - short dd_stat; + int dd_stat; /* given path for dir with search pattern (struct is extended) */ wchar_t dd_name[1]; |