Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C over the years

Name: Anonymous 2015-07-24 1:45

Does anyone know why did the definitions of many functions in the C standard library got changed to return ssize_t instead of int? For instance read and write, both returning -1 in case of error, whilst all declarations of ssize_t I've seen are unsigned. What is this crazyness?

Name: Anonymous 2015-07-24 9:35

>>3
they are identified as important system calls in the ANSI standard
What?

how is a thing like that changed with an unsigned return type??!
I have never seen a implementation where ssize_t is a unsigned.

Personally I never understood what is the point of ssize_t if SSIZE_MAX is less than SIZE_MAX (line in the most systems).

Name: Anonymous 2015-07-24 10:58

>>7
I think >>1 could actually be super-dyslexic. Unless she copy-pasted all mentions of ssize_t, it means that she somehow managed to write it correctly despite reading it incorrectly. As if her mind exists in the mind of another being, or maybe contains another parasitic mind with root access, that filters certain aspects of reality from her while still ensuring perfect roundtripping.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List