diff options
| author | Eli Zaretskii | 2010-03-28 09:04:11 -0400 |
|---|---|---|
| committer | Eli Zaretskii | 2010-03-28 09:04:11 -0400 |
| commit | e7dbdb6dfc3ffdc25f8d32a43683500f596d9784 (patch) | |
| tree | e7e73d34fe234175f7da59690ec5abf6f73b89a7 /src | |
| parent | 34689d3c1ad54fd463d5f20c64bb1ac655dc5741 (diff) | |
| parent | 22ef1944028e9ac89a9717439b175ce3230a4ba1 (diff) | |
| download | emacs-e7dbdb6dfc3ffdc25f8d32a43683500f596d9784.tar.gz emacs-e7dbdb6dfc3ffdc25f8d32a43683500f596d9784.zip | |
Merge from mainline.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 87 | ||||
| -rw-r--r-- | src/ChangeLog.7 | 4 | ||||
| -rw-r--r-- | src/Makefile.in | 23 | ||||
| -rw-r--r-- | src/atimer.c | 6 | ||||
| -rw-r--r-- | src/coding.c | 52 | ||||
| -rw-r--r-- | src/config.in | 65 | ||||
| -rw-r--r-- | src/data.c | 5 | ||||
| -rw-r--r-- | src/dispextern.h | 3 | ||||
| -rw-r--r-- | src/frame.c | 7 | ||||
| -rw-r--r-- | src/keyboard.c | 23 | ||||
| -rw-r--r-- | src/m/hp800.h | 1 | ||||
| -rw-r--r-- | src/m/ibmrs6000.h | 11 | ||||
| -rw-r--r-- | src/m/iris4d.h | 2 | ||||
| -rw-r--r-- | src/m/vax.h | 5 | ||||
| -rw-r--r-- | src/process.c | 95 | ||||
| -rw-r--r-- | src/s/aix4-2.h | 11 | ||||
| -rw-r--r-- | src/s/gnu-linux.h | 3 | ||||
| -rw-r--r-- | src/s/netbsd.h | 2 | ||||
| -rw-r--r-- | src/syssignal.h | 26 | ||||
| -rw-r--r-- | src/xfns.c | 4 |
20 files changed, 231 insertions, 204 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 2eaefe41fac..7aae2a3754f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,90 @@ | |||
| 1 | 2010-03-27 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * process.c (Fmake_network_process): Don't apply Bug#5173 fix for | ||
| 4 | Windows. | ||
| 5 | |||
| 6 | 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 7 | |||
| 8 | * process.c (Fmake_network_process): Don't call turn_on_atimers around | ||
| 9 | `connect' (Bug#5723). | ||
| 10 | |||
| 11 | 2010-03-25 Helmut Eller <eller.helmut@gmail.com> | ||
| 12 | |||
| 13 | * process.c (Fmake_network_process): Call `select' for interrupted | ||
| 14 | `connect' rather than creating new socket (Bug#5173). | ||
| 15 | |||
| 16 | 2010-03-24 Jan Djärv <jan.h.d@swipnet.se> | ||
| 17 | |||
| 18 | * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736). | ||
| 19 | |||
| 20 | * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER. | ||
| 21 | |||
| 22 | * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new. | ||
| 23 | |||
| 24 | 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 25 | |||
| 26 | * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around | ||
| 27 | XLoadQueryFont. | ||
| 28 | |||
| 29 | 2010-03-24 Kenichi Handa <handa@m17n.org> | ||
| 30 | |||
| 31 | * coding.c (decode_coding_ccl): Fix previous change for the | ||
| 32 | multibyte case. | ||
| 33 | (encode_coding_ccl): Don't setup ccl program here. Fix for the | ||
| 34 | case that the output buffer is fullfilled. | ||
| 35 | (encode_coding): Setup ccl program here. | ||
| 36 | |||
| 37 | 2010-03-24 Andreas Politz <politza@fh-trier.de> (tiny change) | ||
| 38 | |||
| 39 | * editfns.c (Fformat): Account for string precision when computing | ||
| 40 | field width (Bug#5710). | ||
| 41 | |||
| 42 | 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 43 | |||
| 44 | * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default. | ||
| 45 | |||
| 46 | Simplify LIBS_MACHINE definitions. | ||
| 47 | * m/hp800.h (LIBS_MACHINE): Remove, same as default. | ||
| 48 | * m/iris4d.h (LIBS_MACHINE): Likewise. | ||
| 49 | * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ... | ||
| 50 | * s/aix4-2.h (LIBS_SYSTEM): ... here. | ||
| 51 | * s/netbsd.h: Remove commented out code. | ||
| 52 | |||
| 53 | 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 54 | |||
| 55 | Remove dead code dealing with POSIX_SIGNALS. | ||
| 56 | * atimer.c (set_alarm): Remove dead code, all USG systems define | ||
| 57 | POSIX_SIGNALS. | ||
| 58 | * data.c (arith_error): Likewise. | ||
| 59 | * keyboard.c (input_available_signal, handle_user_signal) | ||
| 60 | (interrupt_signal): Likewise. | ||
| 61 | * process.c (sigchld_handler): Likewise. | ||
| 62 | (create_process): Remove if 0 code. Remove HPUX conditional when | ||
| 63 | !defined (POSIX_SIGNALS), it cannot be true. | ||
| 64 | * syssignal.h: Remove USG5_4 and USG conditionals when | ||
| 65 | !POSIX_SIGNALS, they cannot be true. | ||
| 66 | |||
| 67 | * keyboard.c (Fset_input_interrupt_mode): Remove code depending on | ||
| 68 | NO_SOCK_SIGIO, not used anymore. | ||
| 69 | |||
| 70 | 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 71 | |||
| 72 | * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only | ||
| 73 | support vax on BSDs. | ||
| 74 | |||
| 75 | * m/ibmrs6000.h (ORDINARY_LINK): Move definition ... | ||
| 76 | * s/aix4-2.h (ORDINARY_LINK): ... here. | ||
| 77 | |||
| 78 | 2010-03-21 Andreas Schwab <schwab@linux-m68k.org> | ||
| 79 | |||
| 80 | * Makefile.in (abs_builddir): Define. | ||
| 81 | (bootstrap_exe): Use it. | ||
| 82 | (VPATH): Use $(srcdir) instead of @srcdir@. | ||
| 83 | |||
| 84 | 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 85 | |||
| 86 | * Makefile.in (bootstrap_exe): Use an absolute name. | ||
| 87 | |||
| 1 | 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu> | 88 | 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 89 | ||
| 3 | Remove support for old GNU/Linux using libc version 5. | 90 | Remove support for old GNU/Linux using libc version 5. |
diff --git a/src/ChangeLog.7 b/src/ChangeLog.7 index 30ac527215f..6cc3d0f9e3e 100644 --- a/src/ChangeLog.7 +++ b/src/ChangeLog.7 | |||
| @@ -7154,9 +7154,9 @@ | |||
| 7154 | (ENCODE_ISO_CHARACTER): Bug of handling return value of unify_char | 7154 | (ENCODE_ISO_CHARACTER): Bug of handling return value of unify_char |
| 7155 | fixed. | 7155 | fixed. |
| 7156 | (DECODE_SJIS_BIG5_CHARACTER): New macro. | 7156 | (DECODE_SJIS_BIG5_CHARACTER): New macro. |
| 7157 | (decode_coding_sjis_big5): Handle character unificatoin table. | 7157 | (decode_coding_sjis_big5): Handle character unification table. |
| 7158 | Use macro DECODE_SJIS_BIG5_CHARACTER. | 7158 | Use macro DECODE_SJIS_BIG5_CHARACTER. |
| 7159 | (encode_coding_sjis_big5): Handle character unificatoin table. | 7159 | (encode_coding_sjis_big5): Handle character unification table. |
| 7160 | Use macro ENCODE_SJIS_BIG5_CHARACTER. | 7160 | Use macro ENCODE_SJIS_BIG5_CHARACTER. |
| 7161 | (setup_coding_system): Handle members | 7161 | (setup_coding_system): Handle members |
| 7162 | character_unification_table_for_decode and | 7162 | character_unification_table_for_decode and |
diff --git a/src/Makefile.in b/src/Makefile.in index 51c06835396..18d7693da2e 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -33,16 +33,17 @@ | |||
| 33 | 33 | ||
| 34 | # Here are the things that we expect ../configure to edit. | 34 | # Here are the things that we expect ../configure to edit. |
| 35 | # We use $(srcdir) explicitly in dependencies so as not to depend on VPATH. | 35 | # We use $(srcdir) explicitly in dependencies so as not to depend on VPATH. |
| 36 | srcdir=@srcdir@ | 36 | srcdir = @srcdir@ |
| 37 | VPATH=@srcdir@ | 37 | abs_builddir = @abs_builddir@ |
| 38 | CC=@CC@ | 38 | VPATH = $(srcdir) |
| 39 | CPP=@CPP@ | 39 | CC = @CC@ |
| 40 | CFLAGS=@CFLAGS@ | 40 | CPP = @CPP@ |
| 41 | CPPFLAGS=@CPPFLAGS@ | 41 | CFLAGS = @CFLAGS@ |
| 42 | LDFLAGS=@LDFLAGS@ | 42 | CPPFLAGS = @CPPFLAGS@ |
| 43 | LN_S=@LN_S@ | 43 | LDFLAGS = @LDFLAGS@ |
| 44 | EXEEXT=@EXEEXT@ | 44 | LN_S = @LN_S@ |
| 45 | version=@version@ | 45 | EXEEXT = @EXEEXT@ |
| 46 | version = @version@ | ||
| 46 | # Substitute an assignment for the MAKE variable, because | 47 | # Substitute an assignment for the MAKE variable, because |
| 47 | # BSD doesn't have it as a default. | 48 | # BSD doesn't have it as a default. |
| 48 | @SET_MAKE@ | 49 | @SET_MAKE@ |
| @@ -63,7 +64,7 @@ M_FILE = ${srcdir}/@machfile@ | |||
| 63 | S_FILE = ${srcdir}/@opsysfile@ | 64 | S_FILE = ${srcdir}/@opsysfile@ |
| 64 | config_h = config.h $(M_FILE) $(S_FILE) | 65 | config_h = config.h $(M_FILE) $(S_FILE) |
| 65 | 66 | ||
| 66 | bootstrap_exe = ../src/bootstrap-emacs${EXEEXT} | 67 | bootstrap_exe = ${abs_builddir}/bootstrap-emacs${EXEEXT} |
| 67 | 68 | ||
| 68 | OTHER_FILES = @OTHER_FILES@ | 69 | OTHER_FILES = @OTHER_FILES@ |
| 69 | 70 | ||
diff --git a/src/atimer.c b/src/atimer.c index 432e2590dad..556272d7918 100644 --- a/src/atimer.c +++ b/src/atimer.c | |||
| @@ -296,12 +296,6 @@ unwind_stop_other_atimers (dummy) | |||
| 296 | static void | 296 | static void |
| 297 | set_alarm () | 297 | set_alarm () |
| 298 | { | 298 | { |
| 299 | #if defined (USG) && !defined (POSIX_SIGNALS) | ||
| 300 | /* USG systems forget handlers when they are used; | ||
| 301 | must reestablish each time. */ | ||
| 302 | signal (SIGALRM, alarm_signal_handler); | ||
| 303 | #endif /* USG */ | ||
| 304 | |||
| 305 | if (atimers) | 299 | if (atimers) |
| 306 | { | 300 | { |
| 307 | EMACS_TIME now, time; | 301 | EMACS_TIME now, time; |
diff --git a/src/coding.c b/src/coding.c index df81eaba16e..bdc37cb7c53 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -5245,7 +5245,7 @@ decode_coding_ccl (coding) | |||
| 5245 | int multibytep = coding->src_multibyte; | 5245 | int multibytep = coding->src_multibyte; |
| 5246 | struct ccl_program *ccl = &coding->spec.ccl->ccl; | 5246 | struct ccl_program *ccl = &coding->spec.ccl->ccl; |
| 5247 | int source_charbuf[1024]; | 5247 | int source_charbuf[1024]; |
| 5248 | int source_byteidx[1024]; | 5248 | int source_byteidx[1025]; |
| 5249 | Lisp_Object attrs, charset_list; | 5249 | Lisp_Object attrs, charset_list; |
| 5250 | 5250 | ||
| 5251 | CODING_GET_INFO (coding, attrs, charset_list); | 5251 | CODING_GET_INFO (coding, attrs, charset_list); |
| @@ -5256,11 +5256,14 @@ decode_coding_ccl (coding) | |||
| 5256 | int i = 0; | 5256 | int i = 0; |
| 5257 | 5257 | ||
| 5258 | if (multibytep) | 5258 | if (multibytep) |
| 5259 | while (i < 1024 && p < src_end) | 5259 | { |
| 5260 | { | 5260 | while (i < 1024 && p < src_end) |
| 5261 | source_byteidx[i] = p - src; | 5261 | { |
| 5262 | source_charbuf[i++] = STRING_CHAR_ADVANCE (p); | 5262 | source_byteidx[i] = p - src; |
| 5263 | } | 5263 | source_charbuf[i++] = STRING_CHAR_ADVANCE (p); |
| 5264 | } | ||
| 5265 | source_byteidx[i] = p - src; | ||
| 5266 | } | ||
| 5264 | else | 5267 | else |
| 5265 | while (i < 1024 && p < src_end) | 5268 | while (i < 1024 && p < src_end) |
| 5266 | source_charbuf[i++] = *p++; | 5269 | source_charbuf[i++] = *p++; |
| @@ -5270,7 +5273,7 @@ decode_coding_ccl (coding) | |||
| 5270 | ccl_driver (ccl, source_charbuf, charbuf, i, charbuf_end - charbuf, | 5273 | ccl_driver (ccl, source_charbuf, charbuf, i, charbuf_end - charbuf, |
| 5271 | charset_list); | 5274 | charset_list); |
| 5272 | charbuf += ccl->produced; | 5275 | charbuf += ccl->produced; |
| 5273 | if (multibytep && ccl->consumed < i) | 5276 | if (multibytep) |
| 5274 | src += source_byteidx[ccl->consumed]; | 5277 | src += source_byteidx[ccl->consumed]; |
| 5275 | else | 5278 | else |
| 5276 | src += ccl->consumed; | 5279 | src += ccl->consumed; |
| @@ -5304,7 +5307,7 @@ static int | |||
| 5304 | encode_coding_ccl (coding) | 5307 | encode_coding_ccl (coding) |
| 5305 | struct coding_system *coding; | 5308 | struct coding_system *coding; |
| 5306 | { | 5309 | { |
| 5307 | struct ccl_program ccl; | 5310 | struct ccl_program *ccl = &coding->spec.ccl->ccl; |
| 5308 | int multibytep = coding->dst_multibyte; | 5311 | int multibytep = coding->dst_multibyte; |
| 5309 | int *charbuf = coding->charbuf; | 5312 | int *charbuf = coding->charbuf; |
| 5310 | int *charbuf_end = charbuf + coding->charbuf_used; | 5313 | int *charbuf_end = charbuf + coding->charbuf_used; |
| @@ -5315,35 +5318,34 @@ encode_coding_ccl (coding) | |||
| 5315 | Lisp_Object attrs, charset_list; | 5318 | Lisp_Object attrs, charset_list; |
| 5316 | 5319 | ||
| 5317 | CODING_GET_INFO (coding, attrs, charset_list); | 5320 | CODING_GET_INFO (coding, attrs, charset_list); |
| 5318 | setup_ccl_program (&ccl, CODING_CCL_ENCODER (coding)); | 5321 | if (coding->consumed_char == coding->src_chars |
| 5319 | 5322 | && coding->mode & CODING_MODE_LAST_BLOCK) | |
| 5320 | ccl.last_block = coding->mode & CODING_MODE_LAST_BLOCK; | 5323 | ccl->last_block = 1; |
| 5321 | ccl.dst_multibyte = coding->dst_multibyte; | ||
| 5322 | 5324 | ||
| 5323 | while (charbuf < charbuf_end) | 5325 | while (charbuf < charbuf_end) |
| 5324 | { | 5326 | { |
| 5325 | ccl_driver (&ccl, charbuf, destination_charbuf, | 5327 | ccl_driver (ccl, charbuf, destination_charbuf, |
| 5326 | charbuf_end - charbuf, 1024, charset_list); | 5328 | charbuf_end - charbuf, 1024, charset_list); |
| 5327 | if (multibytep) | 5329 | if (multibytep) |
| 5328 | { | 5330 | { |
| 5329 | ASSURE_DESTINATION (ccl.produced * 2); | 5331 | ASSURE_DESTINATION (ccl->produced * 2); |
| 5330 | for (i = 0; i < ccl.produced; i++) | 5332 | for (i = 0; i < ccl->produced; i++) |
| 5331 | EMIT_ONE_BYTE (destination_charbuf[i] & 0xFF); | 5333 | EMIT_ONE_BYTE (destination_charbuf[i] & 0xFF); |
| 5332 | } | 5334 | } |
| 5333 | else | 5335 | else |
| 5334 | { | 5336 | { |
| 5335 | ASSURE_DESTINATION (ccl.produced); | 5337 | ASSURE_DESTINATION (ccl->produced); |
| 5336 | for (i = 0; i < ccl.produced; i++) | 5338 | for (i = 0; i < ccl->produced; i++) |
| 5337 | *dst++ = destination_charbuf[i] & 0xFF; | 5339 | *dst++ = destination_charbuf[i] & 0xFF; |
| 5338 | produced_chars += ccl.produced; | 5340 | produced_chars += ccl->produced; |
| 5339 | } | 5341 | } |
| 5340 | charbuf += ccl.consumed; | 5342 | charbuf += ccl->consumed; |
| 5341 | if (ccl.status == CCL_STAT_QUIT | 5343 | if (ccl->status == CCL_STAT_QUIT |
| 5342 | || ccl.status == CCL_STAT_INVALID_CMD) | 5344 | || ccl->status == CCL_STAT_INVALID_CMD) |
| 5343 | break; | 5345 | break; |
| 5344 | } | 5346 | } |
| 5345 | 5347 | ||
| 5346 | switch (ccl.status) | 5348 | switch (ccl->status) |
| 5347 | { | 5349 | { |
| 5348 | case CCL_STAT_SUSPEND_BY_SRC: | 5350 | case CCL_STAT_SUSPEND_BY_SRC: |
| 5349 | record_conversion_result (coding, CODING_RESULT_INSUFFICIENT_SRC); | 5351 | record_conversion_result (coding, CODING_RESULT_INSUFFICIENT_SRC); |
| @@ -7534,6 +7536,7 @@ encode_coding (coding) | |||
| 7534 | Lisp_Object attrs; | 7536 | Lisp_Object attrs; |
| 7535 | Lisp_Object translation_table; | 7537 | Lisp_Object translation_table; |
| 7536 | int max_lookup; | 7538 | int max_lookup; |
| 7539 | struct ccl_spec cclspec; | ||
| 7537 | 7540 | ||
| 7538 | attrs = CODING_ID_ATTRS (coding->id); | 7541 | attrs = CODING_ID_ATTRS (coding->id); |
| 7539 | if (coding->encoder == encode_coding_raw_text) | 7542 | if (coding->encoder == encode_coding_raw_text) |
| @@ -7555,6 +7558,11 @@ encode_coding (coding) | |||
| 7555 | 7558 | ||
| 7556 | ALLOC_CONVERSION_WORK_AREA (coding); | 7559 | ALLOC_CONVERSION_WORK_AREA (coding); |
| 7557 | 7560 | ||
| 7561 | if (coding->encoder == encode_coding_ccl) | ||
| 7562 | { | ||
| 7563 | coding->spec.ccl = &cclspec; | ||
| 7564 | setup_ccl_program (&cclspec.ccl, CODING_CCL_ENCODER (coding)); | ||
| 7565 | } | ||
| 7558 | do { | 7566 | do { |
| 7559 | coding_set_source (coding); | 7567 | coding_set_source (coding); |
| 7560 | consume_chars (coding, translation_table, max_lookup); | 7568 | consume_chars (coding, translation_table, max_lookup); |
diff --git a/src/config.in b/src/config.in index ef2c25c85d0..e1837e74560 100644 --- a/src/config.in +++ b/src/config.in | |||
| @@ -318,10 +318,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 318 | /* Define to 1 if you have the <kerberos/krb.h> header file. */ | 318 | /* Define to 1 if you have the <kerberos/krb.h> header file. */ |
| 319 | #undef HAVE_KERBEROS_KRB_H | 319 | #undef HAVE_KERBEROS_KRB_H |
| 320 | 320 | ||
| 321 | /* Define to 1 if `e_text' is member of `krb5_error'. */ | 321 | /* Define to 1 if `e_text' is a member of `krb5_error'. */ |
| 322 | #undef HAVE_KRB5_ERROR_E_TEXT | 322 | #undef HAVE_KRB5_ERROR_E_TEXT |
| 323 | 323 | ||
| 324 | /* Define to 1 if `text' is member of `krb5_error'. */ | 324 | /* Define to 1 if `text' is a member of `krb5_error'. */ |
| 325 | #undef HAVE_KRB5_ERROR_TEXT | 325 | #undef HAVE_KRB5_ERROR_TEXT |
| 326 | 326 | ||
| 327 | /* Define to 1 if you have the <krb5.h> header file. */ | 327 | /* Define to 1 if you have the <krb5.h> header file. */ |
| @@ -615,25 +615,25 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 615 | /* Define to 1 if you have the `strsignal' function. */ | 615 | /* Define to 1 if you have the `strsignal' function. */ |
| 616 | #undef HAVE_STRSIGNAL | 616 | #undef HAVE_STRSIGNAL |
| 617 | 617 | ||
| 618 | /* Define to 1 if `ifr_addr' is member of `struct ifreq'. */ | 618 | /* Define to 1 if `ifr_addr' is a member of `struct ifreq'. */ |
| 619 | #undef HAVE_STRUCT_IFREQ_IFR_ADDR | 619 | #undef HAVE_STRUCT_IFREQ_IFR_ADDR |
| 620 | 620 | ||
| 621 | /* Define to 1 if `ifr_broadaddr' is member of `struct ifreq'. */ | 621 | /* Define to 1 if `ifr_broadaddr' is a member of `struct ifreq'. */ |
| 622 | #undef HAVE_STRUCT_IFREQ_IFR_BROADADDR | 622 | #undef HAVE_STRUCT_IFREQ_IFR_BROADADDR |
| 623 | 623 | ||
| 624 | /* Define to 1 if `ifr_flags' is member of `struct ifreq'. */ | 624 | /* Define to 1 if `ifr_flags' is a member of `struct ifreq'. */ |
| 625 | #undef HAVE_STRUCT_IFREQ_IFR_FLAGS | 625 | #undef HAVE_STRUCT_IFREQ_IFR_FLAGS |
| 626 | 626 | ||
| 627 | /* Define to 1 if `ifr_hwaddr' is member of `struct ifreq'. */ | 627 | /* Define to 1 if `ifr_hwaddr' is a member of `struct ifreq'. */ |
| 628 | #undef HAVE_STRUCT_IFREQ_IFR_HWADDR | 628 | #undef HAVE_STRUCT_IFREQ_IFR_HWADDR |
| 629 | 629 | ||
| 630 | /* Define to 1 if `ifr_netmask' is member of `struct ifreq'. */ | 630 | /* Define to 1 if `ifr_netmask' is a member of `struct ifreq'. */ |
| 631 | #undef HAVE_STRUCT_IFREQ_IFR_NETMASK | 631 | #undef HAVE_STRUCT_IFREQ_IFR_NETMASK |
| 632 | 632 | ||
| 633 | /* Define to 1 if `n_un.n_name' is member of `struct nlist'. */ | 633 | /* Define to 1 if `n_un.n_name' is a member of `struct nlist'. */ |
| 634 | #undef HAVE_STRUCT_NLIST_N_UN_N_NAME | 634 | #undef HAVE_STRUCT_NLIST_N_UN_N_NAME |
| 635 | 635 | ||
| 636 | /* Define to 1 if `tm_zone' is member of `struct tm'. */ | 636 | /* Define to 1 if `tm_zone' is a member of `struct tm'. */ |
| 637 | #undef HAVE_STRUCT_TM_TM_ZONE | 637 | #undef HAVE_STRUCT_TM_TM_ZONE |
| 638 | 638 | ||
| 639 | /* Define to 1 if `struct utimbuf' is declared by <utime.h>. */ | 639 | /* Define to 1 if `struct utimbuf' is declared by <utime.h>. */ |
| @@ -860,6 +860,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 860 | /* Define to the one symbol short name of this package. */ | 860 | /* Define to the one symbol short name of this package. */ |
| 861 | #undef PACKAGE_TARNAME | 861 | #undef PACKAGE_TARNAME |
| 862 | 862 | ||
| 863 | /* Define to the home page for this package. */ | ||
| 864 | #undef PACKAGE_URL | ||
| 865 | |||
| 863 | /* Define to the version of this package. */ | 866 | /* Define to the version of this package. */ |
| 864 | #undef PACKAGE_VERSION | 867 | #undef PACKAGE_VERSION |
| 865 | 868 | ||
| @@ -919,6 +922,28 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 919 | /* Define to 1 if using the Motif X toolkit. */ | 922 | /* Define to 1 if using the Motif X toolkit. */ |
| 920 | #undef USE_MOTIF | 923 | #undef USE_MOTIF |
| 921 | 924 | ||
| 925 | /* Enable extensions on AIX 3, Interix. */ | ||
| 926 | #ifndef _ALL_SOURCE | ||
| 927 | # undef _ALL_SOURCE | ||
| 928 | #endif | ||
| 929 | /* Enable GNU extensions on systems that have them. */ | ||
| 930 | #ifndef _GNU_SOURCE | ||
| 931 | # undef _GNU_SOURCE | ||
| 932 | #endif | ||
| 933 | /* Enable threading extensions on Solaris. */ | ||
| 934 | #ifndef _POSIX_PTHREAD_SEMANTICS | ||
| 935 | # undef _POSIX_PTHREAD_SEMANTICS | ||
| 936 | #endif | ||
| 937 | /* Enable extensions on HP NonStop. */ | ||
| 938 | #ifndef _TANDEM_SOURCE | ||
| 939 | # undef _TANDEM_SOURCE | ||
| 940 | #endif | ||
| 941 | /* Enable general extensions on Solaris. */ | ||
| 942 | #ifndef __EXTENSIONS__ | ||
| 943 | # undef __EXTENSIONS__ | ||
| 944 | #endif | ||
| 945 | |||
| 946 | |||
| 922 | /* Define to 1 if we should use toolkit scroll bars. */ | 947 | /* Define to 1 if we should use toolkit scroll bars. */ |
| 923 | #undef USE_TOOLKIT_SCROLL_BARS | 948 | #undef USE_TOOLKIT_SCROLL_BARS |
| 924 | 949 | ||
| @@ -954,28 +979,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 954 | /* Define to 1 if you need to in order for `stat' and other things to work. */ | 979 | /* Define to 1 if you need to in order for `stat' and other things to work. */ |
| 955 | #undef _POSIX_SOURCE | 980 | #undef _POSIX_SOURCE |
| 956 | 981 | ||
| 957 | /* Enable extensions on AIX 3, Interix. */ | ||
| 958 | #ifndef _ALL_SOURCE | ||
| 959 | # undef _ALL_SOURCE | ||
| 960 | #endif | ||
| 961 | /* Enable GNU extensions on systems that have them. */ | ||
| 962 | #ifndef _GNU_SOURCE | ||
| 963 | # undef _GNU_SOURCE | ||
| 964 | #endif | ||
| 965 | /* Enable threading extensions on Solaris. */ | ||
| 966 | #ifndef _POSIX_PTHREAD_SEMANTICS | ||
| 967 | # undef _POSIX_PTHREAD_SEMANTICS | ||
| 968 | #endif | ||
| 969 | /* Enable extensions on HP NonStop. */ | ||
| 970 | #ifndef _TANDEM_SOURCE | ||
| 971 | # undef _TANDEM_SOURCE | ||
| 972 | #endif | ||
| 973 | /* Enable general extensions on Solaris. */ | ||
| 974 | #ifndef __EXTENSIONS__ | ||
| 975 | # undef __EXTENSIONS__ | ||
| 976 | #endif | ||
| 977 | |||
| 978 | |||
| 979 | /* Define to rpl_ if the getopt replacement functions and variables should be | 982 | /* Define to rpl_ if the getopt replacement functions and variables should be |
| 980 | used. */ | 983 | used. */ |
| 981 | #undef __GETOPT_PREFIX | 984 | #undef __GETOPT_PREFIX |
diff --git a/src/data.c b/src/data.c index e405ca6af9e..bdba3a9bb36 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -3291,11 +3291,6 @@ SIGTYPE | |||
| 3291 | arith_error (signo) | 3291 | arith_error (signo) |
| 3292 | int signo; | 3292 | int signo; |
| 3293 | { | 3293 | { |
| 3294 | #if defined(USG) && !defined(POSIX_SIGNALS) | ||
| 3295 | /* USG systems forget handlers when they are used; | ||
| 3296 | must reestablish each time */ | ||
| 3297 | signal (signo, arith_error); | ||
| 3298 | #endif /* USG */ | ||
| 3299 | sigsetmask (SIGEMPTYMASK); | 3294 | sigsetmask (SIGEMPTYMASK); |
| 3300 | 3295 | ||
| 3301 | SIGNAL_THREAD_CHECK (signo); | 3296 | SIGNAL_THREAD_CHECK (signo); |
diff --git a/src/dispextern.h b/src/dispextern.h index 3202385e541..03b35df397c 100644 --- a/src/dispextern.h +++ b/src/dispextern.h | |||
| @@ -3266,7 +3266,8 @@ enum resource_types | |||
| 3266 | RES_TYPE_FLOAT, | 3266 | RES_TYPE_FLOAT, |
| 3267 | RES_TYPE_BOOLEAN, | 3267 | RES_TYPE_BOOLEAN, |
| 3268 | RES_TYPE_STRING, | 3268 | RES_TYPE_STRING, |
| 3269 | RES_TYPE_SYMBOL | 3269 | RES_TYPE_SYMBOL, |
| 3270 | RES_TYPE_BOOLEAN_NUMBER | ||
| 3270 | }; | 3271 | }; |
| 3271 | 3272 | ||
| 3272 | extern Lisp_Object x_get_arg P_ ((Display_Info *, Lisp_Object, | 3273 | extern Lisp_Object x_get_arg P_ ((Display_Info *, Lisp_Object, |
diff --git a/src/frame.c b/src/frame.c index 40930af594c..757ed8f01a3 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -4005,6 +4005,13 @@ x_get_arg (dpyinfo, alist, param, attribute, class, type) | |||
| 4005 | case RES_TYPE_NUMBER: | 4005 | case RES_TYPE_NUMBER: |
| 4006 | return make_number (atoi (SDATA (tem))); | 4006 | return make_number (atoi (SDATA (tem))); |
| 4007 | 4007 | ||
| 4008 | case RES_TYPE_BOOLEAN_NUMBER: | ||
| 4009 | if (!strcmp (SDATA (tem), "on") | ||
| 4010 | || !strcmp (SDATA (tem), "true")) | ||
| 4011 | return make_number (1); | ||
| 4012 | return make_number (atoi (SDATA (tem))); | ||
| 4013 | break; | ||
| 4014 | |||
| 4008 | case RES_TYPE_FLOAT: | 4015 | case RES_TYPE_FLOAT: |
| 4009 | return make_float (atof (SDATA (tem))); | 4016 | return make_float (atof (SDATA (tem))); |
| 4010 | 4017 | ||
diff --git a/src/keyboard.c b/src/keyboard.c index 48d39235e3f..f6d6704b373 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -7507,12 +7507,6 @@ input_available_signal (signo) | |||
| 7507 | { | 7507 | { |
| 7508 | /* Must preserve main program's value of errno. */ | 7508 | /* Must preserve main program's value of errno. */ |
| 7509 | int old_errno = errno; | 7509 | int old_errno = errno; |
| 7510 | #if defined (USG) && !defined (POSIX_SIGNALS) | ||
| 7511 | /* USG systems forget handlers when they are used; | ||
| 7512 | must reestablish each time */ | ||
| 7513 | signal (signo, input_available_signal); | ||
| 7514 | #endif /* USG */ | ||
| 7515 | |||
| 7516 | SIGNAL_THREAD_CHECK (signo); | 7510 | SIGNAL_THREAD_CHECK (signo); |
| 7517 | 7511 | ||
| 7518 | #ifdef SYNC_INPUT | 7512 | #ifdef SYNC_INPUT |
| @@ -7595,12 +7589,6 @@ handle_user_signal (sig) | |||
| 7595 | int old_errno = errno; | 7589 | int old_errno = errno; |
| 7596 | struct user_signal_info *p; | 7590 | struct user_signal_info *p; |
| 7597 | 7591 | ||
| 7598 | #if defined (USG) && !defined (POSIX_SIGNALS) | ||
| 7599 | /* USG systems forget handlers when they are used; | ||
| 7600 | must reestablish each time */ | ||
| 7601 | signal (sig, handle_user_signal); | ||
| 7602 | #endif | ||
| 7603 | |||
| 7604 | SIGNAL_THREAD_CHECK (sig); | 7592 | SIGNAL_THREAD_CHECK (sig); |
| 7605 | 7593 | ||
| 7606 | for (p = user_signals; p; p = p->next) | 7594 | for (p = user_signals; p; p = p->next) |
| @@ -11089,13 +11077,6 @@ interrupt_signal (signalnum) /* If we don't have an argument, */ | |||
| 11089 | int old_errno = errno; | 11077 | int old_errno = errno; |
| 11090 | struct terminal *terminal; | 11078 | struct terminal *terminal; |
| 11091 | 11079 | ||
| 11092 | #if defined (USG) && !defined (POSIX_SIGNALS) | ||
| 11093 | /* USG systems forget handlers when they are used; | ||
| 11094 | must reestablish each time */ | ||
| 11095 | signal (SIGINT, interrupt_signal); | ||
| 11096 | signal (SIGQUIT, interrupt_signal); | ||
| 11097 | #endif /* USG */ | ||
| 11098 | |||
| 11099 | SIGNAL_THREAD_CHECK (signalnum); | 11080 | SIGNAL_THREAD_CHECK (signalnum); |
| 11100 | 11081 | ||
| 11101 | /* See if we have an active terminal on our controlling tty. */ | 11082 | /* See if we have an active terminal on our controlling tty. */ |
| @@ -11304,11 +11285,7 @@ See also `current-input-mode'. */) | |||
| 11304 | { | 11285 | { |
| 11305 | /* When using X, don't give the user a real choice, | 11286 | /* When using X, don't give the user a real choice, |
| 11306 | because we haven't implemented the mechanisms to support it. */ | 11287 | because we haven't implemented the mechanisms to support it. */ |
| 11307 | #ifdef NO_SOCK_SIGIO | ||
| 11308 | new_interrupt_input = 0; | ||
| 11309 | #else /* not NO_SOCK_SIGIO */ | ||
| 11310 | new_interrupt_input = 1; | 11288 | new_interrupt_input = 1; |
| 11311 | #endif /* NO_SOCK_SIGIO */ | ||
| 11312 | } | 11289 | } |
| 11313 | else | 11290 | else |
| 11314 | #endif /* HAVE_X_WINDOWS */ | 11291 | #endif /* HAVE_X_WINDOWS */ |
diff --git a/src/m/hp800.h b/src/m/hp800.h index 5614141fe63..8acec110272 100644 --- a/src/m/hp800.h +++ b/src/m/hp800.h | |||
| @@ -93,7 +93,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 93 | 93 | ||
| 94 | #define UNEXEC unexhp9k800.o | 94 | #define UNEXEC unexhp9k800.o |
| 95 | 95 | ||
| 96 | #define LIBS_MACHINE | ||
| 97 | #define LIBS_DEBUG | 96 | #define LIBS_DEBUG |
| 98 | 97 | ||
| 99 | /* Include the file bsdtty.h, since this machine has job control. */ | 98 | /* Include the file bsdtty.h, since this machine has job control. */ |
diff --git a/src/m/ibmrs6000.h b/src/m/ibmrs6000.h index 4304ea90cd0..a7d35cc8ab7 100644 --- a/src/m/ibmrs6000.h +++ b/src/m/ibmrs6000.h | |||
| @@ -57,15 +57,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 57 | #define NLIST_STRUCT | 57 | #define NLIST_STRUCT |
| 58 | #endif | 58 | #endif |
| 59 | 59 | ||
| 60 | /* -lpthreads seems to be necessary for Xlib in X11R6, and should be harmless | ||
| 61 | on older versions of X where it happens to exist. */ | ||
| 62 | #ifdef HAVE_LIBPTHREADS | ||
| 63 | #define LIBS_MACHINE -lrts -lIM -liconv -lpthreads | ||
| 64 | #else | ||
| 65 | /* IBM's X11R5 use -lIM and -liconv in AIX 3.2.2. */ | ||
| 66 | #define LIBS_MACHINE -lrts -lIM -liconv | ||
| 67 | #endif | ||
| 68 | |||
| 69 | #undef ADDR_CORRECT | 60 | #undef ADDR_CORRECT |
| 70 | #define ADDR_CORRECT(x) ((int)(x)) | 61 | #define ADDR_CORRECT(x) ((int)(x)) |
| 71 | 62 | ||
| @@ -81,7 +72,5 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 81 | #define BROKEN_SIGPTY | 72 | #define BROKEN_SIGPTY |
| 82 | #define BROKEN_SIGPOLL | 73 | #define BROKEN_SIGPOLL |
| 83 | 74 | ||
| 84 | #define ORDINARY_LINK | ||
| 85 | |||
| 86 | /* arch-tag: 028318ee-a7ae-4a08-804d-cc1e6588d003 | 75 | /* arch-tag: 028318ee-a7ae-4a08-804d-cc1e6588d003 |
| 87 | (do not change this comment) */ | 76 | (do not change this comment) */ |
diff --git a/src/m/iris4d.h b/src/m/iris4d.h index 7c0ff78a069..06bffceb64c 100644 --- a/src/m/iris4d.h +++ b/src/m/iris4d.h | |||
| @@ -53,8 +53,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 53 | #define DATA_START 0x10000000 | 53 | #define DATA_START 0x10000000 |
| 54 | #define DATA_SEG_BITS 0x10000000 | 54 | #define DATA_SEG_BITS 0x10000000 |
| 55 | 55 | ||
| 56 | #undef LIBS_MACHINE | ||
| 57 | #define LIBS_MACHINE | ||
| 58 | #define LIBS_DEBUG | 56 | #define LIBS_DEBUG |
| 59 | 57 | ||
| 60 | /* Use terminfo instead of termcap. */ | 58 | /* Use terminfo instead of termcap. */ |
diff --git a/src/m/vax.h b/src/m/vax.h index fa6cc1b5977..62c78e68ab0 100644 --- a/src/m/vax.h +++ b/src/m/vax.h | |||
| @@ -38,7 +38,6 @@ NOTE-END */ | |||
| 38 | 38 | ||
| 39 | #define CRT0_DUMMIES | 39 | #define CRT0_DUMMIES |
| 40 | 40 | ||
| 41 | #ifdef BSD_SYSTEM | ||
| 42 | /* USG systems I know of running on Vaxes do not actually | 41 | /* USG systems I know of running on Vaxes do not actually |
| 43 | support the load average, so disable it for them. */ | 42 | support the load average, so disable it for them. */ |
| 44 | 43 | ||
| @@ -50,11 +49,7 @@ NOTE-END */ | |||
| 50 | 49 | ||
| 51 | #define LOAD_AVE_CVT(x) ((int) ((x) * 100.0)) | 50 | #define LOAD_AVE_CVT(x) ((int) ((x) * 100.0)) |
| 52 | 51 | ||
| 53 | #endif /* BSD_SYSTEM */ | ||
| 54 | |||
| 55 | #ifdef BSD4_2 | ||
| 56 | #define HAVE_FTIME | 52 | #define HAVE_FTIME |
| 57 | #endif | ||
| 58 | 53 | ||
| 59 | /* arch-tag: 508bdf7a-01a0-4ce0-8eba-0704d0df55a0 | 54 | /* arch-tag: 508bdf7a-01a0-4ce0-8eba-0704d0df55a0 |
| 60 | (do not change this comment) */ | 55 | (do not change this comment) */ |
diff --git a/src/process.c b/src/process.c index 53cc42f223e..4f103752296 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -1878,13 +1878,7 @@ create_process (process, new_argv, current_dir) | |||
| 1878 | #ifdef AIX | 1878 | #ifdef AIX |
| 1879 | struct sigaction sighup_action; | 1879 | struct sigaction sighup_action; |
| 1880 | #endif | 1880 | #endif |
| 1881 | #else /* !POSIX_SIGNALS */ | 1881 | #endif /* POSIX_SIGNALS */ |
| 1882 | #if 0 | ||
| 1883 | #ifdef SIGCHLD | ||
| 1884 | SIGTYPE (*sigchld)(); | ||
| 1885 | #endif | ||
| 1886 | #endif /* 0 */ | ||
| 1887 | #endif /* !POSIX_SIGNALS */ | ||
| 1888 | /* Use volatile to protect variables from being clobbered by longjmp. */ | 1882 | /* Use volatile to protect variables from being clobbered by longjmp. */ |
| 1889 | volatile int forkin, forkout; | 1883 | volatile int forkin, forkout; |
| 1890 | volatile int pty_flag = 0; | 1884 | volatile int pty_flag = 0; |
| @@ -2008,14 +2002,9 @@ create_process (process, new_argv, current_dir) | |||
| 2008 | sigprocmask (SIG_BLOCK, &blocked, &procmask); | 2002 | sigprocmask (SIG_BLOCK, &blocked, &procmask); |
| 2009 | #else /* !POSIX_SIGNALS */ | 2003 | #else /* !POSIX_SIGNALS */ |
| 2010 | #ifdef SIGCHLD | 2004 | #ifdef SIGCHLD |
| 2011 | #if defined (BSD_SYSTEM) || defined (HPUX) | 2005 | #if defined (BSD_SYSTEM) |
| 2012 | sigsetmask (sigmask (SIGCHLD)); | 2006 | sigsetmask (sigmask (SIGCHLD)); |
| 2013 | #else /* ordinary USG */ | 2007 | #endif /* BSD_SYSTEM */ |
| 2014 | #if 0 | ||
| 2015 | sigchld_deferred = 0; | ||
| 2016 | sigchld = signal (SIGCHLD, create_process_sigchld); | ||
| 2017 | #endif | ||
| 2018 | #endif /* ordinary USG */ | ||
| 2019 | #endif /* SIGCHLD */ | 2008 | #endif /* SIGCHLD */ |
| 2020 | #endif /* !POSIX_SIGNALS */ | 2009 | #endif /* !POSIX_SIGNALS */ |
| 2021 | 2010 | ||
| @@ -2172,13 +2161,9 @@ create_process (process, new_argv, current_dir) | |||
| 2172 | sigprocmask (SIG_SETMASK, &procmask, 0); | 2161 | sigprocmask (SIG_SETMASK, &procmask, 0); |
| 2173 | #else /* !POSIX_SIGNALS */ | 2162 | #else /* !POSIX_SIGNALS */ |
| 2174 | #ifdef SIGCHLD | 2163 | #ifdef SIGCHLD |
| 2175 | #if defined (BSD_SYSTEM) || defined (HPUX) | 2164 | #if defined (BSD_SYSTEM) |
| 2176 | sigsetmask (SIGEMPTYMASK); | 2165 | sigsetmask (SIGEMPTYMASK); |
| 2177 | #else /* ordinary USG */ | 2166 | #endif /* BSD_SYSTEM */ |
| 2178 | #if 0 | ||
| 2179 | signal (SIGCHLD, sigchld); | ||
| 2180 | #endif | ||
| 2181 | #endif /* ordinary USG */ | ||
| 2182 | #endif /* SIGCHLD */ | 2167 | #endif /* SIGCHLD */ |
| 2183 | #endif /* !POSIX_SIGNALS */ | 2168 | #endif /* !POSIX_SIGNALS */ |
| 2184 | 2169 | ||
| @@ -2275,17 +2260,9 @@ create_process (process, new_argv, current_dir) | |||
| 2275 | sigprocmask (SIG_SETMASK, &procmask, 0); | 2260 | sigprocmask (SIG_SETMASK, &procmask, 0); |
| 2276 | #else /* !POSIX_SIGNALS */ | 2261 | #else /* !POSIX_SIGNALS */ |
| 2277 | #ifdef SIGCHLD | 2262 | #ifdef SIGCHLD |
| 2278 | #if defined (BSD_SYSTEM) || defined (HPUX) | 2263 | #if defined (BSD_SYSTEM) |
| 2279 | sigsetmask (SIGEMPTYMASK); | 2264 | sigsetmask (SIGEMPTYMASK); |
| 2280 | #else /* ordinary USG */ | 2265 | #endif /* BSD_SYSTEM */ |
| 2281 | #if 0 | ||
| 2282 | signal (SIGCHLD, sigchld); | ||
| 2283 | /* Now really handle any of these signals | ||
| 2284 | that came in during this function. */ | ||
| 2285 | if (sigchld_deferred) | ||
| 2286 | kill (getpid (), SIGCHLD); | ||
| 2287 | #endif | ||
| 2288 | #endif /* ordinary USG */ | ||
| 2289 | #endif /* SIGCHLD */ | 2266 | #endif /* SIGCHLD */ |
| 2290 | #endif /* !POSIX_SIGNALS */ | 2267 | #endif /* !POSIX_SIGNALS */ |
| 2291 | 2268 | ||
| @@ -3640,23 +3617,9 @@ usage: (make-network-process &rest ARGS) */) | |||
| 3640 | immediate_quit = 1; | 3617 | immediate_quit = 1; |
| 3641 | QUIT; | 3618 | QUIT; |
| 3642 | 3619 | ||
| 3643 | /* This turns off all alarm-based interrupts; the | ||
| 3644 | bind_polling_period call above doesn't always turn all the | ||
| 3645 | short-interval ones off, especially if interrupt_input is | ||
| 3646 | set. | ||
| 3647 | |||
| 3648 | It'd be nice to be able to control the connect timeout | ||
| 3649 | though. Would non-blocking connect calls be portable? | ||
| 3650 | |||
| 3651 | This used to be conditioned by HAVE_GETADDRINFO. Why? */ | ||
| 3652 | |||
| 3653 | turn_on_atimers (0); | ||
| 3654 | |||
| 3655 | ret = connect (s, lres->ai_addr, lres->ai_addrlen); | 3620 | ret = connect (s, lres->ai_addr, lres->ai_addrlen); |
| 3656 | xerrno = errno; | 3621 | xerrno = errno; |
| 3657 | 3622 | ||
| 3658 | turn_on_atimers (1); | ||
| 3659 | |||
| 3660 | if (ret == 0 || xerrno == EISCONN) | 3623 | if (ret == 0 || xerrno == EISCONN) |
| 3661 | { | 3624 | { |
| 3662 | /* The unwind-protect will be discarded afterwards. | 3625 | /* The unwind-protect will be discarded afterwards. |
| @@ -3676,6 +3639,40 @@ usage: (make-network-process &rest ARGS) */) | |||
| 3676 | #endif | 3639 | #endif |
| 3677 | #endif | 3640 | #endif |
| 3678 | 3641 | ||
| 3642 | #ifndef WINDOWSNT | ||
| 3643 | if (xerrno == EINTR) | ||
| 3644 | { | ||
| 3645 | /* Unlike most other syscalls connect() cannot be called | ||
| 3646 | again. (That would return EALREADY.) The proper way to | ||
| 3647 | wait for completion is select(). */ | ||
| 3648 | int sc, len; | ||
| 3649 | SELECT_TYPE fdset; | ||
| 3650 | retry_select: | ||
| 3651 | FD_ZERO (&fdset); | ||
| 3652 | FD_SET (s, &fdset); | ||
| 3653 | QUIT; | ||
| 3654 | sc = select (s + 1, (SELECT_TYPE *)0, &fdset, (SELECT_TYPE *)0, | ||
| 3655 | (EMACS_TIME *)0); | ||
| 3656 | if (sc == -1) | ||
| 3657 | { | ||
| 3658 | if (errno == EINTR) | ||
| 3659 | goto retry_select; | ||
| 3660 | else | ||
| 3661 | report_file_error ("select failed", Qnil); | ||
| 3662 | } | ||
| 3663 | eassert (sc > 0); | ||
| 3664 | |||
| 3665 | len = sizeof xerrno; | ||
| 3666 | eassert (FD_ISSET (s, &fdset)); | ||
| 3667 | if (getsockopt (s, SOL_SOCKET, SO_ERROR, &xerrno, &len) == -1) | ||
| 3668 | report_file_error ("getsockopt failed", Qnil); | ||
| 3669 | if (xerrno) | ||
| 3670 | errno = xerrno, report_file_error ("error during connect", Qnil); | ||
| 3671 | else | ||
| 3672 | break; | ||
| 3673 | } | ||
| 3674 | #endif /* !WINDOWSNT */ | ||
| 3675 | |||
| 3679 | immediate_quit = 0; | 3676 | immediate_quit = 0; |
| 3680 | 3677 | ||
| 3681 | /* Discard the unwind protect closing S. */ | 3678 | /* Discard the unwind protect closing S. */ |
| @@ -3683,8 +3680,10 @@ usage: (make-network-process &rest ARGS) */) | |||
| 3683 | emacs_close (s); | 3680 | emacs_close (s); |
| 3684 | s = -1; | 3681 | s = -1; |
| 3685 | 3682 | ||
| 3683 | #ifdef WINDOWSNT | ||
| 3686 | if (xerrno == EINTR) | 3684 | if (xerrno == EINTR) |
| 3687 | goto retry_connect; | 3685 | goto retry_connect; |
| 3686 | #endif | ||
| 3688 | } | 3687 | } |
| 3689 | 3688 | ||
| 3690 | if (s >= 0) | 3689 | if (s >= 0) |
| @@ -6704,11 +6703,6 @@ sigchld_handler (signo) | |||
| 6704 | /* PID == 0 means no processes found, PID == -1 means a real | 6703 | /* PID == 0 means no processes found, PID == -1 means a real |
| 6705 | failure. We have done all our job, so return. */ | 6704 | failure. We have done all our job, so return. */ |
| 6706 | 6705 | ||
| 6707 | /* USG systems forget handlers when they are used; | ||
| 6708 | must reestablish each time */ | ||
| 6709 | #if defined (USG) && !defined (POSIX_SIGNALS) | ||
| 6710 | signal (signo, sigchld_handler); /* WARNING - must come after wait3() */ | ||
| 6711 | #endif | ||
| 6712 | errno = old_errno; | 6706 | errno = old_errno; |
| 6713 | return; | 6707 | return; |
| 6714 | } | 6708 | } |
| @@ -6809,9 +6803,6 @@ sigchld_handler (signo) | |||
| 6809 | #if (defined WINDOWSNT \ | 6803 | #if (defined WINDOWSNT \ |
| 6810 | || (defined USG && !defined GNU_LINUX \ | 6804 | || (defined USG && !defined GNU_LINUX \ |
| 6811 | && !(defined HPUX && defined WNOHANG))) | 6805 | && !(defined HPUX && defined WNOHANG))) |
| 6812 | #if defined (USG) && ! defined (POSIX_SIGNALS) | ||
| 6813 | signal (signo, sigchld_handler); | ||
| 6814 | #endif | ||
| 6815 | errno = old_errno; | 6806 | errno = old_errno; |
| 6816 | return; | 6807 | return; |
| 6817 | #endif /* USG, but not HPUX with WNOHANG */ | 6808 | #endif /* USG, but not HPUX with WNOHANG */ |
diff --git a/src/s/aix4-2.h b/src/s/aix4-2.h index a1abf13466d..93869db6bca 100644 --- a/src/s/aix4-2.h +++ b/src/s/aix4-2.h | |||
| @@ -95,6 +95,15 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 95 | 95 | ||
| 96 | #define LIB_STANDARD | 96 | #define LIB_STANDARD |
| 97 | 97 | ||
| 98 | /* -lpthreads seems to be necessary for Xlib in X11R6, and should be harmless | ||
| 99 | on older versions of X where it happens to exist. */ | ||
| 100 | #ifdef HAVE_LIBPTHREADS | ||
| 101 | #define LIBS_SYSTEM -lrts -lIM -liconv -lpthreads | ||
| 102 | #else | ||
| 103 | /* IBM's X11R5 use -lIM and -liconv in AIX 3.2.2. */ | ||
| 104 | #define LIBS_SYSTEM -lrts -lIM -liconv | ||
| 105 | #endif | ||
| 106 | |||
| 98 | /* Use terminfo instead of termcap. */ | 107 | /* Use terminfo instead of termcap. */ |
| 99 | 108 | ||
| 100 | #define TERMINFO | 109 | #define TERMINFO |
| @@ -170,5 +179,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 170 | 179 | ||
| 171 | #define UNEXEC unexaix.o | 180 | #define UNEXEC unexaix.o |
| 172 | 181 | ||
| 182 | #define ORDINARY_LINK | ||
| 183 | |||
| 173 | /* arch-tag: 38fe75ea-6aef-42bd-8449-bc34d921a562 | 184 | /* arch-tag: 38fe75ea-6aef-42bd-8449-bc34d921a562 |
| 174 | (do not change this comment) */ | 185 | (do not change this comment) */ |
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h index ae2eaa43c06..0c198de26d8 100644 --- a/src/s/gnu-linux.h +++ b/src/s/gnu-linux.h | |||
| @@ -207,9 +207,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 207 | #define C_DEBUG_SWITCH | 207 | #define C_DEBUG_SWITCH |
| 208 | #endif | 208 | #endif |
| 209 | 209 | ||
| 210 | /* alane@wozzle.linet.org says that -lipc is not a separate library, | ||
| 211 | since libc-4.4.1. So -lipc was deleted. */ | ||
| 212 | #define LIBS_SYSTEM | ||
| 213 | /* _BSD_SOURCE is redundant, at least in glibc2, since we define | 210 | /* _BSD_SOURCE is redundant, at least in glibc2, since we define |
| 214 | _GNU_SOURCE. Left in in case it's relevant to libc5 systems and | 211 | _GNU_SOURCE. Left in in case it's relevant to libc5 systems and |
| 215 | anyone's still using Emacs on those. --fx 2002-12-14 */ | 212 | anyone's still using Emacs on those. --fx 2002-12-14 */ |
diff --git a/src/s/netbsd.h b/src/s/netbsd.h index 1af4c94d105..5552aece50a 100644 --- a/src/s/netbsd.h +++ b/src/s/netbsd.h | |||
| @@ -26,8 +26,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 26 | 26 | ||
| 27 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) | 27 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) |
| 28 | 28 | ||
| 29 | /* -lutil is not needed for NetBSD >0.9. */ | ||
| 30 | /* #define LIBS_SYSTEM -lutil */ | ||
| 31 | #define LIBS_TERMCAP -ltermcap | 29 | #define LIBS_TERMCAP -ltermcap |
| 32 | 30 | ||
| 33 | #define NEED_ERRNO | 31 | #define NEED_ERRNO |
diff --git a/src/syssignal.h b/src/syssignal.h index 64dacc671ce..f435d338594 100644 --- a/src/syssignal.h +++ b/src/syssignal.h | |||
| @@ -88,38 +88,12 @@ sigset_t sys_sigsetmask P_ ((sigset_t new_mask)); | |||
| 88 | #define sys_sigdel(MASK,SIG) sigdelset (&MASK,SIG) | 88 | #define sys_sigdel(MASK,SIG) sigdelset (&MASK,SIG) |
| 89 | 89 | ||
| 90 | #else /* ! defined (POSIX_SIGNALS) */ | 90 | #else /* ! defined (POSIX_SIGNALS) */ |
| 91 | #ifdef USG5_4 | ||
| 92 | |||
| 93 | extern SIGMASKTYPE sigprocmask_set; | ||
| 94 | |||
| 95 | #ifndef sigblock | ||
| 96 | #define sigblock(sig) \ | ||
| 97 | (sigprocmask_set = SIGEMPTYMASK | (sig), \ | ||
| 98 | sigprocmask (SIG_BLOCK, &sigprocmask_set, NULL)) | ||
| 99 | #endif | ||
| 100 | |||
| 101 | #ifndef sigunblock | ||
| 102 | #define sigunblock(sig) \ | ||
| 103 | (sigprocmask_set = SIGFULLMASK & ~(sig), \ | ||
| 104 | sigprocmask (SIG_SETMASK, &sigprocmask_set, NULL)) | ||
| 105 | #endif | ||
| 106 | |||
| 107 | #else | ||
| 108 | #ifdef USG | ||
| 109 | |||
| 110 | #ifndef sigunblock | ||
| 111 | #define sigunblock(sig) | ||
| 112 | #endif | ||
| 113 | |||
| 114 | #else | ||
| 115 | 91 | ||
| 116 | #ifndef sigunblock | 92 | #ifndef sigunblock |
| 117 | #define sigunblock(SIG) \ | 93 | #define sigunblock(SIG) \ |
| 118 | { SIGMASKTYPE omask = sigblock (SIGEMPTYMASK); sigsetmask (omask & ~SIG); } | 94 | { SIGMASKTYPE omask = sigblock (SIGEMPTYMASK); sigsetmask (omask & ~SIG); } |
| 119 | #endif | 95 | #endif |
| 120 | 96 | ||
| 121 | #endif /* ! defined (USG) */ | ||
| 122 | #endif /* ! defined (USG5_4) */ | ||
| 123 | #endif /* ! defined (POSIX_SIGNALS) */ | 97 | #endif /* ! defined (POSIX_SIGNALS) */ |
| 124 | 98 | ||
| 125 | #ifndef SIGMASKTYPE | 99 | #ifndef SIGMASKTYPE |
diff --git a/src/xfns.c b/src/xfns.c index 45bea1e4ec2..ae5858ccfb5 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -3347,7 +3347,9 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 3347 | #ifdef USE_LUCID | 3347 | #ifdef USE_LUCID |
| 3348 | /* Prevent lwlib/xlwmenu.c from crashing because of a bug | 3348 | /* Prevent lwlib/xlwmenu.c from crashing because of a bug |
| 3349 | whereby it fails to get any font. */ | 3349 | whereby it fails to get any font. */ |
| 3350 | BLOCK_INPUT; | ||
| 3350 | xlwmenu_default_font = XLoadQueryFont (FRAME_X_DISPLAY (f), "fixed"); | 3351 | xlwmenu_default_font = XLoadQueryFont (FRAME_X_DISPLAY (f), "fixed"); |
| 3352 | UNBLOCK_INPUT; | ||
| 3351 | #endif | 3353 | #endif |
| 3352 | 3354 | ||
| 3353 | /* Frame contents get displaced if an embedded X window has a border. */ | 3355 | /* Frame contents get displaced if an embedded X window has a border. */ |
| @@ -3421,7 +3423,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 3421 | init_frame_faces (f); | 3423 | init_frame_faces (f); |
| 3422 | 3424 | ||
| 3423 | x_default_parameter (f, parms, Qmenu_bar_lines, make_number (1), | 3425 | x_default_parameter (f, parms, Qmenu_bar_lines, make_number (1), |
| 3424 | "menuBar", "MenuBar", RES_TYPE_NUMBER); | 3426 | "menuBar", "MenuBar", RES_TYPE_BOOLEAN_NUMBER); |
| 3425 | x_default_parameter (f, parms, Qtool_bar_lines, make_number (1), | 3427 | x_default_parameter (f, parms, Qtool_bar_lines, make_number (1), |
| 3426 | "toolBar", "ToolBar", RES_TYPE_NUMBER); | 3428 | "toolBar", "ToolBar", RES_TYPE_NUMBER); |
| 3427 | x_default_parameter (f, parms, Qbuffer_predicate, Qnil, | 3429 | x_default_parameter (f, parms, Qbuffer_predicate, Qnil, |