Каталог требований LSB Core 3.1

Требования для функции '__fxstat'
StandardIDDescription
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.
LSBapp.__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).
The text in the Description column of SUSv3 requirements is reproduced from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html