?

Log in

No account? Create an account
If I've understood the man page correctly, under Linux it is not an… - 'Twas brillig, and the slithy toves did gyre and gimble in the wabe — LiveJournal [entries|archive|friends|userinfo]
Thomas

[ website | Beware the Jabberwock... ]
[ deviantArt | the-boggyb ]
[ FanFiction | Torkell ]
[ Tumblr | torkellr ]

Links
[Random links| BBC news | Vulture Central | Slashdot | Dangerous Prototypes | LWN | Raspberry Pi]
[Fellow blogs| a Half Empty Glass | the Broken Cube | The Music Jungle | Please remove your feet | A letter from home]
[Other haunts| Un4seen Developments | Jazz 2 Online | EmuTalk.net | Feng's shui]

[Monday 25th January 2010 at 9:15 pm]
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.
Link | Previous Entry | Share | Next Entry[ Penny for your thoughts? ]