1. 25 Feb, 2011 1 commit
  2. 22 Feb, 2011 1 commit
    • Paul Eggert's avatar
      [ChangeLog] · f68c809d
      Paul Eggert authored
      Assume S_ISLNK etc. work, since gnulib supports this.
      * Makefile.in (GNULIB_MODULES): Add sys_stat.
      * configure.in: Check for lstat and set HAVE_LSTAT=0 if not.
      Pretend to be using the gnulib lstat module for benefit of sys/stat.h.
      * configure, lib/Makefile.in, lib/gnulib.mk: Regenerate.
      [lib-src/ChangeLog]
      Assume S_ISLNK etc. work, since gnulib supports this.
      * etags.c (S_ISREG): Remove.
      [src/ChangeLog]
      Assume S_ISLNK etc. work, since gnulib supports this.
      * config.in: Regenerate.
      * dired.c (lstat): Remove.
      (file_name_completion): Assume S_ISDIR works.
      (file_name_completion_stat): Assume S_ISLNK works.
      Do not bother calling stat unless lstat says it's a symlink.
      * fileio.c (S_ISLNK, S_ISFIFO, S_ISREG, lstat): Remove.
      (Fcopy_file): Assume S_ISREG and S_ISLNK work.
      (check_writable, Ffile_writable_p, Fset_file_times):
      Assume S_ISDIR works.
      (Ffile_readable_p): Use S_IFIFO, not S_ISFIFO, to guess whether
      fifos exist.
      (Ffile_regular_p, Finsert_file_contents): Assumes S_ISREG works.
      * filelock.c (S_ISLNK): Remove.
      * lread.c (openp): Assume S_ISDIR works.
      * xrdb.c (S_ISDIR): Remove.
      f68c809d
  3. 20 Feb, 2011 2 commits
    • Paul Eggert's avatar
    • Paul Eggert's avatar
      Import filemode module from gnulib. · 5fa4ac76
      Paul Eggert authored
      * .bzrignore: Add lib/sys/.
      * Makefile.in (GNULIB_MODULES): Add filemode.
      * lib/Makefile.am (MOSTLYCLEANDIRS): New macro.
      * lib/filemode.c: Renamed from src/filemode.c and regenerated
      from gnulib.  This adds support for some more file types, e.g.,
      Cray DMF migrated files.
      * lisp/emacs-lisp/find-gc.el (find-gc-source-files): Remove filemode.c.
      * lib/filemode.h, lib/sys_stat.in.h, m4/filemode.m4, m4/st_dm_mode.m4:
      * m4/sys_stat_h.m4: New files, generated from gnulib.
      * aclocal.m4, configure, lib/Makefile.in, lib/gnulib.mk, m4/gl-comp.m4:
      Regenerate.
      
      2011-02-20  Paul Eggert  <eggert@cs.ucla.edu>
      5fa4ac76
  4. 19 Feb, 2011 1 commit
    • Paul Eggert's avatar
      Import simpler crypto/md5 module from gnulib, plus stdint module. · 5f90be1b
      Paul Eggert authored
      * aclocal.m4, configure, lib/Makefile.in, lib/gnulib.mk, m4/gl-comp.m4:
      * src/config.in: Regenerate.
      * lib/md5.c, lib/md5.h: Regenerate with simpler version, which
      assumes C99-style <stdint.h>, supplied by the stdint module.
      * lib/stdint.in.h, m4/longlong.m4, m4/stdint.m4: New files,
      generated from gnulib.
      * src/deps.mk (fns.o): Do not depend on md5.h, fixing a typo in
      the earlier patch.
      5f90be1b
  5. 18 Feb, 2011 2 commits
    • Paul Eggert's avatar
      Import crypto/md5 module from gnulib. · 942f733f
      Paul Eggert authored
      * Makefile.in (MAKEFILE_MODULES): Add crypto/md5.
      * admin/notes/copyright: Remove src/md5.c and src/md5.h as
      special cases.
      * src/Makefile.in (base_obj): Remove md5.o, since this file
      is in lib now.
      * src/deps.mk (md5.o): Remove.
      * aclocal.m4, configure, lib/Makefile.in, lib/gnulib.mk, m4/gl-comp.m4:
      Regenerate.
      * lib/md5.c: Regenerate.  This renames the file from src/md5.c,
      and adds some porting improvements from gnulib.
      * lib/md5.h: Regenerate, likwise; rename from src/md5.h.
      * m4/md5.m4: New file, from gnulib.
      
      2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
      942f733f
    • Paul Eggert's avatar
      Import IRIX 6.5 getloadavg fixes from gnulib. · 7d315eb6
      Paul Eggert authored
      * configure, lib/getloadavg.c, m4/getloadavg.m4: Regenerate.
      7d315eb6
  6. 16 Feb, 2011 1 commit
  7. 15 Feb, 2011 2 commits
  8. 10 Feb, 2011 1 commit
  9. 08 Feb, 2011 2 commits
    • Tom Tromey's avatar
      Make globals.h a generated header · 00b3c7ac
      Tom Tromey authored
      	* configure: Rebuild.
      	* configure.in (NS_OBJC_OBJ): New subst.
      lib-src
      	* make-docfile.c: Unconditionally include stdlib.h.
      	(generate_globals): New global.
      	(xrealloc): New function.
      	(main): Handle '-g'.  Call start_globals, write_globals.
      	(scan_file): Conditionally call put_filename.
      	(start_globals): New function.
      	(struct global): New.
      	(num_globals, globals): New globals.
      	(add_global, compare_globals, write_globals): New functions.
      	(scan_c_file): Update for "-g".
      	(scan_lisp_file): Fail if "-g".
      	(enum global_type): New.
      src
      	* Makefile.in (NS_OBJC_OBJ): New variable.
      	(base_obj): Rename from 'obj'.
      	(obj): New variable.
      	(globals.h, gl-stamp, $(obj)): New targets.
      	(GLOBAL_SOURCES): New variable.
      	* globals.h: Remove.
      	* nsselect.m (Vselection_alist): Define.  Reverts part of
      	2011-01-19T22:11:33Z!jan.h.d@swipnet.se.
      	* buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
      	variable.
      	* xselect.c (Vselection_alist): Define.  Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
      00b3c7ac
    • Paul Eggert's avatar
      Import getloadavg module from gnulib. · 79ab4b7f
      Paul Eggert authored
      79ab4b7f
  10. 05 Feb, 2011 1 commit
  11. 03 Feb, 2011 1 commit
  12. 01 Feb, 2011 1 commit
  13. 31 Jan, 2011 1 commit
  14. 30 Jan, 2011 2 commits
    • Paul Eggert's avatar
      strftime: import from gnulib · 16c3e636
      Paul Eggert authored
      16c3e636
    • Paul Eggert's avatar
      gnulib: import mktime and move-if-change fixes from gnulib · 3de84ad9
      Paul Eggert authored
      * configure: Regenerate from the following.
      
      2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
      
      mktime: clarify long_int width checking
      * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
      the top level, to make it clearer that the assumption about
      long_int width is being checked.  See
      <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
      
      2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
      
      TYPE_MAXIMUM: avoid theoretically undefined behavior
      * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
      negative number, which the C Standard says has undefined behavior.
      In practice this is not a problem, but might as well do it by the book.
      Reported by Rich Felker and Eric Blake; see
      <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
      * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
      * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
      
      mktime: #undef mktime before #defining it
      * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
      
      mktime: systematically normalize tm_isdst comparisons
      * lib/mktime.c (isdst_differ): New function.
      (__mktime_internal): Use it systematically for all isdst comparisons.
      This completes the fix for libc BZ #6723, and removes the need for
      normalizing tm_isdst.  See
      <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
      (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
      
      mktime: fix some integer overflow issues and sidestep the rest
      
      This was prompted by a bug report by Benjamin Lindner for MinGW
      <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
      His bug is due to signed integer overflow (0 - INT_MIN), and I
      I scanned through mktime.c looking for other integer overflow
      problems, fixing all the bugs I found.
      
      Although the C Standard says the resulting code is still not safe
      in the presence of integer overflow, in practice it should be good
      enough for all real-world two's-complement implementations, except
      for debugging environments that deliberately trap on integer
      overflow (e.g., gcc -ftrapv).
      
      * lib/mktime.c (WRAPV): New macro.
      (SHR): Also check that long_int and time_t shift right in the
      usual way, before using the fast-but-unportable method.
      (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
      used.  The code already assumed two's complement, so there's
      no need to test for alternatives.  All uses removed.
      (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
      the C standard.  Problem reported by Rich Felker in
      <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
      (twos_complement_arithmetic): Also check long_int and time_t.
      (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
      (guess_time_tm, ranged_convert, __mktime_internal): Use them.
      (__mktime_internal): Avoid integer overflow with unary subtraction
      in two instances where -1 - X is an adequate replacement for -X,
      since the calculations are approximate.
      
      2011-01-29  Eric Blake  <eblake@redhat.com>
      
      mktime: avoid infinite loop
      * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
      type; behavior is still undefined but portable to all known targets.
      Reported by Rich Felker.
      
      2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
      
      mktime: avoid problems on NetBSD 5 / i386
      * lib/mktime.c (long_int): New type.  This works around a problem
      on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
      but time_t is 64 bits, and where I expect the existing code is
      wrong in some cases.
      (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
      (ydhms_diff): Bring back the compile-time check for wide-enough
      year and yday.
      
      mktime: fix misspelling in comment
      * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
      This merges all recent glibc changes of importance.
      
      2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
      
      move-if-change: cope with concurrent mv of identical file.
      * move-if-change (CMPPROG): Accept environment
      variable as an override for `cmp'.
      (usage): Document CMPPROG.
      Adjust comparison to drop stdout.  Cope with failure of mv if
      the target file exists and is identical to the source, for
      parallel builds.
      Report from H.J. Lu against binutils in PR binutils/12283.
      3de84ad9
  15. 27 Jan, 2011 2 commits
  16. 24 Jan, 2011 1 commit
  17. 23 Jan, 2011 1 commit
  18. 22 Jan, 2011 2 commits
    • Miles Bader's avatar
      Update configure · 9ba41eb9
      Miles Bader authored
      9ba41eb9
    • Paul Eggert's avatar
      src/config.in: shrink slightly · b06b1098
      Paul Eggert authored
      * configure.in: Invoke the new gnulib macro gl_ASSERT_NO_GNULIB_TESTS.
      This makes src/config.in a bit smaller, by removing identifiers
      like GNULIB_TEST_MKTIME that Emacs does not need.
      * m4/getopt.m4, m4/gnulib-common.m4, m4/include_next.m4:
      * m4/multiarch.m4, m4/stddef_h.m4, m4/time_h.m4, m4/unistd_h.m4:
      Sync from gnulib.  This removes a few more unnecessary symbols from
      src/config.in, such as AA_APPLE_UNIVERSAL_BUILD and HAVE_STDDEF_H.
      * configure, src/config.in: Regenerate.
      b06b1098
  19. 18 Jan, 2011 1 commit
  20. 15 Jan, 2011 2 commits
  21. 12 Jan, 2011 3 commits
  22. 09 Jan, 2011 4 commits
  23. 08 Jan, 2011 1 commit
    • Paul Eggert's avatar
      Regenerate. · 743c80a7
      Paul Eggert authored
      * aclocal.m4, compile, depcomp, lib/Makefile.in, lib/dummy.c:
      * lib/gnulib.mk, m4/00gnulib.m4, m4/gnulib-cache.m4:
      * m4/gnulib-common.m4, m4/gnulib-comp.m4, m4/gnulib-tool.m4, missing:
      New files, generated automatically, with 'make sync-from-gnulib'
      followed by 'make'.
      * configure, lisp/dired.el, src/config.in: Regenerate.
      743c80a7
  24. 05 Jan, 2011 2 commits
  25. 29 Dec, 2010 1 commit
  26. 10 Dec, 2010 1 commit