January 25th, 2010

Tall ships (porthole)

(no subject)

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.