Newer
Older
ubixos / doc / html / df / d73 / time_8c.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>UbixOS: kernel/time.c File Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">UbixOS
   &#160;<span id="projectnumber">2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('../../',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('df/d73/time_8c.html','../../');});
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">time.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;<a class="el" href="../../de/df7/time_8h_source.html">ubixos/time.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="../../d2/d48/vitals_8h_source.html">ubixos/vitals.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="../../da/d28/kprintf_8h_source.html">lib/kprintf.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="../../dc/da7/assert_8h_source.html">assert.h</a>&gt;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for time.c:</div>
<div class="dyncontent">
<div class="center"><img src="../../d3/d14/time_8c__incl.png" border="0" usemap="#kernel_2time_8c" alt=""/></div>
<map name="kernel_2time_8c" id="kernel_2time_8c">
<area shape="rect" title=" " alt="" coords="681,5,778,32"/>
<area shape="rect" href="../../de/df7/time_8h.html" title=" " alt="" coords="157,976,257,1003"/>
<area shape="rect" href="../../d2/d48/vitals_8h.html" title=" " alt="" coords="1351,80,1455,107"/>
<area shape="rect" href="../../da/d28/kprintf_8h.html" title=" " alt="" coords="437,901,523,928"/>
<area shape="rect" href="../../dc/da7/assert_8h.html" title=" " alt="" coords="1479,80,1548,107"/>
<area shape="rect" href="../../d0/d27/include_2sys_2types_8h.html" title=" " alt="" coords="1000,1051,1091,1077"/>
<area shape="rect" href="../../d6/d30/__timespec_8h.html" title=" " alt="" coords="765,1200,883,1227"/>
<area shape="rect" href="../../dc/dac/io_8h.html" title=" " alt="" coords="815,1051,883,1077"/>
<area shape="rect" href="../../d0/d6f/__types_8h.html" title=" " alt="" coords="953,1275,1050,1301"/>
<area shape="rect" href="../../d9/dab/select_8h.html" title=" " alt="" coords="999,1125,1092,1152"/>
<area shape="rect" href="../../d6/d92/cdefs_8h.html" title=" " alt="" coords="1213,1200,1302,1227"/>
<area shape="rect" href="../../df/dc5/__timeval_8h.html" title=" " alt="" coords="1083,1200,1189,1227"/>
<area shape="rect" href="../../d6/da4/__sigset_8h.html" title=" " alt="" coords="907,1200,1007,1227"/>
<area shape="rect" href="../../df/d63/spinlock_8h.html" title=" " alt="" coords="1789,229,1912,256"/>
<area shape="rect" href="../../db/da9/include_2vfs_2vfs_8h.html" title=" " alt="" coords="1369,155,1436,181"/>
<area shape="rect" href="../../d6/db4/include_2vfs_2file_8h.html" title=" " alt="" coords="1323,752,1391,779"/>
<area shape="rect" href="../../db/dd5/thread_8h.html" title=" " alt="" coords="1501,827,1595,853"/>
<area shape="rect" href="../../d1/df2/wait_8h.html" title=" " alt="" coords="859,901,957,928"/>
<area shape="rect" href="../../d2/d29/mount_8h.html" title=" " alt="" coords="711,827,799,853"/>
<area shape="rect" href="../../d3/d7e/sysproto__posix_8h.html" title=" " alt="" coords="1389,677,1536,704"/>
<area shape="rect" href="../../d7/d97/net_8h.html" title=" " alt="" coords="545,229,618,256"/>
<area shape="rect" href="../../d1/de9/dirCache_8h.html" title=" " alt="" coords="885,976,1008,1003"/>
<area shape="rect" href="../../d3/d73/inode_8h.html" title=" " alt="" coords="1145,827,1228,853"/>
<area shape="rect" href="../../df/d42/ufs_8h.html" title=" " alt="" coords="1322,901,1393,928"/>
<area shape="rect" href="../../d7/d0b/trap_8h.html" title=" " alt="" coords="1584,901,1664,928"/>
<area shape="rect" href="../../df/d92/sys_2signal_8h.html" title=" " alt="" coords="1417,901,1509,928"/>
<area shape="rect" href="../../d8/d01/resource_8h.html" title=" " alt="" coords="1543,1125,1651,1152"/>
<area shape="rect" href="../../d6/d35/i386_2cpu_8h.html" title=" " alt="" coords="1581,976,1664,1003"/>
<area shape="rect" href="../../d1/d7d/pipe__fs_8h.html" title=" " alt="" coords="1083,901,1171,928"/>
<area shape="rect" href="../../d8/dff/msdos__fs_8h.html" title=" " alt="" coords="1195,901,1298,928"/>
<area shape="rect" href="../../d4/d7e/include_2sys_2device_8h.html" title=" " alt="" coords="1119,976,1214,1003"/>
<area shape="rect" href="../../d9/d69/netif_8h.html" title=" " alt="" coords="542,304,621,331"/>
<area shape="rect" href="../../dc/dba/opt_8h.html" title=" " alt="" coords="741,677,814,704"/>
<area shape="rect" href="../../d6/d40/err_8h.html" title=" " alt="" coords="207,603,278,629"/>
<area shape="rect" href="../../de/df7/ip__addr_8h.html" title=" " alt="" coords="833,453,930,480"/>
<area shape="rect" href="../../d4/da4/def_8h.html" title=" " alt="" coords="779,603,851,629"/>
<area shape="rect" href="../../d0/d35/pbuf_8h.html" title=" " alt="" coords="195,528,274,555"/>
<area shape="rect" href="../../d9/d9b/stats_8h.html" title=" " alt="" coords="606,379,690,405"/>
<area shape="rect" href="../../d2/d78/lwipopts_8h.html" title=" " alt="" coords="809,752,911,779"/>
<area shape="rect" href="../../db/d16/debug_8h.html" title=" " alt="" coords="693,752,784,779"/>
<area shape="rect" href="../../d2/d2d/arch_8h.html" title=" " alt="" coords="541,827,621,853"/>
<area shape="rect" href="../../dc/df0/cc_8h.html" title=" " alt="" coords="272,901,371,928"/>
<area shape="rect" href="../../d3/d24/kpanic_8h.html" title=" " alt="" coords="619,901,733,928"/>
<area shape="rect" href="../../d1/d2d/stdarg_8h.html" title=" " alt="" coords="475,976,544,1003"/>
<area shape="rect" href="../../d1/da8/ip4__addr_8h.html" title=" " alt="" coords="957,528,1061,555"/>
<area shape="rect" href="../../d3/d7d/ip6__addr_8h.html" title=" " alt="" coords="829,528,933,555"/>
<area shape="rect" href="../../d9/d9a/mem_8h.html" title=" " alt="" coords="378,603,462,629"/>
<area shape="rect" href="../../df/dff/memp_8h.html" title=" " alt="" coords="603,453,693,480"/>
<area shape="rect" href="../../d6/d7f/memp__std_8h.html" title=" " alt="" coords="565,528,704,555"/>
<area shape="rect" href="../../d5/d70/memp__priv_8h.html" title=" " alt="" coords="350,528,490,555"/>
</map>
</div>
</div>
<p><a href="../../df/d73/time_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:adf30830f5265e55035171c301eb9c3fb"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d73/time_8c.html#adf30830f5265e55035171c301eb9c3fb">gettimeofday</a> (struct <a class="el" href="../../d1/d1b/structtimeval.html">timeval</a> *tp, struct <a class="el" href="../../de/dc1/structtimezone.html">timezone</a> *tzp)</td></tr>
<tr class="separator:adf30830f5265e55035171c301eb9c3fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45c7647a44b3b3eef8e44809180e86b5"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d73/time_8c.html#a45c7647a44b3b3eef8e44809180e86b5">time_init</a> ()</td></tr>
<tr class="separator:a45c7647a44b3b3eef8e44809180e86b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae380db5538cf415ed920ff3873aa4207"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d0/d27/include_2sys_2types_8h.html#a0238af00180b6d9278fa1c6aa790fdf4">uint32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d73/time_8c.html#ae380db5538cf415ed920ff3873aa4207">timeMake</a> (struct <a class="el" href="../../d3/d26/structtimeStruct.html">timeStruct</a> *time)</td></tr>
<tr class="separator:ae380db5538cf415ed920ff3873aa4207"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="adf30830f5265e55035171c301eb9c3fb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adf30830f5265e55035171c301eb9c3fb">&#9670;&nbsp;</a></span>gettimeofday()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int gettimeofday </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="../../d1/d1b/structtimeval.html">timeval</a> *&#160;</td>
          <td class="paramname"><em>tp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="../../de/dc1/structtimezone.html">timezone</a> *&#160;</td>
          <td class="paramname"><em>tzp</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../df/d73/time_8c_source.html#l00110">110</a> of file <a class="el" href="../../df/d73/time_8c_source.html">time.c</a>.</p>

<p class="reference">References <a class="el" href="../../d2/d4e/vitals_8c_source.html#l00035">systemVitals</a>, <a class="el" href="../../d2/d48/vitals_8h_source.html#l00038">vitalsStruct::sysUptime</a>, <a class="el" href="../../d2/d48/vitals_8h_source.html#l00046">vitalsStruct::timeStart</a>, <a class="el" href="../../df/dc5/__timeval_8h_source.html#l00018">timeval::tv_sec</a>, <a class="el" href="../../df/dc5/__timeval_8h_source.html#l00019">timeval::tv_usec</a>, <a class="el" href="../../de/df7/time_8h_source.html#l00057">timezone::tz_dsttime</a>, and <a class="el" href="../../de/df7/time_8h_source.html#l00056">timezone::tz_minuteswest</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../d3/d0a/gen__calls_8c_source.html#l00354">sys_gettimeofday()</a>, <a class="el" href="../../d9/d56/sys__arch_8c_source.html#l00032">sys_init()</a>, and <a class="el" href="../../d9/d56/sys__arch_8c_source.html#l00482">sys_unix_now()</a>.</p>

</div>
</div>
<a id="a45c7647a44b3b3eef8e44809180e86b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a45c7647a44b3b3eef8e44809180e86b5">&#9670;&nbsp;</a></span>time_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int time_init </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../df/d73/time_8c_source.html#l00052">52</a> of file <a class="el" href="../../df/d73/time_8c_source.html">time.c</a>.</p>

</div>
</div>
<a id="ae380db5538cf415ed920ff3873aa4207"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae380db5538cf415ed920ff3873aa4207">&#9670;&nbsp;</a></span>timeMake()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d0/d27/include_2sys_2types_8h.html#a0238af00180b6d9278fa1c6aa790fdf4">uint32_t</a> timeMake </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="../../d3/d26/structtimeStruct.html">timeStruct</a> *&#160;</td>
          <td class="paramname"><em>time</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../df/d73/time_8c_source.html#l00087">87</a> of file <a class="el" href="../../df/d73/time_8c_source.html">time.c</a>.</p>

<p class="reference">References <a class="el" href="../../de/df7/time_8h_source.html#l00042">DAY</a>, <a class="el" href="../../de/df7/time_8h_source.html#l00043">YEAR</a>, and <a class="el" href="../../de/df7/time_8h_source.html#l00052">timeStruct::year</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_dc43877d82dd332f9fb2071fcca799d6.html">kernel</a></li><li class="navelem"><a class="el" href="../../df/d73/time_8c.html">time.c</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.16 </li>
  </ul>
</div>
</body>
</html>