aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/include
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2018-12-27 13:02:15 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2018-12-27 13:02:15 +0000
commitcd49e866fcf9b07db5e0e79c2ed8b07e4e21a9c1 (patch)
tree0da004c533fd2d244e46f7f695698860bfa58adc /lib/libc/include
parent2cb73efc0d44459b82fcdc362d9878e560291403 (diff)
downloadsrc-cd49e866fcf9b07db5e0e79c2ed8b07e4e21a9c1.tar.gz
src-cd49e866fcf9b07db5e0e79c2ed8b07e4e21a9c1.zip
Bump sys_errlist size to keep ABI backward-compatible for some time.
Addition of the new errno values requires adding new elements to sys_errlist array, which is actually ABI-incompatible, since ELF records the object size. Expand array in advance to 150 elements so that we have our users to go over the issue only once, at least until more than 53 new errors are added. I did not bumped the symbol version, same as it was not done for previous increases of the array size. Runtime linker only copies as much data into binary object on copy relocation as the binary'object specifies. This is not fixable for binaries which access sys_errlist directly. While there, correct comment and calculation of the temporary buffer size for the message printed for unknown error. The on-stack buffer is used only for the number and delimiter since r108603. Requested by: mckusick Reviewed by: mckusick, yuripv MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D18656
Notes
Notes: svn path=/head/; revision=342551
Diffstat (limited to 'lib/libc/include')
-rw-r--r--lib/libc/include/errlst.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/include/errlst.h b/lib/libc/include/errlst.h
index 3834524fb87b..99492f840da5 100644
--- a/lib/libc/include/errlst.h
+++ b/lib/libc/include/errlst.h
@@ -42,4 +42,6 @@ extern const int __hidden_sys_nerr __hidden;
#define __hidden_sys_nerr sys_nerr
#endif
+extern const char __uprefix[] __hidden;
+
#endif /* __ERRLST_H__ */