Newer
Older
UbixOS / doc / xml / time_8h.xml
<?xml version='1.0' encoding='iso-8859-1' standalone='no'?>
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.4.7">
  <compounddef id="time_8h" kind="file">
    <compoundname>time.h</compoundname>
    <includes refid="types_8h" local="no">ubixos/types.h</includes>
    <includes refid="io_8h" local="no">sys/io.h</includes>
    <includedby refid="init_8h" local="no">src/sys/include/ubixos/init.h</includedby>
    <includedby refid="ubthread_8h" local="no">src/sys/include/ubixos/ubthread.h</includedby>
    <includedby refid="syscall_8c" local="no">src/sys/kernel/syscall.c</includedby>
    <includedby refid="time_8c" local="no">src/sys/kernel/time.c</includedby>
    <includedby refid="ubthread_8c" local="no">src/sys/kernel/ubthread.c</includedby>
    <incdepgraph>
      <node id="4458">
        <label>ubixos/types.h</label>
        <link refid="types_8h"/>
        <childnode refid="4459" relation="include">
        </childnode>
      </node>
      <node id="4459">
        <label>sys/_types.h</label>
        <link refid="__types_8h"/>
      </node>
      <node id="4457">
        <label>src/sys/include/ubixos/time.h</label>
        <link refid="time.h"/>
        <childnode refid="4458" relation="include">
        </childnode>
        <childnode refid="4460" relation="include">
        </childnode>
      </node>
      <node id="4460">
        <label>sys/io.h</label>
        <link refid="io_8h"/>
      </node>
    </incdepgraph>
    <invincdepgraph>
      <node id="4474">
        <label>src/sys/kernel/vitals.c</label>
        <link refid="vitals_8c"/>
      </node>
      <node id="4465">
        <label>src/sys/include/ubixos/vitals.h</label>
        <link refid="vitals_8h"/>
        <childnode refid="4462" relation="include">
        </childnode>
        <childnode refid="4466" relation="include">
        </childnode>
        <childnode refid="4467" relation="include">
        </childnode>
        <childnode refid="4468" relation="include">
        </childnode>
        <childnode refid="4469" relation="include">
        </childnode>
        <childnode refid="4470" relation="include">
        </childnode>
        <childnode refid="4471" relation="include">
        </childnode>
        <childnode refid="4472" relation="include">
        </childnode>
        <childnode refid="4473" relation="include">
        </childnode>
        <childnode refid="4474" relation="include">
        </childnode>
        <childnode refid="4475" relation="include">
        </childnode>
        <childnode refid="4476" relation="include">
        </childnode>
        <childnode refid="4477" relation="include">
        </childnode>
        <childnode refid="4478" relation="include">
        </childnode>
        <childnode refid="4479" relation="include">
        </childnode>
      </node>
      <node id="4473">
        <label>src/sys/kernel/ubthread.c</label>
        <link refid="ubthread_8c"/>
      </node>
      <node id="4471">
        <label>src/sys/kernel/systemtask.c</label>
        <link refid="systemtask_8c"/>
      </node>
      <node id="4475">
        <label>src/sys/lib/ogprintf.cc</label>
        <link refid="ogprintf_8cc"/>
      </node>
      <node id="4461">
        <label>src/sys/include/ubixos/time.h</label>
        <link refid="time.h"/>
        <childnode refid="4462" relation="include">
        </childnode>
        <childnode refid="4464" relation="include">
        </childnode>
        <childnode refid="4470" relation="include">
        </childnode>
        <childnode refid="4472" relation="include">
        </childnode>
        <childnode refid="4473" relation="include">
        </childnode>
      </node>
      <node id="4469">
        <label>src/sys/kernel/fork.c</label>
        <link refid="fork_8c"/>
      </node>
      <node id="4463">
        <label>src/sys/init/main.c</label>
        <link refid="main_8c"/>
      </node>
      <node id="4464">
        <label>src/sys/include/ubixos/ubthread.h</label>
        <link refid="ubthread_8h"/>
        <childnode refid="4465" relation="include">
        </childnode>
        <childnode refid="4473" relation="include">
        </childnode>
      </node>
      <node id="4470">
        <label>src/sys/kernel/syscall.c</label>
        <link refid="syscall_8c"/>
      </node>
      <node id="4467">
        <label>src/sys/isa/ne2k.c</label>
        <link refid="ne2k_8c"/>
      </node>
      <node id="4466">
        <label>src/sys/isa/atkbd.c</label>
        <link refid="atkbd_8c"/>
      </node>
      <node id="4462">
        <label>src/sys/include/ubixos/init.h</label>
        <link refid="init_8h"/>
        <childnode refid="4463" relation="include">
        </childnode>
      </node>
      <node id="4477">
        <label>src/sys/vfs/mount.c</label>
        <link refid="mount_8c"/>
      </node>
      <node id="4472">
        <label>src/sys/kernel/time.c</label>
        <link refid="time_8c"/>
      </node>
      <node id="4479">
        <label>src/sys/vmm/vmm_memory.c</label>
        <link refid="vmm__memory_8c"/>
      </node>
      <node id="4468">
        <label>src/sys/kernel/endtask.c</label>
        <link refid="endtask_8c"/>
      </node>
      <node id="4476">
        <label>src/sys/vfs/file.c</label>
        <link refid="file_8c"/>
      </node>
      <node id="4478">
        <label>src/sys/vfs/vfs.c</label>
        <link refid="vfs_8c"/>
      </node>
    </invincdepgraph>
    <innerclass refid="structtimespec" prot="public">timespec</innerclass>
    <innerclass refid="structtimeStruct" prot="public">timeStruct</innerclass>
    <innerclass refid="structtimeval" prot="public">timeval</innerclass>
    <innerclass refid="structtimezone" prot="public">timezone</innerclass>
      <sectiondef kind="define">
      <memberdef kind="define" id="time_8h_1da3d00d14e596527afd939066ebae6bd" prot="public" static="no">
        <name>BCD_TO_BIN</name>
        <param><defname>val</defname></param>
        <initializer>((val)=((val)&amp;15) + ((val)&gt;&gt;4)*10)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/include/ubixos/time.h" line="38" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/include/ubixos/time.h" bodystart="38" bodyend="-1"/>
        <referencedby refid="time_8c_145c7647a44b3b3eef8e44809180e86b5" compoundref="time_8c" startline="56" endline="90">time_init</referencedby>
      </memberdef>
      <memberdef kind="define" id="time_8h_1509a01c55cbe47386fe24602b7c7fda1" prot="public" static="no">
        <name>DAY</name>
        <initializer>(24*HOUR)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/include/ubixos/time.h" line="42" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/include/ubixos/time.h" bodystart="42" bodyend="-1"/>
        <referencedby refid="time_8c_150a9563bc49b27c587f341b0336bab7e" compoundref="time_8c" startline="92" endline="108">timeMake</referencedby>
      </memberdef>
      <memberdef kind="define" id="time_8h_14698ae12cf6a8acb5886fffd0ec897e6" prot="public" static="no">
        <name>HOUR</name>
        <initializer>(60*MINUTE)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/include/ubixos/time.h" line="41" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/include/ubixos/time.h" bodystart="41" bodyend="-1"/>
        <referencedby refid="time_8c_150a9563bc49b27c587f341b0336bab7e" compoundref="time_8c" startline="92" endline="108">timeMake</referencedby>
      </memberdef>
      <memberdef kind="define" id="time_8h_1c1454fa04f41c693f39425697a137d82" prot="public" static="no">
        <name>MINUTE</name>
        <initializer>60</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/include/ubixos/time.h" line="40" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/include/ubixos/time.h" bodystart="40" bodyend="-1"/>
        <referencedby refid="time_8c_150a9563bc49b27c587f341b0336bab7e" compoundref="time_8c" startline="92" endline="108">timeMake</referencedby>
      </memberdef>
      <memberdef kind="define" id="time_8h_15871356500f559add06ea81d60331b1b" prot="public" static="no">
        <name>YEAR</name>
        <initializer>(365*DAY)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/include/ubixos/time.h" line="43" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/include/ubixos/time.h" bodystart="43" bodyend="-1"/>
        <referencedby refid="time_8c_150a9563bc49b27c587f341b0336bab7e" compoundref="time_8c" startline="92" endline="108">timeMake</referencedby>
      </memberdef>
      </sectiondef>
      <sectiondef kind="typedef">
      <memberdef kind="typedef" id="time_8h_1e32f449456d5f1877a9e630e92422c01" prot="public" static="no">
        <type>long</type>
        <definition>typedef long suseconds_t</definition>
        <argsstring></argsstring>
        <name>suseconds_t</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/include/ubixos/time.h" line="36" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/include/ubixos/time.h" bodystart="36" bodyend="-1"/>
      </memberdef>
      <memberdef kind="typedef" id="time_8h_1c8234dac99fc3a2dcc8b7998afd40d49" prot="public" static="no">
        <type><ref refid="__types_8h_1c9fb8d211b39b07df423f5c3238c5f5d" kindref="member">__time_t</ref></type>
        <definition>typedef __time_t time_t</definition>
        <argsstring></argsstring>
        <name>time_t</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/include/ubixos/time.h" line="46" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/include/ubixos/time.h" bodystart="46" bodyend="-1"/>
      </memberdef>
      </sectiondef>
      <sectiondef kind="func">
      <memberdef kind="function" id="time_8h_1df30830f5265e55035171c301eb9c3fb" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int gettimeofday</definition>
        <argsstring>(struct timeval *tp, struct timezone *tzp)</argsstring>
        <name>gettimeofday</name>
        <param>
          <type>struct <ref refid="structtimeval" kindref="compound">timeval</ref> *</type>
          <declname>tp</declname>
        </param>
        <param>
          <type>struct <ref refid="structtimezone" kindref="compound">timezone</ref> *</type>
          <declname>tzp</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/include/ubixos/time.h" line="77" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/kernel/time.c" bodystart="110" bodyend="115"/>
        <references refid="structtimeval_13599199839a89e99a2ce29d45312b5cf" compoundref="time_8h" startline="73">timeval::tv_sec</references>
        <references refid="structtimeval_1810bf8fcd58e255a5c1896d19538b86a" compoundref="time_8h" startline="74">timeval::tv_usec</references>
      </memberdef>
      <memberdef kind="function" id="time_8h_145c7647a44b3b3eef8e44809180e86b5" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int time_init</definition>
        <argsstring>()</argsstring>
        <name>time_init</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/include/ubixos/time.h" line="81" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/kernel/time.c" bodystart="56" bodyend="90"/>
        <references refid="time_8h_1da3d00d14e596527afd939066ebae6bd" compoundref="time_8h" startline="38">BCD_TO_BIN</references>
        <references refid="structtimeStruct_151fdc39a8b730c40aed369102a79fb9d" compoundref="time_8h" startline="61">timeStruct::day</references>
        <references refid="structtimeStruct_16c0cf112b4706d5cacfb77116578cb5f" compoundref="time_8h" startline="60">timeStruct::hour</references>
        <references refid="kprint_8h_1b2761bdf0cca73ad0fb5880895210cd8" compoundref="kprintf_8c" startline="38" endline="49">kprintf</references>
        <references refid="structtimeStruct_157b135de22bcb0d4ade7c0409bb5a779" compoundref="time_8h" startline="59">timeStruct::min</references>
        <references refid="structtimeStruct_14fa46e55c82bc273b4333814ee5fd5aa" compoundref="time_8h" startline="62">timeStruct::mon</references>
        <references refid="structtimeStruct_1e8a295d466724bf589ab44565582058c" compoundref="time_8h" startline="58">timeStruct::sec</references>
        <references refid="vitals_8h_167aae71be472453526fc1a0bfbf80280" compoundref="timer_8S" startline="35">systemVitals</references>
        <references refid="time_8c_1087d7c6ad6802ed3e466ed1d6badf3c9" compoundref="time_8c" startline="51" endline="54">timeCmosRead</references>
        <references refid="time_8h_150a9563bc49b27c587f341b0336bab7e" compoundref="time_8c" startline="92" endline="108">timeMake</references>
        <references refid="structvitalsStruct_1c407388b447996ea3bad97aebbb5e1a6" compoundref="vitals_8h" startline="47">vitalsStruct::timeStart</references>
        <references refid="structtimeStruct_1b445a5158d90b51e249809848de5a9da" compoundref="time_8h" startline="63">timeStruct::year</references>
      </memberdef>
      <memberdef kind="function" id="time_8h_150a9563bc49b27c587f341b0336bab7e" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref></type>
        <definition>uInt32 timeMake</definition>
        <argsstring>(struct timeStruct *time)</argsstring>
        <name>timeMake</name>
        <param>
          <type>struct <ref refid="structtimeStruct" kindref="compound">timeStruct</ref> *</type>
          <declname>time</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/include/ubixos/time.h" line="82" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/kernel/time.c" bodystart="92" bodyend="108"/>
        <references refid="time_8h_1509a01c55cbe47386fe24602b7c7fda1" compoundref="time_8h" startline="42">DAY</references>
        <references refid="structtimeStruct_151fdc39a8b730c40aed369102a79fb9d" compoundref="time_8h" startline="61">timeStruct::day</references>
        <references refid="time_8h_14698ae12cf6a8acb5886fffd0ec897e6" compoundref="time_8h" startline="41">HOUR</references>
        <references refid="structtimeStruct_16c0cf112b4706d5cacfb77116578cb5f" compoundref="time_8h" startline="60">timeStruct::hour</references>
        <references refid="structtimeStruct_157b135de22bcb0d4ade7c0409bb5a779" compoundref="time_8h" startline="59">timeStruct::min</references>
        <references refid="time_8h_1c1454fa04f41c693f39425697a137d82" compoundref="time_8h" startline="40">MINUTE</references>
        <references refid="structtimeStruct_14fa46e55c82bc273b4333814ee5fd5aa" compoundref="time_8h" startline="62">timeStruct::mon</references>
        <references refid="time_8c_145d9da5c4bcc5def21490ffe633b7702" compoundref="time_8c" startline="36">month</references>
        <references refid="structtimeStruct_1e8a295d466724bf589ab44565582058c" compoundref="time_8h" startline="58">timeStruct::sec</references>
        <references refid="structtimeStruct_1b445a5158d90b51e249809848de5a9da" compoundref="time_8h" startline="63">timeStruct::year</references>
        <references refid="time_8h_15871356500f559add06ea81d60331b1b" compoundref="time_8h" startline="43">YEAR</references>
        <referencedby refid="time_8c_145c7647a44b3b3eef8e44809180e86b5" compoundref="time_8c" startline="56" endline="90">time_init</referencedby>
      </memberdef>
      </sectiondef>
    <briefdescription>
    </briefdescription>
    <detaileddescription>
    </detaileddescription>
    <programlisting>
<codeline lineno="1"><highlight class="comment">/*****************************************************************************************</highlight></codeline>
<codeline lineno="2"><highlight class="comment"><sp/>Copyright<sp/>(c)<sp/>2002-2004<sp/>The<sp/>UbixOS<sp/>Project</highlight></codeline>
<codeline lineno="3"><highlight class="comment"><sp/>All<sp/>rights<sp/>reserved.</highlight></codeline>
<codeline lineno="4"><highlight class="comment"></highlight></codeline>
<codeline lineno="5"><highlight class="comment"><sp/>Redistribution<sp/>and<sp/>use<sp/>in<sp/>source<sp/>and<sp/>binary<sp/>forms,<sp/>with<sp/>or<sp/>without<sp/>modification,<sp/>are</highlight></codeline>
<codeline lineno="6"><highlight class="comment"><sp/>permitted<sp/>provided<sp/>that<sp/>the<sp/>following<sp/>conditions<sp/>are<sp/>met:</highlight></codeline>
<codeline lineno="7"><highlight class="comment"></highlight></codeline>
<codeline lineno="8"><highlight class="comment"><sp/>Redistributions<sp/>of<sp/>source<sp/>code<sp/>must<sp/>retain<sp/>the<sp/>above<sp/>copyright<sp/>notice,<sp/>this<sp/>list<sp/>of</highlight></codeline>
<codeline lineno="9"><highlight class="comment"><sp/>conditions,<sp/>the<sp/>following<sp/>disclaimer<sp/>and<sp/>the<sp/>list<sp/>of<sp/>authors.<sp/><sp/>Redistributions<sp/>in<sp/>binary</highlight></codeline>
<codeline lineno="10"><highlight class="comment"><sp/>form<sp/>must<sp/>reproduce<sp/>the<sp/>above<sp/>copyright<sp/>notice,<sp/>this<sp/>list<sp/>of<sp/>conditions,<sp/>the<sp/>following</highlight></codeline>
<codeline lineno="11"><highlight class="comment"><sp/>disclaimer<sp/>and<sp/>the<sp/>list<sp/>of<sp/>authors<sp/>in<sp/>the<sp/>documentation<sp/>and/or<sp/>other<sp/>materials<sp/>provided</highlight></codeline>
<codeline lineno="12"><highlight class="comment"><sp/>with<sp/>the<sp/>distribution.<sp/>Neither<sp/>the<sp/>name<sp/>of<sp/>the<sp/>UbixOS<sp/>Project<sp/>nor<sp/>the<sp/>names<sp/>of<sp/>its</highlight></codeline>
<codeline lineno="13"><highlight class="comment"><sp/>contributors<sp/>may<sp/>be<sp/>used<sp/>to<sp/>endorse<sp/>or<sp/>promote<sp/>products<sp/>derived<sp/>from<sp/>this<sp/>software</highlight></codeline>
<codeline lineno="14"><highlight class="comment"><sp/>without<sp/>specific<sp/>prior<sp/>written<sp/>permission.</highlight></codeline>
<codeline lineno="15"><highlight class="comment"></highlight></codeline>
<codeline lineno="16"><highlight class="comment"><sp/>THIS<sp/>SOFTWARE<sp/>IS<sp/>PROVIDED<sp/>BY<sp/>THE<sp/>COPYRIGHT<sp/>HOLDERS<sp/>AND<sp/>CONTRIBUTORS<sp/>&quot;AS<sp/>IS&quot;<sp/>AND<sp/>ANY</highlight></codeline>
<codeline lineno="17"><highlight class="comment"><sp/>EXPRESS<sp/>OR<sp/>IMPLIED<sp/>WARRANTIES,<sp/>INCLUDING,<sp/>BUT<sp/>NOT<sp/>LIMITED<sp/>TO,<sp/>THE<sp/>IMPLIED<sp/>WARRANTIES<sp/>OF</highlight></codeline>
<codeline lineno="18"><highlight class="comment"><sp/>MERCHANTABILITY<sp/>AND<sp/>FITNESS<sp/>FOR<sp/>A<sp/>PARTICULAR<sp/>PURPOSE<sp/>ARE<sp/>DISCLAIMED.<sp/>IN<sp/>NO<sp/>EVENT<sp/>SHALL</highlight></codeline>
<codeline lineno="19"><highlight class="comment"><sp/>THE<sp/>COPYRIGHT<sp/>OWNER<sp/>OR<sp/>CONTRIBUTORS<sp/>BE<sp/>LIABLE<sp/>FOR<sp/>ANY<sp/>DIRECT,<sp/>INDIRECT,<sp/>INCIDENTAL,</highlight></codeline>
<codeline lineno="20"><highlight class="comment"><sp/>SPECIAL,<sp/>EXEMPLARY,<sp/>OR<sp/>CONSEQUENTIAL<sp/>DAMAGES<sp/>(INCLUDING,<sp/>BUT<sp/>NOT<sp/>LIMITED<sp/>TO,<sp/>PROCUREMENT</highlight></codeline>
<codeline lineno="21"><highlight class="comment"><sp/>OF<sp/>SUBSTITUTE<sp/>GOODS<sp/>OR<sp/>SERVICES;<sp/>LOSS<sp/>OF<sp/>USE,<sp/>DATA,<sp/>OR<sp/>PROFITS;<sp/>OR<sp/>BUSINESS<sp/>INTERRUPTION)</highlight></codeline>
<codeline lineno="22"><highlight class="comment"><sp/>HOWEVER<sp/>CAUSED<sp/>AND<sp/>ON<sp/>ANY<sp/>THEORY<sp/>OF<sp/>LIABILITY,<sp/>WHETHER<sp/>IN<sp/>CONTRACT,<sp/>STRICT<sp/>LIABILITY,<sp/>OR</highlight></codeline>
<codeline lineno="23"><highlight class="comment"><sp/>TORT<sp/>(INCLUDING<sp/>NEGLIGENCE<sp/>OR<sp/>OTHERWISE)<sp/>ARISING<sp/>IN<sp/>ANY<sp/>WAY<sp/>OUT<sp/>OF<sp/>THE<sp/>USE<sp/>OF<sp/>THIS</highlight></codeline>
<codeline lineno="24"><highlight class="comment"><sp/>SOFTWARE,<sp/>EVEN<sp/>IF<sp/>ADVISED<sp/>OF<sp/>THE<sp/>POSSIBILITY<sp/>OF<sp/>SUCH<sp/>DAMAGE.</highlight></codeline>
<codeline lineno="25"><highlight class="comment"></highlight></codeline>
<codeline lineno="26"><highlight class="comment"><sp/>$Id: time_8h.xml 88 2016-01-12 00:11:29Z reddawg $</highlight></codeline>
<codeline lineno="27"><highlight class="comment"></highlight></codeline>
<codeline lineno="28"><highlight class="comment">*****************************************************************************************/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="29"><highlight class="normal"></highlight></codeline>
<codeline lineno="30"><highlight class="normal"></highlight><highlight class="preprocessor">#ifndef<sp/>_TIME_H</highlight></codeline>
<codeline lineno="31"><highlight class="preprocessor"></highlight><highlight class="preprocessor">#define<sp/>_TIME_H</highlight></codeline>
<codeline lineno="32"><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="33"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;<ref refid="types_8h" kindref="compound">ubixos/types.h</ref>&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="34"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;<ref refid="io_8h" kindref="compound">sys/io.h</ref>&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="35"><highlight class="normal"></highlight></codeline>
<codeline lineno="36" refid="time_8h_1e32f449456d5f1877a9e630e92422c01" refkind="member"><highlight class="normal"></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">long</highlight><highlight class="normal"><sp/><ref refid="time_8h_1e32f449456d5f1877a9e630e92422c01" kindref="member">suseconds_t</ref>;</highlight></codeline>
<codeline lineno="37"><highlight class="normal"></highlight></codeline>
<codeline lineno="38" refid="time_8h_1da3d00d14e596527afd939066ebae6bd" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>BCD_TO_BIN(val)<sp/>((val)=((val)&amp;15)<sp/>+<sp/>((val)&gt;&gt;4)*10)</highlight></codeline>
<codeline lineno="39"><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="40" refid="time_8h_1c1454fa04f41c693f39425697a137d82" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MINUTE<sp/>60</highlight></codeline>
<codeline lineno="41" refid="time_8h_14698ae12cf6a8acb5886fffd0ec897e6" refkind="member"><highlight class="preprocessor"></highlight><highlight class="preprocessor">#define<sp/>HOUR<sp/>(60*MINUTE)</highlight></codeline>
<codeline lineno="42" refid="time_8h_1509a01c55cbe47386fe24602b7c7fda1" refkind="member"><highlight class="preprocessor"></highlight><highlight class="preprocessor">#define<sp/>DAY<sp/>(24*HOUR)</highlight></codeline>
<codeline lineno="43" refid="time_8h_15871356500f559add06ea81d60331b1b" refkind="member"><highlight class="preprocessor"></highlight><highlight class="preprocessor">#define<sp/>YEAR<sp/>(365*DAY)</highlight></codeline>
<codeline lineno="44"><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="45"><highlight class="normal"></highlight><highlight class="preprocessor">#ifndef<sp/>_TIME_T_DECLARED</highlight></codeline>
<codeline lineno="46" refid="time_8h_1c8234dac99fc3a2dcc8b7998afd40d49" refkind="member"><highlight class="preprocessor"></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/><ref refid="__types_8h_1c9fb8d211b39b07df423f5c3238c5f5d" kindref="member">__time_t</ref><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="time_8h_1c8234dac99fc3a2dcc8b7998afd40d49" kindref="member">time_t</ref>;</highlight></codeline>
<codeline lineno="47"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>_TIME_T_DECLARED</highlight></codeline>
<codeline lineno="48"><highlight class="preprocessor"></highlight><highlight class="preprocessor">#endif</highlight></codeline>
<codeline lineno="49"><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="50" refid="structtimespec" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structtimespec" kindref="compound">timespec</ref><sp/>{</highlight></codeline>
<codeline lineno="51" refid="structtimespec_1fc3302668d7cb5952f590da69fdd4955" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="time_8h_1c8234dac99fc3a2dcc8b7998afd40d49" kindref="member">time_t</ref><sp/><sp/><ref refid="structtimespec_1fc3302668d7cb5952f590da69fdd4955" kindref="member">tv_sec</ref>;<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>seconds<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="52" refid="structtimespec_1e3c7510dafa8cbcaede866ed13c99683" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">long</highlight><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="structtimespec_1e3c7510dafa8cbcaede866ed13c99683" kindref="member">tv_nsec</ref>;<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>and<sp/>nanoseconds<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="53"><highlight class="normal">};</highlight></codeline>
<codeline lineno="54"><highlight class="normal"></highlight></codeline>
<codeline lineno="55"><highlight class="normal"></highlight></codeline>
<codeline lineno="56"><highlight class="normal"></highlight></codeline>
<codeline lineno="57" refid="structtimeStruct" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structtimeStruct" kindref="compound">timeStruct</ref><sp/>{</highlight></codeline>
<codeline lineno="58" refid="structtimeStruct_1e8a295d466724bf589ab44565582058c" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="structtimeStruct_1e8a295d466724bf589ab44565582058c" kindref="member">sec</ref>;</highlight></codeline>
<codeline lineno="59" refid="structtimeStruct_157b135de22bcb0d4ade7c0409bb5a779" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="structtimeStruct_157b135de22bcb0d4ade7c0409bb5a779" kindref="member">min</ref>;</highlight></codeline>
<codeline lineno="60" refid="structtimeStruct_16c0cf112b4706d5cacfb77116578cb5f" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="structtimeStruct_16c0cf112b4706d5cacfb77116578cb5f" kindref="member">hour</ref>;</highlight></codeline>
<codeline lineno="61" refid="structtimeStruct_151fdc39a8b730c40aed369102a79fb9d" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="structtimeStruct_151fdc39a8b730c40aed369102a79fb9d" kindref="member">day</ref>;</highlight></codeline>
<codeline lineno="62" refid="structtimeStruct_14fa46e55c82bc273b4333814ee5fd5aa" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="structtimeStruct_14fa46e55c82bc273b4333814ee5fd5aa" kindref="member">mon</ref>;</highlight></codeline>
<codeline lineno="63" refid="structtimeStruct_1b445a5158d90b51e249809848de5a9da" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="structtimeStruct_1b445a5158d90b51e249809848de5a9da" kindref="member">year</ref>;</highlight></codeline>
<codeline lineno="64"><highlight class="normal"><sp/><sp/>};</highlight></codeline>
<codeline lineno="65"><highlight class="normal"></highlight></codeline>
<codeline lineno="66"><highlight class="normal"></highlight></codeline>
<codeline lineno="67" refid="structtimezone" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structtimezone" kindref="compound">timezone</ref><sp/>{</highlight></codeline>
<codeline lineno="68" refid="structtimezone_13042f7eff6e1b980728def76b1fa0eb7" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><ref refid="structtimezone_13042f7eff6e1b980728def76b1fa0eb7" kindref="member">tz_minuteswest</ref>;<sp/></highlight><highlight class="comment">/*<sp/>minutes<sp/>west<sp/>of<sp/>Greenwich<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="69" refid="structtimezone_185259977aeb63b17e6ce94f19afdfd99" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><ref refid="structtimezone_185259977aeb63b17e6ce94f19afdfd99" kindref="member">tz_dsttime</ref>;<sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>type<sp/>of<sp/>dst<sp/>correction<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="70"><highlight class="normal"><sp/><sp/>};</highlight></codeline>
<codeline lineno="71"><highlight class="normal"></highlight></codeline>
<codeline lineno="72" refid="structtimeval" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structtimeval" kindref="compound">timeval</ref><sp/>{</highlight></codeline>
<codeline lineno="73" refid="structtimeval_13599199839a89e99a2ce29d45312b5cf" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">long</highlight><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="structtimeval_13599199839a89e99a2ce29d45312b5cf" kindref="member">tv_sec</ref>;<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>seconds<sp/>(XXX<sp/>should<sp/>be<sp/>time_t)<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="74" refid="structtimeval_1810bf8fcd58e255a5c1896d19538b86a" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="time_8h_1e32f449456d5f1877a9e630e92422c01" kindref="member">suseconds_t</ref><sp/><sp/><sp/><sp/><sp/><ref refid="structtimeval_1810bf8fcd58e255a5c1896d19538b86a" kindref="member">tv_usec</ref>;<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>and<sp/>microseconds<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="75"><highlight class="normal"><sp/><sp/>};</highlight></codeline>
<codeline lineno="76"><highlight class="normal"></highlight></codeline>
<codeline lineno="77"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="time_8h_1df30830f5265e55035171c301eb9c3fb" kindref="member">gettimeofday</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structtimeval" kindref="compound">timeval</ref><sp/>*tp,</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structtimezone" kindref="compound">timezone</ref><sp/>*tzp);</highlight></codeline>
<codeline lineno="78"><highlight class="normal"></highlight></codeline>
<codeline lineno="79"><highlight class="normal"></highlight></codeline>
<codeline lineno="80"><highlight class="normal"></highlight></codeline>
<codeline lineno="81"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="time_8h_145c7647a44b3b3eef8e44809180e86b5" kindref="member">time_init</ref>();</highlight></codeline>
<codeline lineno="82"><highlight class="normal"><ref refid="types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref><sp/><ref refid="time_8h_150a9563bc49b27c587f341b0336bab7e" kindref="member">timeMake</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structtimeStruct" kindref="compound">timeStruct</ref><sp/>*time);</highlight></codeline>
<codeline lineno="83"><highlight class="normal"></highlight></codeline>
<codeline lineno="84"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight></codeline>
<codeline lineno="85"><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="86"><highlight class="normal"></highlight><highlight class="comment">/***</highlight></codeline>
<codeline lineno="87"><highlight class="comment"><sp/>$Log: time_8h.xml,v $
<codeline lineno="87"><highlight class="comment"><sp/>Revision 1.6  2006/12/19 14:12:53  reddawg
<codeline lineno="87"><highlight class="comment"><sp/>rtld-elf almost workign
<codeline lineno="87"><highlight class="comment"><sp/></highlight></codeline>
<codeline lineno="88"><highlight class="comment"><sp/>Revision<sp/>1.1.1.1<sp/><sp/>2006/06/01<sp/>12:46:14<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="89"><highlight class="comment"><sp/>ubix2</highlight></codeline>
<codeline lineno="90"><highlight class="comment"></highlight></codeline>
<codeline lineno="91"><highlight class="comment"><sp/>Revision<sp/>1.2<sp/><sp/>2005/10/12<sp/>00:13:37<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="92"><highlight class="comment"><sp/>Removed</highlight></codeline>
<codeline lineno="93"><highlight class="comment"></highlight></codeline>
<codeline lineno="94"><highlight class="comment"><sp/>Revision<sp/>1.1.1.1<sp/><sp/>2005/09/26<sp/>17:23:56<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="95"><highlight class="comment"><sp/>no<sp/>message</highlight></codeline>
<codeline lineno="96"><highlight class="comment"></highlight></codeline>
<codeline lineno="97"><highlight class="comment"><sp/>Revision<sp/>1.4<sp/><sp/>2004/07/09<sp/>13:37:30<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="98"><highlight class="comment"><sp/>time:<sp/>timeInit<sp/>to<sp/>time_init</highlight></codeline>
<codeline lineno="99"><highlight class="comment"><sp/>Adjusted<sp/>initialization<sp/>routines</highlight></codeline>
<codeline lineno="100"><highlight class="comment"></highlight></codeline>
<codeline lineno="101"><highlight class="comment"><sp/>Revision<sp/>1.3<sp/><sp/>2004/06/29<sp/>11:41:44<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="102"><highlight class="comment"><sp/>Fixed<sp/>some<sp/>global<sp/>variables</highlight></codeline>
<codeline lineno="103"><highlight class="comment"></highlight></codeline>
<codeline lineno="104"><highlight class="comment"><sp/>Revision<sp/>1.2<sp/><sp/>2004/05/21<sp/>15:20:00<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="105"><highlight class="comment"><sp/>Cleaned<sp/>up</highlight></codeline>
<codeline lineno="106"><highlight class="comment"></highlight></codeline>
<codeline lineno="107"><highlight class="comment"><sp/>END</highlight></codeline>
<codeline lineno="108"><highlight class="comment"><sp/>***/</highlight><highlight class="normal"></highlight></codeline>
    </programlisting>
    <location file="/usr/home/reddawg/source/ubix2/src/sys/include/ubixos/time.h"/>
  </compounddef>
</doxygen>