This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
conformtest: Only expect mknodat for XOPEN2K8
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: <libc-alpha at sourceware dot org>
- Date: Wed, 7 Nov 2012 04:08:43 +0000
- Subject: conformtest: Only expect mknodat for XOPEN2K8
One conformtest failure for XOPEN2K is the expectation of mknodat.
That function wasn't added until the following version (XOPEN2K8), so
the expectation is a bug in the test, which this patch fixes. (The
test was also expecting this function for XPG3 / XPG4 / UNIX98, which
was also wrong and is also fixed by this patch.)
Tested x86_64.
2012-11-07 Joseph Myers <joseph@codesourcery.com>
* conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
Change condition to [XOPEN2K8].
diff --git a/conform/data/sys/stat.h-data b/conform/data/sys/stat.h-data
index a7db93f..2a5c3bf 100644
--- a/conform/data/sys/stat.h-data
+++ b/conform/data/sys/stat.h-data
@@ -122,6 +122,8 @@ function int mkfifoat (int, const char*, mode_t)
# endif
# if !defined POSIX && !defined POSIX2008
function int mknod (const char*, mode_t, dev_t)
+# endif
+# ifdef XOPEN2K8
function int mknodat (int, const char*, mode_t, dev_t)
# endif
function int stat (const char*, struct stat*)
--
Joseph S. Myers
joseph@codesourcery.com