mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-02 20:40:24 +08:00
03c3f5dcfe
When reading from a stream socket, it's possible that the caller requested fewer bytes that are available in the packet. In this case there is user data left in the pipe without a packet header. Add a member '_unread' to the af_unix_shmem_t class to keep track of this, and add corresponding methods 'get_unread' and 'set_unread' to af_unix_shmem_t and fhandler_socket_unix.
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