Nios® V Processor Software Developer Handbook

ID 743810
Date 4/07/2025
Public

Visible to Intel only — GUID: rjq1653012270116

Ixiasoft

Document Table of Contents

16.1.1.72. usleep()

Prototype

int usleep (unsigned int us)

Commonly Called By

C/C++ programs

Device drivers

Thread-safe

Yes.

Available from ISR

No.

Include

<unistd.h>

Description

The usleep() function blocks until at least us microseconds have elapsed.

Return

The usleep() function returns zero on success, or –1 otherwise. If an error occurs, errno is set to indicate the cause. The current implementation always succeeds.