Specifications
Return
The return value is zero on success, or –1 otherwise. If the call fails, errno is set to indicate the cause of
the error.
Related Information
• fcntl() on page 14-57
• ioctl() on page 14-73
• isatty() on page 14-74
• lseek() on page 14-64
• open() on page 14-66
• read() on page 14-68
• stat() on page 14-60
• write() on page 14-69
• newlib Library Documentation
fork()
Prototype
pid_t fork (void)
Commonly Called By
C/C++ programs
Device drivers
Thread-safe
Yes.
Available from ISR
No.
Include
<unistd.h>
Description
The fork() function is only provided for compatibility with newlib.
Return
Calls to fork() always fails with the return code –1 and errno set to ENOSYS.
Related Information
newlib Library Documentation
14-56
fork()
NII5V2
2015.05.14
Altera Corporation
HAL API Reference
Send Feedback