Skip to contentSkip to conversation

s_maxbytes handling

PATCH [email protected] 1 participant 1 message May 22, 2001

lore
Share & tools
lore
#0 lore raw

Linus writes:

0 is EOF _for_reads_. For writes it is not very well defined

Hmm.

So -EFBIG is certainly the preferable return value,

Yes. The Austin 6th draft writes

EFBIG:
An attempt was made to write a file that exceeds the implementation-defined maximum file size or the process' file size limit, and there was no room for any bytes to be written.

Andries