- 主题:/proc/self/status的内容是实时更新的吗?
我 fseek 到 /proc/self/status 的开始,然后fflush 了一下。
【 在 JulyClyde 的大作中提到: 】
: 没明白。你把fflush加在哪里了?
--
FROM 119.143.221.*
man fflush 一下,有下面这个说法:
For input streams associated with seekable files (e.g., disk files, but not pipes or terminals), fflush() discards any buffered data that has been fetched from the underlying file, but has not been consumed by the application.
但也还是不理解“has not been consumed by the application”这句。
【 在 kirbyzhou 的大作中提到: 】
: fflush ??
: 你不是只读的打开的么?
:
--
FROM 119.143.221.*
【 在 il15 的大作中提到: 】
: man fflush 一下,有下面这个说法:
: For input streams associated with seekable files (e.g., disk files, but not pipes or terminals), fflush() discards any buffered data that has been fetched from the underlying file, but has not been consumed by the application.
consume是指fread fscanf这些
: 但也还是不理解“has not been consumed by the application”这句。
: ...................
你这个关键其实是你seek了呀
--
修改:kirbyzhou FROM 220.249.52.*
FROM 220.249.52.*