From: Bruno Haible Date: Sat, 30 Apr 2011 12:05:52 +0000 (+0200) Subject: passfd: Add comments. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89d109384c64e703e2507b6ada5efc68bf651393;p=pspp passfd: Add comments. * lib/passfd.c: Add comments about platforms. --- diff --git a/ChangeLog b/ChangeLog index 796a2ba10c..1c39c25664 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-04-30 Bruno Haible + + passfd: Add comments. + * lib/passfd.c: Add comments about platforms. + 2011-04-30 Bruno Haible sys_uio: Make self-contained. diff --git a/lib/passfd.c b/lib/passfd.c index 86c73760b5..945882045e 100644 --- a/lib/passfd.c +++ b/lib/passfd.c @@ -30,6 +30,12 @@ #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