X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=ChangeLog;h=04668ed25a3dd9e597612e10d6280803feea54b8;hb=d6095bd826d000e03e6071725a9f0436d3bf3129;hp=354600f434d6c5b196e872664df52afcc055b72c;hpb=b314f91e45ebfdb317750b4de69c8c4910e92f2d;p=gnulib.git diff --git a/ChangeLog b/ChangeLog index 354600f43..04668ed25 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,319 @@ +2011-09-20 Bruno Haible + + openat tests: EBADF tests. + * tests/test-fchownat.c (main): Add tests for EBADF. + * tests/test-fstatat.c (main): Likewise. + * tests/test-mkdirat.c (main): Likewise. + * tests/test-openat.c (main): Likewise. + * tests/test-unlinkat.c (main): Likewise. + * tests/test-fchmodat.c: New file. + * modules/openat-tests (Files): Add tests/test-fchmodat.c. + (Makefile.am): Also run 'test-fchmodat'. + +2011-09-20 Bruno Haible + + utimens, futimens, fdutimensat tests: EBADF tests. + * tests/test-futimens.h (test_futimens): Add more tests for EBADF. + + Tests for function fstat(). + * modules/fstat-tests: New file. + * tests/test-fstat.c: New file. + * modules/sys_stat-tests (Depends-on): Add fstat-tests. + +2011-09-20 Bruno Haible + + test-ttyname_r tests: EBADF tests. + * tests/test-ttyname_r.c (main): Add tests for EBADF. + + Tests for module 'isatty'. + * modules/isatty-tests: New file. + * tests/test-isatty.c: New file. + + Tests for module 'write'. + * modules/write-tests: New file. + * tests/test-write.c: New file. + + Tests for module 'read'. + * modules/read-tests: New file. + * tests/test-read.c: New file. + + pwrite tests: EBADF tests. + * tests/test-pwrite.c (main): Add tests for EBADF. + + pread tests: EBADF tests. + * tests/test-pread.c (main): Add tests for EBADF. + + lseek tests: EBADF tests. + * tests/test-lseek.c (main): Add more tests for EBADF. + + Tests for module 'ftruncate'. + * modules/ftruncate-tests: New file. + * tests/test-ftruncate.sh: New file. + * tests/test-ftruncate.c: New file. + + fsync tests: EBADF tests. + * tests/test-fsync.c (main): Add more tests for EBADF. + + fdatasync tests: EBADF tests. + * tests/test-fdatasync.c (main): Add more tests for EBADF. + + Tests for module 'fchown'. + * modules/fchown-tests: New file. + * tests/test-fchown.c: New file. + + Tests for module 'fchmod'. + * modules/fchmod-tests: New file. + * tests/test-fchmod.c: New file. + + fchdir tests: EBADF tests. + * tests/test-fchdir.c (main): Add more tests for EBADF. + + dup2 tests: EBADF tests. + * tests/test-dup2.c (main): Add more tests for EBADF. + + Tests for module 'dup'. + * modules/dup-tests: New file. + * tests/test-dup.c: New file. + + Tests for module 'close'. + * modules/close-tests: New file. + * tests/test-close.c: New file. + +2011-09-20 Bruno Haible + + Tests for module 'shutdown'. + * modules/shutdown-tests: New file. + * tests/test-shutdown.c: New file. + + Tests for module 'setsockopt'. + * modules/setsockopt-tests: New file. + * tests/test-setsockopt.c: New file. + + Tests for module 'sendto'. + * modules/sendto-tests: New file. + * tests/test-sendto.c: New file. + + Tests for module 'send'. + * modules/send-tests: New file. + * tests/test-send.c: New file. + + Tests for module 'recvfrom'. + * modules/recvfrom-tests: New file. + * tests/test-recvfrom.c: New file. + + Tests for module 'recv'. + * modules/recv-tests: New file. + * tests/test-recv.c: New file. + + Tests for module 'listen'. + * modules/listen-tests: New file. + * tests/test-listen.c: New file. + + Tests for module 'getsockopt'. + * modules/getsockopt-tests: New file. + * tests/test-getsockopt.c: New file. + + Tests for module 'getsockname'. + * modules/getsockname-tests: New file. + * tests/test-getsockname.c: New file. + + Tests for module 'getpeername'. + * modules/getpeername-tests: New file. + * tests/test-getpeername.c: New file. + + Tests for module 'connect'. + * modules/connect-tests: New file. + * tests/test-connect.c: New file. + + Tests for module 'bind'. + * modules/bind-tests: New file. + * tests/test-bind.c: New file. + + accept4 tests: Fix for native Windows. + * tests/test-accept4.c: Include sockets.h. + (main): Invoke gl_sockets_startup. + * modules/accept4-tests (Depends-on): Add sockets. + + accept tests: Fix for native Windows. + * tests/test-accept.c: Include sockets.h. + (main): Invoke gl_sockets_startup. + * modules/accept-tests (Depends-on): Add sockets. + +2011-09-19 Bruno Haible + + msvc-inval: Require a semicolon after DONE_MSVC_INVAL. + * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a + do...while(0). + * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL. + Suggested by Paul Eggert. + +2011-09-19 Bruno Haible + + sched: Ensure pid_t is defined. + * m4/sched_h.m4 (gl_SCHED_H): Arrange to override if it does + not define pid_t. + * lib/sched.in.h: Include . + * doc/posix-headers/sched.texi: Mention the pid_t problem. + Reported by Tom G. Christensen . + +2011-09-19 Bruno Haible + + msvc-inval: Ensure the entire expansion is a single statement. + * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair + of braces. + +2011-09-19 Jim Meyering + + tests: use printf, not echo in init.sh's warn_ function + * tests/init.sh (warn_): Use printf, not echo. The latter would + misbehave when given strings containing a backslash or starting + with e.g., -n. James Youngman suggested setting IFS. + +2011-09-19 Eric Blake + + futimens: enhance test + * tests/test-futimens.h (test_futimens): Also check for EBADF on + closed non-negative fd. + + date: accept 'hence' as opposite of 'ago' + * lib/parse-datetime.y (relative_time_table): Add 'hence'. + * tests/test-parse-datetime.c (main): Enhance test. + Suggested by Jesse Wilson. + +2011-09-19 Jim Meyering + + getcwd: don't fail in a deep directory on a system without openat + Before this change, getcwd would fail when called from a directory + of depth PATH_MAX / 3 or greater. That was due to the fact that + the non-openat implementation used "..", "../..", "../../..", etc. + to access ancestor directories. With too many, that string would + be longer than PATH_MAX. + * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are + using gnulib's openat replacement. + * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when + we're using the replacement function. + +2011-09-14 Martin von Gagern + + maint.mk: avoid warnings from perl about missing files + * top/maint.mk (def_sym_regex): Ignore files listed in + $(gl_other_headers_) that do not exist, say because a project + does not use a corresponding module. + +2011-09-18 Paul Eggert + + stat: use pathmax.h only if needed + * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR. + This is better for Emacs, which does not have a mingw port and + therefore can avoid the pathmax module. + + utimens: remove dependency on dup2 + * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed + to work around the Linux kernel bug. + * modules/utimens (Depends-on): Remove dup2. + +2011-09-18 Bruno Haible + + inet_ntop, inet_pton: Look for it also in libresolv. + * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in + libnsl, search for it in libresolv. + * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise. + Needed on Solaris 7. + +2011-09-18 Bruno Haible + + accept, accept4 tests: Avoid link error on Solaris. + * modules/accept-tests (Makefile.am): Link test-accept against + $(LIBSOCKET). + * modules/accept4-tests (Makefile.am): Link test-accept4 against + $(LIBSOCKET). + + accept4: Avoid link error on Solaris. + * modules/accept4 (Link): New section. + + socket functions: Avoid link errors on Solaris. + * modules/accept (Depends-on): Add socketlib. + (Link): New section. + * modules/bind (Depends-on): Add socketlib. + (Link): New section. + * modules/connect (Depends-on): Add socketlib. + (Link): New section. + * modules/getpeername (Depends-on): Add socketlib. + (Link): New section. + * modules/getsockname (Depends-on): Add socketlib. + (Link): New section. + * modules/getsockopt (Depends-on): Add socketlib. + (Link): New section. + * modules/listen (Depends-on): Add socketlib. + (Link): New section. + * modules/recv (Depends-on): Add socketlib. + (Link): New section. + * modules/recvfrom (Depends-on): Add socketlib. + (Link): New section. + * modules/send (Depends-on): Add socketlib. + (Link): New section. + * modules/sendto (Depends-on): Add socketlib. + (Link): New section. + * modules/setsockopt (Depends-on): Add socketlib. + (Link): New section. + * modules/shutdown (Depends-on): Add socketlib. + (Link): New section. + * modules/socket (Depends-on): Add socketlib. + (Link): New section. + +2011-09-18 Bruno Haible + + ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1). + * tests/test-ptsname.c (main): Terminate the test if it takes longer + than 5 seconds. + * modules/ptsname-tests (configure.ac): Test for alarm. + +2011-09-18 Bruno Haible + + posix_spawn_file_actions_add*: Fix module dependencies. + * modules/posix_spawn_file_actions_addclose (Dependencies): Add + posix_spawn_file_actions_init. + * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise. + * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise. + +2011-09-18 Bruno Haible + + rename, renameat tests: Avoid test failures on FreeBSD 6.4. + * tests/test-rename.h (test_rename): Allow error code EEXIST. + * tests/test-renameat.c (main): Likewise. + +2011-09-18 Bruno Haible + + Tests for module 'accept4'. + * modules/accept4-tests: New file. + * tests/test-accept4.c: New file. + +2011-09-18 Bruno Haible + + Tests for module 'accept'. + * modules/accept-tests: New file. + * tests/test-accept.c: New file. + +2011-09-18 Bruno Haible + + dup2: Support for MSVC. + * lib/dup2.c: Include msvc-inval.h. + (rpl_dup2): Handle invalid parameter notifications during dup2 and + _get_osfhandle calls. + * modules/dup2 (Depends-on): Add msvc-inval. + * doc/posix-functions/dup2.texi: Mention problem on MSVC. + + New module 'msvc-inval'. + * lib/msvc-inval.h: New file. + * lib/msvc-inval.c: New file. + * m4/msvc-inval.m4: New file. + * modules/msvc-inval: New file. + 2011-09-17 Bruno Haible + Tests for module 'pclose'. + * modules/pclose-tests: New file. + New module 'pclose'. * lib/stdio.in.h (pclose): New declaration. * lib/pclose.c: New file.