亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? library_13.html

?? Glibc的中文手冊
?? HTML
?? 第 1 頁 / 共 5 頁
字號:
<A NAME="IDX766"></A>
<U>Function:</U> int <B>remove</B> <I>(const char *<VAR>filename</VAR>)</I><P>
The <CODE>remove</CODE> function is another name for <CODE>unlink</CODE>.
<CODE>remove</CODE> is the ANSI C name, whereas <CODE>unlink</CODE> is the POSIX.1
name.  The name <CODE>remove</CODE> is declared in <TT>`stdio.h'</TT>.
<A NAME="IDX767"></A>
<P>
<A NAME="IDX768"></A>
<A NAME="IDX769"></A>
<A NAME="IDX770"></A>
<U>Function:</U> int <B>rmdir</B> <I>(const char *<VAR>filename</VAR>)</I><P>
The <CODE>rmdir</CODE> function deletes a directory.  The directory must be
empty before it can be removed; in other words, it can only contain
entries for <TT>`.'</TT> and <TT>`..'</TT>.
<P>
In most other respects, <CODE>rmdir</CODE> behaves like <CODE>unlink</CODE>.  There
are two additional <CODE>errno</CODE> error conditions defined for
<CODE>rmdir</CODE>:
<P>
<DL COMPACT>
<DT><CODE>EEXIST</CODE>
<DD><DT><CODE>ENOTEMPTY</CODE>
<DD>The directory to be deleted is not empty.  
</DL>
<P>
These two error codes are synonymous; some systems use one, and some
use the other.
<P>
The prototype for this function is declared in the header file
<TT>`unistd.h'</TT>.
<A NAME="IDX771"></A>
<P>
<H2><A NAME="SEC198" HREF="library_toc.html#SEC198" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_toc.html#SEC198">Renaming Files</A></H2>
<P>
The <CODE>rename</CODE> function is used to change a file's name.
<A NAME="IDX772"></A>
<P>
<A NAME="IDX773"></A>
<U>Function:</U> int <B>rename</B> <I>(const char *<VAR>oldname</VAR>, const char *<VAR>newname</VAR>)</I><P>
The <CODE>rename</CODE> function renames the file name <VAR>oldname</VAR> with
<VAR>newname</VAR>.  The file formerly accessible under the name
<VAR>oldname</VAR> is afterward accessible as <VAR>newname</VAR> instead.  (If the
file had any other names aside from <VAR>oldname</VAR>, it continues to have
those names.)
<P>
The directory containing the name <VAR>newname</VAR> must be on the same
file system as the file (as indicated by the name <VAR>oldname</VAR>).
<P>
One special case for <CODE>rename</CODE> is when <VAR>oldname</VAR> and
<VAR>newname</VAR> are two names for the same file.  The consistent way to
handle this case is to delete <VAR>oldname</VAR>.  However, POSIX says that
in this case <CODE>rename</CODE> does nothing and reports success--which is
inconsistent.  We don't know what your operating system will do.  The
GNU system, when completed, will probably do the right thing (delete
<VAR>oldname</VAR>) unless you explicitly request strict POSIX compatibility
"even when it hurts".
<P>
If the <VAR>oldname</VAR> is not a directory, then any existing file named
<VAR>newname</VAR> is removed during the renaming operation.  However, if
<VAR>newname</VAR> is the name of a directory, <CODE>rename</CODE> fails in this
case.
<P>
If the <VAR>oldname</VAR> is a directory, then either <VAR>newname</VAR> must not
exist or it must name a directory that is empty.  In the latter case,
the existing directory named <VAR>newname</VAR> is deleted first.  The name
<VAR>newname</VAR> must not specify a subdirectory of the directory
<CODE>oldname</CODE> which is being renamed.
<P>
One useful feature of <CODE>rename</CODE> is that the meaning of the name
<VAR>newname</VAR> changes "atomically" from any previously existing file
by that name to its new meaning (the file that was called
<VAR>oldname</VAR>).  There is no instant at which <VAR>newname</VAR> is
nonexistent "in between" the old meaning and the new meaning.
<P>
If <CODE>rename</CODE> fails, it returns <CODE>-1</CODE>.  In addition to the usual
file name syntax errors (see section <A HREF="library_10.html#SEC115" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_10.html#SEC115">File Name Errors</A>), the following
<CODE>errno</CODE> error conditions are defined for this function:
<P>
<DL COMPACT>
<DT><CODE>EACCES</CODE>
<DD>One of the directories containing <VAR>newname</VAR> or <VAR>oldname</VAR>
refuses write permission; or <VAR>newname</VAR> and <VAR>oldname</VAR> are
directories and write permission is refused for one of them.
<P>
<DT><CODE>EBUSY</CODE>
<DD>A directory named by <VAR>oldname</VAR> or <VAR>newname</VAR> is being used by
the system in a way that prevents the renaming from working.  This includes
directories that are mount points for filesystems, and directories
that are the current working directories of processes.
<P>
<DT><CODE>EEXIST</CODE>
<DD>The directory <VAR>newname</VAR> isn't empty.
<P>
<DT><CODE>ENOTEMPTY</CODE>
<DD>The directory <VAR>newname</VAR> isn't empty.
<P>
<DT><CODE>EINVAL</CODE>
<DD>The <VAR>oldname</VAR> is a directory that contains <VAR>newname</VAR>.
<P>
<DT><CODE>EISDIR</CODE>
<DD>The <VAR>newname</VAR> names a directory, but the <VAR>oldname</VAR> doesn't.
<P>
<DT><CODE>EMLINK</CODE>
<DD>The parent directory of <VAR>newname</VAR> would have too many links.
<P>
Well-designed file systems never report this error, because they permit
more links than your disk could possibly hold.  However, you must still
take account of the possibility of this error, as it could result from
network access to a file system on another machine.
<P>
<DT><CODE>ENOENT</CODE>
<DD>The file named by <VAR>oldname</VAR> doesn't exist.
<P>
<DT><CODE>ENOSPC</CODE>
<DD>The directory that would contain <VAR>newname</VAR> has no room for another
entry, and there is no space left in the file system to expand it.
<P>
<DT><CODE>EROFS</CODE>
<DD>The operation would involve writing to a directory on a read-only file
system.
<P>
<DT><CODE>EXDEV</CODE>
<DD>The two file names <VAR>newname</VAR> and <VAR>oldnames</VAR> are on different
file systems.
</DL>
<P>
<A NAME="IDX774"></A>
<A NAME="IDX775"></A>
<H2><A NAME="SEC199" HREF="library_toc.html#SEC199" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_toc.html#SEC199">Creating Directories</A></H2>
<A NAME="IDX776"></A>
<P>
Directories are created with the <CODE>mkdir</CODE> function.  (There is also
a shell command <CODE>mkdir</CODE> which does the same thing.)
<P>
<A NAME="IDX777"></A>
<U>Function:</U> int <B>mkdir</B> <I>(const char *<VAR>filename</VAR>, mode_t <VAR>mode</VAR>)</I><P>
The <CODE>mkdir</CODE> function creates a new, empty directory whose name is
<VAR>filename</VAR>.
<P>
The argument <VAR>mode</VAR> specifies the file permissions for the new
directory file.  See section <A HREF="library_13.html#SEC205" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_13.html#SEC205">The Mode Bits for Access Permission</A>, for more information about
this.
<P>
A return value of <CODE>0</CODE> indicates successful completion, and
<CODE>-1</CODE> indicates failure.  In addition to the usual file name syntax
errors (see section <A HREF="library_10.html#SEC115" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_10.html#SEC115">File Name Errors</A>), the following <CODE>errno</CODE> error
conditions are defined for this function:
<P>
<DL COMPACT>
<DT><CODE>EACCES</CODE>
<DD>Write permission is denied for the parent directory in which the new
directory is to be added.
<P>
<DT><CODE>EEXIST</CODE>
<DD>A file named <VAR>filename</VAR> already exists.
<P>
<DT><CODE>EMLINK</CODE>
<DD>The parent directory has too many links.
<P>
Well-designed file systems never report this error, because they permit
more links than your disk could possibly hold.  However, you must still
take account of the possibility of this error, as it could result from
network access to a file system on another machine.
<P>
<DT><CODE>ENOSPC</CODE>
<DD>The file system doesn't have enough room to create the new directory.
<P>
<DT><CODE>EROFS</CODE>
<DD>The parent directory of the directory being created is on a read-only
file system, and cannot be modified.
</DL>
<P>
To use this function, your program should include the header file
<TT>`sys/stat.h'</TT>.
<A NAME="IDX778"></A>
<P>
<H2><A NAME="SEC200" HREF="library_toc.html#SEC200" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_toc.html#SEC200">File Attributes</A></H2>
<A NAME="IDX779"></A>
<P>
When you issue an <SAMP>`ls -l'</SAMP> shell command on a file, it gives you
information about the size of the file, who owns it, when it was last
modified, and the like.  This kind of information is called the
<DFN>file attributes</DFN>; it is associated with the file itself and not a
particular one of its names.
<P>
This section contains information about how you can inquire about and
modify these attributes of files.
<P>
<A NAME="IDX780"></A>
<A NAME="IDX781"></A>
<A NAME="IDX782"></A>
<H3><A NAME="SEC201" HREF="library_toc.html#SEC201" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_toc.html#SEC201">What the File Attribute Values Mean</A></H3>
<P>
When you read the attributes of a file, they come back in a structure
called <CODE>struct stat</CODE>.  This section describes the names of the
attributes, their data types, and what they mean.  For the functions
to read the attributes of a file, see section <A HREF="library_13.html#SEC202" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_13.html#SEC202">Reading the Attributes of a File</A>.
<P>
The header file <TT>`sys/stat.h'</TT> declares all the symbols defined
in this section.
<A NAME="IDX783"></A>
<P>
<A NAME="IDX784"></A>
<U>Data Type:</U> <B>struct stat</B><P>
The <CODE>stat</CODE> structure type is used to return information about the
attributes of a file.  It contains at least the following members:
<P>
<DL COMPACT>
<DT><CODE>mode_t st_mode</CODE>
<DD>Specifies the mode of the file.  This includes file type information
(see section <A HREF="library_13.html#SEC203" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_13.html#SEC203">Testing the Type of a File</A>) and the file permission bits
(see section <A HREF="library_13.html#SEC205" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_13.html#SEC205">The Mode Bits for Access Permission</A>).
<P>
<DT><CODE>ino_t st_ino</CODE>
<DD>The file serial number, which distinguishes this file from all other
files on the same device.
<P>
<DT><CODE>dev_t st_dev</CODE>
<DD>Identifies the device containing the file.  The <CODE>st_ino</CODE> and
<CODE>st_dev</CODE>, taken together, uniquely identify the file.
<P>
<DT><CODE>nlink_t st_nlink</CODE>
<DD>The number of hard links to the file.  This count keeps track of how many
directories have entries for this file.  If the count is ever
decremented to zero, then the file itself is discarded.  Symbolic links
are not counted in the total.
<P>
<DT><CODE>uid_t st_uid</CODE>
<DD>The user ID of the file's owner.  See section <A HREF="library_13.html#SEC204" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_13.html#SEC204">File Owner</A>.
<P>
<DT><CODE>gid_t st_gid</CODE>
<DD>The group ID of the file.  See section <A HREF="library_13.html#SEC204" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_13.html#SEC204">File Owner</A>.
<P>
<DT><CODE>off_t st_size</CODE>
<DD>This specifies the size of a regular file in bytes.  For files that
are really devices and the like, this field isn't usually meaningful.
<P>
<DT><CODE>time_t st_atime</CODE>
<DD>This is the last access time for the file.  See section <A HREF="library_13.html#SEC209" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_13.html#SEC209">File Times</A>.
<P>
<DT><CODE>unsigned long int st_atime_usec</CODE>
<DD>This is the fractional part of the last access time for the file.
See section <A HREF="library_13.html#SEC209" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_13.html#SEC209">File Times</A>.
<P>
<DT><CODE>time_t st_mtime</CODE>
<DD>This is the time of the last modification to the contents of the file.
See section <A HREF="library_13.html#SEC209" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_13.html#SEC209">File Times</A>.
<P>
<DT><CODE>unsigned long int st_mtime_usec</CODE>
<DD>This is the fractional part of the time of last modification to the
contents of the file.  See section <A HREF="library_13.html#SEC209" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_13.html#SEC209">File Times</A>.
<P>
<DT><CODE>time_t st_ctime</CODE>
<DD>This is the time of the last modification to the attributes of the file.
See section <A HREF="library_13.html#SEC209" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_13.html#SEC209">File Times</A>.
<P>
<DT><CODE>unsigned long int st_ctime_usec</CODE>
<DD>This is the fractional part of the time of last modification to the
attributes of the file.  See section <A HREF="library_13.html#SEC209" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_13.html#SEC209">File Times</A>.
<P>
<DT><CODE>unsigned int st_nblocks</CODE>
<DD>This is the amount of disk space that the file occupies, measured in
units of 512-byte blocks.
<P>
The number of disk blocks is not strictly proportional to the size of
the file, for two reasons: the file system may use some blocks for
internal record keeping; and the file may be sparse--it may have
"holes" which contain zeros but do not actually take up space on the
disk.
<P>
You can tell (approximately) whether a file is sparse by comparing this
value with <CODE>st_size</CODE>, like this:
<P>
<PRE>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
婷婷开心激情综合| 夜夜精品视频一区二区| 欧美一区二区在线不卡| 国产成人在线电影| 精品系列免费在线观看| 日韩精品五月天| 欧美不卡在线视频| www国产成人| 色香蕉久久蜜桃| 欧美性色aⅴ视频一区日韩精品| 99在线热播精品免费| 成人福利在线看| 色婷婷激情综合| 欧美无砖砖区免费| 91麻豆精品国产91久久久久久久久| 欧美日韩欧美一区二区| 91麻豆产精品久久久久久| 在线观看亚洲成人| 日韩欧美亚洲国产另类| 久久久国产午夜精品| 日韩一区二区三区观看| 国产午夜精品一区二区| 中文字幕在线不卡国产视频| 夜夜嗨av一区二区三区网页| 极品少妇xxxx偷拍精品少妇| 成人v精品蜜桃久久一区| 91精品久久久久久久99蜜桃| 欧美性猛交一区二区三区精品| 欧美色综合网站| 国产精品伦一区二区三级视频| 亚洲欧洲99久久| 精品一区二区日韩| 欧美日韩国产高清一区二区三区| 精品国产一区二区三区久久久蜜月 | 欧美日韩高清在线| 欧美经典三级视频一区二区三区| 国产精品久久久爽爽爽麻豆色哟哟| 亚洲综合激情另类小说区| 国产精品18久久久久久久网站| 欧美视频三区在线播放| 国产精品国产三级国产三级人妇 | 欧美三级电影在线观看| 一区二区三国产精华液| 欧美亚洲高清一区二区三区不卡| 亚洲欧美日韩一区| 91福利在线免费观看| 亚洲一区在线观看网站| 欧美丰满少妇xxxbbb| 麻豆精品精品国产自在97香蕉| 欧美va亚洲va香蕉在线| 国产ts人妖一区二区| 亚洲精品中文在线| 日韩欧美成人午夜| 成人精品国产免费网站| 夜夜嗨av一区二区三区中文字幕| 欧美美女直播网站| 国产伦精品一区二区三区免费迷| 一区二区欧美在线观看| 欧美一区二区三区视频免费播放| 狠狠色丁香久久婷婷综| 亚洲六月丁香色婷婷综合久久| 欧美丰满嫩嫩电影| 成人动漫一区二区| 国内精品不卡在线| 国产乱码精品一区二区三| 亚洲猫色日本管| 97久久超碰国产精品| 久久色.com| 日本欧美肥老太交大片| 国产精品国产a| 欧美日韩一卡二卡三卡 | 91亚洲永久精品| 日本成人在线视频网站| 一区二区成人在线| 国产精品久久久久久久久久久免费看| 91精品国产综合久久小美女| 不卡的av电影在线观看| 黑人精品欧美一区二区蜜桃| 午夜精品久久久久久久久久| 精品久久人人做人人爽| 成人黄色免费短视频| 久草这里只有精品视频| 久久机这里只有精品| 日本成人在线一区| 日韩高清一级片| 日本不卡一二三区黄网| 一区二区视频免费在线观看| 亚洲蜜桃精久久久久久久| 中文字幕在线观看一区| 亚洲人成网站精品片在线观看| 国产精品不卡一区二区三区| 国产精品久久久久久一区二区三区| 欧美精品一区二区三区蜜臀| 国产三级欧美三级| 国产精品久久久久影院亚瑟| 亚洲摸摸操操av| 日本大胆欧美人术艺术动态| 日韩成人一级片| 国产成人一级电影| proumb性欧美在线观看| 在线观看一区不卡| 久久蜜桃一区二区| 亚洲影院在线观看| 韩国v欧美v亚洲v日本v| 一本色道久久综合狠狠躁的推荐| 欧美午夜片在线观看| 久久综合网色—综合色88| 欧美国产日韩亚洲一区| 午夜视频在线观看一区| 福利电影一区二区| 欧美日韩一级片网站| 国产精品女上位| 蜜桃视频第一区免费观看| 不卡高清视频专区| 日韩精品一区二区在线观看| 亚洲欧美在线观看| 国模套图日韩精品一区二区| 欧洲精品视频在线观看| 日韩理论片一区二区| 国产成人午夜精品影院观看视频| 欧美美女喷水视频| 一区二区三区四区在线| gogogo免费视频观看亚洲一| xf在线a精品一区二区视频网站| 性做久久久久久久免费看| 99久久精品免费看国产免费软件| 久久免费视频一区| 国产专区综合网| 欧美精品一区二区三区很污很色的 | 最新中文字幕一区二区三区| 国产精品中文字幕欧美| 精品久久久久久综合日本欧美| 婷婷六月综合亚洲| 欧美一区二区女人| 免费在线看成人av| 日韩欧美亚洲国产另类| 国产乱码精品一区二区三区av| 久久一区二区视频| av在线不卡观看免费观看| 国产精品高潮呻吟| 色婷婷av一区二区三区之一色屋| 亚洲免费av在线| 欧美日韩另类一区| 精品一二三四在线| 亚洲精品欧美二区三区中文字幕| 91免费在线播放| 美脚の诱脚舐め脚责91 | 国产乱码精品1区2区3区| 欧美激情艳妇裸体舞| 欧美网站一区二区| 韩国av一区二区三区四区| 一区二区三区中文字幕| 日韩欧美一区二区视频| 成人福利在线看| 日韩国产精品久久久| 国产精品无码永久免费888| 欧美肥妇bbw| 波多野结衣欧美| 国产一区在线观看视频| 亚洲成人1区2区| 亚洲日本欧美天堂| 日韩欧美久久久| 欧美猛男男办公室激情| 波多野结衣视频一区| 国内精品免费**视频| 免费看黄色91| 日韩精品高清不卡| 亚洲午夜免费视频| 中文字幕亚洲欧美在线不卡| 精品国产麻豆免费人成网站| 欧美日韩国产高清一区二区| 91久久香蕉国产日韩欧美9色| 日日摸夜夜添夜夜添亚洲女人| 亚洲精品成人天堂一二三| 中文字幕在线免费不卡| 欧美韩日一区二区三区| 一区二区三区在线视频播放| 91精品国产综合久久精品| 国产馆精品极品| 亚洲国产aⅴ天堂久久| 国产区在线观看成人精品| 99久久久精品| 粉嫩av一区二区三区| 亚洲精选免费视频| 欧美日韩一区精品| 欧美日本乱大交xxxxx| 欧美日韩情趣电影| 日韩精品一区二区在线观看| 国产午夜亚洲精品羞羞网站| 国产精品免费aⅴ片在线观看| 国产精品免费网站在线观看| 亚洲天堂福利av| 日韩av电影天堂| 国产不卡视频一区| 欧美性猛交xxxxxx富婆| 日韩视频一区二区三区在线播放| 久久久精品免费观看| 久久久综合视频| 亚洲欧美另类图片小说| 日韩av电影免费观看高清完整版 |