with any of the same errors as fstat (2). VERSIONS Portable applications should use fstat ... shown in the POSIX.1g draft). SEE ALSO fstathandle_error("open"); if (fstat(fd, &sb) == -1) /* To obtain file size */ handle_error("fstaterrors specified for the routines fflush (3), fstat (2), lseek (2), and malloc (3). ATTRIBUTESerrors specified for the routines fflush (3), fstat (2), lseek (2), and malloc (3). ATTRIBUTESerrors specified for the routines fflush (3), fstat (2), lseek (2), and malloc (3). ATTRIBUTESerrors specified for the routines fflush (3), fstat (2), lseek (2), and malloc (3). ATTRIBUTESalter the file position, such as fstat (2) and fchdir (2). It will be automaticallyHISTORY POSIX.1-2001, SVr4, 4.3BSD. SEE ALSO fstat (2), ttynameerrors specified for the routines fflush (3), fstat (2), lseek (2), and malloc (3). ATTRIBUTESerrno to ENODEV . SEE ALSO tty (1), fstat (2), ctermid (3), isattyfchmod (2), fchown (2), fcntl (2), fstat (2), ftruncate (2), memfd_create (2), mmaperrno to ENODEV . SEE ALSO tty (1), fstat (2), ctermid (3), isattyfchmod (2), fchown (2), fcntl (2), fstat (2), ftruncate (2), memfd_create (2), mmap