aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2002-05-15 05:15:23 +0000
committerDanny Smith <dannysmith@users.sourceforge.net>2002-05-15 05:15:23 +0000
commitb6f2bfb054fe0756392189d6df5be12f7416a06c (patch)
tree7a752d3b91a4d6a938066b00739b4d603a0f33e7
parentdd242dffaabc782d8c3afe05b1018124bdc445b7 (diff)
downloadnewlib-b6f2bfb054fe0756392189d6df5be12f7416a06c.zip
newlib-b6f2bfb054fe0756392189d6df5be12f7416a06c.tar.gz
newlib-b6f2bfb054fe0756392189d6df5be12f7416a06c.tar.bz2
* include/dirent.h (DIR): Change dd_stat type to int.
-rw-r--r--winsup/mingw/ChangeLog5
-rw-r--r--winsup/mingw/include/dirent.h10
2 files changed, 9 insertions, 6 deletions
diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog
index b2fb053..df25fce 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 3d7fae8..4df6bd9 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];