Annotation of coherent/f/usr/include/common/_clktck.h, revision 1.1.1.1

1.1       root        1: #ifndef        __COMMON__CLKTCK_H__
                      2: #define        __COMMON__CLKTCK_H__
                      3: 
                      4: /*
                      5:  * This internal header file is intended as the sole point of definition for
                      6:  * the ISO C constant "CLOCKS_PER_SEC" and the related POSIX.1 constant
                      7:  * CLK_TCK.
                      8:  */
                      9: 
                     10: #include <common/feature.h>
                     11: 
                     12: #if    __BORLANDC__
                     13: 
                     14: #define        CLK_TCK                 18.2
                     15: #define        CLOCKS_PER_SEC          18.2
                     16: 
                     17: #elif  __GNUDOS__
                     18: 
                     19: #define        CLK_TCK                 18.2
                     20: #define        CLOCKS_PER_SEC          18.2
                     21: 
                     22: #elif  __COHERENT__ && ! _SYSV4
                     23: 
                     24: #define        CLK_TCK                 100
                     25: #define        CLOCKS_PER_SEC          100
                     26: 
                     27: #elif  __COHERENT__ && _SYSV4
                     28: 
                     29: #include <common/ccompat.h>
                     30: 
                     31: #define        CLK_TCK                 1000000
                     32: #define        CLOCKS_PER_SEC          __sysconf (3)
                     33: 
                     34: __EXTERN_C__   long            __sysconf       PROTO ((int _name));
                     35: 
                     36: #else
                     37: 
                     38: # error The clock rate is not known for this system
                     39: 
                     40: #endif
                     41: 
                     42: 
                     43: #endif /* ! defined (__COMMON__CLKTCK_H__) */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.