Port ctags+etags build to Sun C 5.12.
[bpt/emacs.git] / lib-src / ChangeLog
index 6f4f3cd..3fac70b 100644 (file)
@@ -1,3 +1,65 @@
+2014-05-18  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Port ctags+etags build to Sun C 5.12.
+       * Makefile.in (etags_args): Remove, replacing with ...
+       (etags_cflags, etags_libs): New macros.  All uses changed.
+       (ctags${EXEEXT}): Don't compile etags.c, as compiling etags.c in
+       parallel (once for ctags, once for etags) breaks parallel makes
+       with compilers that use the source file name to name temporaries,
+       such as Sun C 5.12.  Instead, compile ctags.c.
+       * ctags.c: New file.
+
+2014-05-04  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Handle systems without WCONTINUED consistently.  (Bug#15110, 17339)
+       * emacsclient.c (WCONTINUED): Move to ../src/syswait.h.
+
+2014-04-30  Glenn Morris  <rgm@gnu.org>
+
+       * Makefile.in ($(DESTDIR)${archlibdir}):
+       Avoid non-portable "`\" nesting.  (Bug#17339)
+
+2014-04-16  Eli Zaretskii  <eliz@gnu.org>
+
+       * update-game-score.c (write_scores): Condition fchmod call on
+       DOS_NT, not WINDOWSNT.
+
+2014-03-22  Glenn Morris  <rgm@gnu.org>
+
+       * Makefile.in (etags_deps, etags_args): New, to reduce duplication.
+       (etags${EXEEXT}, ctags${EXEEXT}): Use etags_deps, etags_args.
+
+       * Makefile.in (etags${EXEEXT}, ebrowse${EXEEXT}, ctags${EXEEXT})
+       (profile${EXEEXT}, make-docfile${EXEEXT}, movemail${EXEEXT})
+       (emacsclient${EXEEXT}, emacsclientw${EXEEXT}, hexl${EXEEXT})
+       (update-game-score${EXEEXT}, emacsclient.res): Use $@.
+
+       * Makefile.in (../lib/libgnu.a): Explicitly pass MFLAGS.
+
+       * Makefile.in (DONT_INSTALL): Remove test-distrib.
+       (test-distrib${EXEEXT}): Remove rule.
+
+       * test-distrib.c, testfile: Remove.
+
+2014-03-10  Juanma Barranquero  <lekktu@gmail.com>
+
+       * emacsclient.c (main): #ifdef out previous change on Windows.
+
+2014-03-09  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Fix emacsclient terminal corruption when in background (Bug#16892).
+       * emacsclient.c (handle_sigcont): Check for tcgetpgrp failure.
+       Cancel the continue only if tty.  Send SIGTTIN to the process
+       group, not SIGSTOP to self, as this is what the glibc manual
+       recommends.
+       (main): If tty, and if started in the background, send SIGTTIN
+       to the process group.
+
+2014-02-25  Andreas Amann  <a.amann@ucc.ie>  (tiny change)
+
+       Fix emacsclient's handling of SIGCONT (Bug#16883).
+       * emacsclient.c (handle_sigcont): Cancel the continue only if tty.
+
 2014-01-22  Eli Zaretskii  <eliz@gnu.org>
 
        * update-game-score.c (write_scores) [WINDOWSNT]: Use chmod
 
        Fix miscellaneous update-game-score bugs.
        * update-game-score.c (difftime) [!HAVE_DIFFTIME]: Remove.
-       (read_score) [HAVE_GETDELIM]: Don't access uninitialized storage.
-       (read_scores, write_scores): Check for fclose failure.
+       (read_score) [HAVE_GETDELIM]: Don't access uninitialized storage,
+       as that leads to undefined behavior, which is a bad thing
+       particularly in a setuid program.
+       (read_scores, write_scores): Check for fclose failure; on some
+       systems, I/O errors are not reported by primitives like getc and
+       putc, but instead are delayed until fclose, so fclose failures
+       should be diagnosed like other read and write errors.
        (write_scores): Use fchmod, not chmod, to avoid a race.
+       Otherwise, if the lock is broken by some other process,
+       update-game-score might try to change the permission on someone
+       else's file or on a nonexistent file, and incorrectly report an
+       error when this fails.
        (lock_file): Fix test for out-of-date lock file; it was reversed.
-       Use ordinary subtraction rather than difftime; since we're already
-       assuming POSIX we don't need to worry about the possibility of
-       time_t being a magic cookie.
+       That is, it incorrectly broke locks when they were more than an
+       hour into the future, instead of when they were more than an hour
+       in the past.  Use ordinary subtraction rather than difftime; since
+       we're already assuming POSIX we don't need to worry about the
+       possibility of time_t being a magic cookie, and since timestamps
+       are positive we don't need to worry about integer overflow when
+       subtracting them.  Put two spaces, not just one, after a sentence
+       end in a comment.
 
 2014-01-19  Paul Eggert  <eggert@cs.ucla.edu>
 
        * make-docfile.c (IF_LINT):
        * emacsclient.c (IF_LINT): Remove (in config.h now).
 
-       * make-docfile.c (main):
+       * make-docfile.c (main)
        (fopen) [!WINDOWSNT]:
        (chdir) [!DOS_NT]: No more need to undef.
 
        Use _Noreturn rather than NO_RETURN.
        No need for separate decl merely because of _Noreturn.
 
-2012-06-24  Samuel Bronson  <naesten@gmail.com>  (tiny change)
+2012-06-24  Samuel Bronson  <naesten@gmail.com>
 
        * emacsclient.c (set_local_socket): Fix compiler warning (Bug#7838).
 
 
 2012-06-05  Glenn Morris  <rgm@gnu.org>
 
-       * makefile.w32-in ($(BLD)/getdate.$(O), $(BLD)/leditcfns.$(O)):
-       ($(BLD)/make-path.$(O), $(BLD)/qsort.$(O)):
+       * makefile.w32-in ($(BLD)/getdate.$(O), $(BLD)/leditcfns.$(O))
+       ($(BLD)/make-path.$(O), $(BLD)/qsort.$(O))
        ($(BLD)/timer.$(O)): Remove cruft.
 
 2012-06-03  Glenn Morris  <rgm@gnu.org>
 
        * emacsclient.c (main): Avoid dangling 'if'.
        (xstrdup): Remove; no longer needed.
-       (get_current_dir_name, w32_getenv, get_server_config, find_tty):
+       (get_current_dir_name, w32_getenv, get_server_config, find_tty)
        (set_local_socket, main):
        Use const char *, not char *, for pointers that are not assigned
        through.
 
 2011-01-30  Jim Meyering  <meyering@redhat.com>
 
-       * make-docfile.c: don't corrupt heap for an invalid .elc file
+       * make-docfile.c: Don't corrupt heap for an invalid .elc file
        "printf '#@1a' > in.elc; ./make-docfile in.elc" would store 0
        one byte before just-malloc'd saved_string buffer.
        * make-docfile.c (scan_lisp_file): Diagnose an invalid dynamic
 
        * fakemail.c (action): Convert function definitions to standard C.
        (add_a_stream):
-       * test-distrib.c (cool_read):
-       (main): Likewise.
+       * test-distrib.c (cool_read, main): Likewise.
 
 2010-07-03  Andreas Schwab  <schwab@linux-m68k.org>
 
 2007-08-29  Jason Rumney  <jasonr@gnu.org>
 
        * emacsclient.c (SEND_STRING, SEND_QUOTED): Remove obfuscation macros.
-       (quote_argument, set_tcp_socket, handle_sigcont, handle_sigtstp):
+       (quote_argument, set_tcp_socket, handle_sigcont, handle_sigtstp)
        (main): Expand removed macros inline.
        (main) [WINDOWSNT]: Don't call ttyname.  Don't recognize -suspend
        option.
 
 2001-11-30  Andrew Innes  <andrewi@gnu.org>
 
-       * makefile.w32-in (FACE_SUPPORT):
-       (MOUSE_SUPPORT):
-       (FLOAT_SUPPORT):
-       (WINNT_SUPPORT):
-       (lisp): Reference .el files instead of .elc files, to simplify
-       bootstrapping.
+       * makefile.w32-in (FACE_SUPPORT, MOUSE_SUPPORT, FLOAT_SUPPORT)
+       (WINNT_SUPPORT, lisp): Reference .el files instead of .elc files,
+       to simplify bootstrapping.
        ($(DOC)): Change dependency to just `make-docfile'.
 
 2001-11-29  Pavel Janík  <Pavel@Janik.cz>