1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-10 00:00:39 -08:00

* lib-src/emacsclient.c (main): Loop while `recv' return EINTR.

This commit is contained in:
Karl Chen 2011-02-18 17:28:09 -05:00 committed by Stefan Monnier
parent e697fcfc01
commit b166dcd8bb
2 changed files with 118 additions and 103 deletions

View file

@ -1,3 +1,7 @@
2011-02-18 Karl Chen <Karl.Chen@quarl.org>
* emacsclient.c (main): Loop while `recv' return EINTR.
2011-02-09 Paul Eggert <eggert@cs.ucla.edu> 2011-02-09 Paul Eggert <eggert@cs.ucla.edu>
* make-docfile.c (EMACS_INTEGER): Rename from EMACS_INT. * make-docfile.c (EMACS_INTEGER): Rename from EMACS_INT.
@ -26,8 +30,8 @@
2011-02-02 Eli Zaretskii <eliz@gnu.org> 2011-02-02 Eli Zaretskii <eliz@gnu.org>
* makefile.w32-in (ETAGS_CFLAGS, CTAGS_CFLAGS): Add * makefile.w32-in (ETAGS_CFLAGS, CTAGS_CFLAGS):
``-DEMACS_NAME="\"GNU Emacs\""''. Add ``-DEMACS_NAME="\"GNU Emacs\""''.
(obj): Remove strftime.o. (obj): Remove strftime.o.
2011-01-31 Eli Zaretskii <eliz@gnu.org> 2011-01-31 Eli Zaretskii <eliz@gnu.org>
@ -232,8 +236,8 @@
* movemail.c (fatal, error, concat): Use const char *. * movemail.c (fatal, error, concat): Use const char *.
* make-docfile.c (error, fatal, scan_c_file, scan_lisp_file): Use * make-docfile.c (error, fatal, scan_c_file, scan_lisp_file):
const char *. Use const char *.
* etags.c (compressor, language, Ada_suffix, Ada_help, Asm_suffixes) * etags.c (compressor, language, Ada_suffix, Ada_help, Asm_suffixes)
(Asm_help, default_C_suffixes, default_C_help, Cplusplus_suffixes) (Asm_help, default_C_suffixes, default_C_help, Cplusplus_suffixes)
@ -551,8 +555,8 @@
2010-04-02 Dan Rosenberg <dan.j.rosenberg@gmail.com> (tiny change) 2010-04-02 Dan Rosenberg <dan.j.rosenberg@gmail.com> (tiny change)
* movemail.c (main): Check return values of setuid. Avoid * movemail.c (main): Check return values of setuid.
possibility of symlink attack when movemail is setgid mail Avoid possibility of symlink attack when movemail is setgid mail
(CVE-2010-0825). (CVE-2010-0825).
2010-04-02 Dan Nicolaescu <dann@ics.uci.edu> 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
@ -2258,7 +2262,7 @@
(wchar.h): Include, maybe. (wchar.h): Include, maybe.
(attribute_hidden): Define if not defined. (attribute_hidden): Define if not defined.
(__getopt_initialized): Use attribute_hidden. (__getopt_initialized): Use attribute_hidden.
(__libc_argc, __libc_argv): Renamed from original_argc, etc. (__libc_argc, __libc_argv): Rename from original_argc, etc.
(__getopt_nonoption_flags, nonoption_flags_max_len) (__getopt_nonoption_flags, nonoption_flags_max_len)
(nonoption_flags_len): Conditional on USE_NONOPTION_FLAGS. (nonoption_flags_len): Conditional on USE_NONOPTION_FLAGS.
(SWAP_FLAGS): New definitions. (SWAP_FLAGS): New definitions.
@ -2361,7 +2365,7 @@
2002-08-29 Francesco Potortì <pot@gnu.org> 2002-08-29 Francesco Potortì <pot@gnu.org>
* etags.c (C_entries): Correct a problem with const C++ funcs. * etags.c (C_entries): Correct a problem with const C++ funcs.
(ignoreindent): Renamed from noindentypedefs. (ignoreindent): Rename from noindentypedefs.
(cjava, cplpl): They are now macros instead of local vars. (cjava, cplpl): They are now macros instead of local vars.
2002-08-28 Francesco Potortì <pot@gnu.org> 2002-08-28 Francesco Potortì <pot@gnu.org>
@ -2377,7 +2381,7 @@
(strcaseeq): Make it into a macro. (strcaseeq): Make it into a macro.
* etags.c (make_tag): Never generate null length tag names. * etags.c (make_tag): Never generate null length tag names.
(linebuffer_init): Renamed from initbuffer. All callers changed. (linebuffer_init): Rename from initbuffer. All callers changed.
(pattern): Structure renamed to `regexp', member regex renamed to (pattern): Structure renamed to `regexp', member regex renamed to
pattern. pattern.
(node_st): Member pat renamed to regex. (node_st): Member pat renamed to regex.
@ -2534,8 +2538,8 @@
2002-05-30 Richard M. Stallman <rms@gnu.org> 2002-05-30 Richard M. Stallman <rms@gnu.org>
* Makefile.in (LIBS_MAIL): Renamed from LIB_MAIL. * Makefile.in (LIBS_MAIL): Rename from LIB_MAIL.
(LIBS_MOVE): Renamed from MOVE_LIBS. (LIBS_MOVE): Rename from MOVE_LIBS.
2002-05-26 Paul Eggert <eggert@twinsun.com> 2002-05-26 Paul Eggert <eggert@twinsun.com>
@ -2816,21 +2820,21 @@
(get_tag): Return a pointer to the tag that is found. (get_tag): Return a pointer to the tag that is found.
* etags.c (LOOKING_AT): Use !intoken instead of iswhite. * etags.c (LOOKING_AT): Use !intoken instead of iswhite.
(F_takeprec): Renamed from takeprec. All callers changed. (F_takeprec): Rename from takeprec. All callers changed.
(F_getit): Renamed from getit. All callers changed. (F_getit): Rename from getit. All callers changed.
(nocase_tail): Renamed from tail. All callers changed. (nocase_tail): Rename from tail. All callers changed.
(Ada_getit): Renamed from adagetit. All callers changed. (Ada_getit): Rename from adagetit. All callers changed.
(L_getit): Simplify by using get_tag. (L_getit): Simplify by using get_tag.
(Perl_functions, Postscript_functions, erlang_attribute): Use the (Perl_functions, Postscript_functions, erlang_attribute): Use the
modified LOOKING_AT. modified LOOKING_AT.
(notinname): Removed '[' and added ')' to the recognised chars. (notinname): Remove '[' and added ')' to the recognised chars.
(LOOKING_AT, get_tag, PHP_functions): Use notinname. (LOOKING_AT, get_tag, PHP_functions): Use notinname.
(Ada_getit, Ada_funcs, Python_functions, Scheme_functions): (Ada_getit, Ada_funcs, Python_functions, Scheme_functions):
Clarified, using strneq or notinname. Clarified, using strneq or notinname.
(L_isdef, L_isquote): Removed. (L_isdef, L_isquote): Removed.
(Lisp_functions, L_getit): Clarified. (Lisp_functions, L_getit): Clarified.
* etags.c (P_): Renamed to __P for consistency with config.h. * etags.c (P_): Rename to __P for consistency with config.h.
[HAVE_CONFIG_H]: Let config.h deal with __P. [HAVE_CONFIG_H]: Let config.h deal with __P.
[__STDC__] [!HAVE_CONFIG_H]: Define PTR as in config.h. [__STDC__] [!HAVE_CONFIG_H]: Define PTR as in config.h.
[!__STDC__] [!HAVE_CONFIG_H]: Do not undefine static, because [!__STDC__] [!HAVE_CONFIG_H]: Do not undefine static, because
@ -2889,7 +2893,7 @@
(Perl_functions, Python_functions, PHP_functions) (Perl_functions, Python_functions, PHP_functions)
(Scheme_functions, Texinfo_nodes): Use it. (Scheme_functions, Texinfo_nodes): Use it.
(Perl_functions): Use strneq. (Perl_functions): Use strneq.
(prolog_pred): Renamed to prolog_pr. (prolog_pred): Rename to prolog_pr.
(prolog_pr): Recognise Prolog rules in addition to predicates. (prolog_pr): Recognise Prolog rules in addition to predicates.
[ETAGS_REGEXPS] [!HAVE_CONFIG_H] [__CYGWIN__]: Prevent [ETAGS_REGEXPS] [!HAVE_CONFIG_H] [__CYGWIN__]: Prevent
unmodified compile, as Cygwin's regex.h is incompatible with us. unmodified compile, as Cygwin's regex.h is incompatible with us.
@ -2988,7 +2992,7 @@
2001-10-13 Gerd Moellmann <gerd@gnu.org> 2001-10-13 Gerd Moellmann <gerd@gnu.org>
* make-docfile.c (read_c_string_or_comment): Renamed from * make-docfile.c (read_c_string_or_comment): Rename from
read_c_string. Add parameter COMMENT. Read C-style comments. read_c_string. Add parameter COMMENT. Read C-style comments.
(scan_c_file): Handle doc strings in C comments. (scan_c_file): Handle doc strings in C comments.
@ -3247,12 +3251,12 @@
2001-01-25 Francesco Potortì <pot@gnu.org> 2001-01-25 Francesco Potortì <pot@gnu.org>
* etags.c (struct tok): Renamed from struct token. * etags.c (struct tok): Rename from struct token.
(token): Renamed from tok. (token): Rename from tok.
(structtype): Make it a local variable. (structtype): Make it a local variable.
[DEBUG]: Use assert. [DEBUG]: Use assert.
(xrnew): Change the synopsis. (xrnew): Change the synopsis.
(typedefs_or_cplusplus): Renamed from typedefs_and_cplusplus. (typedefs_or_cplusplus): Rename from typedefs_and_cplusplus.
(grow_linebuffer): Don't call xrnew when not needed. (grow_linebuffer): Don't call xrnew when not needed.
(token): Buffer renamed to line. (token): Buffer renamed to line.
(C_entries): Three calls to inibuffer moved here from main. (C_entries): Three calls to inibuffer moved here from main.
@ -3281,16 +3285,16 @@
2001-01-14 Francesco Potortì <pot@gnu.org> 2001-01-14 Francesco Potortì <pot@gnu.org>
* etags.c (get_language_from_langname): Renamed from * etags.c (get_language_from_langname): Rename from
get_language_from_name. get_language_from_name.
(get_language_from_filename): Renamed from get_language_from_suffix. (get_language_from_filename): Rename from get_language_from_suffix.
Now first looks for the complete file name. Now first looks for the complete file name.
(language): New member char **filenames. (language): New member char **filenames.
(Makefile_filenames): List of possible filenames for makefiles. (Makefile_filenames): List of possible filenames for makefiles.
(lang_names): Add a NULL member for every entry, added an entry (lang_names): Add a NULL member for every entry, added an entry
for makefiles. for makefiles.
(Makefile_targets): New function. (Makefile_targets): New function.
(Texinfo_nodes): Renamed from Texinfo_fuctions and made (Texinfo_nodes): Rename from Texinfo_fuctions and made
it conformant to the style of the rest of the code. it conformant to the style of the rest of the code.
2001-01-13 Gerd Moellmann <gerd@gnu.org> 2001-01-13 Gerd Moellmann <gerd@gnu.org>
@ -3429,7 +3433,7 @@
2000-07-14 Gerd Moellmann <gerd@gnu.org> 2000-07-14 Gerd Moellmann <gerd@gnu.org>
* ebrowse.c (xrealloc, xmalloc): Renamed from yrealloc and ymalloc. * ebrowse.c (xrealloc, xmalloc): Rename from yrealloc and ymalloc.
* etags.c (xmalloc, xrealloc): Make externally visible, for use * etags.c (xmalloc, xrealloc): Make externally visible, for use
by alloca.o. by alloca.o.
@ -3466,8 +3470,8 @@
2000-06-06 Gerd Moellmann <gerd@gnu.org> 2000-06-06 Gerd Moellmann <gerd@gnu.org>
* ebrowse.c (ymalloc): Renamed from xmalloc. * ebrowse.c (ymalloc): Rename from xmalloc.
(yrealloc): Renamed from xrealloc. (yrealloc): Rename from xrealloc.
2000-05-21 Dave Love <fx@gnu.org> 2000-05-21 Dave Love <fx@gnu.org>
@ -3690,7 +3694,7 @@
corrects a bug. All callers changed. corrects a bug. All callers changed.
(canonicalize_filename): New function. (canonicalize_filename): New function.
(process_file, etags_getcwd, absolute_dirname): Use it. (process_file, etags_getcwd, absolute_dirname): Use it.
(relative_filename, absolute_filename): Removed var shadowing. (relative_filename, absolute_filename): Remove var shadowing.
(C_entries, Pascal_functions): Add fake initializations to keep (C_entries, Pascal_functions): Add fake initializations to keep
compilers quiet. compilers quiet.
(TeX_functions, Prolog_functions, Erlang_functions): Cleanup. (TeX_functions, Prolog_functions, Erlang_functions): Cleanup.
@ -3980,8 +3984,8 @@
1998-05-01 Andrew Innes <andrewi@harlequin.co.uk> 1998-05-01 Andrew Innes <andrewi@harlequin.co.uk>
* movemail.c [WINDOWSNT]: Undefine DISABLE_DIRECT_ACCESS. Force * movemail.c [WINDOWSNT]: Undefine DISABLE_DIRECT_ACCESS.
all file i/o to be in binary mode. Include ntlib.h. Force all file i/o to be in binary mode. Include ntlib.h.
1998-04-27 Andreas Schwab <schwab@delysid.gnu.org> 1998-04-27 Andreas Schwab <schwab@delysid.gnu.org>
@ -4013,8 +4017,8 @@
return types. Add forward declarations. return types. Add forward declarations.
* emacsclient.c: Include <stdlib.h> and <unistd.h> if available. * emacsclient.c: Include <stdlib.h> and <unistd.h> if available.
Don't declare geteuid. Don't declare geteuid.
(print_help_and_exit): Change return type to void. Forward (print_help_and_exit): Change return type to void.
declare it. Forward declare it.
* b2m.c: Include <stdlib.h> if available. * b2m.c: Include <stdlib.h> if available.
(main): Explicitly declare return type. (main): Explicitly declare return type.
@ -4026,7 +4030,7 @@
1998-03-26 Richard Stallman <rms@psilocin.gnu.org> 1998-03-26 Richard Stallman <rms@psilocin.gnu.org>
* pop.c (pop_getline): Renamed from getline. * pop.c (pop_getline): Rename from getline.
1998-03-05 Richard Stallman <rms@psilocin.gnu.org> 1998-03-05 Richard Stallman <rms@psilocin.gnu.org>
@ -4051,8 +4055,8 @@
with a '>' any lines starting with "From " read from the POP server, with a '>' any lines starting with "From " read from the POP server,
but leave the code in place, wrapped in #ifdef but leave the code in place, wrapped in #ifdef
MOVEMAIL_QUOTE_POP_FROM_LINES, in case we have to restore it later MOVEMAIL_QUOTE_POP_FROM_LINES, in case we have to restore it later
because it turns out that something is depending on it. Change because it turns out that something is depending on it.
suggested by Paul Eggert <eggert@twinsun.com>. Change suggested by Paul Eggert <eggert@twinsun.com>.
Convert the character \037 (^_) at the beginning of a line into Convert the character \037 (^_) at the beginning of a line into
the character '^' followed by the character '_', because otherwise the character '^' followed by the character '_', because otherwise
Emacs can't parse the resulting file as a valid BABYL file. Emacs can't parse the resulting file as a valid BABYL file.
@ -4069,8 +4073,8 @@
quotes with a '>' any lines starting with "From " read from the quotes with a '>' any lines starting with "From " read from the
POP server, but leave the code in place, wrapped in #ifdef POP server, but leave the code in place, wrapped in #ifdef
MOVEMAIL_QUOTE_POP_FROM_LINES, in case we have to restore it later MOVEMAIL_QUOTE_POP_FROM_LINES, in case we have to restore it later
because it turns out that something is depending on it. Change because it turns out that something is depending on it.
suggested by Paul Eggert <eggert@twinsun.com>. Change suggested by Paul Eggert <eggert@twinsun.com>.
Convert the character \037 (^_) at the beginning of a line into Convert the character \037 (^_) at the beginning of a line into
the character '^' followed by the character '_', because otherwise the character '^' followed by the character '_', because otherwise
@ -4086,8 +4090,8 @@
1997-10-31 Jonathan I. Kamens <jik@kamens.brookline.ma.us> 1997-10-31 Jonathan I. Kamens <jik@kamens.brookline.ma.us>
* pop.c (fullwrite): Get rid of an extra call to write. Problem * pop.c (fullwrite): Get rid of an extra call to write.
pointed out by Chiaki Ishikawa. Problem pointed out by Chiaki Ishikawa.
1997-10-16 Dave Love <d.love@dl.ac.uk> 1997-10-16 Dave Love <d.love@dl.ac.uk>
@ -4227,8 +4231,8 @@
(C_entries): Initialise tok.named. (C_entries): Initialise tok.named.
(sym_type, C_stab_entry, consider_token): st_C_ignore is used to (sym_type, C_stab_entry, consider_token): st_C_ignore is used to
get rid of "import", "package" and "friend". get rid of "import", "package" and "friend".
(fvdef): Renamed from funcdef. Also some constants renamed. All (fvdef): Rename from funcdef. Also some constants renamed.
users changed. All users changed.
(C_entries): Make separate tags for variables separated by comma. (C_entries): Make separate tags for variables separated by comma.
(globals, members): New flags. (globals, members): New flags.
(main, C_entries): Use them. (main, C_entries): Use them.
@ -4242,7 +4246,7 @@
(consider_token, C_entries): Set the len member of token_name. (consider_token, C_entries): Set the len member of token_name.
(prolog_pred): Cleanup according to GNU coding standards. (prolog_pred): Cleanup according to GNU coding standards.
(Cobol_suffixes, lang_names, Cobol_paragraphs): Cobol support. (Cobol_suffixes, lang_names, Cobol_paragraphs): Cobol support.
(prolog_white, erlang_white): Renamed to eat_white, callers changed. (prolog_white, erlang_white): Rename to eat_white, callers changed.
1997-05-15 Francesco Potortì <F.Potorti@cnuce.cnr.it> 1997-05-15 Francesco Potortì <F.Potorti@cnuce.cnr.it>
@ -4445,7 +4449,7 @@
* etags.c (relative_filename): Bug corrected. * etags.c (relative_filename): Bug corrected.
(etags_getcwd): Avoid warning of unused variable. (etags_getcwd): Avoid warning of unused variable.
(C_entries, consider_token): Added support for enum labels. (C_entries, consider_token): Add support for enum labels.
1996-11-03 Paul Eggert <eggert@twinsun.com> 1996-11-03 Paul Eggert <eggert@twinsun.com>
@ -4688,14 +4692,14 @@
1996-04-29 Richard Stallman <rms@delasyd.gnu.ai.mit.edu> 1996-04-29 Richard Stallman <rms@delasyd.gnu.ai.mit.edu>
* pop.c (SEND, RECV): Renamed from send, recv. * pop.c (SEND, RECV): Rename from send, recv.
(pop_open, pop_trash): Make the trash_started code unconditional. (pop_open, pop_trash): Make the trash_started code unconditional.
(socket_connection): Delete casts to void. (socket_connection): Delete casts to void.
1996-04-28 Richard Stallman <rms@delasyd.gnu.ai.mit.edu> 1996-04-28 Richard Stallman <rms@delasyd.gnu.ai.mit.edu>
* movemail.c (DIRECTORY_SEP, IS_DIRECTORY_SEP): Definitions * movemail.c (DIRECTORY_SEP, IS_DIRECTORY_SEP):
copied from lisp.h. Definitions copied from lisp.h.
1996-04-22 Andrew Innes <andrewi@harlequin.co.uk> 1996-04-22 Andrew Innes <andrewi@harlequin.co.uk>
@ -4805,7 +4809,7 @@
(lang_names): Erlang entry added. (lang_names): Erlang entry added.
(prolog_getit): Accepts headers spanning several lines. (prolog_getit): Accepts headers spanning several lines.
Always name tags. Always name tags.
(Prolog_functions): Removed incorrect compensation for (Prolog_functions): Remove incorrect compensation for
newline characters. newline characters.
(readline_internal): Zero-terminate last line. (readline_internal): Zero-terminate last line.
@ -4870,7 +4874,7 @@
1995-12-01 Richard Stallman <rms@whiz-bang.gnu.ai.mit.edu> 1995-12-01 Richard Stallman <rms@whiz-bang.gnu.ai.mit.edu>
* Makefile.in (THIS_IS_MAKEFILE): Renamed from THIS_IS_YMAKEFILE. * Makefile.in (THIS_IS_MAKEFILE): Rename from THIS_IS_YMAKEFILE.
1995-12-07 Francesco Potortì <pot@cnuce.cnr.it> 1995-12-07 Francesco Potortì <pot@cnuce.cnr.it>
@ -4887,11 +4891,11 @@
1995-12-06 Francesco Potortì <pot@cnuce.cnr.it> 1995-12-06 Francesco Potortì <pot@cnuce.cnr.it>
* etags.c (Cplusplus_suffixes): Add .M suffix for Objective C++. * etags.c (Cplusplus_suffixes): Add .M suffix for Objective C++.
(gperf): Added keywords for Objective C and GNU macros. (gperf): Add keywords for Objective C and GNU macros.
(sym_type): Added values to account for Objective C and GNU macros. (sym_type): Add values to account for Objective C and GNU macros.
(begtk): The '@' character can start a token. (begtk): The '@' character can start a token.
(objdef, methodlen, objtag): New variables for Objective C. (objdef, methodlen, objtag): New variables for Objective C.
(consider_token, C_entries): Added code for Objective C. (consider_token, C_entries): Add code for Objective C.
(plain_C_suffixes): Add .m and .lm for Objective C. (plain_C_suffixes): Add .m and .lm for Objective C.
(Yacc_suffixes): Add .ym for Objective yacc. (Yacc_suffixes): Add .ym for Objective yacc.
(GROW_LINEBUFFER): New macro. (GROW_LINEBUFFER): New macro.
@ -4932,8 +4936,8 @@
1995-11-06 Francesco Potortì (pot@cnuce.cnr.it) 1995-11-06 Francesco Potortì (pot@cnuce.cnr.it)
* etags.c (get_lang_from_name, get_lang_from_interpreter, * etags.c (get_lang_from_name, get_lang_from_interpreter)
get_lang_from_suffix): New functions. (get_lang_from_suffix): New functions.
(get_language): Function deleted. (get_language): Function deleted.
(lang_entry): Two members added to struct. (lang_entry): Two members added to struct.
(lang_names): Reflect the new layout of lang_entry. (lang_names): Reflect the new layout of lang_entry.
@ -4948,12 +4952,12 @@
* etags.c (lowcase): Use the standard tolower function. * etags.c (lowcase): Use the standard tolower function.
(substitute): Remove some wrong and some useless code related with (substitute): Remove some wrong and some useless code related with
escape '\' character in regexp replacement string. escape '\' character in regexp replacement string.
(TEX_defenv): Added part, appendix, entry, index. Removed typeout. (TEX_defenv): Add part, appendix, entry, index. Remove typeout.
(lang_suffixes): New suffixes: .hpp for C++; .f90 for Fortran; (lang_suffixes): New suffixes: .hpp for C++; .f90 for Fortran;
.bib, .ltx, .TeX for TeX (.bbl, .dtx removed); .ml for Lisp; .bib, .ltx, .TeX for TeX (.bbl, .dtx removed); .ml for Lisp;
.prolog for prolog (.pl removed). .prolog for prolog (.pl removed).
(massage_name, etags_getcwd): Use lowcase instead of tolower. (massage_name, etags_getcwd): Use lowcase instead of tolower.
(C_entries, find_entries): Added comments about memory leakage. (C_entries, find_entries): Add comments about memory leakage.
(add_node): Dead code removed. (add_node): Dead code removed.
1995-10-29 Richard Stallman <rms@mole.gnu.ai.mit.edu> 1995-10-29 Richard Stallman <rms@mole.gnu.ai.mit.edu>
@ -5195,7 +5199,7 @@
1995-04-08 Richard Stallman <rms@mole.gnu.ai.mit.edu> 1995-04-08 Richard Stallman <rms@mole.gnu.ai.mit.edu>
* Makefile.in.in (BASE_CFLAGS): Renamed from ALLOCA_CFLAGS. * Makefile.in.in (BASE_CFLAGS): Rename from ALLOCA_CFLAGS.
(alloca.o, regex.o): Use BASE_CFLAGS. (alloca.o, regex.o): Use BASE_CFLAGS.
1995-04-06 Richard Stallman <rms@mole.gnu.ai.mit.edu> 1995-04-06 Richard Stallman <rms@mole.gnu.ai.mit.edu>
@ -5205,7 +5209,7 @@
1995-04-04 Karl Heuer <kwzh@gnu.ai.mit.edu> 1995-04-04 Karl Heuer <kwzh@gnu.ai.mit.edu>
* Makefile.in.in (aixcc, aixcc.c): Targets deleted. * Makefile.in.in (aixcc, aixcc.c): Targets deleted.
(SOURCES, distclean): Removed obsolete references to aixcc. (SOURCES, distclean): Remove obsolete references to aixcc.
1995-04-02 Richard Stallman <rms@mole.gnu.ai.mit.edu> 1995-04-02 Richard Stallman <rms@mole.gnu.ai.mit.edu>
@ -5248,7 +5252,7 @@
savetok.valid. Mark token as valid when it is initialised. savetok.valid. Mark token as valid when it is initialised.
(make_tag): Make token only if token is valid and reset validity. (make_tag): Make token only if token is valid and reset validity.
(CNL_SAVE_DEFINEDEF): Test for savetok.valid instead of token_saved. (CNL_SAVE_DEFINEDEF): Test for savetok.valid instead of token_saved.
(TOKEN): Added a new member: valid. (TOKEN): Add a new member: valid.
1995-02-15 Francesco Potortì (pot@cnuce.cnr.it) 1995-02-15 Francesco Potortì (pot@cnuce.cnr.it)
@ -5270,12 +5274,12 @@
1995-02-07 Richard Stallman <rms@pogo.gnu.ai.mit.edu> 1995-02-07 Richard Stallman <rms@pogo.gnu.ai.mit.edu>
* Makefile.in.in (maintainer-clean): Renamed from realclean. * Makefile.in.in (maintainer-clean): Rename from realclean.
1995-02-01 Francesco Potortì (pot@cnuce.cnr.it) 1995-02-01 Francesco Potortì (pot@cnuce.cnr.it)
* etags.c (pfnote): Initialise been_warned in the node. * etags.c (pfnote): Initialise been_warned in the node.
(C_entries): Removed a speed hack for the sake of clarity. (C_entries): Remove a speed hack for the sake of clarity.
1995-01-18 Francesco Potortì (pot@cnuce.cnr.it) 1995-01-18 Francesco Potortì (pot@cnuce.cnr.it)
@ -5394,7 +5398,7 @@
(print_help): Help strings updated. Calls print_language_names. (print_help): Help strings updated. Calls print_language_names.
(argument_type, ARGUMENT): Typedefs for dealing with language and (argument_type, ARGUMENT): Typedefs for dealing with language and
regex options intermixed with filenames. regex options intermixed with filenames.
(main): Changed the way of dealing with arguments on the command (main): Change the way of dealing with arguments on the command
line to deal with language and regex options intermixed with line to deal with language and regex options intermixed with
filenames. filenames.
(get_language, default_C_entries, Cplusplus_entries, (get_language, default_C_entries, Cplusplus_entries,
@ -5483,8 +5487,8 @@
* pop.c: Don't include <string.h> and <strings.h>. * pop.c: Don't include <string.h> and <strings.h>.
* pop.c: Include <des.h> before <krb.h>, rather than after. They * pop.c: Include <des.h> before <krb.h>, rather than after.
should be interchangeable, and indeed the inclusion is done in They should be interchangeable, and indeed the inclusion is done in
both orders in various files in the Kerberos 4 library sources, both orders in various files in the Kerberos 4 library sources,
but djm@va.pubnix.com (David J. MacKenzie) reports that BSDI but djm@va.pubnix.com (David J. MacKenzie) reports that BSDI
requires that <des.h> be included first, and I don't see any harm requires that <des.h> be included first, and I don't see any harm
@ -5514,8 +5518,8 @@
1994-10-17 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 1994-10-17 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* emacsserver.c [SYSV_IPC] (main): Catch SIGHUP as well. Don't * emacsserver.c [SYSV_IPC] (main): Catch SIGHUP as well.
call kill with pid 0. Handle EINTR when receiving messages. Don't call kill with pid 0. Handle EINTR when receiving messages.
1994-10-17 Karl Heuer <kwzh@gnu.ai.mit.edu> 1994-10-17 Karl Heuer <kwzh@gnu.ai.mit.edu>
@ -5546,7 +5550,7 @@
* Makefile.in.in (clean): rm DOC* and *.tab.[ch]. * Makefile.in.in (clean): rm DOC* and *.tab.[ch].
(distclean): Not here. (distclean): Not here.
* Makefile.in.in (libexecdir): Renamed from libdir. * Makefile.in.in (libexecdir): Rename from libdir.
1994-10-11 Francesco Potortì (pot@cnuce.cnr.it) 1994-10-11 Francesco Potortì (pot@cnuce.cnr.it)
@ -5776,7 +5780,7 @@
print advice to run it, if it has anything significant to do. print advice to run it, if it has anything significant to do.
And only if MOVEMAIL_NEEDS_BLESSING. And only if MOVEMAIL_NEEDS_BLESSING.
(blessmail): Use emacs, not temacs. (blessmail): Use emacs, not temacs.
(configuration): Renamed from configname. (configuration): Rename from configname.
1994-04-30 Morten Welinder (terra@diku.dk) 1994-04-30 Morten Welinder (terra@diku.dk)
@ -5860,15 +5864,15 @@
1994-04-08 Francesco Potortì (pot@fly.cnuce.cnr.it) 1994-04-08 Francesco Potortì (pot@fly.cnuce.cnr.it)
* etags.c (outf, outfiledir): Renamed to tagf, tagfiledir. * etags.c (outf, outfiledir): Rename to tagf, tagfiledir.
(PF_funcs, Asm_funcs, L_funcs, PAS_funcs, TEX_funcs) (PF_funcs, Asm_funcs, L_funcs, PAS_funcs, TEX_funcs)
(Scheme_funcs, prolog_funcs): Renamed to Fortran_functions, (Scheme_funcs, prolog_funcs): Rename to Fortran_functions,
Asm_labels, Lisp_functions, Pascal_functions, Scheme_functions, Asm_labels, Lisp_functions, Pascal_functions, Scheme_functions,
TeX_functions, Prolog_functions. TeX_functions, Prolog_functions.
(inf): No more a global variable. (inf): No more a global variable.
(C_entries): Take 2nd parameter `inf' instead of using the global one. (C_entries): Take 2nd parameter `inf' instead of using the global one.
(find_entries): Added the cp1 var for optimisation. (find_entries): Add the cp1 var for optimisation.
(find_entries): Added more suffixes for assembler files. (find_entries): Add more suffixes for assembler files.
(Asm_funcs): Now finds labels even without an ending colon. (Asm_funcs): Now finds labels even without an ending colon.
1994-03-30 Francesco Potortì (pot@fly.cnuce.cnr.it) 1994-03-30 Francesco Potortì (pot@fly.cnuce.cnr.it)
@ -5896,7 +5900,7 @@
(process_file): Filenames in tags file are relative to the (process_file): Filenames in tags file are relative to the
directory where the tags file is (useful with the -o option). directory where the tags file is (useful with the -o option).
(main): Initialise the outfiledir var. (main): Initialise the outfiledir var.
(TYPEDST): Added the `tignore' value. (TYPEDST): Add the `tignore' value.
(C_entries): Corrected various small bugs. (C_entries): Corrected various small bugs.
1994-03-19 Richard Stallman (rms@mole.gnu.ai.mit.edu) 1994-03-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
@ -5912,7 +5916,7 @@
1994-03-14 Francesco Potortì (pot@cnuce.cnr.it) 1994-03-14 Francesco Potortì (pot@cnuce.cnr.it)
* etags.c (TYPEDST): Added the `tignore' value. * etags.c (TYPEDST): Add the `tignore' value.
(C_entries): Corrected various bugs, now correctly parses the (C_entries): Corrected various bugs, now correctly parses the
`extern "C" {' construction (patch by Tom R.Hageman). `extern "C" {' construction (patch by Tom R.Hageman).
@ -5966,7 +5970,7 @@
1994-02-14 Francesco Potortì (pot@fly) 1994-02-14 Francesco Potortì (pot@fly)
* etags.c (absolute_pathnames, cwd): Added global vars. * etags.c (absolute_pathnames, cwd): Add global vars.
(longopts, print_help, main, process_file): Put absolute filenames (longopts, print_help, main, process_file): Put absolute filenames
in the tag file if the -A --absolute-pathnames option is used. in the tag file if the -A --absolute-pathnames option is used.
(print_help): Alphabetically order the options. (print_help): Alphabetically order the options.
@ -6003,7 +6007,7 @@
Use gperf generated hash table instead of linked list. Use gperf generated hash table instead of linked list.
(C_stab_entry, hash, in_word_set, get_C_stab, C_symtype): Added. (C_stab_entry, hash, in_word_set, get_C_stab, C_symtype): Added.
Mostly code generated by gperf. Mostly code generated by gperf.
(consider_token): Removed unused parameter `lp'. (consider_token): Remove unused parameter `lp'.
(PF_funcs, getit): Allow subroutine and similar declarations (PF_funcs, getit): Allow subroutine and similar declarations
to span multiple lines. to span multiple lines.
(C_entries): Check for newline if inchar to avoid bus errors. (C_entries): Check for newline if inchar to avoid bus errors.
@ -6150,7 +6154,7 @@
1993-11-02 Francesco Potortì (pot@cnuce.cnr.it) 1993-11-02 Francesco Potortì (pot@cnuce.cnr.it)
* etags.c (consider_token): Removed unused variable firsttok. * etags.c (consider_token): Remove unused variable firsttok.
(prolog_getit): Call pfnote with the right number of arguments. (prolog_getit): Call pfnote with the right number of arguments.
1993-10-19 Paul Eggert (eggert@twinsun.com) 1993-10-19 Paul Eggert (eggert@twinsun.com)
@ -6180,13 +6184,13 @@
from current directory. Only chmod and chgrp files that we from current directory. Only chmod and chgrp files that we
installed, which excludes ${INSTALLABLE_SCRIPTS}. They go in installed, which excludes ${INSTALLABLE_SCRIPTS}. They go in
${bindir}. ${bindir}.
(INSTALLFLAGS): Deleted definition, since it is an unused variable (INSTALLFLAGS): Delete definition, since it is an unused variable
now. now.
1993-09-27 Brian J. Fox (bfox@ai.mit.edu) 1993-09-27 Brian J. Fox (bfox@ai.mit.edu)
* Makefile.in (INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Let * Makefile.in (INSTALL, INSTALL_PROGRAM, INSTALL_DATA):
configure figure out the correct values for these variables. Let configure figure out the correct values for these variables.
1993-09-14 Brian J. Fox (bfox@ai.mit.edu) 1993-09-14 Brian J. Fox (bfox@ai.mit.edu)
@ -6271,7 +6275,7 @@
1993-07-30 Francesco Potortì (pot@cnuce.cnr.it) 1993-07-30 Francesco Potortì (pot@cnuce.cnr.it)
* etags.c (FINCST): Added the fignore status. Means we are * etags.c (FINCST): Add the fignore status. Means we are
after the parameter list and before the open curly brace. after the parameter list and before the open curly brace.
Allows correct parsing of C++ constructors. Allows correct parsing of C++ constructors.
(C_entries, consider_token): Make use of fignore. (C_entries, consider_token): Make use of fignore.
@ -6310,7 +6314,7 @@
1993-07-08 Francesco Potortì (pot@cnuce.cnr.it) 1993-07-08 Francesco Potortì (pot@cnuce.cnr.it)
* etags.c (alloca): Removed all references to it. * etags.c (alloca): Remove all references to it.
(main): Now calls xnew instead of alloca for portability. (main): Now calls xnew instead of alloca for portability.
(../src/config.h): Included only if HAVE_CONFIG_H. (../src/config.h): Included only if HAVE_CONFIG_H.
(const): Void definition removed--config.h takes care of it. (const): Void definition removed--config.h takes care of it.
@ -6322,7 +6326,7 @@
* etags.c (LEVEL_OK_FOR_FUNCDEF): Removed. * etags.c (LEVEL_OK_FOR_FUNCDEF): Removed.
(C_entries): Optimized the test that used LEVEL_OK_FOR_FUNCDEF. (C_entries): Optimized the test that used LEVEL_OK_FOR_FUNCDEF.
(C_entries): Removed a piece of useless code. (C_entries): Remove a piece of useless code.
(C_entries): Making typedef tags is delayed until a semicolon (C_entries): Making typedef tags is delayed until a semicolon
is met. This handles "typedef int X, Y, Z;" correctly. is met. This handles "typedef int X, Y, Z;" correctly.
@ -6584,7 +6588,7 @@
1993-04-09 Jim Blandy (jimb@totoro.cs.oberlin.edu) 1993-04-09 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* Makefile.in (DEFS): Renamed from CONFIG_CFLAGS. * Makefile.in (DEFS): Rename from CONFIG_CFLAGS.
1993-04-07 Jim Blandy (jimb@churchy.gnu.ai.mit.edu) 1993-04-07 Jim Blandy (jimb@churchy.gnu.ai.mit.edu)
@ -6606,7 +6610,7 @@
(get_C_stab): c_ext becomes c_ext&C_PLPL. (get_C_stab): c_ext becomes c_ext&C_PLPL.
(C_entries): Logical cplpl means c_ext&C_PLPL. (C_entries): Logical cplpl means c_ext&C_PLPL.
(C_entries): Logical yacc_rules means we are after the first %%. (C_entries): Logical yacc_rules means we are after the first %%.
(C_entries): Added logic for yacc files. (C_entries): Add logic for yacc files.
1993-03-16 Francesco Potortì (pot@cnuce.cnr.it) 1993-03-16 Francesco Potortì (pot@cnuce.cnr.it)
@ -6624,7 +6628,7 @@
(TOKEN): Member linestart removed. (TOKEN): Member linestart removed.
(linepos, prev_linepos, lb1): Deleted. (linepos, prev_linepos, lb1): Deleted.
(main): Call initbuffer on lbs array instead of lb1. (main): Call initbuffer on lbs array instead of lb1.
(init): Removed the initialisation of the logical _gd array. (init): Remove the initialisation of the logical _gd array.
(find_entries): A .sa suffix means assembler file. (find_entries): A .sa suffix means assembler file.
(C_create_stab): "auto", "void", "extern", "static" are st_C_typespec. (C_create_stab): "auto", "void", "extern", "static" are st_C_typespec.
All C state machines rewritten. All C state machines rewritten.
@ -6634,7 +6638,7 @@
1993-03-01 Francesco Potortì (pot@fly.CNUCE.CNR.IT) 1993-03-01 Francesco Potortì (pot@fly.CNUCE.CNR.IT)
* etags.c (C_entries): Added the quotednl logical variable. * etags.c (C_entries): Add the quotednl logical variable.
Used for parsing of #define's spanning multiple lines. Used for parsing of #define's spanning multiple lines.
1993-02-23 Francesco Potortì (pot@fly.CNUCE.CNR.IT) 1993-02-23 Francesco Potortì (pot@fly.CNUCE.CNR.IT)
@ -6644,7 +6648,7 @@
1993-03-19 Eric S. Raymond (eric@geech.gnu.ai.mit.edu) 1993-03-19 Eric S. Raymond (eric@geech.gnu.ai.mit.edu)
* Makefile.in (EXECUTABLES): Added rcs-checkin. * Makefile.in (EXECUTABLES): Add rcs-checkin.
* Makefile.in (unlock, relock): New productions. * Makefile.in (unlock, relock): New productions.
@ -6705,7 +6709,7 @@
* Makefile.in (CFLAGS): #define HAVE_CONFIG_H, too. * Makefile.in (CFLAGS): #define HAVE_CONFIG_H, too.
* Makefile.in (libdir): Default to ${prefix}/lib. * Makefile.in (libdir): Default to ${prefix}/lib.
(archlibdir): Adjusted to match. (archlibdir): Adjust to match.
* Makefile.in (distclean): Don't delete backup or autosave files. * Makefile.in (distclean): Don't delete backup or autosave files.
(extraclean): Like realclean, but does delete backup and autosave (extraclean): Like realclean, but does delete backup and autosave
@ -6740,7 +6744,7 @@
1992-11-05 Jim Blandy (jimb@totoro.cs.oberlin.edu) 1992-11-05 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* Makefile.in (getdate.o): Added explicit target for this, so we * Makefile.in (getdate.o): Add explicit target for this, so we
can indicate that it depends on ../src/config.h. can indicate that it depends on ../src/config.h.
1992-11-04 Jim Blandy (jimb@totoro.cs.oberlin.edu) 1992-11-04 Jim Blandy (jimb@totoro.cs.oberlin.edu)
@ -6808,7 +6812,7 @@
array. When an event fires, move the last event in the array into array. When an event fires, move the last event in the array into
its spot. Use num_events to determine whether or not there are its spot. Use num_events to determine whether or not there are
any pending events, not wait_for. any pending events, not wait_for.
(getevent): Deleted unused variable `ep'. (getevent): Delete unused variable `ep'.
(sigcatch): It's now easier to find all the active events. (sigcatch): It's now easier to find all the active events.
(main): Initialize num_events. (main): Initialize num_events.
@ -6821,7 +6825,7 @@
(process_file, find_entries, pfnote, TEX_funcs, TEX_decode_env, (process_file, find_entries, pfnote, TEX_funcs, TEX_decode_env,
TEX_getit, substr): Use the etags_*index functions, rather than TEX_getit, substr): Use the etags_*index functions, rather than
the native *index functions. the native *index functions.
(rindex, index): Renamed to etags_rindex and tags_rindex, and (rindex, index): Rename to etags_rindex and tags_rindex, and
made them unconditionally defined, rather than having them depend made them unconditionally defined, rather than having them depend
on NEED_*INDEX. on NEED_*INDEX.
@ -6908,7 +6912,7 @@
1992-05-10 Roland McGrath (roland@albert.gnu.ai.mit.edu) 1992-05-10 Roland McGrath (roland@albert.gnu.ai.mit.edu)
* etags.c (C_entries): Fixed reading of "..." strings. * etags.c (C_entries): Fix reading of "..." strings.
(consider_token): Recognize `SYSCALL' and `PSEUDO' macros, used in (consider_token): Recognize `SYSCALL' and `PSEUDO' macros, used in
the C library source. the C library source.
@ -6936,7 +6940,7 @@
1992-04-17 Jim Blandy (jimb@pogo.cs.oberlin.edu) 1992-04-17 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* timer.c (getevent): Removed declaration of memcpy; since * timer.c (getevent): Remove declaration of memcpy; since
different systems have different return types, and we're not even different systems have different return types, and we're not even
using the return type anyway, it wasn't doing us any good. using the return type anyway, it wasn't doing us any good.
@ -6971,7 +6975,7 @@
1992-04-06 Jim Blandy (jimb@pogo.cs.oberlin.edu) 1992-04-06 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* etags.c (C_entries): Removed comment saying that \" in a string * etags.c (C_entries): Remove comment saying that \" in a string
isn't recognized as magic, because it is correctly handled. isn't recognized as magic, because it is correctly handled.
* getopt.c, getopt.h: New files, from GNU C library. * getopt.c, getopt.h: New files, from GNU C library.
@ -6981,8 +6985,8 @@
optind. optind.
(main): Argument processing loop rewritten to call getopt to get (main): Argument processing loop rewritten to call getopt to get
next option. Options which take parameters (-o and -i) rewritten next option. Options which take parameters (-o and -i) rewritten
to get parameter from optarg instead of argv[1]. Filename to get parameter from optarg instead of argv[1].
preprocessing loop and update command changed similarly. Filename preprocessing loop and update command changed similarly.
* Makefile (etags, ctags): Depend on and link with getopt.h, * Makefile (etags, ctags): Depend on and link with getopt.h,
getopt.o, and getopt1.o. getopt.o, and getopt1.o.
(getopt.o, getopt1.o): New targets for the GNU getopt routines. (getopt.o, getopt1.o): New targets for the GNU getopt routines.
@ -7123,8 +7127,8 @@
1991-01-25 Jim Blandy (jimb@churchy.ai.mit.edu) 1991-01-25 Jim Blandy (jimb@churchy.ai.mit.edu)
* make-docfile: Find the arguments to a C function correctly, * make-docfile: Find the arguments to a C function correctly,
by not ignoring the character that read_c_string returns. Don't by not ignoring the character that read_c_string returns.
even try to find argument names for functions that take MANY Don't even try to find argument names for functions that take MANY
or UNEVALLED arguments, since they're a figment of the docstring's or UNEVALLED arguments, since they're a figment of the docstring's
imagination. imagination.
@ -7512,8 +7516,8 @@
1988-05-13 Chris Hanson (cph@kleph) 1988-05-13 Chris Hanson (cph@kleph)
* emacsclient.c: Delete references to unused variable `out'. This * emacsclient.c: Delete references to unused variable `out'.
caused a bus error when used under hp-ux. This caused a bus error when used under hp-ux.
1988-05-06 Richard Stallman (rms@frosted-flakes.ai.mit.edu) 1988-05-06 Richard Stallman (rms@frosted-flakes.ai.mit.edu)

View file

@ -1708,10 +1708,21 @@ main (int argc, char **argv)
fsync (1); fsync (1);
/* Now, wait for an answer and print any messages. */ /* Now, wait for an answer and print any messages. */
while (exit_status == EXIT_SUCCESS while (exit_status == EXIT_SUCCESS)
&& (rl = recv (emacs_socket, string, BUFSIZ, 0)) > 0)
{ {
char *p; char *p;
do
{
errno = 0;
rl = recv (emacs_socket, string, BUFSIZ, 0);
}
/* If we receive a signal (e.g. SIGWINCH, which we pass
through to Emacs), on some OSes we get EINTR and must retry. */
while (rl < 0 && errno == EINTR);
if (rl <= 0)
break;
string[rl] = '\0'; string[rl] = '\0';
p = string + strlen (string) - 1; p = string + strlen (string) - 1;