mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
Ooops... forgot to add lib_perror.c to the Make.defs file
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5062 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -4363,7 +4363,7 @@ build
|
|||||||
<code>CONFIG_LIBC_STRERROR_SHORT</code>:
|
<code>CONFIG_LIBC_STRERROR_SHORT</code>:
|
||||||
If this option is selected, then <code>strerror()</code> will use a shortened string when it decodes the error.
|
If this option is selected, then <code>strerror()</code> will use a shortened string when it decodes the error.
|
||||||
Specifically, <code>strerror()</code> is simply use the string that is the common name for the error.
|
Specifically, <code>strerror()</code> is simply use the string that is the common name for the error.
|
||||||
For example, the <code>errno</code> value of 2 will produce the string "No such file or directory" is <code>CONFIG_LIBC_STRERROR_SHORT</code> is not defined but the string "ENOENT" is <code>CONFIG_LIBC_STRERROR_SHORT</code> is defined.
|
For example, the <code>errno</code> value of 2 will produce the string "No such file or directory" if <code>CONFIG_LIBC_STRERROR_SHORT</code> is not defined but the string "ENOENT" if <code>CONFIG_LIBC_STRERROR_SHORT</code> is defined.
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<code>CONFIG_LIBC_PERROR_STDOUT</code>:
|
<code>CONFIG_LIBC_PERROR_STDOUT</code>:
|
||||||
|
|||||||
+2
-2
@@ -562,8 +562,8 @@ defconfig -- This is a configuration file similar to the Linux
|
|||||||
will use a shortened string when it decodes the error. Specifically,
|
will use a shortened string when it decodes the error. Specifically,
|
||||||
strerror() is simply use the string that is the common name for the
|
strerror() is simply use the string that is the common name for the
|
||||||
error. For example, the 'errno' value of 2 will produce the string
|
error. For example, the 'errno' value of 2 will produce the string
|
||||||
"No such file or directory" is CONFIG_LIBC_STRERROR_SHORT is not
|
"No such file or directory" if CONFIG_LIBC_STRERROR_SHORT is not
|
||||||
defined but the string "ENOENT" is CONFIG_LIBC_STRERROR_SHORT is
|
defined but the string "ENOENT" if CONFIG_LIBC_STRERROR_SHORT is
|
||||||
defined.
|
defined.
|
||||||
CONFIG_LIBC_PERROR_STDOUT - POSIX requires that perror() provide its output
|
CONFIG_LIBC_PERROR_STDOUT - POSIX requires that perror() provide its output
|
||||||
on stderr. This option may be defined, however, to provide perror() output
|
on stderr. This option may be defined, however, to provide perror() output
|
||||||
|
|||||||
+2
-1
@@ -50,7 +50,8 @@ CSRCS += lib_fopen.c lib_fclose.c lib_fread.c lib_libfread.c lib_fseek.c \
|
|||||||
lib_gets.c lib_fwrite.c lib_libfwrite.c lib_fflush.c \
|
lib_gets.c lib_fwrite.c lib_libfwrite.c lib_fflush.c \
|
||||||
lib_libflushall.c lib_libfflush.c lib_rdflush.c lib_wrflush.c \
|
lib_libflushall.c lib_libfflush.c lib_rdflush.c lib_wrflush.c \
|
||||||
lib_fputc.c lib_puts.c lib_fputs.c lib_ungetc.c lib_vprintf.c \
|
lib_fputc.c lib_puts.c lib_fputs.c lib_ungetc.c lib_vprintf.c \
|
||||||
lib_fprintf.c lib_vfprintf.c lib_stdinstream.c lib_stdoutstream.c
|
lib_fprintf.c lib_vfprintf.c lib_stdinstream.c lib_stdoutstream.c \
|
||||||
|
lib_perror.c
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
@@ -83,7 +83,7 @@
|
|||||||
* Private Data
|
* Private Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifndef CONFIG_LIBC_PERROR_DEVNAME
|
#ifdef CONFIG_LIBC_PERROR_DEVNAME
|
||||||
static FILE *perror_stream;
|
static FILE *perror_stream;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user