📄 ftruncate.html
字号:
<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.htm"><i>VxWorks API Reference : OS 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><a href="./ftruncate.html#ftruncate">ftruncate</a>( )</b> - truncate a file (POSIX)<br><hr><a name="ftruncate"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>ftruncate( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>ftruncate( )</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> EROFS <br> - File resides on a read-only file system.<br> EBADF<br> - File is open for reading only.<br> EINVAL<br> - File descriptor refers to a file on which this operation is 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -