torkell: (Default)
[personal profile] torkell
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.

January 2026

S M T W T F S
     123
45678910
11121314151617
18192021222324
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 8th, 2026 12:45 am
Powered by Dreamwidth Studios