Specifications

Not all file systems/devices recognize this option.
mode specifies the permissions to use, if a new file is created. It is unused by current file systems, but is
maintained for compatibility.
Calls to open() are thread-safe only if the implementation of open() provided by the driver that is
manipulated is thread-safe.
Return
The return value is the new file descriptor, and –1 otherwise. If an error occurs, errno is set to indicate the
cause.
Related Information
fcntl() on page 14-57
fstat() on page 14-55
ioctl() on page 14-73
isatty() on page 14-74
lseek() on page 14-64
read() on page 14-68
stat() on page 14-60
write() on page 14-69
newlib Library Documentation
times()
Prototype
clock_t times (struct tms *buf)
Commonly Called By
C/C++ programs
Device drivers
Thread-safe
Yes.
Available from ISR
Yes.
Include
<sys/times.h>
Description
This times() function is provided for compatibility with newlib. It returns the number of clock ticks
since reset. It also fills in the structure pointed to by the input parameter buf with time accounting
information. The definition of the tms structure is:
NII5V2
2015.05.14
times()
14-67
HAL API Reference
Altera Corporation
Send Feedback