Download Altera Nios II Specifications
Transcript
NII5V2 2015.05.14 fstat() 14-55 Description The close() function is the standard UNIX-style close() function, which closes the file descriptor fd. Calls to close() are thread-safe only if the implementation of close() provided by the driver that is manipulated is thread-safe. Valid values for the fd parameter are: stdout, stdin, and stderr, or any value returned from a call to open(). Return The return value is zero on success, and –1 otherwise. If an error occurs, errno is set to indicate the cause. Related Information newlib Library Documentation fstat() Prototype int fstat (int fd, struct stat *st) Commonly Called By C/C++ programs Device drivers Thread-safe See description. Available from ISR No. Include <sys/stat.h> Description The fstat() function obtains information about the capabilities of an open file descriptor. The underlying device driver fills in the input st structure with a description of its functionality. Refer to the header file sys/stat.h provided with the compiler for the available options. By default, file descriptors are marked as character devices, unless the underlying driver provides its own implementation of the fstat() function. Calls to fstat() are thread-safe only if the implementation of fstat() provided by the driver that is manipulated is thread-safe. Valid values for the fd parameter are: stdout, stdin, and stderr, or any value returned from a call to open(). HAL API Reference Send Feedback Altera Corporation
Related documents
Embedded Peripherals IP User Guide
Altera Nios Ethernet Specifications
SOPC Builder User Guide
Samsung MAX-DG56 User Manual
GIGABYTE GS-SR125EDL User's Manual
Boyo - Vision Tech America VTL426 Automobile Electronics User Manual
HANDJET EBS 250 - User's manual (ver. 200809085#3.0
AnaSat C Manual rev.11
Nios II C2H Compiler User Guide
Facial Recognition General-Purpose Access Control Device Alex
AN10846 Getting started with NicheLite for LPC3250