Nios® V Processor Software Developer Handbook

ID 743810
Date 4/07/2025
Public

Visible to Intel only — GUID: vby1653010540229

Ixiasoft

Document Table of Contents

16.1.1.58. getpid()

Prototype

pid_t getpid (void)

Commonly Called By

C/C++ programs

Device drivers

Thread-safe

Yes.

Available from ISR

No.

Include

<unistd.h>

Description

The getpid() function is provided for newlib compatibility and obtains the current process ID.

Return

Because HAL systems cannot contain multiple processes, getpid() always returns the same ID number.