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

  • Alleluia! Christ is risen!

    He is risen indeed, Alleluia! This has been something of a strange Easter. It's the first year I've not gone back to Horsham (which was already…

  • Mini-update

    A random moment in the life of boggyb... At church music practice this afternoon (I turn up when I'm running the projection for a…

  • Lent photography, day 7

    News about him spread quickly over the whole region of Galilee. Mark 1:28

  • 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