aboutsummaryrefslogtreecommitdiffstats
path: root/nt
diff options
context:
space:
mode:
Diffstat (limited to 'nt')
-rw-r--r--nt/ChangeLog6
-rw-r--r--nt/inc/sys/stat.h9
2 files changed, 10 insertions, 5 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog
index 8b9163c9f78..d8b9b14a3fb 100644
--- a/nt/ChangeLog
+++ b/nt/ChangeLog
@@ -1,3 +1,9 @@
12012-08-03 Eli Zaretskii <eliz@gnu.org>
2
3 * inc/sys/stat.h (S_IFLNK): Define.
4 (S_ISLNK): A non-trivial definition.
5 (lstat): Prototype instead of a macro that redirects to 'stat'.
6
12012-08-02 Paul Eggert <eggert@cs.ucla.edu> 72012-08-02 Paul Eggert <eggert@cs.ucla.edu>
2 8
3 Use C99-style 'extern inline' if available. 9 Use C99-style 'extern inline' if available.
diff --git a/nt/inc/sys/stat.h b/nt/inc/sys/stat.h
index 57fabff4b0c..b673b80a0e3 100644
--- a/nt/inc/sys/stat.h
+++ b/nt/inc/sys/stat.h
@@ -33,13 +33,14 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
33#include <sys/types.h> 33#include <sys/types.h>
34#include <time.h> 34#include <time.h>
35 35
36#define S_IFMT 0xF000 36#define S_IFMT 0xF800
37 37
38#define S_IFREG 0x8000 38#define S_IFREG 0x8000
39#define S_IFDIR 0x4000 39#define S_IFDIR 0x4000
40#define S_IFBLK 0x3000 40#define S_IFBLK 0x3000
41#define S_IFCHR 0x2000 41#define S_IFCHR 0x2000
42#define S_IFIFO 0x1000 42#define S_IFIFO 0x1000
43#define S_IFLNK 0x0800
43 44
44#define S_IREAD 0x0100 45#define S_IREAD 0x0100
45#define S_IWRITE 0x0080 46#define S_IWRITE 0x0080
@@ -55,6 +56,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
55#define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) 56#define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
56#define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) 57#define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
57#define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) 58#define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
59#define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
58 60
59/* These don't exist on Windows, but lib/filemode.c wants them. */ 61/* These don't exist on Windows, but lib/filemode.c wants them. */
60#define S_ISUID 0 62#define S_ISUID 0
@@ -68,7 +70,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
68#define S_IXOTH (S_IXUSR >> 6) 70#define S_IXOTH (S_IXUSR >> 6)
69 71
70#define S_ISSOCK(m) 0 72#define S_ISSOCK(m) 0
71#define S_ISLNK(m) 0
72#define S_ISCTG(p) 0 73#define S_ISCTG(p) 0
73#define S_ISDOOR(m) 0 74#define S_ISDOOR(m) 0
74#define S_ISMPB(m) 0 75#define S_ISMPB(m) 0
@@ -103,9 +104,7 @@ struct stat {
103_CRTIMP int __cdecl __MINGW_NOTHROW fstat (int, struct stat*); 104_CRTIMP int __cdecl __MINGW_NOTHROW fstat (int, struct stat*);
104_CRTIMP int __cdecl __MINGW_NOTHROW chmod (const char*, int); 105_CRTIMP int __cdecl __MINGW_NOTHROW chmod (const char*, int);
105_CRTIMP int __cdecl __MINGW_NOTHROW stat (const char*, struct stat*); 106_CRTIMP int __cdecl __MINGW_NOTHROW stat (const char*, struct stat*);
106 107_CRTIMP int __cdecl __MINGW_NOTHROW lstat (const char*, struct stat*);
107/* fileio.c and dired.c want lstat. */
108#define lstat stat
109 108
110#endif /* INC_SYS_STAT_H_ */ 109#endif /* INC_SYS_STAT_H_ */
111 110