summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2010-03-29 15:08:59 -0600
committerEric Blake <eblake@redhat.com>2010-03-30 08:26:01 -0600
commit497bb5fc57d14e07115482157ed318d078a83083 (patch)
treed71ded5712c568c3c924a42a0782eaec56a4c1c9 /doc
parente046ffb123d352dec87f91fc638490572ef4d31d (diff)
downloadgnulib-497bb5fc57d14e07115482157ed318d078a83083.tar.gz
fdopendir: work around FreeBSD bug
Without a declaration, at least tar would core dump on 64-bit FreeBSD because gcc only used 32 bits of the resulting pointer. * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness. * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it. * modules/dirent (Makefile.am): Substitute it. * lib/dirent.in.h (fdopendir): Supply missing FreeBSD declaration. * doc/posix-functions/fdopendir.texi (fdopendir): Document the fix. Reported by Christian Weisgerber <naddy@mips.inka.de>. Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/posix-functions/fdopendir.texi3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/posix-functions/fdopendir.texi b/doc/posix-functions/fdopendir.texi
index fae7bb751a..89b1a6a21c 100644
--- a/doc/posix-functions/fdopendir.texi
+++ b/doc/posix-functions/fdopendir.texi
@@ -17,6 +17,9 @@ is not multithread-safe. Also, the replacement does not guarantee
that @samp{dirfd(fdopendir(n))==n} (dirfd might fail, or return a
different file descriptor than n).
@item
+This function exists but is not declared on some platforms:
+FreeBSD 7.3.
+@item
This function does not reject non-directory file descriptors on some
platforms:
GNU/Hurd.