Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by incompatible

3 years ago

I think my C is getting rusty, but "write" operates on a file descriptor, doesn't it? It's unbuffered. The buffered versions are things like printf and puts.

2 comments

incompatible

Reply

tptacek  3 years ago

That's POSIX; C's equivalent is a FILE, which generally is buffered.

Kab1r  3 years ago

I thought Linux does in kernel buffering with `write`

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities