我在看写的Unix手册页。
在我的应用程序中,我将记录错误、警告和进程相关的次要信息,这些信息会写入日志文件中。我想要的是,如果文件大小超过1 1GB,那么进程应该不再能够写入该日志文件。我看到手册页说明这是可以实现的,但写入失败了。
If a write() requests that more bytes be written than there is room for (for example, the process' file size limit or the physical end of a medium), only as many bytes as there i