Nios® II Software Developer Handbook

ID 683525
Date 8/28/2023
Public
Document Table of Contents

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