passfd: Add comments.
authorBruno Haible <bruno@clisp.org>
Sat, 30 Apr 2011 12:05:52 +0000 (14:05 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 30 Apr 2011 12:05:52 +0000 (14:05 +0200)
* lib/passfd.c: Add comments about platforms.

ChangeLog
lib/passfd.c

index 796a2ba..1c39c25 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2011-04-30  Bruno Haible  <bruno@clisp.org>
 
+       passfd: Add comments.
+       * lib/passfd.c: Add comments about platforms.
+
+2011-04-30  Bruno Haible  <bruno@clisp.org>
+
        sys_uio: Make <sys/uio.h> self-contained.
        * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
        * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
index 86c7376..9458820 100644 (file)
 
 #include "cloexec.h"
 
+/* The code that uses CMSG_FIRSTHDR is enabled on
+   Linux, MacOS X, FreeBSD, OpenBSD, NetBSD, AIX, OSF/1, Cygwin.
+   The code that uses HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS is enabled on
+   HP-UX, IRIX, Solaris.  */
+
+/* MSG_CMSG_CLOEXEC is defined only on Linux, as of 2011.  */
 #ifndef MSG_CMSG_CLOEXEC
 # define MSG_CMSG_CLOEXEC 0
 #endif