Nios® V Processor Software Developer Handbook

ID 743810
Date 10/31/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

12.1.1.59. 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.