add directory Ref-docs

This commit is contained in:
gohigh
2024-02-19 00:21:47 -05:00
parent 5a46ddb732
commit ef50495c9d
2492 changed files with 1609142 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
<html><!-- This HTML file has been created by texi2html 1.29
from syscalls.texi on 4 June 1994 -->
<TITLE>Syscall specifications of Linux - gettimeofday</TITLE>
<P>Go to the <A HREF="syscalls_88.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_88.html">previous</A>, <A HREF="syscalls_90.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_90.html">next</A> section.<P>
<H2><A NAME="SEC89" HREF="syscalls_toc.html#SEC89" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_toc.html#SEC89">gettimeofday and settimeofday</A></H2>
<P>
<H3>SYNOPSIS</H3>
<P>
<CODE>int gettimeofday(struct timeval *<VAR>tv</VAR>, struct timezone *<VAR>tz</VAR>);</CODE>
<P>
<CODE>int settimeofday(const struct timeval *<VAR>tv</VAR>, const struct
timezone *<VAR>tz</VAR>);</CODE>
<P>
<H3>PARAMETERS</H3>
<P>
<VAR>tv</VAR>: for <CODE>gettimeofday</CODE>, [out] points to a buffer that will
contain the time. For <CODE>settimeofday</CODE>, [in] points to a buffer
containing the new time.
<P>
<VAR>tz</VAR>: for <CODE>gettimeofday</CODE>, [out] points to a buffer that will
contain the timezone information. For <CODE>settimeofday</CODE>, [in] points
to a buffer containing the new timezone information.
<P>
<H3>DESCRIPTION</H3>
<P>
<CODE>gettimeofday</CODE> retreives the current time and timezone information.
<CODE>settimeofday</CODE> sets the current time and timezone information. Only
the superuser may call <CODE>settimeofday</CODE>. A value of <CODE>NULL</CODE> for a
parameter of <CODE>settimeofday</CODE> specifies not to change this parameter.
<P>
<H3>RETURN VALUE</H3>
<P>
On success zero is returned. On error -1 is returned and <CODE>errno</CODE> is
set to one of the following values:
<P>
<UL>
<LI><CODE>EPERM</CODE>: <CODE>settimeofday</CODE> was called but the task has not
superuser privileges.
<LI><CODE>EINVAL</CODE>.
</UL>
<P>
<P>Go to the <A HREF="syscalls_88.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_88.html">previous</A>, <A HREF="syscalls_90.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_90.html">next</A> section.<P>