On Fri, Dec 10, 2010 at 6:49 AM, Cyril Hrubis <[email protected]> wrote:
> Hi!
> Slightly different patch to fix these tests is attached. The code is a
> little cleaner but basically does the same.
>
> The tests now do
>
> * get cputime
> * set timer
> * bussy loop while signal is not catched
> * get cputime
> * check that two stored cpu times differ approximately by timer interval
>
> Also some more problems are fixed.

Could you please add...

#ifdef CLOCK_PROCESS_CPUTIME_ID
/* ... */
#else
int
main(void)
{
    printf("CLOCK_PROCESS_CPUTIME_ID not supported\n");
    return PTS_UNSUPPORTED;
}
#endif

...? The constant is optional according to POSIX 2008.1:

"[CPT][Option Start] Process CPU-Time Clocks [Option End]
The functionality described is optional. The functionality described
is also an extension to the ISO C standard.

[TMR][Option Start] Timers [Option End]
The functionality described is optional. The functionality described
is also an extension to the ISO C standard.

Where applicable, functions are marked with the TMR margin legend in
the SYNOPSIS section. Where additional semantics apply to a function,
the material is identified by use of the TMR margin legend."

Thanks,
-Garrett

------------------------------------------------------------------------------
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages, 
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev 
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to