libcthreshold

Returns whether the current LibC library is equal to or newer than the requested version.

Library:LibC
Service:Library

Syntax

  #include <ndkvers.h> 
   
  int libcthreshold (
     int    desiredthreshold,
     int   *libthreshold );
  

Parameters

desiredthreshold

(IN) Specifies the oldest time stamp acceptable for the application, using one of the values specified in the ndkvers.h file. Each version of the library adds a new time stamp value.

desiredthreshold

(OUT) Points to the time stamp of the current library. See the ndsvers.h file for a list of possible values.

Return Values

If successful, returns 0, indicating that the current library has a time stamp equal to or newer than the requested time stamp. Otherwise, returns a nonzero error code.

Decimal

Name

Description

79

ENOTSUP

The requested time stamp is newer than the time stamp of the library.

105

ENOCONTEXT

The calling thread has no context .

Remarks

For sample code, see the Example section in pthread_cond_timedwait.