Annotation of coherent/b/lib/libc/sys/time.c, revision 1.1

1.1     ! root        1: /*
        !             2:  * Routine compatible with obsolete time system
        !             3:  * call (using ftime system call).
        !             4:  */
        !             5: 
        !             6: #include <sys/timeb.h>
        !             7: #define        NULL    ((char *)0)
        !             8: 
        !             9: time_t
        !            10: time(tp)
        !            11: time_t *tp;
        !            12: {
        !            13:        struct timeb tb;
        !            14: 
        !            15:        ftime(&tb);
        !            16:        if (tp != NULL)
        !            17:                *tp = tb.time;
        !            18:        return (tb.time);
        !            19: }

unix.superglobalmegacorp.com

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