Каталог требований LSB Core 3.1
Требования для функции '__fxstat'
| Standard | ID | Description |
| SUSv3 | __fxstat.fstat.01 | The fstat() function shall obtain information about an open file associated with the file descriptor fildes, and shall write it to the area pointed to by buf. |
| SUSv3 | __fxstat.fstat.02 | [SHM] If fildes references a shared memory object, the implementation shall update in the stat structure pointed to by the buf argument only the st_uid, st_gid, st_size, and st_mode fields, and only the S_IRUSR, S_IWUSR, S_IRGRP, S_IWGRP, S_IROTH, and S_IWOTH file permission bits need be valid. The implementation may update other fields and flags. |
| SUSv3 | __fxstat.fstat.03 | [TYM] If fildes references a typed memory object, the implementation shall update in the stat structure pointed to by the buf argument only the st_uid, st_gid, st_size, and st_mode fields, and only the S_IRUSR, S_IWUSR, S_IRGRP, S_IWGRP, S_IROTH, and S_IWOTH file permission bits need be valid. The implementation may update other fields and flags. |
| SUSv3 | __fxstat.fstat.04 | Upon successful completion, 0 shall be returned. |
| SUSv3 | __fxstat.fstat.05 | Otherwise, -1 shall be returned and errno set to indicate the error. |
| SUSv3 | __fxstat.fstat.06 | The fstat() function shall fail if: |
| SUSv3 | __fxstat.fstat.06.01 | [EBADF] The fildes argument is not a valid file descriptor. |
| SUSv3 | __fxstat.fstat.06.02 | [EIO] An I/O error occurred while reading from the file system. |
| SUSv3 | __fxstat.fstat.06.03 | [EOVERFLOW] The file size in bytes or the number of blocks allocated to the file or the file serial number cannot be represented correctly in the structure pointed to by buf. |
| SUSv3 | __fxstat.fstat.07 | The fstat() function may fail if: |
| SUSv3 | __fxstat.fstat.07.01 | [EOVERFLOW] One of the values is too large to store into the structure pointed to by the buf argument. |
| LSB | app.__fxstat.30 | The functions __xstat(), __lxstat(), and __fxstat() shall implement the ISO POSIX (2003) functions stat(), lstat(), and fstat() respectively.ver shall be 3 or the behavior of these functions is undefined. |
| LSB | __fxstat.30 | __fxstat(3, fildes, stat_buf) shall implement fstat(fildes, stat_buf) as specified by ISO POSIX (2003). |