X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=ChangeLog;h=9a35b60515af7b820edcf56ca9ecf7ae1a99928c;hb=a49d3dade57695086cbf6a4030ed03c739c74d80;hp=47913b92d648c06cb77de10bd486a55272807cae;hpb=26af642c3723839ffecc86139959434d4957e94e;p=gnulib.git diff --git a/ChangeLog b/ChangeLog index 47913b92d..9a35b6051 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,608 @@ +2008-11-16 Bruno Haible + + Avoid test failure on Haiku. + * tests/test-fsync.c: Include . + (main): Don't require that fsync (0) fails. + +2008-11-15 Bruno Haible + + New module 'hostent'. + * modules/hostent: New file. + * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4. + +2008-11-15 Bruno Haible + + New module 'servent'. + * modules/servent: New file. + * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4. + +2008-11-15 Bruno Haible + + Avoid generating same test program with two different rules. + * modules/frexp-nolibm-tests (Makefile.am): Rename test program from + test-frexp to test-frexp-nolibm. + * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from + test-frexpl to test-frexpl-nolibm. + +2008-11-15 Bruno Haible + + * modules/frexpl-tests (Makefile.am): Link test-frexpl with + $(FREXPL_LIBM). + +2008-11-15 Bruno Haible + + * lib/netdb.in.h: Activate the definitions also when the system's + has 'struct addrinfo'. + * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks + EAI_OVERFLOW or AI_NUMERICSERV. + * doc/posix-headers/netdb.texi: Document the problem. + +2008-11-15 Bruno Haible + + * tests/test-sched.c: Test also the existence of the SCHED_* macros. + + Make the 'sched' module work on platforms where exists but + is incomplete (such as Haiku). + * lib/sched.in.h; Include the system's if it exists. + (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros. + * m4/sched_h.m4 (gl_SCHED_H): Test whether exists and also + defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H, + HAVE_STRUCT_SCHED_PARAM. + * modules/sched (Depends-on): Add include_next. + (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT, + PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM. + * doc/posix-headers/sched.texi: Document the issue. + +2008-11-13 Jim Meyering + + test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined + * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this + test would fail due to the difference in the Report bugs to ... + line. The expected address is empty, "<>", while the actual + would contain e.g., "". Filter out any address. + +2008-11-12 Bruno Haible + + lstat: don't compile lstat.c on systems lacking lstat + * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems + which don't have lstat; this is handled by lib/sys_stat.in.h already. + Reported by Daniel P. Berrange via Jim Meyering. + +2008-11-12 Jim Meyering + + * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb. + +2008-11-12 Simon Josefsson + + * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here + instead. + +2008-11-12 Bruno Haible + + * lib/unicodeio.c: Include unistr.h. + (utf8_wctomb): Remove function. + (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb. + +2008-11-12 Simon Josefsson + + * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf + Wildenhues and Bruno Haible + . + * modules/warnings (configure.ac): Don't call gl_WARN_INIT. + +2008-11-12 Simon Josefsson + + * doc/warnings.texi: New file, from Bruno Haible . + * doc/gnulib.texi: Add section for warnings. + +2008-11-11 Bruno Haible + + * lib/sockets.h: Add a comment. + +2008-11-11 Karl Berry + + * config/srclist.txt (fdl.texi): add, syncing from gnustandards. + +2008-11-11 Eric Blake + + fdl.texi: avoid git symlinks + * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi. + +2008-11-11 Paolo Bonzini + + * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string. + +2008-11-11 Paolo Bonzini + + * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS. + (gl_WARN_ADD): Substitute $2 if literal. + +2008-11-11 Paolo Bonzini + + * m4/warning.m4: Remove. + +2008-11-11 Paolo Bonzini + + * m4/warnings.m4: Almost complete rewrite. :-) + +2008-11-10 Simon Josefsson + + * modules/warnings: New module. + * m4/warnings.m4: New file. + * MODULES.html.sh: Mention warnings module. + With review improvements from Paolo Bonzini and + Ralf Wildenhues . + +2008-11-10 Eric Blake + + fdl.texi: make a symlink to the latest version + * doc/standards.texi: Revert today's earlier change. + * doc/fdl-1.2.texi: Rename from old fdl.texi... + * doc/fdl.texi: ...and replace this with a symlink to the newer + fdl-1.3.texi. + +2008-11-10 Bruno Haible + + * tests/test-select-fd.c (main): Accept the result file name as fourth + argument. + * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument. + * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument. + +2008-11-10 Bruno Haible + + * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO, + HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO + as autoconf-substituted macros. + * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1. + * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require + gl_NETDB_H_DEFAULTS. Set these variables. + * modules/netdb (Makefile.am): Substitute these variables. + +2008-11-10 Eric Blake + + standards.texi: include correct file for FDL 1.3 + * doc/standards.texi (GNU Free Documentation License): Change + include file to pull in FDL 1.3, not 1.2. + + fdl.texi: revert accidental change to license + * doc/fdl.texi: This is FDL 1.2, not 1.3. + +2008-11-10 Bruno Haible + + * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the + cross-compiling guesses also when the native compile gives no result. + +2008-11-10 Bruno Haible + + * lib/spawni.c (__spawni): Force variable into the stack. + +2008-11-10 Bruno Haible + + Add support for Haiku. + * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on + glibc and BeOS, but also on Haiku. + * lib/fpurge.c (fpurge): Likewise. + * lib/freadable.c (freadable): Likewise. + * lib/freadahead.c (freadahead): Likewise. + * lib/freading.c (freading): Likewise. + * lib/freadptr.c (freadptr): Likewise. + * lib/freadseek.c (freadptrinc): Likewise. + * lib/fseeko.c (rpl_fseeko): Likewise. + * lib/fseterr.c (fseterr): Likewise. + * lib/fwritable.c (fwritable): Likewise. + * lib/fwriting.c (fwriting): Likewise. + Reported by Ingo Weinhold . + +2008-11-10 Ingo Weinhold + + * lib/config.charset: Treat Haiku like BeOS. + +2008-11-10 Ingo Weinhold + + * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS. + * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise. + +2008-11-08 Bruno Haible + + * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside + AC_CACHE_CHECK. + +2008-11-08 Bruno Haible + + * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h. + +2008-11-08 Bruno Haible + + * tests/test-select-fd.c: New file. + * tests/test-select-in.sh: New file. + * tests/test-select-out.sh: New file. + * tests/test-select-stdin.c: New file. + * modules/select-tests (Files): Add the new files. + (Depends-on): Add gettimeofday. + (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS. + Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to + check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD. + +2008-11-06 Alexander V. Lukyanov + Bruno Haible + + * lib/sys_stat.in.h: Enclose function definitions in extern "C". + +2008-10-12 Giuseppe Scrivano + + * build-aux/pmccabe2html: Added support for C++ source files. + +2008-11-05 Ben Pfaff + + Fix lib/close.c build on Windows. + * modules/close (Files): Add lib/w32sock.h. + +2008-11-05 Joel E. Denny + + Accept Bison's NEWS format. + * build-aux/announce-gen (print_news_deltas): Tweak + $re_prefix. + +2008-11-04 Bruno Haible + + * modules/random_r (Maintainer): Add glibc. + +2008-11-04 Simon Josefsson + + * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested + by karl@freefriends.org (Karl Berry). + * doc/alloca.texi: Likewise. + * doc/c-ctype.texi: Likewise. + * doc/c-strcase.texi: Likewise. + * doc/c-strcaseeq.texi: Likewise. + * doc/c-strcasestr.texi: Likewise. + * doc/c-strstr.texi: Likewise. + * doc/c-strtod.texi: Likewise. + * doc/c-strtold.texi: Likewise. + * doc/ctime.texi: Likewise. + * doc/error.texi: Likewise. + * doc/fdl.texi: Likewise. + * doc/gcd.texi: Likewise. + * doc/getdate.texi: Likewise. + * doc/gnulib-intro.texi: Likewise. + * doc/gnulib-tool.texi: Likewise. + * doc/gnulib.texi: Likewise. + * doc/inet_ntoa.texi: Likewise. + * doc/maintain.texi: Likewise. + * doc/make-stds.texi: Likewise. + * doc/quote.texi: Likewise. + * doc/regexprops-generic.texi: Likewise. + * doc/standards.texi: Likewise. + * doc/verify.texi: Likewise. + * doc/visibility.texi: Likewise. + * doc/gnulib.texi (GNU Free Documentation License): Include + fdl-1.3.texi instead of fdl.texi. + +2008-11-04 Simon Josefsson + + * doc/fdl-1.3.texi: New file, from + . + * modules/fdl-1.3: Add. + * MODULES.html.sh: Add fdl-1.3. + +2008-11-03 Bruno Haible + + Make determination of absolute name of header file work with AIX xlc. + * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require + AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for + preprocessing. + * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise. + Reported by Gary V. Vaughan . + +2008-11-03 Simon Josefsson + + * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of + -fprofile-arcs -ftest-coverage. Suggested by Ludovic Courtès + . + +2008-11-02 Bruno Haible + + Mark 'strpbrk' obsolete. + * modules/strpbrk (Status, Notice): New sections. + * modules/strtok_r (Depends-on): Add strpbrk. + +2008-11-02 Bruno Haible + + Mark 'strdup' obsolete. + * modules/strdup (Status, Notice): New sections. + * modules/findprog (Depends-on): Add strdup. + * modules/getaddrinfo (Depends-on): Likewise. + * modules/localename (Depends-on): Likewise. + * modules/relocatable-lib (Depends-on): Likewise. + * modules/relocatable-lib-lgpl (Depends-on): Likewise. + * modules/relocatable-prog (Depends-on): Likewise. + * modules/trim (Depends-on): Likewise. + * modules/unictype/gen-ctype (Depends-on): Likewise. + * modules/unilbrk/gen-lbrk (Depends-on): Likewise. + +2008-11-02 Bruno Haible + + Mark 'strcspn' obsolete. + * modules/strcspn (Status, Notice): New sections. + +2008-11-02 Bruno Haible + + Mark 'rmdir' obsolete. + * modules/rmdir (Status, Notice): New sections. + * modules/clean-temp (Depends-on): Add rmdir. + * modules/openat (Depends-on): Likewise. + +2008-11-02 Bruno Haible + + Mark 'raise' obsolete. + * modules/raise (Status, Notice): New sections. + (Include): Specify . + * modules/stdio (Depends-on): Add raise. + * modules/write (Depends-on): Likewise. + +2008-11-02 Bruno Haible + + Mark 'memset' obsolete. + * modules/memset (Status, Notice): New sections. + +2008-11-02 Bruno Haible + + Mark 'memmove' obsolete. + * modules/memmove (Status, Notice): New sections. + * modules/argp (Depends-on): Add memmove. + * modules/argz (Depends-on): Likewise. + * modules/canonicalize (Depends-on): Likewise. + * modules/canonicalize-lgpl (Depends-on): Likewise. + * modules/fts (Depends-on): Likewise. + * modules/getcwd (Depends-on): Likewise. + * modules/human (Depends-on): Likewise. + * modules/regex (Depends-on): Likewise. + * modules/striconveh (Depends-on): Likewise. + * modules/trim (Depends-on): Likewise. + * modules/unistr/u8-move (Depends-on): Likewise. + * modules/unistr/u16-move (Depends-on): Likewise. + * modules/unistr/u32-move (Depends-on): Likewise. + +2008-11-02 Bruno Haible + + Mark 'memcpy' obsolete. + * modules/memcpy (Status, Notice): New sections. + +2008-11-02 Bruno Haible + + Mark 'memcmp' obsolete. + * modules/memcmp (Status, Notice): New sections. + * modules/argmatch (Depends-on): Add memchr. + * modules/backupfile (Depends-on): Likewise. + * modules/c-strcasestr (Depends-on): Likewise. + * modules/crypto/des (Depends-on): Likewise. + * modules/csharpcomp (Depends-on): Likewise. + * modules/fnmatch (Depends-on): Likewise. + * modules/git-merge-changelog (Depends-on): Likewise. + * modules/isnand (Depends-on): Likewise. + * modules/isnand-nolibm (Depends-on): Likewise. + * modules/isnanf (Depends-on): Likewise. + * modules/isnanf-nolibm (Depends-on): Likewise. + * modules/isnanl (Depends-on): Likewise. + * modules/isnanl-nolibm (Depends-on): Likewise. + * modules/mbchar (Depends-on): Likewise. + * modules/memcoll (Depends-on): Likewise. + * modules/quotearg (Depends-on): Likewise. + * modules/regex (Depends-on): Likewise. + * modules/relocatable-prog (Depends-on): Likewise. + * modules/same (Depends-on): Likewise. + * modules/signbit (Depends-on): Likewise. + * modules/strcasestr-simple (Depends-on): Likewise. + * modules/unictype/gen-ctype (Depends-on): Likewise. + * modules/unilbrk/gen-lbrk (Depends-on): Likewise. + * modules/uniname/uniname (Depends-on): Likewise. + * modules/unistr/u8-cmp (Depends-on): Likewise. + +2008-11-02 Bruno Haible + + Mark 'memchr' obsolete. + * modules/memchr (Status, Notice): New sections. + * modules/argp (Depends-on): Add memchr. + * modules/base64 (Depends-on): Likewise. + * modules/c-strcasestr (Depends-on): Likewise. + * modules/chdir-long (Depends-on): Likewise. + * modules/fnmatch (Depends-on): Likewise. + * modules/getsubopt (Depends-on): Likewise. + * modules/git-merge-changelog (Depends-on): Likewise. + * modules/glob (Depends-on): Likewise. + * modules/strcasestr-simple (Depends-on): Likewise. + * modules/strnlen (Depends-on): Likewise. + +2008-11-02 Bruno Haible + + Mark 'atexit' obsolete. + * modules/atexit (Status, Notice): New sections. + * modules/chdir-long (Depends-on): Add atexit. + * modules/wait-process (Depends-on): Likewise. + +2008-11-02 Bruno Haible + + * gnulib-tool: New option --with-obsolete. + (func_usage): Document it. + (func_modules_transitive_closure): Drop obsolete dependencies if + incobsolete is not true. + (func_import): Read and save the incobsolete variable to the cache. + +2008-11-02 Bruno Haible + + * modules/TEMPLATE-EXTENDED: New field 'Status'. + * gnulib-tool: New option --extract-status. + (func_usage): Document it. + (sed_extract_prog): Recognize it. + (func_get_status): New function. + +2008-10-30 Simon Josefsson + + * modules/sockets (License): Change from LGPL to LGPLv2+. + +2008-10-28 Simon Josefsson + + * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf. + +2008-10-28 Simon Josefsson + + * MODULES.html.sh (Support for systems lacking POSIX:2001): + Mention times and sys_times. + * modules/sys_times, modules/sys_times-tests: New modules. + * modules/times, modules/times-tests: Likewise + * m4/sys_times_h.m4: New file. + * lib/sys_times.in.h: Likewise + * lib/times.c: Likewise. + * tests/test-sys_times.c: Likewise. + * tests/test-times.c: Likewise. + * doc/posix-headers/sys_times.texi: Update. + * doc/posix-functions/times.texi: Update. + +2008-10-28 Jim Meyering + + * modules/tempname (Depends-on): Add lstat. + + * modules/lstat (License): Relicense: LGPL -> LGPLv2+. + +2008-10-28 Simon Josefsson + + * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit. + * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead, + using idiom used elsewhere in gnulib. + +2008-10-27 Jim Meyering + + * modules/gethostname (License): Relicense: LGPL -> LGPLv2+. + +2008-10-27 Simon Josefsson + + * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in + TESTS_ENVIRONMENT, for shell scripts that needs to call built + programs. + * tests/test-argp-2.sh: Use $EXEEXT when needed. + +2008-10-27 Simon Josefsson + + * lib/sys_stat.in.h (lstat): Fix declaration for mingw. + +2008-10-27 Bruno Haible + + * tests/test-lstat.c: Include . + +2008-10-27 Simon Josefsson + + * modules/lstat-tests: New module. + * tests/test-lstat.c: New file. + +2008-10-26 Jim Meyering + + * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter. + +2008-10-26 Simon Josefsson + Bruno Haible + + Fix a clash between the type DATADIR on Windows and the macro DATADIR. + * modules/configmake (Include): Add a note that the include must come + after all system headers. + * lib/javaversion.c: Include configmake.h after all other includes. + +2008-10-26 Bruno Haible + + * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of + HAVE_STRUCT_RANDOM_DATA to 1. + (gl_STDLIB_H): Simplify. + +2008-10-26 Simon Josefsson + + * m4/stdlib_h.m4: Check for struct random_data. Initialize and + substitute HAVE_STRUCT_RANDOM_DATA. + * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct + random_data. + * modules/stdlib (Makefile.am): Substitute + HAVE_STRUCT_RANDOM_DATA. + +2008-10-26 Simon Josefsson + + * doc/gnulib.texi (@copying): Use GFDLv1.2+. + * doc/gnulib-intro.texi (Copyright): Likewise. + +2008-10-26 Simon Josefsson + + * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's + findings. + +2008-10-25 Ben Pfaff + Bruno Haible + + * lib/unistd.in.h: Include . + (socket, connect,accept, bind, getpeername, getsockname, getsockopt, + listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select): + Provide dummy declarations. + (gethostname): Override. + * lib/sys_socket.in.h (gethostname): Provide dummy declaration. + * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke + gl_PREREQ_SYS_H_WINSOCK2. + * modules/gethostname (Files): Add m4/sys_socket_h.m4. + * doc/posix-functions/gethostname.texi: More details. + +2008-10-25 Bruno Haible + + * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require + gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist. + * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4. + + * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from + here ... + * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here. + * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of + gl_UNISTD_H_DEFAULTS. + +2008-10-25 Eric Blake + + signbit: avoid spurious compiler failure + * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant + declarations inside function. + +2008-10-24 Simon Josefsson + Bruno Haible + + * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h. + * modules/random_r (Depends-on): Add stdint. + +2008-10-24 Bruno Haible + + * modules/intprops (License): Change to LGPLv2+, with approval by Paul + Eggert. + * modules/strerror (License): Likewise. + +2008-10-24 Jim Meyering + + sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@ + * modules/sys_socket (Depends-on) [Depends-on]: Fix typo. + +2008-10-24 Eric Blake + + getgroups: fix compilation when getgroups is available + * lib/getgroups.c (includes): Include for getgroups, + but with override of getgroups disabled. + +2008-10-24 Simon Josefsson + + * doc/gnulib.texi (Header files): Add note about C++ problems. + Explained by Bruno Haible . + +2008-10-23 Bruno Haible + + Define a dummy SA_NODEFER macro on Interix. + * lib/signal.in.h (SA_NODEFER): Define fallback. + Reported by Aleksey Cheusov via + Thomas Klausner and Eric Blake. + +2008-10-23 Bruno Haible + + * modules/freadahead (License): Change to LGPLv2+. + Suggested by Simon Josefsson. + 2008-10-23 Jim Meyering random_r: new module @@ -699,7 +1304,7 @@ (gl_thread_exit_func): Use _endthreadex instead of EndThread. 2008-10-11 Yoann Vandoorselaere - Bruno Haible + Bruno Haible Provide a Win32 implementation of the 'cond' module. * lib/glthread/cond.h [USE_WIN32]: New implementation. @@ -811,7 +1416,7 @@ * doc/gnulib.texi: Include it. 2008-10-09 Paolo Bonzini - Bruno Haible + Bruno Haible Combine the two replacements of 'close'. * lib/sys_socket.in.h (close): Define to a reminder to include @@ -838,7 +1443,7 @@ * modules/select-tests (Depends-on): Likewise. 2008-10-09 Paolo Bonzini - Bruno Haible + Bruno Haible New module 'close'. * modules/close: New file. @@ -857,7 +1462,7 @@ * modules/fchdir (Depends-on): Add close. 2008-10-09 Paolo Bonzini - Bruno Haible + Bruno Haible * lib/fcntl.in.h (open): Simplify conditionals. (_gl_register_fd): New declaration. @@ -875,7 +1480,7 @@ (_version): Rename from "version". 2008-10-09 Paolo Bonzini - Bruno Haible + Bruno Haible * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from rpl_close.