time.h
ubixos/types.h
sys/io.h
src/sys/include/ubixos/init.h
src/sys/include/ubixos/ubthread.h
src/sys/kernel/syscall.c
src/sys/kernel/time.c
src/sys/kernel/ubthread.c
ubixos/types.h
sys/_types.h
src/sys/include/ubixos/time.h
sys/io.h
src/sys/kernel/vitals.c
src/sys/include/ubixos/vitals.h
src/sys/kernel/ubthread.c
src/sys/kernel/systemtask.c
src/sys/lib/ogprintf.cc
src/sys/include/ubixos/time.h
src/sys/kernel/fork.c
src/sys/init/main.c
src/sys/include/ubixos/ubthread.h
src/sys/kernel/syscall.c
src/sys/isa/ne2k.c
src/sys/isa/atkbd.c
src/sys/include/ubixos/init.h
src/sys/vfs/mount.c
src/sys/kernel/time.c
src/sys/vmm/vmm_memory.c
src/sys/kernel/endtask.c
src/sys/vfs/file.c
src/sys/vfs/vfs.c
timespec
timeStruct
timeval
timezone
BCD_TO_BIN
val
((val)=((val)&15) + ((val)>>4)*10)
time_init
DAY
(24*HOUR)
timeMake
HOUR
(60*MINUTE)
timeMake
MINUTE
60
timeMake
YEAR
(365*DAY)
timeMake
long typedef long suseconds_t suseconds_t
__time_t typedef __time_t time_t time_t
int int gettimeofday (struct timeval *tp, struct timezone *tzp) gettimeofday struct timeval * tp struct timezone * tzp timeval::tv_sec timeval::tv_usec
int int time_init () time_init BCD_TO_BIN timeStruct::day timeStruct::hour kprintf timeStruct::min timeStruct::mon timeStruct::sec systemVitals timeCmosRead timeMake vitalsStruct::timeStart timeStruct::year
uInt32 uInt32 timeMake (struct timeStruct *time) timeMake struct timeStruct * time DAY timeStruct::day HOUR timeStruct::hour timeStruct::min MINUTE timeStruct::mon month timeStruct::sec timeStruct::year YEAR time_init

    /*****************************************************************************************
    Copyright(c)2002-2004TheUbixOSProject
    Allrightsreserved.

    Redistributionanduseinsourceandbinaryforms,withorwithoutmodification,are
    permittedprovidedthatthefollowingconditionsaremet:

    Redistributionsofsourcecodemustretaintheabovecopyrightnotice,thislistof
    conditions,thefollowingdisclaimerandthelistofauthors.Redistributionsinbinary
    formmustreproducetheabovecopyrightnotice,thislistofconditions,thefollowing
    disclaimerandthelistofauthorsinthedocumentationand/orothermaterialsprovided
    withthedistribution.NeitherthenameoftheUbixOSProjectnorthenamesofits
    contributorsmaybeusedtoendorseorpromoteproductsderivedfromthissoftware
    withoutspecificpriorwrittenpermission.

    THISSOFTWAREISPROVIDEDBYTHECOPYRIGHTHOLDERSANDCONTRIBUTORS"ASIS"ANDANY
    EXPRESSORIMPLIEDWARRANTIES,INCLUDING,BUTNOTLIMITEDTO,THEIMPLIEDWARRANTIESOF
    MERCHANTABILITYANDFITNESSFORAPARTICULARPURPOSEAREDISCLAIMED.INNOEVENTSHALL
    THECOPYRIGHTOWNERORCONTRIBUTORSBELIABLEFORANYDIRECT,INDIRECT,INCIDENTAL,
    SPECIAL,EXEMPLARY,ORCONSEQUENTIALDAMAGES(INCLUDING,BUTNOTLIMITEDTO,PROCUREMENT
    OFSUBSTITUTEGOODSORSERVICES;LOSSOFUSE,DATA,ORPROFITS;ORBUSINESSINTERRUPTION)
    HOWEVERCAUSEDANDONANYTHEORYOFLIABILITY,WHETHERINCONTRACT,STRICTLIABILITY,OR
    TORT(INCLUDINGNEGLIGENCEOROTHERWISE)ARISINGINANYWAYOUTOFTHEUSEOFTHIS
    SOFTWARE,EVENIFADVISEDOFTHEPOSSIBILITYOFSUCHDAMAGE.

    $Id: time_8h.xml 88 2016-01-12 00:11:29Z reddawg $

    *****************************************************************************************/

    #ifndef_TIME_H
    #define_TIME_H

    #include<ubixos/types.h>
    #include<sys/io.h>

    typedeflongsuseconds_t;

    #defineBCD_TO_BIN(val)((val)=((val)&15)+((val)>>4)*10)

    #defineMINUTE60
    #defineHOUR(60*MINUTE)
    #defineDAY(24*HOUR)
    #defineYEAR(365*DAY)

    #ifndef_TIME_T_DECLARED
    typedef__time_ttime_t;
    #define_TIME_T_DECLARED
    #endif

    structtimespec{
    time_ttv_sec;/*seconds*/
    longtv_nsec;/*andnanoseconds*/
    };

    structtimeStruct{
    intsec;
    intmin;
    inthour;
    intday;
    intmon;
    intyear;
    };

    structtimezone{
    inttz_minuteswest;/*minuteswestofGreenwich*/
    inttz_dsttime;/*typeofdstcorrection*/
    };

    structtimeval{
    longtv_sec;/*seconds(XXXshouldbetime_t)*/
    suseconds_ttv_usec;/*andmicroseconds*/
    };

    intgettimeofday(structtimeval*tp,structtimezone*tzp);

    inttime_init();
    uInt32timeMake(structtimeStruct*time);

    #endif

    /***
    $Log: time_8h.xml,v $
    Revision 1.6  2006/12/19 14:12:53  reddawg
    rtld-elf almost workign

    Revision1.1.1.12006/06/0112:46:14reddawg
    ubix2

    Revision1.22005/10/1200:13:37reddawg
    Removed

    Revision1.1.1.12005/09/2617:23:56reddawg
    nomessage

    Revision1.42004/07/0913:37:30reddawg
    time:timeInittotime_init
    Adjustedinitializationroutines

    Revision1.32004/06/2911:41:44reddawg
    Fixedsomeglobalvariables

    Revision1.22004/05/2115:20:00reddawg
    Cleanedup

    END
    ***/