aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src/ntlib.c
diff options
context:
space:
mode:
authorKenichi Handa2012-08-16 21:25:17 +0900
committerKenichi Handa2012-08-16 21:25:17 +0900
commitd75ffb4ed0b2e72a9361a07d16a5c884a9459728 (patch)
tree8ac5a6a8ae033fef7fbc7fb7b09a703ef4b0ed5b /lib-src/ntlib.c
parent69c41c4070c86baac11a627e9c3d366420aeb7cc (diff)
parent250c8ab9b8f6322959fa3122db83944c30c3894b (diff)
downloademacs-d75ffb4ed0b2e72a9361a07d16a5c884a9459728.tar.gz
emacs-d75ffb4ed0b2e72a9361a07d16a5c884a9459728.zip
merge trunk
Diffstat (limited to 'lib-src/ntlib.c')
-rw-r--r--lib-src/ntlib.c19
1 files changed, 13 insertions, 6 deletions
diff --git a/lib-src/ntlib.c b/lib-src/ntlib.c
index d3b001c157c..2cc791fb56a 100644
--- a/lib-src/ntlib.c
+++ b/lib-src/ntlib.c
@@ -1,5 +1,9 @@
1/* Utility and Unix shadow routines for GNU Emacs support programs on NT. 1/* Utility and Unix shadow routines for GNU Emacs support programs on NT.
2 Copyright (C) 1994, 2001-2012 Free Software Foundation, Inc. 2
3Copyright (C) 1994, 2001-2012 Free Software Foundation, Inc.
4
5Author: Geoff Voelker (voelker@cs.washington.edu)
6Created: 10-8-94
3 7
4This file is part of GNU Emacs. 8This file is part of GNU Emacs.
5 9
@@ -14,11 +18,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details. 18GNU General Public License for more details.
15 19
16You should have received a copy of the GNU General Public License 20You should have received a copy of the GNU General Public License
17along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. 21along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
18
19
20 Geoff Voelker (voelker@cs.washington.edu) 10-8-94
21*/
22 22
23#include <windows.h> 23#include <windows.h>
24#include <stdlib.h> 24#include <stdlib.h>
@@ -260,6 +260,7 @@ is_exec (const char * name)
260 stricmp (p, ".cmd") == 0)); 260 stricmp (p, ".cmd") == 0));
261} 261}
262 262
263/* FIXME? This is in config.nt now - is this still needed? */
263#define IS_DIRECTORY_SEP(x) ((x) == '/' || (x) == '\\') 264#define IS_DIRECTORY_SEP(x) ((x) == '/' || (x) == '\\')
264 265
265/* We need this because nt/inc/sys/stat.h defines struct stat that is 266/* We need this because nt/inc/sys/stat.h defines struct stat that is
@@ -374,3 +375,9 @@ stat (const char * path, struct stat * buf)
374 return 0; 375 return 0;
375} 376}
376 377
378int
379lstat (const char * path, struct stat * buf)
380{
381 return stat (path, buf);
382}
383