[PATCH 06/24] perror.3: Fix declaration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The elements of the array sys_errlist are also const.

Also, it is probably not desirable to pretend that errno.h defines
errno in the traditional way (errno(3) correctly contains an explicit
warning against this). I don't know what the best solution is, though.

Signed-off-by: Rasmus Villemoes <rv@xxxxxxxxxxxxxxxxxx>
---
 man3/perror.3 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/man3/perror.3 b/man3/perror.3
index 57580a9..34f3ec5 100644
--- a/man3/perror.3
+++ b/man3/perror.3
@@ -38,11 +38,11 @@ perror \- print a system error message
 .sp
 .B #include <errno.h>
 .sp
-.BI "const char *" sys_errlist [];
+.BI "const char * const " sys_errlist [];
 .br
 .BI "int " sys_nerr ;
 .br
-.BI "int " errno ;
+.BI "int " errno "; /* Not really declared this way; see errno(3). */"
 .sp
 .in -4n
 Feature Test Macro Requirements for glibc (see
-- 
1.9.2

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux