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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? library_2.html

?? Glibc的中文手冊
?? HTML
?? 第 1 頁 / 共 2 頁
字號:
<!-- This HTML file has been created by texi2html 1.27
     from library.texinfo on 3 March 1994 -->

<TITLE>The GNU C Library - Error Reporting</TITLE>
<P>Go to the <A HREF="library_1.html" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_1.html">previous</A>, <A HREF="library_3.html" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_3.html">next</A> section.<P>
<A NAME="IDX41"></A>
<A NAME="IDX42"></A>
<A NAME="IDX43"></A>
<A NAME="IDX44"></A>
<H1><A NAME="SEC14" HREF="library_toc.html#SEC14" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_toc.html#SEC14">Error Reporting</A></H1>
<P>
Many functions in the GNU C library detect and report error conditions,
and sometimes your programs need to check for these error conditions.
For example, when you open an input file, you should verify that the
file was actually opened correctly, and print an error message or take
other appropriate action if the call to the library function failed.
<P>
This chapter describes how the error reporting facility works.  Your
program should include the header file <TT>`errno.h'</TT> to use this
facility.
<A NAME="IDX45"></A>
<P>
<H2><A NAME="SEC15" HREF="library_toc.html#SEC15" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_toc.html#SEC15">Checking for Errors</A></H2>
<P>
Most library functions return a special value to indicate that they have
failed.  The special value is typically <CODE>-1</CODE>, a null pointer, or a
constant such as <CODE>EOF</CODE> that is defined for that purpose.  But this
return value tells you only that an error has occurred.  To find out
what kind of error it was, you need to look at the error code stored in the
variable <CODE>errno</CODE>.  This variable is declared in the header file
<TT>`errno.h'</TT>.
<A NAME="IDX46"></A>
<P>
<A NAME="IDX47"></A>
<U>Variable:</U> volatile int <B>errno</B><P>
The variable <CODE>errno</CODE> contains the system error number.  You can
change the value of <CODE>errno</CODE>.
<P>
Since <CODE>errno</CODE> is declared <CODE>volatile</CODE>, it might be changed
asynchronously by a signal handler; see section <A HREF="library_21.html#SEC351" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_21.html#SEC351">Defining Signal Handlers</A>.
However, a properly written signal handler saves and restores the value
of <CODE>errno</CODE>, so you generally do not need to worry about this
possibility except when writing signal handlers.
<P>
The initial value of <CODE>errno</CODE> at program startup is zero.  Many
library functions are guaranteed to set it to certain nonzero values
when they encounter certain kinds of errors.  These error conditions are
listed for each function.  These functions do not change <CODE>errno</CODE>
when they succeed; thus, the value of <CODE>errno</CODE> after a successful
call is not necessarily zero, and you should not use <CODE>errno</CODE> to
determine <EM>whether</EM> a call failed.  The proper way to do that is
documented for each function.  <EM>If</EM> the call the failed, you can
examine <CODE>errno</CODE>.
<P>
Many library functions can set <CODE>errno</CODE> to a nonzero value as a
result of calling other library functions which might fail.  You should
assume that any library function might alter <CODE>errno</CODE>.
<P>
<STRONG>Portability Note:</STRONG> ANSI C specifies <CODE>errno</CODE> as a
"modifiable lvalue" rather than as a variable, permitting it to be
implemented as a macro.  For example, its expansion might involve a
function call, like <CODE>*_errno ()</CODE>.  In fact, that is what it is
on the GNU system itself.  The GNU library, on non-GNU systems, does
whatever is right for the particular system.
<P>
There are a few library functions, like <CODE>sqrt</CODE> and <CODE>atan</CODE>,
that return a perfectly legitimate value in case of an error, but also
set <CODE>errno</CODE>.  For these functions, if you want to check to see
whether an error occurred, the recommended method is to set <CODE>errno</CODE>
to zero before calling the function, and then check its value afterward.
<P>
<A NAME="IDX48"></A>
<P>
All the error codes have symbolic names; they are macros defined in
<TT>`errno.h'</TT>.  The names start with <SAMP>`E'</SAMP> and an upper-case
letter or digit; you should consider names of this form to be
reserved names.  See section <A HREF="library_1.html#SEC11" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_1.html#SEC11">Reserved Names</A>.
<P>
The error code values are all positive integers and are all distinct.
(Since the values are distinct, you can use them as labels in a
<CODE>switch</CODE> statement, for example.)  Your program should not make any
other assumptions about the specific values of these symbolic constants.
<P>
The value of <CODE>errno</CODE> doesn't necessarily have to correspond to any
of these macros, since some library functions might return other error
codes of their own for other situations.  The only values that are
guaranteed to be meaningful for a particular library function are the
ones that this manual lists for that function.
<P>
On non-GNU systems, almost any system call can return <CODE>EFAULT</CODE> if
it is given an invalid pointer as an argument.  Since this could only
happen as a result of a bug in your program, and since it will not
happen on the GNU system, we have saved space by not mentioning
<CODE>EFAULT</CODE> in the descriptions of individual functions.
<P>
<H2><A NAME="SEC16" HREF="library_toc.html#SEC16" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_toc.html#SEC16">Error Codes</A></H2>
<A NAME="IDX49"></A>
<P>
The error code macros are defined in the header file <TT>`errno.h'</TT>.
All of them expand into integer constant values.  Some of these error
codes can't occur on the GNU system, but they can occur using the GNU
library on other systems.
<P>
<A NAME="IDX50"></A>
<U>Macro:</U> int <B>EPERM</B><P>
Operation not permitted; only the owner of the file (or other resource)
or processes with special privileges can perform the operation.
<P>
<A NAME="IDX51"></A>
<U>Macro:</U> int <B>ENOENT</B><P>
No such file or directory.  This is a "file doesn't exist" error
for ordinary files that are referenced in contexts where they are
expected to already exist.
<P>
<A NAME="IDX52"></A>
<U>Macro:</U> int <B>ESRCH</B><P>
No process matches the specified process ID.
<P>
<A NAME="IDX53"></A>
<U>Macro:</U> int <B>EINTR</B><P>
Interrupted function call; an asynchronous signal occured and prevented
completion of the call.  When this happens, you should try the call
again.
<P>
You can choose to have functions resume after a signal that is handled,
rather than failing with <CODE>EINTR</CODE>; see section <A HREF="library_21.html#SEC362" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_21.html#SEC362">Primitives Interrupted by Signals</A>.
<P>
<A NAME="IDX54"></A>
<U>Macro:</U> int <B>EIO</B><P>
Input/output error; usually used for physical read or write errors.
<P>
<A NAME="IDX55"></A>
<U>Macro:</U> int <B>ENXIO</B><P>
No such device or address.  Typically, this means that a file
representing a device has been installed incorrectly, and the
system can't find the right kind of device driver for it.
<P>
<A NAME="IDX56"></A>
<U>Macro:</U> int <B>E2BIG</B><P>
Argument list too long; used when the arguments passed to a new program
being executed with one of the <CODE>exec</CODE> functions (see section <A HREF="library_23.html#SEC406" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_23.html#SEC406">Executing a File</A>) occupy too much memory space.  This condition never arises in the
GNU system.
<P>
<A NAME="IDX57"></A>
<U>Macro:</U> int <B>ENOEXEC</B><P>
Invalid executable file format.  This condition is detected by the
<CODE>exec</CODE> functions; see section <A HREF="library_23.html#SEC406" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_23.html#SEC406">Executing a File</A>.
<P>
<A NAME="IDX58"></A>
<U>Macro:</U> int <B>EBADF</B><P>
Bad file descriptor; for example, I/O on a descriptor that has been
closed or reading from a descriptor open only for writing (or vice
versa).
<P>
<A NAME="IDX59"></A>
<U>Macro:</U> int <B>ECHILD</B><P>
There are no child processes.  This error happens on operations that are
supposed to manipulate child processes, when there aren't any processes
to manipulate.
<P>
<A NAME="IDX60"></A>
<U>Macro:</U> int <B>EDEADLK</B><P>
Deadlock avoided; allocating a system resource would have resulted in
a deadlock situation.  For an example, See section <A HREF="library_12.html#SEC185" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_12.html#SEC185">File Locks</A>.
<P>
<A NAME="IDX61"></A>
<U>Macro:</U> int <B>ENOMEM</B><P>
No memory available.  The system cannot allocate more virtual memory
because its capacity is full.
<P>
<A NAME="IDX62"></A>
<U>Macro:</U> int <B>EACCES</B><P>
Permission denied; the file permissions do not allow the attempted operation.
<P>
<A NAME="IDX63"></A>
<U>Macro:</U> int <B>EFAULT</B><P>
Bad address; an invalid pointer was detected.
<P>
<A NAME="IDX64"></A>
<U>Macro:</U> int <B>ENOTBLK</B><P>
A file that isn't a block special file was given in a situation that
requires one.  For example, trying to mount an ordinary file as a file
system in Unix gives this error.
<P>
<A NAME="IDX65"></A>
<U>Macro:</U> int <B>EBUSY</B><P>
Resource busy; a system resource that can't be shared is already in use.
For example, if you try to delete a file that is the root of a currently
mounted filesystem, you get this error.
<P>
<A NAME="IDX66"></A>
<U>Macro:</U> int <B>EEXIST</B><P>
File exists; an existing file was specified in a context where it only
makes sense to specify a new file.
<P>
<A NAME="IDX67"></A>
<U>Macro:</U> int <B>EXDEV</B><P>
An attempt to make an improper link across file systems was detected.
<P>
<A NAME="IDX68"></A>
<U>Macro:</U> int <B>ENODEV</B><P>
The wrong type of device was given to a function that expects a
particular sort of device.
<P>
<A NAME="IDX69"></A>
<U>Macro:</U> int <B>ENOTDIR</B><P>
A file that isn't a directory was specified when a directory is required.
<P>
<A NAME="IDX70"></A>
<U>Macro:</U> int <B>EISDIR</B><P>
File is a directory; attempting to open a directory for writing gives
this error.
<P>
<A NAME="IDX71"></A>
<U>Macro:</U> int <B>EINVAL</B><P>
Invalid argument.  This is used to indicate various kinds of problems
with passing the wrong argument to a library function.
<P>
<A NAME="IDX72"></A>
<U>Macro:</U> int <B>ENFILE</B><P>
There are too many distinct file openings in the entire system.  Note
that any number of linked channels count as just one file opening; see
section <A HREF="library_12.html#SEC177" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_12.html#SEC177">Linked Channels</A>.
<P>
<A NAME="IDX73"></A>
<U>Macro:</U> int <B>EMFILE</B><P>
The current process has too many files open and can't open any more.
Duplicate descriptors do count toward this limit.
<P>
<A NAME="IDX74"></A>
<U>Macro:</U> int <B>ENOTTY</B><P>
Inappropriate I/O control operation, such as trying to set terminal
modes on an ordinary file.
<P>
<A NAME="IDX75"></A>
<U>Macro:</U> int <B>ETXTBSY</B><P>
An attempt to execute a file that is currently open for writing, or
write to a file that is currently being executed.  (The name stands
for "text file busy".)  This is not an error in the GNU system; the
text is copied as necessary.
<P>
<A NAME="IDX76"></A>
<U>Macro:</U> int <B>EFBIG</B><P>
File too big; the size of a file would be larger than allowed by the system.
<P>
<A NAME="IDX77"></A>
<U>Macro:</U> int <B>ENOSPC</B><P>
No space left on device; write operation on a file failed because the
disk is full.
<P>
<A NAME="IDX78"></A>
<U>Macro:</U> int <B>ESPIPE</B><P>
Invalid seek operation (such as on a pipe).
<P>
<A NAME="IDX79"></A>
<U>Macro:</U> int <B>EROFS</B><P>
An attempt was made to modify a file on a read-only file system.
<P>
<A NAME="IDX80"></A>
<U>Macro:</U> int <B>EMLINK</B><P>
Too many links; the link count of a single file is too large.
<P>
<A NAME="IDX81"></A>
<U>Macro:</U> int <B>EPIPE</B><P>
Broken pipe; there is no process reading from the other end of a pipe.
Every library function that returns this error code also generates a
<CODE>SIGPIPE</CODE> signal; this signal terminates the program if not handled
or blocked.  Thus, your program will never actually see <CODE>EPIPE</CODE>
unless it has handled or blocked <CODE>SIGPIPE</CODE>.
<P>
<A NAME="IDX82"></A>
<U>Macro:</U> int <B>EDOM</B><P>
Domain error; used by mathematical functions when an argument value does
not fall into the domain over which the function is defined.
<P>
<A NAME="IDX83"></A>
<U>Macro:</U> int <B>ERANGE</B><P>
Range error; used by mathematical functions when the result value is
not representable because of overflow or underflow.
<P>
<A NAME="IDX84"></A>
<U>Macro:</U> int <B>EAGAIN</B><P>
Resource temporarily unavailable; the call might work if you try again
later.  Only <CODE>fork</CODE> returns error code <CODE>EAGAIN</CODE> for such a
reason.
<P>
<A NAME="IDX85"></A>
<U>Macro:</U> int <B>EWOULDBLOCK</B><P>
An operation that would block was attempted on an object that has
non-blocking mode selected.
<P>
<STRONG>Portability Note:</STRONG> In 4.4BSD and GNU, <CODE>EWOULDBLOCK</CODE> and
<CODE>EAGAIN</CODE> are the same.  Earlier versions of BSD (see section <A HREF="library_1.html#SEC6" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_1.html#SEC6">Berkeley Unix</A>) have two distinct codes, and use <CODE>EWOULDBLOCK</CODE> to indicate
an I/O operation that would block on an object with non-blocking mode
set, and <CODE>EAGAIN</CODE> for other kinds of errors.<P>
<A NAME="IDX86"></A>
<U>Macro:</U> int <B>EINPROGRESS</B><P>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一级理论性理论a| 一区在线观看视频| 国产精品一区二区视频| 一区二区成人在线观看| 国产性色一区二区| 欧美一区二区三区性视频| 91啪在线观看| 国产综合色产在线精品| 亚洲第一综合色| 一色屋精品亚洲香蕉网站| 精品少妇一区二区三区在线视频| 一本一道综合狠狠老| 国产麻豆9l精品三级站| 欧美a一区二区| 亚洲国产日产av| 中文字幕佐山爱一区二区免费| 精品国产免费人成在线观看| 欧美日韩精品一区二区三区| av福利精品导航| 风间由美一区二区三区在线观看 | 五月天激情小说综合| 国产精品网站一区| 久久久久久久久蜜桃| 日韩一区二区免费电影| 欧美日韩一级大片网址| 99精品欧美一区二区三区小说| 国产精品一区二区男女羞羞无遮挡| 免费观看在线色综合| 天堂蜜桃91精品| 亚洲成av人片在www色猫咪| 综合色天天鬼久久鬼色| 中文字幕在线观看一区二区| 国产精品久久毛片a| 国产精品久久久久久久裸模| 国产精品久久久久久久浪潮网站| 中文字幕精品一区二区精品绿巨人| 久久久久99精品国产片| 久久这里都是精品| 国产午夜亚洲精品羞羞网站| 国产日韩欧美a| 中文字幕一区二区三中文字幕| 国产精品久久久久影院| 日韩一区在线看| 亚洲精品成人悠悠色影视| 亚洲精品久久7777| 午夜国产不卡在线观看视频| 秋霞电影网一区二区| 蜜桃精品视频在线| 黄色精品一二区| 国产成人一区在线| 粉嫩av一区二区三区粉嫩 | 国产毛片精品视频| 国产99久久久国产精品免费看| 国产精品18久久久久| 国产一区 二区| 99视频精品在线| 欧美亚洲一区三区| 91精品国产综合久久久久久久久久| 欧美日韩精品一区二区天天拍小说 | 国产亚洲精品久| 中文字幕亚洲在| 亚洲一区二区三区四区在线| 日韩中文字幕一区二区三区| 久久不见久久见免费视频1| 粉嫩在线一区二区三区视频| 色综合天天性综合| 在线不卡一区二区| 亚洲精品一区二区三区在线观看| 国产农村妇女毛片精品久久麻豆| 亚洲人妖av一区二区| 午夜免费欧美电影| 国产精品资源站在线| 色94色欧美sute亚洲线路二| 91精品国产一区二区三区蜜臀| 久久精品夜色噜噜亚洲a∨| 亚洲精品一二三| 久久爱www久久做| 一本大道久久a久久精品综合| 91精品国产高清一区二区三区蜜臀| 久久久久久久久岛国免费| 亚洲女同女同女同女同女同69| 日本vs亚洲vs韩国一区三区二区| 国产成人午夜99999| 欧美性生活影院| 久久久91精品国产一区二区三区| 亚洲情趣在线观看| 久久99精品国产91久久来源| 日本道在线观看一区二区| 精品久久久久久久久久久院品网 | 色狠狠色噜噜噜综合网| 日韩一区二区三区免费观看 | 裸体健美xxxx欧美裸体表演| 成人一级片网址| 7878成人国产在线观看| 中文字幕一区二区三中文字幕| 蜜桃久久精品一区二区| 欧美在线不卡视频| 国产精品免费看片| 狠狠色丁香久久婷婷综合丁香| 在线视频综合导航| 国产精品福利一区二区三区| 韩国女主播成人在线| 欧美久久久久免费| 亚洲日本青草视频在线怡红院| 久久97超碰国产精品超碰| 欧美三级乱人伦电影| ...av二区三区久久精品| 国产在线不卡视频| 日韩一级高清毛片| 亚洲bt欧美bt精品| 色狠狠色噜噜噜综合网| 亚洲国产成人自拍| 国产麻豆视频精品| 日韩精品一区二区三区视频| 午夜欧美电影在线观看| 91久久香蕉国产日韩欧美9色| 中文av字幕一区| 国产高清亚洲一区| 久久久噜噜噜久久中文字幕色伊伊| 亚洲成av人片一区二区| 91在线播放网址| 国产精品网站一区| 国产.欧美.日韩| 久久久久青草大香线综合精品| 久久se精品一区二区| 538在线一区二区精品国产| 亚洲国产va精品久久久不卡综合| 欧美成人精品福利| 免费成人在线视频观看| 制服丝袜一区二区三区| 午夜av一区二区| 在线播放亚洲一区| 日本怡春院一区二区| 91精品欧美福利在线观看| 日韩精品亚洲专区| 日韩欧美中文字幕精品| 麻豆精品国产传媒mv男同| 欧美不卡一区二区三区四区| 老司机一区二区| 精品999在线播放| 国产一区二区伦理片| 国产女人水真多18毛片18精品视频| 国产成人免费视| 自拍偷拍欧美激情| 欧美在线观看视频在线| 日韩精品亚洲一区| 日韩女优制服丝袜电影| 国产一二三精品| 18成人在线观看| 欧美三级蜜桃2在线观看| 日本午夜精品视频在线观看| 日韩欧美在线1卡| 国产91精品精华液一区二区三区| 国产精品久久久久久一区二区三区| 91丨porny丨国产入口| 亚洲一区在线看| 日韩一级二级三级| 岛国av在线一区| 亚洲男人的天堂一区二区| 欧美色综合影院| 精品一区二区在线免费观看| 国产欧美日韩综合精品一区二区| 99精品国产一区二区三区不卡| 亚洲最大色网站| 精品国产乱码久久久久久蜜臀| 成人中文字幕合集| 一区二区三区日韩精品| 欧美一区二区免费| 成人美女视频在线看| 香蕉久久夜色精品国产使用方法| 日韩你懂的电影在线观看| 国产999精品久久久久久绿帽| 亚洲人成人一区二区在线观看| 欧美一区永久视频免费观看| 国产电影一区在线| 亚洲h精品动漫在线观看| 久久影视一区二区| 色综合一区二区| 蜜桃一区二区三区在线| 亚洲欧洲日韩av| 精品久久久久久久久久久久久久久 | 国产精品天天看| 8x8x8国产精品| 成a人片国产精品| 久久国产精品99久久久久久老狼| 亚洲婷婷综合色高清在线| 337p亚洲精品色噜噜噜| 99视频在线观看一区三区| 久久超碰97中文字幕| 亚洲综合丝袜美腿| 国产日韩精品一区二区三区在线| 欧美人妇做爰xxxⅹ性高电影| 国产一区二区不卡老阿姨| 亚洲高清视频在线| 国产精品每日更新| 精品少妇一区二区三区在线播放| 色偷偷成人一区二区三区91| 国产另类ts人妖一区二区| 香蕉久久夜色精品国产使用方法| 亚洲国产精品高清|