diff options
| author | Paul Eggert | 2011-02-21 17:55:20 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-02-21 17:55:20 -0800 |
| commit | f68c809d7e91fcde5ee2e4f7f15def3d7e48b720 (patch) | |
| tree | 9df8577ff5f281f066f778dee44bdb839eb13daf /lib-src | |
| parent | 5ecec6a7f4a1ce83abd53a14fba7f51b668c6336 (diff) | |
| download | emacs-f68c809d7e91fcde5ee2e4f7f15def3d7e48b720.tar.gz emacs-f68c809d7e91fcde5ee2e4f7f15def3d7e48b720.zip | |
[ChangeLog]
Assume S_ISLNK etc. work, since gnulib supports this.
* Makefile.in (GNULIB_MODULES): Add sys_stat.
* configure.in: Check for lstat and set HAVE_LSTAT=0 if not.
Pretend to be using the gnulib lstat module for benefit of sys/stat.h.
* configure, lib/Makefile.in, lib/gnulib.mk: Regenerate.
[lib-src/ChangeLog]
Assume S_ISLNK etc. work, since gnulib supports this.
* etags.c (S_ISREG): Remove.
[src/ChangeLog]
Assume S_ISLNK etc. work, since gnulib supports this.
* config.in: Regenerate.
* dired.c (lstat): Remove.
(file_name_completion): Assume S_ISDIR works.
(file_name_completion_stat): Assume S_ISLNK works.
Do not bother calling stat unless lstat says it's a symlink.
* fileio.c (S_ISLNK, S_ISFIFO, S_ISREG, lstat): Remove.
(Fcopy_file): Assume S_ISREG and S_ISLNK work.
(check_writable, Ffile_writable_p, Fset_file_times):
Assume S_ISDIR works.
(Ffile_readable_p): Use S_IFIFO, not S_ISFIFO, to guess whether
fifos exist.
(Ffile_regular_p, Finsert_file_contents): Assumes S_ISREG works.
* filelock.c (S_ISLNK): Remove.
* lread.c (openp): Assume S_ISDIR works.
* xrdb.c (S_ISDIR): Remove.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 5 | ||||
| -rw-r--r-- | lib-src/etags.c | 8 |
2 files changed, 7 insertions, 6 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 7aa13a45cba..6d50f4fa4fc 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-02-22 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Assume S_ISLNK etc. work, since gnulib supports this. | ||
| 4 | * etags.c (S_ISREG): Remove. | ||
| 5 | |||
| 1 | 2011-02-21 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2011-02-21 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | New file "lib/min-max.h". | 8 | New file "lib/min-max.h". |
diff --git a/lib-src/etags.c b/lib-src/etags.c index 9471c0fe29f..9ca10776259 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -190,10 +190,6 @@ char pot_etags_version[] = "@(#) pot revision number is 17.38.1.4"; | |||
| 190 | # define assert(x) ((void) 0) | 190 | # define assert(x) ((void) 0) |
| 191 | #endif | 191 | #endif |
| 192 | 192 | ||
| 193 | #if !defined (S_ISREG) && defined (S_IFREG) | ||
| 194 | # define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) | ||
| 195 | #endif | ||
| 196 | |||
| 197 | #ifdef NO_LONG_OPTIONS /* define this if you don't have GNU getopt */ | 193 | #ifdef NO_LONG_OPTIONS /* define this if you don't have GNU getopt */ |
| 198 | # define NO_LONG_OPTIONS TRUE | 194 | # define NO_LONG_OPTIONS TRUE |
| 199 | # define getopt_long(argc,argv,optstr,lopts,lind) getopt (argc, argv, optstr) | 195 | # define getopt_long(argc,argv,optstr,lopts,lind) getopt (argc, argv, optstr) |
| @@ -5327,7 +5323,7 @@ prolog_skip_comment (linebuffer *plb, FILE *inf) | |||
| 5327 | */ | 5323 | */ |
| 5328 | static int | 5324 | static int |
| 5329 | prolog_pr (char *s, char *last) | 5325 | prolog_pr (char *s, char *last) |
| 5330 | 5326 | ||
| 5331 | /* Name of last clause. */ | 5327 | /* Name of last clause. */ |
| 5332 | { | 5328 | { |
| 5333 | int pos; | 5329 | int pos; |
| @@ -5484,7 +5480,7 @@ Erlang_functions (FILE *inf) | |||
| 5484 | */ | 5480 | */ |
| 5485 | static int | 5481 | static int |
| 5486 | erlang_func (char *s, char *last) | 5482 | erlang_func (char *s, char *last) |
| 5487 | 5483 | ||
| 5488 | /* Name of last clause. */ | 5484 | /* Name of last clause. */ |
| 5489 | { | 5485 | { |
| 5490 | int pos; | 5486 | int pos; |