diff options
| author | Eli Zaretskii | 2012-11-17 20:00:16 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2012-11-17 20:00:16 +0200 |
| commit | cf2d22b874ca2df0072e32ee641e8efffe4abd6d (patch) | |
| tree | 1795142ec7861fc85c61adc90f03265b69041556 /nt | |
| parent | 3c4ca7155293ffc2d04708007131bcbc882d8913 (diff) | |
| parent | 6ad30855c02908fdd99d9b11943719e185e65ee3 (diff) | |
| download | emacs-cf2d22b874ca2df0072e32ee641e8efffe4abd6d.tar.gz emacs-cf2d22b874ca2df0072e32ee641e8efffe4abd6d.zip | |
Merge from trunk.
Diffstat (limited to 'nt')
| -rw-r--r-- | nt/ChangeLog | 39 | ||||
| -rw-r--r-- | nt/config.nt | 29 | ||||
| -rw-r--r-- | nt/inc/ms-w32.h | 5 | ||||
| -rw-r--r-- | nt/inc/sys/wait.h | 33 | ||||
| -rw-r--r-- | nt/inc/unistd.h | 8 | ||||
| -rw-r--r-- | nt/zipdist.bat | 11 |
6 files changed, 111 insertions, 14 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog index 931cb745c8b..b24acae8be5 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog | |||
| @@ -1,3 +1,42 @@ | |||
| 1 | 2012-11-17 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * inc/sys/wait.h: New file, with prototype of waitpid and | ||
| 4 | definitions of macros it needs. | ||
| 5 | |||
| 6 | * inc/ms-w32.h (wait): Don't define, 'wait' is not used anymore. | ||
| 7 | (sys_wait): Remove prototype. | ||
| 8 | |||
| 9 | * config.nt (HAVE_SYS_WAIT_H): Define to 1. | ||
| 10 | |||
| 11 | 2012-11-17 Dani Moncayo <dmoncayo@gmail.com> | ||
| 12 | |||
| 13 | * zipdist.bat (ZIP_CHECK): Remove unused label. When invoking 7z | ||
| 14 | to check if it's installed, redirect standard output and standard | ||
| 15 | error to the null device. | ||
| 16 | (ZIP_DIST): Don't build the "barebin" distribution. | ||
| 17 | |||
| 18 | 2012-11-15 Juanma Barranquero <lekktu@gmail.com> | ||
| 19 | |||
| 20 | * config.nt: Sync with autogen/config.in. | ||
| 21 | (GETGROUPS_T, GETGROUPS_ZERO_BUG, GNULIB_FACCESSAT, HAVE_ACCESS) | ||
| 22 | (HAVE_EACCESS, HAVE_FACCESSAT, HAVE_GETGROUPS, HAVE_LIBGEN_H): | ||
| 23 | New macros. | ||
| 24 | |||
| 25 | 2012-11-14 Eli Zaretskii <eliz@gnu.org> | ||
| 26 | |||
| 27 | * inc/unistd.h (faccessat): Add prototype. | ||
| 28 | (AT_FDCWD, AT_EACCESS, AT_SYMLINK_NOFOLLOW): New macros; the first | ||
| 29 | 2 moved from ms-w32.h. | ||
| 30 | |||
| 31 | * inc/ms-w32.h (AT_FDCWD, AT_EACCESS, faccessat): Remove macros. | ||
| 32 | |||
| 33 | 2012-11-14 Paul Eggert <eggert@cs.ucla.edu> | ||
| 34 | |||
| 35 | Use faccessat, not access, when checking file permissions (Bug#12632). | ||
| 36 | * inc/ms-w32.h (AT_FDCWD, AT_EACCESS): New symbols. | ||
| 37 | (access): Remove. | ||
| 38 | (faccessat): New macro. | ||
| 39 | |||
| 1 | 2012-11-05 Eli Zaretskii <eliz@gnu.org> | 40 | 2012-11-05 Eli Zaretskii <eliz@gnu.org> |
| 2 | 41 | ||
| 3 | * inc/unistd.h (tcgetpgrp, setsid): Provide prototypes. | 42 | * inc/unistd.h (tcgetpgrp, setsid): Provide prototypes. |
diff --git a/nt/config.nt b/nt/config.nt index 443a1025761..638f0a7461b 100644 --- a/nt/config.nt +++ b/nt/config.nt | |||
| @@ -180,6 +180,14 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 180 | setjmp does work. */ | 180 | setjmp does work. */ |
| 181 | #define GC_SETJMP_WORKS 1 | 181 | #define GC_SETJMP_WORKS 1 |
| 182 | 182 | ||
| 183 | /* Define to the type of elements in the array set by `getgroups'. Usually | ||
| 184 | this is either `int' or `gid_t'. */ | ||
| 185 | #undef GETGROUPS_T | ||
| 186 | |||
| 187 | /* Define this to 1 if getgroups(0,NULL) does not return the number of groups. | ||
| 188 | */ | ||
| 189 | #undef GETGROUPS_ZERO_BUG | ||
| 190 | |||
| 183 | /* Define if gettimeofday clobbers the localtime buffer. */ | 191 | /* Define if gettimeofday clobbers the localtime buffer. */ |
| 184 | #undef GETTIMEOFDAY_CLOBBERS_LOCALTIME | 192 | #undef GETTIMEOFDAY_CLOBBERS_LOCALTIME |
| 185 | 193 | ||
| @@ -195,6 +203,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 195 | #undef GNULIB_CLOSE_STREAM | 203 | #undef GNULIB_CLOSE_STREAM |
| 196 | 204 | ||
| 197 | /* Define to a C preprocessor expression that evaluates to 1 or 0, depending | 205 | /* Define to a C preprocessor expression that evaluates to 1 or 0, depending |
| 206 | whether the gnulib module faccessat shall be considered present. */ | ||
| 207 | #undef GNULIB_FACCESSAT | ||
| 208 | |||
| 209 | /* Define to a C preprocessor expression that evaluates to 1 or 0, depending | ||
| 198 | whether the gnulib module fscanf shall be considered present. */ | 210 | whether the gnulib module fscanf shall be considered present. */ |
| 199 | #undef GNULIB_FSCANF | 211 | #undef GNULIB_FSCANF |
| 200 | 212 | ||
| @@ -215,6 +227,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 215 | startup, if using GTK. */ | 227 | startup, if using GTK. */ |
| 216 | #undef G_SLICE_ALWAYS_MALLOC | 228 | #undef G_SLICE_ALWAYS_MALLOC |
| 217 | 229 | ||
| 230 | /* Define to 1 if you have the `access' function. */ | ||
| 231 | #undef HAVE_ACCESS | ||
| 232 | |||
| 218 | /* Define to 1 if the file /usr/lpp/X11/bin/smt.exp exists. */ | 233 | /* Define to 1 if the file /usr/lpp/X11/bin/smt.exp exists. */ |
| 219 | #undef HAVE_AIX_SMT_EXP | 234 | #undef HAVE_AIX_SMT_EXP |
| 220 | 235 | ||
| @@ -339,6 +354,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 339 | /* Define to 1 if you have the 'dup2' function. */ | 354 | /* Define to 1 if you have the 'dup2' function. */ |
| 340 | #define HAVE_DUP2 1 | 355 | #define HAVE_DUP2 1 |
| 341 | 356 | ||
| 357 | /* Define to 1 if you have the `eaccess' function. */ | ||
| 358 | #undef HAVE_EACCESS | ||
| 359 | |||
| 342 | /* Define to 1 if you have the `endgrent' function. */ | 360 | /* Define to 1 if you have the `endgrent' function. */ |
| 343 | #undef HAVE_ENDGRENT | 361 | #undef HAVE_ENDGRENT |
| 344 | 362 | ||
| @@ -354,6 +372,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 354 | /* Define to 1 if you have the <execinfo.h> header file. */ | 372 | /* Define to 1 if you have the <execinfo.h> header file. */ |
| 355 | #define HAVE_EXECINFO_H 1 | 373 | #define HAVE_EXECINFO_H 1 |
| 356 | 374 | ||
| 375 | /* Define to 1 if you have the `faccessat' function. */ | ||
| 376 | #undef HAVE_FACCESSAT | ||
| 377 | |||
| 357 | /* Define to 1 if you have the <fcntl.h> header file. */ | 378 | /* Define to 1 if you have the <fcntl.h> header file. */ |
| 358 | #undef HAVE_FCNTL_H | 379 | #undef HAVE_FCNTL_H |
| 359 | 380 | ||
| @@ -405,6 +426,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 405 | /* Define to 1 if you have the `getgrent' function. */ | 426 | /* Define to 1 if you have the `getgrent' function. */ |
| 406 | #undef HAVE_GETGRENT | 427 | #undef HAVE_GETGRENT |
| 407 | 428 | ||
| 429 | /* Define to 1 if your system has a working `getgroups' function. */ | ||
| 430 | #undef HAVE_GETGROUPS | ||
| 431 | |||
| 408 | /* Define to 1 if you have the `gethostname' function. */ | 432 | /* Define to 1 if you have the `gethostname' function. */ |
| 409 | #define HAVE_GETHOSTNAME 1 | 433 | #define HAVE_GETHOSTNAME 1 |
| 410 | 434 | ||
| @@ -571,6 +595,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 571 | /* Define to 1 if you have the `dnet' library (-ldnet). */ | 595 | /* Define to 1 if you have the `dnet' library (-ldnet). */ |
| 572 | #undef HAVE_LIBDNET | 596 | #undef HAVE_LIBDNET |
| 573 | 597 | ||
| 598 | /* Define to 1 if you have the <libgen.h> header file. */ | ||
| 599 | #undef HAVE_LIBGEN_H | ||
| 600 | |||
| 574 | /* Define to 1 if you have the hesiod library (-lhesiod). */ | 601 | /* Define to 1 if you have the hesiod library (-lhesiod). */ |
| 575 | #undef HAVE_LIBHESIOD | 602 | #undef HAVE_LIBHESIOD |
| 576 | 603 | ||
| @@ -959,7 +986,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 959 | #undef HAVE_SYS_VLIMIT_H | 986 | #undef HAVE_SYS_VLIMIT_H |
| 960 | 987 | ||
| 961 | /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */ | 988 | /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */ |
| 962 | #undef HAVE_SYS_WAIT_H | 989 | #define HAVE_SYS_WAIT_H 1 |
| 963 | 990 | ||
| 964 | /* Define to 1 if you have the <term.h> header file. */ | 991 | /* Define to 1 if you have the <term.h> header file. */ |
| 965 | #undef HAVE_TERM_H | 992 | #undef HAVE_TERM_H |
diff --git a/nt/inc/ms-w32.h b/nt/inc/ms-w32.h index dd2ae781cb8..7b16ccab069 100644 --- a/nt/inc/ms-w32.h +++ b/nt/inc/ms-w32.h | |||
| @@ -145,8 +145,6 @@ extern char *getenv (); | |||
| 145 | #endif | 145 | #endif |
| 146 | 146 | ||
| 147 | /* Calls that are emulated or shadowed. */ | 147 | /* Calls that are emulated or shadowed. */ |
| 148 | #undef access | ||
| 149 | #define access sys_access | ||
| 150 | #undef chdir | 148 | #undef chdir |
| 151 | #define chdir sys_chdir | 149 | #define chdir sys_chdir |
| 152 | #undef chmod | 150 | #undef chmod |
| @@ -185,15 +183,12 @@ extern char *getenv (); | |||
| 185 | 183 | ||
| 186 | /* Subprocess calls that are emulated. */ | 184 | /* Subprocess calls that are emulated. */ |
| 187 | #define spawnve sys_spawnve | 185 | #define spawnve sys_spawnve |
| 188 | #define wait sys_wait | ||
| 189 | #define kill sys_kill | 186 | #define kill sys_kill |
| 190 | #define signal sys_signal | 187 | #define signal sys_signal |
| 191 | 188 | ||
| 192 | /* Internal signals. */ | 189 | /* Internal signals. */ |
| 193 | #define emacs_raise(sig) emacs_abort() | 190 | #define emacs_raise(sig) emacs_abort() |
| 194 | 191 | ||
| 195 | extern int sys_wait (int *); | ||
| 196 | |||
| 197 | /* termcap.c calls that are emulated. */ | 192 | /* termcap.c calls that are emulated. */ |
| 198 | #define tputs sys_tputs | 193 | #define tputs sys_tputs |
| 199 | #define tgetstr sys_tgetstr | 194 | #define tgetstr sys_tgetstr |
diff --git a/nt/inc/sys/wait.h b/nt/inc/sys/wait.h new file mode 100644 index 00000000000..8d890c9e175 --- /dev/null +++ b/nt/inc/sys/wait.h | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | /* A limited emulation of sys/wait.h on Posix systems. | ||
| 2 | |||
| 3 | Copyright (C) 2012 Free Software Foundation, Inc. | ||
| 4 | |||
| 5 | This file is part of GNU Emacs. | ||
| 6 | |||
| 7 | GNU Emacs is free software: you can redistribute it and/or modify | ||
| 8 | it under the terms of the GNU General Public License as published by | ||
| 9 | the Free Software Foundation, either version 3 of the License, or | ||
| 10 | (at your option) any later version. | ||
| 11 | |||
| 12 | GNU Emacs is distributed in the hope that it will be useful, | ||
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 15 | GNU General Public License for more details. | ||
| 16 | |||
| 17 | You should have received a copy of the GNU General Public License | ||
| 18 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | ||
| 19 | |||
| 20 | #ifndef INC_SYS_WAIT_H_ | ||
| 21 | #define INC_SYS_WAIT_H_ | ||
| 22 | |||
| 23 | #define WNOHANG 1 | ||
| 24 | #define WUNTRACED 2 | ||
| 25 | #define WSTOPPED 2 /* same as WUNTRACED */ | ||
| 26 | #define WEXITED 4 | ||
| 27 | #define WCONTINUED 8 | ||
| 28 | |||
| 29 | /* The various WIF* macros are defined in src/syswait.h. */ | ||
| 30 | |||
| 31 | extern pid_t waitpid (pid_t, int *, int); | ||
| 32 | |||
| 33 | #endif /* INC_SYS_WAIT_H_ */ | ||
diff --git a/nt/inc/unistd.h b/nt/inc/unistd.h index 4c5f7d4c124..b0f3092cafb 100644 --- a/nt/inc/unistd.h +++ b/nt/inc/unistd.h | |||
| @@ -18,4 +18,12 @@ extern pid_t getpgrp (void); | |||
| 18 | extern pid_t setsid (void); | 18 | extern pid_t setsid (void); |
| 19 | extern pid_t tcgetpgrp (int); | 19 | extern pid_t tcgetpgrp (int); |
| 20 | 20 | ||
| 21 | extern int faccessat (int, char const *, int, int); | ||
| 22 | |||
| 23 | /* These are normally on fcntl.h, but we don't override that header. */ | ||
| 24 | /* Use values compatible with gnulib, as there's no reason to differ. */ | ||
| 25 | #define AT_FDCWD (-3041965) | ||
| 26 | #define AT_EACCESS 4 | ||
| 27 | #define AT_SYMLINK_NOFOLLOW 4096 | ||
| 28 | |||
| 21 | #endif /* _UNISTD_H */ | 29 | #endif /* _UNISTD_H */ |
diff --git a/nt/zipdist.bat b/nt/zipdist.bat index 806415054fd..e196299b6d6 100644 --- a/nt/zipdist.bat +++ b/nt/zipdist.bat | |||
| @@ -25,9 +25,8 @@ set EMACS_VER=%1 | |||
| 25 | set TMP_DIST_DIR=emacs-%EMACS_VER% | 25 | set TMP_DIST_DIR=emacs-%EMACS_VER% |
| 26 | 26 | ||
| 27 | rem Check, if 7zip is installed and available on path | 27 | rem Check, if 7zip is installed and available on path |
| 28 | :ZIP_CHECK | 28 | 7z 1>NUL 2>NUL |
| 29 | 7z | 29 | if %ERRORLEVEL% NEQ 0 goto ZIP_ERROR |
| 30 | if %ERRORLEVEL% NEQ 0 goto :ZIP_ERROR | ||
| 31 | goto ZIP_DIST | 30 | goto ZIP_DIST |
| 32 | 31 | ||
| 33 | :ZIP_ERROR | 32 | :ZIP_ERROR |
| @@ -35,14 +34,10 @@ echo. | |||
| 35 | echo ERROR: Make sure 7zip is installed and available on the Windows Path! | 34 | echo ERROR: Make sure 7zip is installed and available on the Windows Path! |
| 36 | goto EXIT | 35 | goto EXIT |
| 37 | 36 | ||
| 38 | rem Build distributions | 37 | rem Build and verify the binary distribution |
| 39 | :ZIP_DIST | 38 | :ZIP_DIST |
| 40 | rem Build and verify full distribution | ||
| 41 | 7z a -bd -tZIP -mx=9 -x!.bzrignore -x!.gitignore -xr!emacs.mdp -xr!*.pdb -xr!*.opt -xr!*~ -xr!CVS -xr!.arch-inventory emacs-%EMACS_VER%-bin-i386.zip %TMP_DIST_DIR% | 39 | 7z a -bd -tZIP -mx=9 -x!.bzrignore -x!.gitignore -xr!emacs.mdp -xr!*.pdb -xr!*.opt -xr!*~ -xr!CVS -xr!.arch-inventory emacs-%EMACS_VER%-bin-i386.zip %TMP_DIST_DIR% |
| 42 | 7z t emacs-%EMACS_VER%-bin-i386.zip | 40 | 7z t emacs-%EMACS_VER%-bin-i386.zip |
| 43 | rem Build and verify binary only distribution | ||
| 44 | 7z a -bd -tZIP -mx=9 -x!.bzrignore -x!.gitignore -xr!emacs.mdp -xr!*.pdb -xr!*.opt -xr!*~ -xr!CVS -xr!.arch-inventory emacs-%EMACS_VER%-barebin-i386.zip %TMP_DIST_DIR%/README.W32 %TMP_DIST_DIR%/bin %TMP_DIST_DIR%/etc/DOC-X %TMP_DIST_DIR%/COPYING | ||
| 45 | 7z t emacs-%EMACS_VER%-barebin-i386.zip | ||
| 46 | goto EXIT | 41 | goto EXIT |
| 47 | 42 | ||
| 48 | :EXIT | 43 | :EXIT |