Files
oldlinux-files/Ref-docs/syscalls/syscalls_105.html
2024-02-19 00:21:47 -05:00

29 lines
1.3 KiB
HTML

<html><!-- This HTML file has been created by texi2html 1.29
from syscalls.texi on 4 June 1994 -->
<TITLE>Syscall specifications of Linux - stime</TITLE>
<P>Go to the <A HREF="syscalls_104.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_104.html">previous</A>, <A HREF="syscalls_106.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_106.html">next</A> section.<P>
<H2><A NAME="SEC105" HREF="syscalls_toc.html#SEC105" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_toc.html#SEC105">stime</A></H2>
<P>
<H3>SYNOPSIS</H3>
<P>
<CODE>int stime(time_t *<VAR>t</VAR>);</CODE>
<H3>PARAMETERS</H3>
<P>
<VAR>t</VAR>: [in] the new time.
<P>
<H3>DESCRIPTION</H3>
<P>
Sets the time and date of the system. <VAR>t</VAR> is measured in seconds
since 00:00:00 GMT January 1, 1970. The calling task must have superuser
privileges for the call to succeed.
<P>
<H3>RETURN VALUE</H3>
<P>
On success zero is returned. On error -1 is returned and <CODE>errno</CODE> is
set to <CODE>EPERM</CODE> because the calling task did not have superuser
privileges.
<P>
<P>Go to the <A HREF="syscalls_104.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_104.html">previous</A>, <A HREF="syscalls_106.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_106.html">next</A> section.<P>