diff options
| author | Kenichi Handa | 2012-08-16 21:25:17 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2012-08-16 21:25:17 +0900 |
| commit | d75ffb4ed0b2e72a9361a07d16a5c884a9459728 (patch) | |
| tree | 8ac5a6a8ae033fef7fbc7fb7b09a703ef4b0ed5b /lib-src/ntlib.c | |
| parent | 69c41c4070c86baac11a627e9c3d366420aeb7cc (diff) | |
| parent | 250c8ab9b8f6322959fa3122db83944c30c3894b (diff) | |
| download | emacs-d75ffb4ed0b2e72a9361a07d16a5c884a9459728.tar.gz emacs-d75ffb4ed0b2e72a9361a07d16a5c884a9459728.zip | |
merge trunk
Diffstat (limited to 'lib-src/ntlib.c')
| -rw-r--r-- | lib-src/ntlib.c | 19 |
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 | |
| 3 | Copyright (C) 1994, 2001-2012 Free Software Foundation, Inc. | ||
| 4 | |||
| 5 | Author: Geoff Voelker (voelker@cs.washington.edu) | ||
| 6 | Created: 10-8-94 | ||
| 3 | 7 | ||
| 4 | This file is part of GNU Emacs. | 8 | This file is part of GNU Emacs. |
| 5 | 9 | ||
| @@ -14,11 +18,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
| 14 | GNU General Public License for more details. | 18 | GNU General Public License for more details. |
| 15 | 19 | ||
| 16 | You should have received a copy of the GNU General Public License | 20 | You should have received a copy of the GNU General Public License |
| 17 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. | 21 | along 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 | ||
| 378 | int | ||
| 379 | lstat (const char * path, struct stat * buf) | ||
| 380 | { | ||
| 381 | return stat (path, buf); | ||
| 382 | } | ||
| 383 | |||