What is Nostr?
Julia Evans /
npub1ym9…lm9y
2024-11-11 18:51:37
in reply to nevent1q…hkn2

Julia Evans on Nostr: npub1jh9lk…cq2en "line buffered" means that it acts the way you expect (if you ...

npub1jh9lkp88gxtq7ya08ausnhjn9r766qx46xxhn62chrsxvwdvx09smcq2en (npub1jh9…q2en) "line buffered" means that it acts the way you expect (if you print a newline, it gets sent to the output device)

in libc, writes to a terminal are line buffered (and they act the way you'd think). But writes to pipes and files are not -- they're "block buffered" with a buffer size of 8k or something.

Basically libc checks the file descriptor and changes the type of buffering it does depending on whether the file is a terminal or not.
Author Public Key
npub1ym9ddu2qh7rda8pxklq4gxw2kxhtm4cgvdvdy64z6agwy88nhuhqcnlm9y