Thomas (boggyb) wrote,
Thomas
boggyb

If I've understood the man page correctly, under Linux it is not an error for the write() function to not, in fact, write anything. Logically, this means that write() could be implemented as

ssize_t write(int fd, const void *buf, size_t count)
{
    return 0;
}


This would be simultaneously a) a fully conforming implementation, and b) completely useless.
Subscribe
  • Post a new comment

    Error

    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 0 comments