summaryrefslogtreecommitdiff
path: root/src/lib/libast/features/errno
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2012-06-24 22:28:35 +0000
committerIgor Pashev <pashev.igor@gmail.com>2012-06-24 22:28:35 +0000
commit3950ffe2a485479f6561c27364d3d7df5a21d124 (patch)
tree468c6e14449d1b1e279222ec32f676b0311917d2 /src/lib/libast/features/errno
downloadksh-3950ffe2a485479f6561c27364d3d7df5a21d124.tar.gz
Imported Upstream version 93u+upstream
Diffstat (limited to 'src/lib/libast/features/errno')
-rw-r--r--src/lib/libast/features/errno31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/lib/libast/features/errno b/src/lib/libast/features/errno
new file mode 100644
index 0000000..271fe6d
--- /dev/null
+++ b/src/lib/libast/features/errno
@@ -0,0 +1,31 @@
+tst dat_sys_nerr note{ sys_nerr in default libs }end compile{
+ extern int sys_nerr;
+ int f()
+ {
+ return sys_nerr > 0;
+ }
+}end
+
+tst def_errno_sys_nerr note{ sys_nerr declared in errno.h }end compile{
+ #include <errno.h>
+ int f()
+ {
+ return sys_nerr > 0;
+ }
+}end
+
+tst dat_sys_errlist note{ sys_errlist in default libs }end compile{
+ extern char* sys_errlist[];
+ int f()
+ {
+ return *sys_errlist[1] != 0;
+ }
+}end
+
+tst def_errno_sys_errlist note{ sys_errlist declared in errno.h }end compile{
+ #include <errno.h>
+ int f()
+ {
+ return *sys_errlist[1] != 0;
+ }
+}end