diff options
| author | Paul Eggert | 2011-02-20 02:53:22 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-02-20 02:53:22 -0800 |
| commit | cfd812fa0392942aaaa496fa0b8592a9357669b8 (patch) | |
| tree | c6ac7f2b18466c702a5a3fd3c2f7dac57b95963d /src | |
| parent | 5fa4ac767c6aaf9203d2ec6ff2f90a061b401930 (diff) | |
| download | emacs-cfd812fa0392942aaaa496fa0b8592a9357669b8.tar.gz emacs-cfd812fa0392942aaaa496fa0b8592a9357669b8.zip | |
Import filemode module from gnulib.
* Makefile.in (base_obj): Remove filemode.o, as it's now in ../lib.
* deps.mk (dired.o): Depend on ../lib/filemode.h, too.
(filemode.o): Remove; this is now in ../lib.
* dired.c: Include <filemode.h>.
(filemodestring): Remove now-redundant decl.
* config.in: Regenerate.
2011-02-20 Paul Eggert <eggert@cs.ucla.edu>
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 10 | ||||
| -rw-r--r-- | src/Makefile.in | 2 | ||||
| -rw-r--r-- | src/config.in | 13 | ||||
| -rw-r--r-- | src/deps.mk | 3 | ||||
| -rw-r--r-- | src/dired.c | 5 |
5 files changed, 27 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 54d912cc15d..880fb10e85a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,15 @@ | |||
| 1 | 2011-02-20 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-02-20 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | Import filemode module from gnulib. | ||
| 4 | * Makefile.in (base_obj): Remove filemode.o, as it's now in ../lib. | ||
| 5 | * deps.mk (dired.o): Depend on ../lib/filemode.h, too. | ||
| 6 | (filemode.o): Remove; this is now in ../lib. | ||
| 7 | * dired.c: Include <filemode.h>. | ||
| 8 | (filemodestring): Remove now-redundant decl. | ||
| 9 | * config.in: Regenerate. | ||
| 10 | |||
| 11 | 2011-02-20 Paul Eggert <eggert@cs.ucla.edu> | ||
| 12 | |||
| 3 | Import crypto/md5 and stdint modules from gnulib. | 13 | Import crypto/md5 and stdint modules from gnulib. |
| 4 | * Makefile.in (base_obj): Remove md5.o, since this file | 14 | * Makefile.in (base_obj): Remove md5.o, since this file |
| 5 | is in lib now. | 15 | is in lib now. |
diff --git a/src/Makefile.in b/src/Makefile.in index 41b6767f26e..e1195968f7f 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -347,7 +347,7 @@ base_obj = dispnew.o frame.o scroll.o xdisp.o menu.o $(XMENU_OBJ) window.o \ | |||
| 347 | cm.o term.o terminal.o xfaces.o $(XOBJ) $(GTK_OBJ) $(DBUS_OBJ) \ | 347 | cm.o term.o terminal.o xfaces.o $(XOBJ) $(GTK_OBJ) $(DBUS_OBJ) \ |
| 348 | emacs.o keyboard.o macros.o keymap.o sysdep.o \ | 348 | emacs.o keyboard.o macros.o keymap.o sysdep.o \ |
| 349 | buffer.o filelock.o insdel.o marker.o \ | 349 | buffer.o filelock.o insdel.o marker.o \ |
| 350 | minibuf.o fileio.o dired.o filemode.o \ | 350 | minibuf.o fileio.o dired.o \ |
| 351 | cmds.o casetab.o casefiddle.o indent.o search.o regex.o undo.o \ | 351 | cmds.o casetab.o casefiddle.o indent.o search.o regex.o undo.o \ |
| 352 | alloc.o data.o doc.o editfns.o callint.o \ | 352 | alloc.o data.o doc.o editfns.o callint.o \ |
| 353 | eval.o floatfns.o fns.o font.o print.o lread.o \ | 353 | eval.o floatfns.o fns.o font.o print.o lread.o \ |
diff --git a/src/config.in b/src/config.in index 9e8364ec45b..9c23fb583fa 100644 --- a/src/config.in +++ b/src/config.in | |||
| @@ -152,6 +152,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 152 | don't. */ | 152 | don't. */ |
| 153 | #undef HAVE_DECL_LOCALTIME_R | 153 | #undef HAVE_DECL_LOCALTIME_R |
| 154 | 154 | ||
| 155 | /* Define to 1 if you have the declaration of `strmode', and to 0 if you | ||
| 156 | don't. */ | ||
| 157 | #undef HAVE_DECL_STRMODE | ||
| 158 | |||
| 155 | /* Define to 1 if you have the declaration of `sys_siglist', and to 0 if you | 159 | /* Define to 1 if you have the declaration of `sys_siglist', and to 0 if you |
| 156 | don't. */ | 160 | don't. */ |
| 157 | #undef HAVE_DECL_SYS_SIGLIST | 161 | #undef HAVE_DECL_SYS_SIGLIST |
| @@ -686,6 +690,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 686 | /* Define to 1 if `struct utimbuf' is declared by <utime.h>. */ | 690 | /* Define to 1 if `struct utimbuf' is declared by <utime.h>. */ |
| 687 | #undef HAVE_STRUCT_UTIMBUF | 691 | #undef HAVE_STRUCT_UTIMBUF |
| 688 | 692 | ||
| 693 | /* Define if struct stat has an st_dm_mode member. */ | ||
| 694 | #undef HAVE_ST_DM_MODE | ||
| 695 | |||
| 689 | /* Define to 1 if you have the `sync' function. */ | 696 | /* Define to 1 if you have the `sync' function. */ |
| 690 | #undef HAVE_SYNC | 697 | #undef HAVE_SYNC |
| 691 | 698 | ||
| @@ -981,6 +988,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 981 | STACK_DIRECTION = 0 => direction of growth unknown */ | 988 | STACK_DIRECTION = 0 => direction of growth unknown */ |
| 982 | #undef STACK_DIRECTION | 989 | #undef STACK_DIRECTION |
| 983 | 990 | ||
| 991 | /* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */ | ||
| 992 | #undef STAT_MACROS_BROKEN | ||
| 993 | |||
| 984 | /* Define to 1 if you have the ANSI C header files. */ | 994 | /* Define to 1 if you have the ANSI C header files. */ |
| 985 | #undef STDC_HEADERS | 995 | #undef STDC_HEADERS |
| 986 | 996 | ||
| @@ -1149,6 +1159,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 1149 | /* Define to the name of the strftime replacement function. */ | 1159 | /* Define to the name of the strftime replacement function. */ |
| 1150 | #undef my_strftime | 1160 | #undef my_strftime |
| 1151 | 1161 | ||
| 1162 | /* Define to the type of st_nlink in struct stat, or a supertype. */ | ||
| 1163 | #undef nlink_t | ||
| 1164 | |||
| 1152 | /* Define to `int' if <sys/types.h> does not define. */ | 1165 | /* Define to `int' if <sys/types.h> does not define. */ |
| 1153 | #undef pid_t | 1166 | #undef pid_t |
| 1154 | 1167 | ||
diff --git a/src/deps.mk b/src/deps.mk index 5bd4a682bfa..77994bcaadb 100644 --- a/src/deps.mk +++ b/src/deps.mk | |||
| @@ -73,7 +73,7 @@ pre-crt0.o: pre-crt0.c | |||
| 73 | dbusbind.o: dbusbind.c termhooks.h frame.h keyboard.h lisp.h $(config_h) | 73 | dbusbind.o: dbusbind.c termhooks.h frame.h keyboard.h lisp.h $(config_h) |
| 74 | dired.o: dired.c commands.h buffer.h lisp.h $(config_h) character.h charset.h \ | 74 | dired.o: dired.c commands.h buffer.h lisp.h $(config_h) character.h charset.h \ |
| 75 | coding.h regex.h systime.h blockinput.h atimer.h composite.h \ | 75 | coding.h regex.h systime.h blockinput.h atimer.h composite.h \ |
| 76 | ../lib/unistd.h globals.h | 76 | ../lib/filemode.h ../lib/unistd.h globals.h |
| 77 | dispnew.o: dispnew.c systime.h commands.h process.h frame.h coding.h \ | 77 | dispnew.o: dispnew.c systime.h commands.h process.h frame.h coding.h \ |
| 78 | window.h buffer.h termchar.h termopts.h termhooks.h cm.h \ | 78 | window.h buffer.h termchar.h termopts.h termhooks.h cm.h \ |
| 79 | disptab.h indent.h $(INTERVALS_H) nsgui.h ../lib/unistd.h \ | 79 | disptab.h indent.h $(INTERVALS_H) nsgui.h ../lib/unistd.h \ |
| @@ -98,7 +98,6 @@ fileio.o: fileio.c window.h buffer.h systime.h $(INTERVALS_H) character.h \ | |||
| 98 | commands.h globals.h ../lib/unistd.h | 98 | commands.h globals.h ../lib/unistd.h |
| 99 | filelock.o: filelock.c buffer.h character.h coding.h systime.h composite.h \ | 99 | filelock.o: filelock.c buffer.h character.h coding.h systime.h composite.h \ |
| 100 | ../lib/unistd.h lisp.h globals.h $(config_h) | 100 | ../lib/unistd.h lisp.h globals.h $(config_h) |
| 101 | filemode.o: filemode.c $(config_h) | ||
| 102 | font.o: font.c dispextern.h frame.h window.h ccl.h character.h charset.h \ | 101 | font.o: font.c dispextern.h frame.h window.h ccl.h character.h charset.h \ |
| 103 | font.h lisp.h globals.h $(config_h) buffer.h composite.h fontset.h \ | 102 | font.h lisp.h globals.h $(config_h) buffer.h composite.h fontset.h \ |
| 104 | xterm.h nsgui.h msdos.h | 103 | xterm.h nsgui.h msdos.h |
diff --git a/src/dired.c b/src/dired.c index 7b4b83cbe54..e2f974e1bf0 100644 --- a/src/dired.c +++ b/src/dired.c | |||
| @@ -54,6 +54,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 54 | #include <sys/dir.h> | 54 | #include <sys/dir.h> |
| 55 | #include <sys/stat.h> | 55 | #include <sys/stat.h> |
| 56 | 56 | ||
| 57 | #include <filemode.h> | ||
| 58 | |||
| 57 | #define DIRENTRY struct direct | 59 | #define DIRENTRY struct direct |
| 58 | 60 | ||
| 59 | extern DIR *opendir (char *); | 61 | extern DIR *opendir (char *); |
| @@ -82,9 +84,6 @@ extern struct re_pattern_buffer *compile_pattern (Lisp_Object, | |||
| 82 | struct re_registers *, | 84 | struct re_registers *, |
| 83 | Lisp_Object, int, int); | 85 | Lisp_Object, int, int); |
| 84 | 86 | ||
| 85 | /* From filemode.c. Can't go in Lisp.h because of `stat'. */ | ||
| 86 | extern void filemodestring (struct stat *, char *); | ||
| 87 | |||
| 88 | /* if system does not have symbolic links, it does not have lstat. | 87 | /* if system does not have symbolic links, it does not have lstat. |
| 89 | In that case, use ordinary stat instead. */ | 88 | In that case, use ordinary stat instead. */ |
| 90 | 89 | ||