Annotation of xinu/sys/gettime.c, revision 1.1.1.1

1.1       root        1: /* gettime.c - gettime */
                      2: 
                      3: #include <conf.h>
                      4: #include <kernel.h>
                      5: #include <date.h>
                      6: 
                      7: /*------------------------------------------------------------------------
                      8:  *  gettime  -  get local time in seconds past Jan 1, 1970
                      9:  *------------------------------------------------------------------------
                     10:  */
                     11: SYSCALL        gettime(timvar)
                     12: long   *timvar;
                     13: {
                     14:        long    now;
                     15: 
                     16:        if (getutim(&now) == SYSERR)
                     17:                return(SYSERR);
                     18:        *timvar = ut2ltim(now);                 /* adjust for timezone  */
                     19:        return(OK);
                     20: }

unix.superglobalmegacorp.com

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