⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 syscalls_34.html

📁 Linux系统调用
💻 HTML
字号:
<!-- This HTML file has been created by texi2html 1.29
     from syscalls.texi on 4 June 1994 -->

<TITLE>Syscall specifications of Linux - utime</TITLE>
<P>Go to the <A HREF="syscalls_33.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_33.html">previous</A>, <A HREF="syscalls_35.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_35.html">next</A> section.<P>
<H2><A NAME="SEC34" HREF="syscalls_toc.html#SEC34" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_toc.html#SEC34">utime</A></H2>
<P>
<H3>SYNOPSIS</H3>
<P>
<CODE>int utime(const char *<VAR>filename</VAR>, struct utimbuf *<VAR>buf</VAR>);</CODE>
<P>
<H3>PARAMETERS</H3>
<P>
<VAR>filename</VAR>: [in] points to the path of the file to change.
<P>
<VAR>buf</VAR>: [in] points to the new times.
<P>
<H3>DESCRIPTION</H3>
<P>
Changes the access and modification times of a inode. The <CODE>utimbuf</CODE>
structure has the following layout:
<P>
<PRE>
struct utimbuf {
        time_t actime;  /* access time */
        time_t modtime; /* modification time */
};
</PRE>
<P>
If <VAR>buf</VAR> is <CODE>NULL</CODE> the times are set to the current time.
<P>
<H3>RETURN VALUE</H3>
<P>
On success, returns zero. On error, returns -1 and sets <CODE>errno</CODE> to
one of the following value:
<P>
<UL>
<LI><CODE>EROFS</CODE>, <CODE>ENOTDIR</CODE>, <CODE>ENOENT</CODE>, <CODE>EFAULT</CODE>,
<CODE>ENAMETOOLONG</CODE>, <CODE>ELOOP</CODE>, <CODE>EACCESS</CODE>, <CODE>EPERM</CODE>.
</UL>
<P>
<P>Go to the <A HREF="syscalls_33.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_33.html">previous</A>, <A HREF="syscalls_35.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_35.html">next</A> section.<P>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -