|
APUE 中有这样一段话,是什么意思? 不明白到底在什么情况下所有Line-buffered 输出流会被flush。没搞明白!
Second, whenever input is requested through the standard I/O library from either (a) an unbuffered stream or (b) a line-buffered stream (that requires data to be requested from the kernel), all line-buffered output streams are flushed. The reason for the qualifier on (b) is that the requested data may already be in the buffer, which doesn't require data to be read from the kernel. Obviously, any input from an unbuffered stream, item (a), requires data to be obtained from the kernel.
一不小心点了Enter,就提交了,为什么不能编辑标题呀? 自己发的帖,为什么自己不能删除呢? |
|