diff options
| author | Eli Zaretskii | 2012-06-30 18:55:27 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2012-06-30 18:55:27 +0300 |
| commit | c9240d7a6eb3d8aaca76cd3abc8f099b6ecaff0a (patch) | |
| tree | c230c2d0e84580f38fe44803b46e149e4149b739 | |
| parent | b3218de111201a7b19592f4176057b03749d55a0 (diff) | |
| parent | 0d23c240ea378d9a29042266216f4cf25151a04d (diff) | |
| download | emacs-c9240d7a6eb3d8aaca76cd3abc8f099b6ecaff0a.tar.gz emacs-c9240d7a6eb3d8aaca76cd3abc8f099b6ecaff0a.zip | |
Adapt the MS-DOS build to the latest changes.
msdos/mainmake.v2 (bootstrap-clean): Do a maintainer-clean in lib, not
bootstrap-clean (which doesn't exist).
msdos/inttypes.h (PRIuMAX) [__DJGPP__ < 2.04]: Define to "llu".
msdos/sedleim.inp (MKDIR_P): Edit to DOS "md" command.
msdos/sed1v2.inp: (LIB_CLOCK_GETTIME): Edit to empty.
Remove lines that invoke PAXCTL.
(clean): Fix recipe not to run Unixy shell commands.
msdos/sed2v2.inp (GETTIMEOFDAY_TIMEZONE): Edit to 'struct timezone'.
(HAVE_STRNCASECMP): Edit to 1.
msdos/sed3v2.inp (LIB_CLOCK_GETTIME): Edit to empty.
(C_SWITCH_SYSTEM): Add "-I../msdos".
msdos/sedlibmk.inp (GNULIB_GETTIMEOFDAY, GNULIB_PSELECT)
(GNULIB_SELECT, HAVE_STRUCT_TIMEVAL, HAVE_SYS_SELECT_H)
(HAVE_SYS_TIME_H, NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H)
(NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H, NEXT_SYS_SELECT_H)
(NEXT_SYS_TIME_H, REPLACE_GETTIMEOFDAY, REPLACE_PSELECT)
(REPLACE_STRUCT_TIMEVAL): Edit to appropriate values.
(BUILT_SOURCES): Edit out sys/select.h and sys/time.h.
(mostlyclean-local, distclean-generic): Fix recipe not to run
Unixy shell commands.
src/sysselect.h [DOS_NT]: Don't include sys/select.h.
src/sysselect.h (pselect) [!HAVE_PSELECT]: Redirect to sys_select.
src/sysdep.c: Don't include dos.h and dosfns.h.
src/process.c (sys_select):
src/msdos.c (sys_select): Accept one more argument and ignore it.
src/msdos.c (event_timestamp, sys_select): Use gnulib's gettime;
adapt data types and code to that.
src/dosfns.c:
src/msdos.c (gettime, settime): Define away the prototypes in dos.h,
which clashes with the gnulib function of the same name.
src/ w32proc.c (sys_select): Accept and ignore one more argument.
src/w32.c (emacs_gnutls_pull): Call select with one more argument.
lisp/emacs-lisp/timer.el (timer-until): Subtract results of
float-time, instead of taking float-time of the result of
time-subtract, since float-time signals an error for negative time
arguments.
| -rw-r--r-- | lib-src/profile.c | 2 | ||||
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/emacs-lisp/timer.el | 2 | ||||
| -rw-r--r-- | msdos/ChangeLog | 29 | ||||
| -rw-r--r-- | msdos/inttypes.h | 1 | ||||
| -rw-r--r-- | msdos/mainmake.v2 | 2 | ||||
| -rw-r--r-- | msdos/sed1v2.inp | 4 | ||||
| -rw-r--r-- | msdos/sed2v2.inp | 2 | ||||
| -rw-r--r-- | msdos/sed3v2.inp | 3 | ||||
| -rw-r--r-- | msdos/sedleim.inp | 2 | ||||
| -rw-r--r-- | msdos/sedlibmk.inp | 20 | ||||
| -rw-r--r-- | src/ChangeLog | 25 | ||||
| -rw-r--r-- | src/dosfns.c | 6 | ||||
| -rw-r--r-- | src/msdos.c | 29 | ||||
| -rw-r--r-- | src/process.c | 2 | ||||
| -rw-r--r-- | src/s/ms-w32.h | 2 | ||||
| -rw-r--r-- | src/sysdep.c | 2 | ||||
| -rw-r--r-- | src/sysselect.h | 6 | ||||
| -rw-r--r-- | src/w32.c | 2 | ||||
| -rw-r--r-- | src/w32proc.c | 2 |
20 files changed, 125 insertions, 25 deletions
diff --git a/lib-src/profile.c b/lib-src/profile.c index 3e642237c6b..02471d89da8 100644 --- a/lib-src/profile.c +++ b/lib-src/profile.c | |||
| @@ -20,7 +20,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 20 | 20 | ||
| 21 | 21 | ||
| 22 | /** | 22 | /** |
| 23 | ** To be run as an emacs process. Input string that starts with: | 23 | ** To be run as an emacs subprocess. Input string that starts with: |
| 24 | ** 'z' -- resets the watch (to zero). | 24 | ** 'z' -- resets the watch (to zero). |
| 25 | ** 'p' -- return time (on stdout) as string with format <sec>.<micro-sec> | 25 | ** 'p' -- return time (on stdout) as string with format <sec>.<micro-sec> |
| 26 | ** 'q' -- exit. | 26 | ** 'q' -- exit. |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4d0f1e5afeb..ca425d5b5ea 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2012-06-30 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * emacs-lisp/timer.el (timer-until): Subtract results of | ||
| 4 | float-time, instead of taking float-time of the result of | ||
| 5 | time-subtract, since float-time signals an error for negative time | ||
| 6 | arguments. | ||
| 7 | |||
| 1 | 2012-06-30 Chong Yidong <cyd@gnu.org> | 8 | 2012-06-30 Chong Yidong <cyd@gnu.org> |
| 2 | 9 | ||
| 3 | * xml.el (xml-*-re): Convert defvars into defconsts, and | 10 | * xml.el (xml-*-re): Convert defvars into defconsts, and |
diff --git a/lisp/emacs-lisp/timer.el b/lisp/emacs-lisp/timer.el index eab96fe202a..a66d5972d82 100644 --- a/lisp/emacs-lisp/timer.el +++ b/lisp/emacs-lisp/timer.el | |||
| @@ -268,7 +268,7 @@ how many will really happen." | |||
| 268 | "Calculate number of seconds from when TIMER will run, until TIME. | 268 | "Calculate number of seconds from when TIMER will run, until TIME. |
| 269 | TIMER is a timer, and stands for the time when its next repeat is scheduled. | 269 | TIMER is a timer, and stands for the time when its next repeat is scheduled. |
| 270 | TIME is a time-list." | 270 | TIME is a time-list." |
| 271 | (float-time (time-subtract time (timer--time timer)))) | 271 | (- (float-time time) (float-time (timer--time timer)))) |
| 272 | 272 | ||
| 273 | (defun timer-event-handler (timer) | 273 | (defun timer-event-handler (timer) |
| 274 | "Call the handler for the timer TIMER. | 274 | "Call the handler for the timer TIMER. |
diff --git a/msdos/ChangeLog b/msdos/ChangeLog index 1e156563e06..f0c3703f36c 100644 --- a/msdos/ChangeLog +++ b/msdos/ChangeLog | |||
| @@ -1,3 +1,32 @@ | |||
| 1 | 2012-06-30 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * mainmake.v2 (bootstrap-clean): Do a maintainer-clean in lib, not | ||
| 4 | bootstrap-clean (which doesn't exist). | ||
| 5 | |||
| 6 | * inttypes.h (PRIuMAX) [__DJGPP__ < 2.04]: Define to "llu". | ||
| 7 | |||
| 8 | * sedleim.inp (MKDIR_P): Edit to DOS "md" command. | ||
| 9 | |||
| 10 | * sed1v2.inp: (LIB_CLOCK_GETTIME): Edit to empty. | ||
| 11 | Remove lines that invoke PAXCTL. | ||
| 12 | (clean): Fix recipe not to run Unixy shell commands. | ||
| 13 | |||
| 14 | * sed2v2.inp (GETTIMEOFDAY_TIMEZONE): Edit to 'struct timezone'. | ||
| 15 | (HAVE_STRNCASECMP): Edit to 1. | ||
| 16 | |||
| 17 | * sed3v2.inp (LIB_CLOCK_GETTIME): Edit to empty. | ||
| 18 | (C_SWITCH_SYSTEM): Add "-I../msdos". | ||
| 19 | |||
| 20 | * sedlibmk.inp (GNULIB_GETTIMEOFDAY, GNULIB_PSELECT) | ||
| 21 | (GNULIB_SELECT, HAVE_STRUCT_TIMEVAL, HAVE_SYS_SELECT_H) | ||
| 22 | (HAVE_SYS_TIME_H, NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H) | ||
| 23 | (NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H, NEXT_SYS_SELECT_H) | ||
| 24 | (NEXT_SYS_TIME_H, REPLACE_GETTIMEOFDAY, REPLACE_PSELECT) | ||
| 25 | (REPLACE_STRUCT_TIMEVAL): Edit to appropriate values. | ||
| 26 | (BUILT_SOURCES): Edit out sys/select.h and sys/time.h. | ||
| 27 | (mostlyclean-local, distclean-generic): Fix recipe not to run | ||
| 28 | Unixy shell commands. | ||
| 29 | |||
| 1 | 2012-06-26 Paul Eggert <eggert@cs.ucla.edu> | 30 | 2012-06-26 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 31 | ||
| 3 | Clean out last vestiges of the old HAVE_CONFIG_H stuff. | 32 | Clean out last vestiges of the old HAVE_CONFIG_H stuff. |
diff --git a/msdos/inttypes.h b/msdos/inttypes.h index 6128cbf3155..dba56f83760 100644 --- a/msdos/inttypes.h +++ b/msdos/inttypes.h | |||
| @@ -31,6 +31,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 31 | #include <stdlib.h> | 31 | #include <stdlib.h> |
| 32 | #define strtoumax strtoull | 32 | #define strtoumax strtoull |
| 33 | #define strtoimax strtoll | 33 | #define strtoimax strtoll |
| 34 | #define PRIuMAX "llu" | ||
| 34 | #endif /* __DJGPP__ < 2.04 */ | 35 | #endif /* __DJGPP__ < 2.04 */ |
| 35 | 36 | ||
| 36 | #endif | 37 | #endif |
diff --git a/msdos/mainmake.v2 b/msdos/mainmake.v2 index b4837b99fb9..e1e646a855c 100644 --- a/msdos/mainmake.v2 +++ b/msdos/mainmake.v2 | |||
| @@ -269,7 +269,7 @@ extraclean: | |||
| 269 | 269 | ||
| 270 | bootstrap-clean: FRC | 270 | bootstrap-clean: FRC |
| 271 | cd lib | 271 | cd lib |
| 272 | $(MAKE) $(MFLAGS) $@ | 272 | -$(MAKE) $(MFLAGS) maintainer-clean |
| 273 | cd .. | 273 | cd .. |
| 274 | cd src | 274 | cd src |
| 275 | $(MAKE) $(MFLAGS) $@ | 275 | $(MAKE) $(MFLAGS) $@ |
diff --git a/msdos/sed1v2.inp b/msdos/sed1v2.inp index b9e94afea51..b2ce4b327dc 100644 --- a/msdos/sed1v2.inp +++ b/msdos/sed1v2.inp | |||
| @@ -105,6 +105,7 @@ s/\.h\.in/.h-in/ | |||
| 105 | /^LIBRESOLV *=/s/@LIBRESOLV@// | 105 | /^LIBRESOLV *=/s/@LIBRESOLV@// |
| 106 | /^LIBSELINUX_LIBS *=/s/@LIBSELINUX_LIBS@// | 106 | /^LIBSELINUX_LIBS *=/s/@LIBSELINUX_LIBS@// |
| 107 | /^LIB_PTHREAD_SIGMASK *=/s/@[^@\n]*@// | 107 | /^LIB_PTHREAD_SIGMASK *=/s/@[^@\n]*@// |
| 108 | /^LIB_CLOCK_GETTIME *=/s/@[^@\n]*@//g | ||
| 108 | /^LIBGNUTLS_LIBS *=/s/@[^@\n]*@// | 109 | /^LIBGNUTLS_LIBS *=/s/@[^@\n]*@// |
| 109 | /^LIBGNUTLS_CFLAGS *=/s/@[^@\n]*@// | 110 | /^LIBGNUTLS_CFLAGS *=/s/@[^@\n]*@// |
| 110 | /^GETLOADAVG_LIBS *=/s/@[^@\n]*@// | 111 | /^GETLOADAVG_LIBS *=/s/@[^@\n]*@// |
| @@ -137,6 +138,8 @@ s/\.h\.in/.h-in/ | |||
| 137 | /^[ ]*$/d | 138 | /^[ ]*$/d |
| 138 | /^ if test -f/,/^ fi$/c\ | 139 | /^ if test -f/,/^ fi$/c\ |
| 139 | command.com /c if exist .gdbinit rm -f _gdbinit | 140 | command.com /c if exist .gdbinit rm -f _gdbinit |
| 141 | /^ *test "X\$(PAXCTL)" = X/d | ||
| 142 | /^ *test "\$(CANNOT_DUMP)" = "yes"/d | ||
| 140 | /^ if test "\$(CANNOT_DUMP)" =/,/^ else /d | 143 | /^ if test "\$(CANNOT_DUMP)" =/,/^ else /d |
| 141 | /^ fi/d | 144 | /^ fi/d |
| 142 | /^ *LC_ALL=C \$(RUN_TEMACS)/i\ | 145 | /^ *LC_ALL=C \$(RUN_TEMACS)/i\ |
| @@ -198,3 +201,4 @@ s/ \$(DBUS_CFLAGS)// | |||
| 198 | s| -I\$(srcdir)/../lib|| | 201 | s| -I\$(srcdir)/../lib|| |
| 199 | # Add our local inttypes.h to prerequisites where needed | 202 | # Add our local inttypes.h to prerequisites where needed |
| 200 | /^lread\.o:/s|lread\.c|& ../msdos/inttypes.h| | 203 | /^lread\.o:/s|lread\.c|& ../msdos/inttypes.h| |
| 204 | /^ *test "X/d | ||
diff --git a/msdos/sed2v2.inp b/msdos/sed2v2.inp index 85ab02c877e..853c64fb178 100644 --- a/msdos/sed2v2.inp +++ b/msdos/sed2v2.inp | |||
| @@ -45,10 +45,12 @@ | |||
| 45 | /^#undef HAVE_MEMMOVE *$/s/^.*$/#define HAVE_MEMMOVE 1/ | 45 | /^#undef HAVE_MEMMOVE *$/s/^.*$/#define HAVE_MEMMOVE 1/ |
| 46 | /^#undef HAVE_SETRLIMIT *$/s/^.*$/#define HAVE_SETRLIMIT 1/ | 46 | /^#undef HAVE_SETRLIMIT *$/s/^.*$/#define HAVE_SETRLIMIT 1/ |
| 47 | /^#undef HAVE_GETRUSAGE *$/s/^.*$/#define HAVE_GETRUSAGE 1/ | 47 | /^#undef HAVE_GETRUSAGE *$/s/^.*$/#define HAVE_GETRUSAGE 1/ |
| 48 | /^#undef GETTIMEOFDAY_TIMEZONE *$/s/^.*$/#define GETTIMEOFDAY_TIMEZONE struct timezone/ | ||
| 48 | /^#undef HAVE_TM_GMTOFF *$/s/^.*$/#define HAVE_TM_GMTOFF 1/ | 49 | /^#undef HAVE_TM_GMTOFF *$/s/^.*$/#define HAVE_TM_GMTOFF 1/ |
| 49 | /^#undef HAVE_STRUCT_TIMEZONE *$/s/^.*$/#define HAVE_STRUCT_TIMEZONE 1/ | 50 | /^#undef HAVE_STRUCT_TIMEZONE *$/s/^.*$/#define HAVE_STRUCT_TIMEZONE 1/ |
| 50 | /^#undef HAVE_SIZE_T *$/s/^.*$/#define HAVE_SIZE_T 1/ | 51 | /^#undef HAVE_SIZE_T *$/s/^.*$/#define HAVE_SIZE_T 1/ |
| 51 | /^#undef HAVE_MKSTEMP *$/s/^.*$/#define HAVE_MKSTEMP 1/ | 52 | /^#undef HAVE_MKSTEMP *$/s/^.*$/#define HAVE_MKSTEMP 1/ |
| 53 | /^#undef HAVE_STRNCASECMP *$/s/^.*$/#define HAVE_STRNCASECMP 1/ | ||
| 52 | /^#undef HAVE_STRUCT_TM_TM_ZONE *$/s/^.*$/#define HAVE_STRUCT_TM_TM_ZONE 1/ | 54 | /^#undef HAVE_STRUCT_TM_TM_ZONE *$/s/^.*$/#define HAVE_STRUCT_TM_TM_ZONE 1/ |
| 53 | /^#undef HAVE_SYNC *$/s/^.*$/#define HAVE_SYNC 1/ | 55 | /^#undef HAVE_SYNC *$/s/^.*$/#define HAVE_SYNC 1/ |
| 54 | /^#undef HAVE___BUILTIN_UNWIND_INIT *$/s/^.*$/#define HAVE___BUILTIN_UNWIND_INIT 1/ | 56 | /^#undef HAVE___BUILTIN_UNWIND_INIT *$/s/^.*$/#define HAVE___BUILTIN_UNWIND_INIT 1/ |
diff --git a/msdos/sed3v2.inp b/msdos/sed3v2.inp index faa57996a25..bfa008b3e81 100644 --- a/msdos/sed3v2.inp +++ b/msdos/sed3v2.inp | |||
| @@ -35,8 +35,9 @@ s/-DVERSION[^ ]* // | |||
| 35 | /^LIBRESOLV *=/s/@[^@\n]*@//g | 35 | /^LIBRESOLV *=/s/@[^@\n]*@//g |
| 36 | /^LIBS_MAIL *=/s/@[^@\n]*@//g | 36 | /^LIBS_MAIL *=/s/@[^@\n]*@//g |
| 37 | /^LIBS_SYSTEM *=/s/@[^@\n]*@//g | 37 | /^LIBS_SYSTEM *=/s/@[^@\n]*@//g |
| 38 | /^LIB_CLOCK_GETTIME *=/s/@[^@\n]*@//g | ||
| 38 | /^CFLAGS *=/s!=.*$!=-O2 -g! | 39 | /^CFLAGS *=/s!=.*$!=-O2 -g! |
| 39 | /^C_SWITCH_SYSTEM *=/s!=.*$!=-DMSDOS! | 40 | /^C_SWITCH_SYSTEM *=/s!=.*$!=-DMSDOS -I../msdos! |
| 40 | /^C_SWITCH_MACHINE *=/s/@C_SWITCH_MACHINE@// | 41 | /^C_SWITCH_MACHINE *=/s/@C_SWITCH_MACHINE@// |
| 41 | /^WARN_CFLAGS *=/s/@WARN_CFLAGS@// | 42 | /^WARN_CFLAGS *=/s/@WARN_CFLAGS@// |
| 42 | /^WERROR_CFLAGS *=/s/@WERROR_CFLAGS@// | 43 | /^WERROR_CFLAGS *=/s/@WERROR_CFLAGS@// |
diff --git a/msdos/sedleim.inp b/msdos/sedleim.inp index 41f87d92047..461a2b7a9ec 100644 --- a/msdos/sedleim.inp +++ b/msdos/sedleim.inp | |||
| @@ -35,6 +35,8 @@ s|\([ ]\)echo|\1djecho|g | |||
| 35 | export EMACSLOADPATH=${buildlisppath}\ | 35 | export EMACSLOADPATH=${buildlisppath}\ |
| 36 | RUN_EMACS = ${EMACS} -batch --no-site-file | 36 | RUN_EMACS = ${EMACS} -batch --no-site-file |
| 37 | 37 | ||
| 38 | /^MKDIR_P *=/s,@MKDIR_P@,command.com /c md, | ||
| 39 | |||
| 38 | /^ cd ../c\ | 40 | /^ cd ../c\ |
| 39 | ${MAKE} -C ../src ${MFLAGS} emacs | 41 | ${MAKE} -C ../src ${MFLAGS} emacs |
| 40 | 42 | ||
diff --git a/msdos/sedlibmk.inp b/msdos/sedlibmk.inp index 31335e1e8c6..40b94acf107 100644 --- a/msdos/sedlibmk.inp +++ b/msdos/sedlibmk.inp | |||
| @@ -211,6 +211,7 @@ am__cd = cd | |||
| 211 | /^GNULIB_GETPAGESIZE *=/s/@GNULIB_GETPAGESIZE@/0/ | 211 | /^GNULIB_GETPAGESIZE *=/s/@GNULIB_GETPAGESIZE@/0/ |
| 212 | /^GNULIB_GL_UNISTD_H_GETOPT *=/s/@GNULIB_GL_UNISTD_H_GETOPT@/1/ | 212 | /^GNULIB_GL_UNISTD_H_GETOPT *=/s/@GNULIB_GL_UNISTD_H_GETOPT@/1/ |
| 213 | /^GNULIB_GETSUBOPT *=/s/@GNULIB_GETSUBOPT@/0/ | 213 | /^GNULIB_GETSUBOPT *=/s/@GNULIB_GETSUBOPT@/0/ |
| 214 | /^GNULIB_GETTIMEOFDAY *=/s/@GNULIB_GETTIMEOFDAY@/0/ | ||
| 214 | /^GNULIB_GETUSERSHELL *=/s/@GNULIB_GETUSERSHELL@/0/ | 215 | /^GNULIB_GETUSERSHELL *=/s/@GNULIB_GETUSERSHELL@/0/ |
| 215 | /^GNULIB_GRANTPT *=/s/@GNULIB_GRANTPT@/0/ | 216 | /^GNULIB_GRANTPT *=/s/@GNULIB_GRANTPT@/0/ |
| 216 | /^GNULIB_GROUP_MEMBER *=/s/@GNULIB_GROUP_MEMBER@/0/ | 217 | /^GNULIB_GROUP_MEMBER *=/s/@GNULIB_GROUP_MEMBER@/0/ |
| @@ -246,6 +247,7 @@ am__cd = cd | |||
| 246 | /^GNULIB_PREAD *=/s/@GNULIB_PREAD@/0/ | 247 | /^GNULIB_PREAD *=/s/@GNULIB_PREAD@/0/ |
| 247 | /^GNULIB_PRINTF *=/s/@GNULIB_PRINTF@/0/ | 248 | /^GNULIB_PRINTF *=/s/@GNULIB_PRINTF@/0/ |
| 248 | /^GNULIB_PRINTF_POSIX *=/s/@GNULIB_PRINTF_POSIX@/0/ | 249 | /^GNULIB_PRINTF_POSIX *=/s/@GNULIB_PRINTF_POSIX@/0/ |
| 250 | /^GNULIB_PSELECT *=/s/@GNULIB_PSELECT@/0/ | ||
| 249 | /^GNULIB_PTHREAD_SIGMASK *=/s/@GNULIB_PTHREAD_SIGMASK@/0/ | 251 | /^GNULIB_PTHREAD_SIGMASK *=/s/@GNULIB_PTHREAD_SIGMASK@/0/ |
| 250 | /^GNULIB_PTSNAME *=/s/@GNULIB_PTSNAME@/0/ | 252 | /^GNULIB_PTSNAME *=/s/@GNULIB_PTSNAME@/0/ |
| 251 | /^GNULIB_PTSNAME_R *=/s/@GNULIB_PTSNAME_R@/0/ | 253 | /^GNULIB_PTSNAME_R *=/s/@GNULIB_PTSNAME_R@/0/ |
| @@ -268,6 +270,7 @@ am__cd = cd | |||
| 268 | /^GNULIB_RMDIR *=/s/@GNULIB_RMDIR@/0/ | 270 | /^GNULIB_RMDIR *=/s/@GNULIB_RMDIR@/0/ |
| 269 | /^GNULIB_RPMATCH *=/s/@GNULIB_RPMATCH@/0/ | 271 | /^GNULIB_RPMATCH *=/s/@GNULIB_RPMATCH@/0/ |
| 270 | /^GNULIB_SCANF *=/s/@GNULIB_SCANF@/0/ | 272 | /^GNULIB_SCANF *=/s/@GNULIB_SCANF@/0/ |
| 273 | /^GNULIB_SELECT *=/s/@GNULIB_SELECT@/0/ | ||
| 271 | /^GNULIB_SETENV *=/s/@GNULIB_SETENV@/0/ | 274 | /^GNULIB_SETENV *=/s/@GNULIB_SETENV@/0/ |
| 272 | /^GNULIB_SETHOSTNAME *=/s/@GNULIB_SETHOSTNAME@/0/ | 275 | /^GNULIB_SETHOSTNAME *=/s/@GNULIB_SETHOSTNAME@/0/ |
| 273 | /^GNULIB_SIGACTION *=/s/@GNULIB_SIGACTION@/0/ | 276 | /^GNULIB_SIGACTION *=/s/@GNULIB_SIGACTION@/0/ |
| @@ -418,12 +421,15 @@ am__cd = cd | |||
| 418 | /^HAVE_STRTOULL *=/s/@HAVE_STRTOULL@/1/ | 421 | /^HAVE_STRTOULL *=/s/@HAVE_STRTOULL@/1/ |
| 419 | /^HAVE_STRUCT_SIGACTION_SA_SIGACTION *=/s/@HAVE_STRUCT_SIGACTION_SA_SIGACTION@/0/ | 422 | /^HAVE_STRUCT_SIGACTION_SA_SIGACTION *=/s/@HAVE_STRUCT_SIGACTION_SA_SIGACTION@/0/ |
| 420 | /^HAVE_STRUCT_RANDOM_DATA *=/s/@HAVE_STRUCT_RANDOM_DATA@/0/ | 423 | /^HAVE_STRUCT_RANDOM_DATA *=/s/@HAVE_STRUCT_RANDOM_DATA@/0/ |
| 424 | /^HAVE_STRUCT_TIMEVAL *=/s/@HAVE_STRUCT_TIMEVAL@/1/ | ||
| 421 | /^HAVE_SYMLINK *=/s/@HAVE_SYMLINK@/1/ | 425 | /^HAVE_SYMLINK *=/s/@HAVE_SYMLINK@/1/ |
| 422 | /^HAVE_SYMLINKAT *=/s/@HAVE_SYMLINKAT@/0/ | 426 | /^HAVE_SYMLINKAT *=/s/@HAVE_SYMLINKAT@/0/ |
| 423 | /^HAVE_SYS_BITYPES_H *=/s/@HAVE_SYS_BITYPES_H@/0/ | 427 | /^HAVE_SYS_BITYPES_H *=/s/@HAVE_SYS_BITYPES_H@/0/ |
| 424 | /^HAVE_SYS_INTTYPES_H *=/s/@HAVE_SYS_INTTYPES_H@/0/ | 428 | /^HAVE_SYS_INTTYPES_H *=/s/@HAVE_SYS_INTTYPES_H@/0/ |
| 425 | /^HAVE_SYS_LOADAVG_H *=/s/@HAVE_SYS_LOADAVG_H@/0/ | 429 | /^HAVE_SYS_LOADAVG_H *=/s/@HAVE_SYS_LOADAVG_H@/0/ |
| 426 | /^HAVE_SYS_PARAM_H *=/s/@HAVE_SYS_PARAM_H@/1/ | 430 | /^HAVE_SYS_PARAM_H *=/s/@HAVE_SYS_PARAM_H@/1/ |
| 431 | /^HAVE_SYS_SELECT_H *=/s/@HAVE_SYS_SELECT_H@/0/ | ||
| 432 | /^HAVE_SYS_TIME_H *=/s/@HAVE_SYS_TIME_H@/1/ | ||
| 427 | /^HAVE_SYS_TYPES_H *=/s/@HAVE_SYS_TYPES_H@/1/ | 433 | /^HAVE_SYS_TYPES_H *=/s/@HAVE_SYS_TYPES_H@/1/ |
| 428 | /^HAVE_TIMEGM *=/s/@HAVE_TIMEGM@/0/ | 434 | /^HAVE_TIMEGM *=/s/@HAVE_TIMEGM@/0/ |
| 429 | /^HAVE_TYPE_VOLATILE_SIG_ATOMIC_T *=/s/@HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@/1/ | 435 | /^HAVE_TYPE_VOLATILE_SIG_ATOMIC_T *=/s/@HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@/1/ |
| @@ -457,7 +463,9 @@ am__cd = cd | |||
| 457 | /^NEXT_AS_FIRST_DIRECTIVE_STDINT_H *=/s/@[^@\n]*@/<stdint.h>/ | 463 | /^NEXT_AS_FIRST_DIRECTIVE_STDINT_H *=/s/@[^@\n]*@/<stdint.h>/ |
| 458 | /^NEXT_AS_FIRST_DIRECTIVE_STDIO_H *=/s/@[^@\n]*@/<stdio.h>/ | 464 | /^NEXT_AS_FIRST_DIRECTIVE_STDIO_H *=/s/@[^@\n]*@/<stdio.h>/ |
| 459 | /^NEXT_AS_FIRST_DIRECTIVE_STDLIB_H *=/s/@[^@\n]*@/<stdlib.h>/ | 465 | /^NEXT_AS_FIRST_DIRECTIVE_STDLIB_H *=/s/@[^@\n]*@/<stdlib.h>/ |
| 466 | /^NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H *=/s/@[^@\n]*@// | ||
| 460 | /^NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H *=/s!@[^@\n]*@!<sys/stat.h>! | 467 | /^NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H *=/s!@[^@\n]*@!<sys/stat.h>! |
| 468 | /^NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H *=/s/@[^@\n]*@// | ||
| 461 | /^NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H *=/s!@[^@\n]*@!<sys/types.h>! | 469 | /^NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H *=/s!@[^@\n]*@!<sys/types.h>! |
| 462 | /^NEXT_AS_FIRST_DIRECTIVE_TIME_H *=/s/@[^@\n]*@/<time.h>/ | 470 | /^NEXT_AS_FIRST_DIRECTIVE_TIME_H *=/s/@[^@\n]*@/<time.h>/ |
| 463 | /^NEXT_AS_FIRST_DIRECTIVE_UNISTD_H *=/s/@[^@\n]*@/<unistd.h>/ | 471 | /^NEXT_AS_FIRST_DIRECTIVE_UNISTD_H *=/s/@[^@\n]*@/<unistd.h>/ |
| @@ -468,7 +476,9 @@ am__cd = cd | |||
| 468 | /^NEXT_STDIO_H *=/s/@[^@\n]*@/<stdio.h>/ | 476 | /^NEXT_STDIO_H *=/s/@[^@\n]*@/<stdio.h>/ |
| 469 | /^NEXT_STDINT_H *=/s/@[^@\n]*@/<stdint.h>/ | 477 | /^NEXT_STDINT_H *=/s/@[^@\n]*@/<stdint.h>/ |
| 470 | /^NEXT_STDLIB_H *=/s/@[^@\n]*@/<stdlib.h>/ | 478 | /^NEXT_STDLIB_H *=/s/@[^@\n]*@/<stdlib.h>/ |
| 479 | /^NEXT_SYS_SELECT_H *=/s/@[^@\n]*@// | ||
| 471 | /^NEXT_SYS_STAT_H *=/s!@[^@\n]*@!<sys/stat.h>! | 480 | /^NEXT_SYS_STAT_H *=/s!@[^@\n]*@!<sys/stat.h>! |
| 481 | /^NEXT_SYS_TIME_H *=/s/@[^@\n]*@// | ||
| 472 | /^NEXT_SYS_TYPES_H *=/s!@[^@\n]*@!<sys/types.h>! | 482 | /^NEXT_SYS_TYPES_H *=/s!@[^@\n]*@!<sys/types.h>! |
| 473 | /^NEXT_TIME_H *=/s/@[^@\n]*@/<time.h>/ | 483 | /^NEXT_TIME_H *=/s/@[^@\n]*@/<time.h>/ |
| 474 | /^NEXT_UNISTD_H *=/s/@[^@\n]*@/<unistd.h>/ | 484 | /^NEXT_UNISTD_H *=/s/@[^@\n]*@/<unistd.h>/ |
| @@ -507,6 +517,7 @@ am__cd = cd | |||
| 507 | /^REPLACE_GETLINE *=/s/@REPLACE_GETLINE@/0/ | 517 | /^REPLACE_GETLINE *=/s/@REPLACE_GETLINE@/0/ |
| 508 | /^REPLACE_GETLOGIN_R *=/s/@REPLACE_GETLOGIN_R@/0/ | 518 | /^REPLACE_GETLOGIN_R *=/s/@REPLACE_GETLOGIN_R@/0/ |
| 509 | /^REPLACE_GETPAGESIZE *=/s/@REPLACE_GETPAGESIZE@/0/ | 519 | /^REPLACE_GETPAGESIZE *=/s/@REPLACE_GETPAGESIZE@/0/ |
| 520 | /^REPLACE_GETTIMEOFDAY *=/s/@REPLACE_GETTIMEOFDAY@/0/ | ||
| 510 | /^REPLACE_ISATTY *=/s/@REPLACE_ISATTY@/0/ | 521 | /^REPLACE_ISATTY *=/s/@REPLACE_ISATTY@/0/ |
| 511 | /^REPLACE_LCHOWN *=/s/@REPLACE_LCHOWN@/0/ | 522 | /^REPLACE_LCHOWN *=/s/@REPLACE_LCHOWN@/0/ |
| 512 | /^REPLACE_LINK *=/s/@REPLACE_LINK@/0/ | 523 | /^REPLACE_LINK *=/s/@REPLACE_LINK@/0/ |
| @@ -529,6 +540,7 @@ am__cd = cd | |||
| 529 | /^REPLACE_PREAD *=/s/@REPLACE_PREAD@/0/ | 540 | /^REPLACE_PREAD *=/s/@REPLACE_PREAD@/0/ |
| 530 | /^REPLACE_PRINTF *=/s/@REPLACE_PRINTF@/0/ | 541 | /^REPLACE_PRINTF *=/s/@REPLACE_PRINTF@/0/ |
| 531 | /^REPLACE_PTHREAD_SIGMASK *=/s/@REPLACE_PTHREAD_SIGMASK@/0/ | 542 | /^REPLACE_PTHREAD_SIGMASK *=/s/@REPLACE_PTHREAD_SIGMASK@/0/ |
| 543 | /^REPLACE_PSELECT *=/s/@REPLACE_PSELECT@/0/ | ||
| 532 | /^REPLACE_PTSNAME_R *=/s/@REPLACE_PTSNAME_R@/0/ | 544 | /^REPLACE_PTSNAME_R *=/s/@REPLACE_PTSNAME_R@/0/ |
| 533 | /^REPLACE_PUTENV *=/s/@REPLACE_PUTENV@/0/ | 545 | /^REPLACE_PUTENV *=/s/@REPLACE_PUTENV@/0/ |
| 534 | /^REPLACE_PWRITE *=/s/@REPLACE_PWRITE@/0/ | 546 | /^REPLACE_PWRITE *=/s/@REPLACE_PWRITE@/0/ |
| @@ -551,6 +563,7 @@ am__cd = cd | |||
| 551 | /^REPLACE_STDIO_WRITE_FUNCS *=/s/@REPLACE_STDIO_WRITE_FUNCS@/0/ | 563 | /^REPLACE_STDIO_WRITE_FUNCS *=/s/@REPLACE_STDIO_WRITE_FUNCS@/0/ |
| 552 | /^REPLACE_STRTOD *=/s/@REPLACE_STRTOD@/0/ | 564 | /^REPLACE_STRTOD *=/s/@REPLACE_STRTOD@/0/ |
| 553 | /^REPLACE_STRTOIMAX *=/s/@REPLACE_STRTOIMAX@/0/ | 565 | /^REPLACE_STRTOIMAX *=/s/@REPLACE_STRTOIMAX@/0/ |
| 566 | /^REPLACE_STRUCT_TIMEVAL *=/s/@REPLACE_STRUCT_TIMEVAL@/0/ | ||
| 554 | /^REPLACE_SYMLINK *=/s/@REPLACE_SYMLINK@/0/ | 567 | /^REPLACE_SYMLINK *=/s/@REPLACE_SYMLINK@/0/ |
| 555 | /^REPLACE_TIMEGM *=/s/@REPLACE_TIMEGM@/0/ | 568 | /^REPLACE_TIMEGM *=/s/@REPLACE_TIMEGM@/0/ |
| 556 | /^REPLACE_TMPFILE *=/s/@REPLACE_TMPFILE@/0/ | 569 | /^REPLACE_TMPFILE *=/s/@REPLACE_TMPFILE@/0/ |
| @@ -588,6 +601,10 @@ am__cd = cd | |||
| 588 | /am__append_2 *=.*verify\.h/s/@[^@\n]*@// | 601 | /am__append_2 *=.*verify\.h/s/@[^@\n]*@// |
| 589 | /^gl_LIBOBJS *=/s/@[^@\n]*@/getopt.o getopt1.o strftime.o time_r.o getloadavg.o pthread_sigmask.o/ | 602 | /^gl_LIBOBJS *=/s/@[^@\n]*@/getopt.o getopt1.o strftime.o time_r.o getloadavg.o pthread_sigmask.o/ |
| 590 | /^BUILT_SOURCES *=/s/ *inttypes\.h// | 603 | /^BUILT_SOURCES *=/s/ *inttypes\.h// |
| 604 | /^BUILT_SOURCES *=/,/^[^ ]/{ | ||
| 605 | s| *sys/select\.h|| | ||
| 606 | s| *sys/time\.h|| | ||
| 607 | } | ||
| 591 | /^am_libgnu_a_OBJECTS *=/s/careadlinkat\.\$(OBJEXT)// | 608 | /^am_libgnu_a_OBJECTS *=/s/careadlinkat\.\$(OBJEXT)// |
| 592 | /^am_libgnu_a_OBJECTS *=/s/allocator\.\$(OBJEXT)// | 609 | /^am_libgnu_a_OBJECTS *=/s/allocator\.\$(OBJEXT)// |
| 593 | /^srcdir *=/s/@[^@\n]*@/./ | 610 | /^srcdir *=/s/@[^@\n]*@/./ |
| @@ -661,3 +678,6 @@ s/\.in-h\; *\\$/.in-h >> $@-t/ | |||
| 661 | s/'\; \\ *$/' >> $@-t/ | 678 | s/'\; \\ *$/' >> $@-t/ |
| 662 | } | 679 | } |
| 663 | s!\$(MKDIR_P)[ ][ ]*sys!command.com /c "if not exist sys\\stat.h md sys"! | 680 | s!\$(MKDIR_P)[ ][ ]*sys!command.com /c "if not exist sys\\stat.h md sys"! |
| 681 | /^ @for dir in/,/^[^ ]/c\ | ||
| 682 | -rm -rf $(MOSTLYCLEANDIRS) | ||
| 683 | /^ *-test . /d | ||
diff --git a/src/ChangeLog b/src/ChangeLog index ce817c19894..9794c5ad4cd 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,28 @@ | |||
| 1 | 2012-06-30 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * w32proc.c (sys_select): Accept and ignore one more argument. | ||
| 4 | |||
| 5 | * w32.c (emacs_gnutls_pull): Call select with one more argument. | ||
| 6 | |||
| 7 | * sysselect.h [DOS_NT]: Don't include sys/select.h. | ||
| 8 | |||
| 9 | * s/ms-w32.h (select, pselect): Don't define here, they are | ||
| 10 | defined in sysselect.h | ||
| 11 | |||
| 12 | * sysselect.h (pselect) [!HAVE_PSELECT]: Redirect to sys_select. | ||
| 13 | |||
| 14 | * sysdep.c: Don't include dos.h and dosfns.h. | ||
| 15 | |||
| 16 | * process.c (sys_select): | ||
| 17 | * msdos.c (sys_select): Accept one more argument and ignore it. | ||
| 18 | |||
| 19 | * msdos.c (event_timestamp, sys_select): Use gnulib's gettime; | ||
| 20 | adapt data types and code to that. | ||
| 21 | |||
| 22 | * dosfns.c: | ||
| 23 | * msdos.c (gettime, settime): Define away the prototypes in dos.h, | ||
| 24 | which clashes with the gnulib function of the same name. | ||
| 25 | |||
| 1 | 2012-06-30 Andreas Schwab <schwab@linux-m68k.org> | 26 | 2012-06-30 Andreas Schwab <schwab@linux-m68k.org> |
| 2 | 27 | ||
| 3 | * font.c (font_style_to_value, font_style_symbolic) | 28 | * font.c (font_style_to_value, font_style_symbolic) |
diff --git a/src/dosfns.c b/src/dosfns.c index 11d2258f614..0561a941162 100644 --- a/src/dosfns.c +++ b/src/dosfns.c | |||
| @@ -23,7 +23,13 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 23 | /* The entire file is within this conditional */ | 23 | /* The entire file is within this conditional */ |
| 24 | 24 | ||
| 25 | #include <stdio.h> | 25 | #include <stdio.h> |
| 26 | /* gettine and settime in dos.h clash with their namesakes from | ||
| 27 | gnulib, so we move out of our way the prototypes in dos.h. */ | ||
| 28 | #define gettime dos_h_gettime_ | ||
| 29 | #define settime dos_h_settime_ | ||
| 26 | #include <dos.h> | 30 | #include <dos.h> |
| 31 | #undef gettime | ||
| 32 | #undef settime | ||
| 27 | #include <setjmp.h> | 33 | #include <setjmp.h> |
| 28 | #include "lisp.h" | 34 | #include "lisp.h" |
| 29 | #include "character.h" | 35 | #include "character.h" |
diff --git a/src/msdos.c b/src/msdos.c index a79fad0ccd4..4dec901988b 100644 --- a/src/msdos.c +++ b/src/msdos.c | |||
| @@ -31,7 +31,13 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 31 | #include <time.h> | 31 | #include <time.h> |
| 32 | #include <sys/param.h> | 32 | #include <sys/param.h> |
| 33 | #include <sys/time.h> | 33 | #include <sys/time.h> |
| 34 | /* gettine and settime in dos.h clash with their namesakes from | ||
| 35 | gnulib, so we move out of our way the prototypes in dos.h. */ | ||
| 36 | #define gettime dos_h_gettime_ | ||
| 37 | #define settime dos_h_settime_ | ||
| 34 | #include <dos.h> | 38 | #include <dos.h> |
| 39 | #undef gettime | ||
| 40 | #undef settime | ||
| 35 | #include <errno.h> | 41 | #include <errno.h> |
| 36 | #include <sys/stat.h> /* for _fixpath */ | 42 | #include <sys/stat.h> /* for _fixpath */ |
| 37 | #include <unistd.h> /* for chdir, dup, dup2, etc. */ | 43 | #include <unistd.h> /* for chdir, dup, dup2, etc. */ |
| @@ -103,18 +109,18 @@ int _crt0_startup_flags = (_CRT0_FLAG_UNIX_SBRK | _CRT0_FLAG_FILL_SBRK_MEMORY); | |||
| 103 | 109 | ||
| 104 | #endif /* not SYSTEM_MALLOC */ | 110 | #endif /* not SYSTEM_MALLOC */ |
| 105 | 111 | ||
| 112 | /* Return the current timestamp in milliseconds since midnight. */ | ||
| 106 | static unsigned long | 113 | static unsigned long |
| 107 | event_timestamp (void) | 114 | event_timestamp (void) |
| 108 | { | 115 | { |
| 109 | struct time t; | 116 | struct timespec t; |
| 110 | unsigned long s; | 117 | unsigned long s; |
| 111 | 118 | ||
| 112 | gettime (&t); | 119 | gettime (&t); |
| 113 | s = t.ti_min; | 120 | s = t.tv_sec; |
| 114 | s *= 60; | 121 | s %= 86400; |
| 115 | s += t.ti_sec; | ||
| 116 | s *= 1000; | 122 | s *= 1000; |
| 117 | s += t.ti_hund * 10; | 123 | s += t.tv_nsec * 1000000; |
| 118 | 124 | ||
| 119 | return s; | 125 | return s; |
| 120 | } | 126 | } |
| @@ -4097,10 +4103,10 @@ dos_yield_time_slice (void) | |||
| 4097 | because wait_reading_process_output takes care of that. */ | 4103 | because wait_reading_process_output takes care of that. */ |
| 4098 | int | 4104 | int |
| 4099 | sys_select (int nfds, SELECT_TYPE *rfds, SELECT_TYPE *wfds, SELECT_TYPE *efds, | 4105 | sys_select (int nfds, SELECT_TYPE *rfds, SELECT_TYPE *wfds, SELECT_TYPE *efds, |
| 4100 | EMACS_TIME *timeout) | 4106 | EMACS_TIME *timeout, void *ignored) |
| 4101 | { | 4107 | { |
| 4102 | int check_input; | 4108 | int check_input; |
| 4103 | struct time t; | 4109 | struct timespec t; |
| 4104 | 4110 | ||
| 4105 | check_input = 0; | 4111 | check_input = 0; |
| 4106 | if (rfds) | 4112 | if (rfds) |
| @@ -4130,18 +4136,13 @@ sys_select (int nfds, SELECT_TYPE *rfds, SELECT_TYPE *wfds, SELECT_TYPE *efds, | |||
| 4130 | EMACS_TIME clnow, cllast, cldiff; | 4136 | EMACS_TIME clnow, cllast, cldiff; |
| 4131 | 4137 | ||
| 4132 | gettime (&t); | 4138 | gettime (&t); |
| 4133 | EMACS_SET_SECS_USECS (cllast, t.ti_sec, t.ti_hund * 10000L); | 4139 | EMACS_SET_SECS_NSECS (cllast, t.tv_sec, t.tv_nsec); |
| 4134 | 4140 | ||
| 4135 | while (!check_input || !detect_input_pending ()) | 4141 | while (!check_input || !detect_input_pending ()) |
| 4136 | { | 4142 | { |
| 4137 | gettime (&t); | 4143 | gettime (&t); |
| 4138 | EMACS_SET_SECS_USECS (clnow, t.ti_sec, t.ti_hund * 10000L); | 4144 | EMACS_SET_SECS_NSECS (clnow, t.tv_sec, t.tv_nsec); |
| 4139 | EMACS_SUB_TIME (cldiff, clnow, cllast); | 4145 | EMACS_SUB_TIME (cldiff, clnow, cllast); |
| 4140 | |||
| 4141 | /* When seconds wrap around, we assume that no more than | ||
| 4142 | 1 minute passed since last `gettime'. */ | ||
| 4143 | if (EMACS_TIME_SIGN (cldiff) < 0) | ||
| 4144 | EMACS_SET_SECS (cldiff, EMACS_SECS (cldiff) + 60); | ||
| 4145 | EMACS_SUB_TIME (*timeout, *timeout, cldiff); | 4146 | EMACS_SUB_TIME (*timeout, *timeout, cldiff); |
| 4146 | 4147 | ||
| 4147 | /* Stop when timeout value crosses zero. */ | 4148 | /* Stop when timeout value crosses zero. */ |
diff --git a/src/process.c b/src/process.c index e9ad3b10c33..fa16c178c16 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -6808,7 +6808,7 @@ keyboard_bit_set (fd_set *mask) | |||
| 6808 | 6808 | ||
| 6809 | /* Defined on msdos.c. */ | 6809 | /* Defined on msdos.c. */ |
| 6810 | extern int sys_select (int, SELECT_TYPE *, SELECT_TYPE *, SELECT_TYPE *, | 6810 | extern int sys_select (int, SELECT_TYPE *, SELECT_TYPE *, SELECT_TYPE *, |
| 6811 | EMACS_TIME *); | 6811 | EMACS_TIME *, void *); |
| 6812 | 6812 | ||
| 6813 | /* Implementation of wait_reading_process_output, assuming that there | 6813 | /* Implementation of wait_reading_process_output, assuming that there |
| 6814 | are no subprocesses. Used only by the MS-DOS build. | 6814 | are no subprocesses. Used only by the MS-DOS build. |
diff --git a/src/s/ms-w32.h b/src/s/ms-w32.h index 38e368e5bd2..3a95bffadb8 100644 --- a/src/s/ms-w32.h +++ b/src/s/ms-w32.h | |||
| @@ -234,7 +234,7 @@ struct sigaction { | |||
| 234 | #define rename sys_rename | 234 | #define rename sys_rename |
| 235 | #define rmdir sys_rmdir | 235 | #define rmdir sys_rmdir |
| 236 | #define select sys_select | 236 | #define select sys_select |
| 237 | #define pselect sys_select | 237 | #define pselect sys_select |
| 238 | #define sleep sys_sleep | 238 | #define sleep sys_sleep |
| 239 | #define strerror sys_strerror | 239 | #define strerror sys_strerror |
| 240 | #undef unlink | 240 | #undef unlink |
diff --git a/src/sysdep.c b/src/sysdep.c index 089b7ba5c8e..29e396c914d 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -65,8 +65,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 65 | #endif | 65 | #endif |
| 66 | 66 | ||
| 67 | #ifdef MSDOS /* Demacs 1.1.2 91/10/20 Manabu Higashida, MW Aug 1993 */ | 67 | #ifdef MSDOS /* Demacs 1.1.2 91/10/20 Manabu Higashida, MW Aug 1993 */ |
| 68 | #include <dos.h> | ||
| 69 | #include "dosfns.h" | ||
| 70 | #include "msdos.h" | 68 | #include "msdos.h" |
| 71 | #include <sys/param.h> | 69 | #include <sys/param.h> |
| 72 | #endif | 70 | #endif |
diff --git a/src/sysselect.h b/src/sysselect.h index 328372d427c..2dbbede2bff 100644 --- a/src/sysselect.h +++ b/src/sysselect.h | |||
| @@ -19,7 +19,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 19 | #if defined (DARWIN_OS) | 19 | #if defined (DARWIN_OS) |
| 20 | #undef init_process | 20 | #undef init_process |
| 21 | #endif | 21 | #endif |
| 22 | #ifndef WINDOWSNT | 22 | #ifndef DOS_NT |
| 23 | #include <sys/select.h> | 23 | #include <sys/select.h> |
| 24 | #endif | 24 | #endif |
| 25 | #if defined (DARWIN_OS) | 25 | #if defined (DARWIN_OS) |
| @@ -52,3 +52,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 52 | #if !defined (HAVE_SELECT) | 52 | #if !defined (HAVE_SELECT) |
| 53 | #define select sys_select | 53 | #define select sys_select |
| 54 | #endif | 54 | #endif |
| 55 | |||
| 56 | #ifdef MSDOS | ||
| 57 | #define pselect sys_select | ||
| 58 | #endif | ||
| @@ -6312,7 +6312,7 @@ emacs_gnutls_pull (gnutls_transport_ptr_t p, void* buf, size_t sz) | |||
| 6312 | 6312 | ||
| 6313 | /* Use select with the timeout to poll the selector. */ | 6313 | /* Use select with the timeout to poll the selector. */ |
| 6314 | sc = select (fd + 1, &fdset, (SELECT_TYPE *)0, (SELECT_TYPE *)0, | 6314 | sc = select (fd + 1, &fdset, (SELECT_TYPE *)0, (SELECT_TYPE *)0, |
| 6315 | &timeout); | 6315 | &timeout, NULL); |
| 6316 | 6316 | ||
| 6317 | if (sc > 0) | 6317 | if (sc > 0) |
| 6318 | continue; /* Try again. */ | 6318 | continue; /* Try again. */ |
diff --git a/src/w32proc.c b/src/w32proc.c index 3864d15623a..afc1b21fdde 100644 --- a/src/w32proc.c +++ b/src/w32proc.c | |||
| @@ -1080,7 +1080,7 @@ extern int proc_buffered_char[]; | |||
| 1080 | 1080 | ||
| 1081 | int | 1081 | int |
| 1082 | sys_select (int nfds, SELECT_TYPE *rfds, SELECT_TYPE *wfds, SELECT_TYPE *efds, | 1082 | sys_select (int nfds, SELECT_TYPE *rfds, SELECT_TYPE *wfds, SELECT_TYPE *efds, |
| 1083 | EMACS_TIME *timeout) | 1083 | EMACS_TIME *timeout, void *ignored) |
| 1084 | { | 1084 | { |
| 1085 | SELECT_TYPE orfds; | 1085 | SELECT_TYPE orfds; |
| 1086 | DWORD timeout_ms, start_time; | 1086 | DWORD timeout_ms, start_time; |