Go to main content

man pages section 3: Extended Library Functions, Volume 3

Exit Print View

Updated: Thursday, June 13, 2019
 
 

picl_wait(3PICL)

Name

picl_wait - wait for PICL tree to refresh

Synopsis

cc [ flag... ] file... –lpicl [ library... ]
#include <picl.h>

int picl_wait(int to_secs);

Description

The picl_wait() function blocks the calling thread until the PICL tree is refreshed. The to_secs argument specifies the timeout for the call in number of seconds. A value of −1 for to_secs specifies no timeout.

Return Values

The picl_wait() function returns 0 to indicate that PICL tree has refreshed. Otherwise, a non-negative integer is returned to indicate error.

Errors

PICL_NOTINITIALIZED

Session not initialized

PICL_NORESPONSE

Daemon not responding

PICL_TIMEDOUT

Timed out waiting for refresh

PICL_FAILURE

General system failure

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
MT-Level
MT-Safe

See Also

attributes(7)