📄 syscalls_105.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://personal.xfol.com/%7erezaie/syscall/syscalls_104.html">previous</A>, <A HREF="syscalls_106.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_106.html">next</A> section.<P>
<H2><A NAME="SEC105" HREF="syscalls_toc.html#SEC105" tppabs="http://personal.xfol.com/%7erezaie/syscall/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://personal.xfol.com/%7erezaie/syscall/syscalls_104.html">previous</A>, <A HREF="syscalls_106.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_106.html">next</A> section.<P>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -