ftruncate.html

来自「vxworks相关论文」· HTML 代码 · 共 59 行

HTML
59
字号
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/ftruncate.html - generated by refgen from ftruncate.c --> <title> ftruncate </title></head><body bgcolor="#FFFFFF"> <hr><a name="top"></a><p align=right><a href="libIndex.html"><i>VxWorks Reference Manual :  Libraries</i></a></p></blockquote><h1>ftruncate</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>ftruncate</strong> - POSIX file truncation </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./ftruncate.html#ftruncate">ftruncate</a></i>(&nbsp;)</b>  -  truncate a file (POSIX)<br><hr><a name="ftruncate"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>ftruncate</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>ftruncate</i>(&nbsp;)</strong> - truncate a file (POSIX)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int ftruncate    (    int   fildes, /* fd of file to truncate */    off_t length  /* length to truncate file */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine truncates a file to a specified size. <p></blockquote><h4>RETURNS</h4><blockquote><p>0 (OK) or -1 (ERROR) if unable to truncate file.<p></blockquote><h4>ERRNO</h4><blockquote><p><p>&nbsp;EROFS&nbsp;<br>&nbsp;&nbsp;-&nbsp;File&nbsp;resides&nbsp;on&nbsp;a&nbsp;read-only&nbsp;file&nbsp;system.<br>&nbsp;EBADF<br>&nbsp;&nbsp;-&nbsp;File&nbsp;is&nbsp;open&nbsp;for&nbsp;reading&nbsp;only.<br>&nbsp;EINVAL<br>&nbsp;&nbsp;-&nbsp;File&nbsp;descriptor&nbsp;refers&nbsp;to&nbsp;a&nbsp;file&nbsp;on&nbsp;which&nbsp;this&nbsp;operation&nbsp;is&nbsp;impossible.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ftruncate.html#top">ftruncate</a></b></body></html>

⌨️ 快捷键说明

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