mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-08 18:19:08 +08:00
If the caller doesn't specify ancillary data, add credentials to the outgoing packet. This enables us to satisfy the requirement (https://man7.org/linux/man-pages/man7/unix.7.html) that a socket with the SO_PASSCRED option enabled can get the credentials of its peer in every message it receives. FIXME: I'm not sure if this is the right way to satisfy that requirement. A possible alternative would be to arrange for a socket to be notified when its peer enables SO_PASSCRED.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Cygwin documentation is available on the net at https://cygwin.com You might especially be interested in https://cygwin.com/faq/faq.html#faq.programming.building-cygwin