Simon Josefsson [Wed, 21 Jun 2006 08:02:40 +0000 (08:02 +0000)]
2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
* read-file.c (fread_file): Start with buffer allocation of
0 bytes rather than 1 byte; this simplifies the code.
Don't invoke feof; it's not needed. Refactor to avoid duplicate
code to free buffer and save/restore errno.
(internal_read_file): Remove unused local.
Paul Eggert [Tue, 20 Jun 2006 19:15:50 +0000 (19:15 +0000)]
* openat.c (openat): Use ?:, not if, to work around GCC bug 4210
<http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
Problem reported by Denis Excoffier in
<http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
Paul Eggert [Thu, 25 May 2006 21:55:35 +0000 (21:55 +0000)]
* tempname.c (small_open, large_open): New macros.
(__open, __open64) [!_LIBC]: Remove.
(__gen_tempname): Use small_open and large_open instead of __open
and __open64. This fixes a portability bug on HP-UX 11.11i
reported by Simon Wing-Tang in
<http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
Paul Eggert [Fri, 19 May 2006 17:49:21 +0000 (17:49 +0000)]
* lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
Use the usual Autoconf way to include <time.h> and/or sys/time.h.
(my_usleep): Don't mishandle maximum value.
* m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
gl_ rather than jm_. Link, don't run, so that cross-compiles are
allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
not really conditional on the cache.
(gl_PREREQ_NANOSLEEP): Check for sys/select.h.
Simon Josefsson [Thu, 11 May 2006 07:33:27 +0000 (07:33 +0000)]
2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
* md4.c (rol): Cast right-shift arg to uint32_t to prevent
unwanted sign propagation, e.g., on hosts with 64-bit int.
There still are some problems with reeelly weird theoretical hosts
(e.g., 33-bit int) but it's not worth worrying about now.
* sha1.c (rol): Likewise.
(K1, K2, K3, K4): Remove unnecessary L suffix.
Eric Blake [Tue, 9 May 2006 02:38:16 +0000 (02:38 +0000)]
* gnulib-tool (func_version): Base copyright year on CVS date.
(func_emit_copyright_notice): New function.
(func_emit_lib_Makefile_am): Use it.
(func_emit_tests_Makefile_am): Likewise.
(func_import): Likewise.
Paul Eggert [Tue, 2 May 2006 23:48:20 +0000 (23:48 +0000)]
* modules/inttypes (Maintainer): Change from Derek Price to 'all'.
* m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
test from here...
* m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
* lib/wait-process.h (wait_subprocess): Accept a new exitsignal argument.
* lib/wait-process.c (wait_subprocess): Always set *exitsignal to 0 when
present and set it to the offending signal when the child exits due to
a signal.
* lib/csharpcomp.c, lib/execute.c, lib/javacomp.c: Update all callers.
Paul Eggert [Mon, 24 Apr 2006 17:50:05 +0000 (17:50 +0000)]
* unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
to define main with arguments, for C++. Reported by Eric Blake.
* c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
Prefer 'int main ()' to 'int main (void)', for C++.
* getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
* fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
for 'main', for C99 and C++.