Specifications

You can use the following values for the input parameter, whence:
SEEK_SET—The offset is set to ptr bytes.
SEEK_CUR—The offset is incremented by ptr bytes.
SEEK_END—The offset is set to the end of the file plus ptr bytes.
Calls to lseek() are thread-safe only if the implementation of lseek() 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
On success, the return value is a nonnegative file pointer. The return value is –1 in the event of an error. If
the call fails, errno is set to indicate the cause of the error.
Related Information
fcntl() on page 14-57
fstat() on page 14-55
ioctl() on page 14-73
isatty() on page 14-74
open() on page 14-66
read() on page 14-68
stat() on page 14-60
write() on page 14-69
newlib Library Documentation
alt_sysclk_init()
Prototype
int alt_sysclk_init (alt_u32 nticks)
Commonly Called By
Device drivers
Thread-safe
No.
Available from ISR
No.
Include
<sys/alt_alarm.h>
Description
The alt_sysclk_init() function registers the presence of a system clock driver. The input argument is
the number of ticks per second at which the system clock is run.
NII5V2
2015.05.14
alt_sysclk_init()
14-65
HAL API Reference
Altera Corporation
Send Feedback