IEEE Standards Interpretation for IEEE Std 1003.1™-1990 IEEE Standard for Information Technology--Portable Operating System Interfaces (POSIX®)
Copyright © 2001 by the Institute of Electrical and Electronics Engineers, Inc. 3 Park Avenue New York, New York 10016-5997 USA All Rights Reserved.
Interpretations are issued to explain and clarify the intent of a standard and do not constitute an alteration to the original standard. In addition, interpretations are not intended to supply consulting information. Permission is hereby granted to download and print one copy of this document. Individuals seeking permission to reproduce and/or distribute this document in its entirety or portions of this document must contact the IEEE Standards Department for the appropriate license. Use of the information contained in this document is at your own risk.
IEEE Standards Department Copyrights and Permissions 445 Hoes Lane, Piscataway, New Jersey 08855-1331, USA
Interpretation Request #72
Topic: write and EFBIG Relevant Sections: 126.96.36.199
In Section 188.8.131.52 [errno values returned from write()], there is an entry for EFBIG (lines 275- 276, page 121): An attempt was made to write a file that exceeds an implementation-defined maximum file size. The question regards the phrase "maximum file size". Does this phrase refer to the "maximum size that a file can possibly or theoretically become on the given implementation" or can it also mean such things as "maximum file size allowed to this process by the implementation"? On many operating systems, a per-process file size limit can be set. Is it conforming for the implementation to set EFBIG when a process' write() hits this limit? It appears to me that this would be conforming behavior, since this also is an "implementation- defined maximum file size", for that process.
The standard clearly states the requirements for write() and the EFBIG error and permits this behavior so long as this limit is described in the accompanying conformance documentation.
Rationale for Interpretation