mkfifoat: use new modules for Solaris and BSD bugs
authorEric Blake <ebb9@byu.net>
Wed, 11 Nov 2009 21:22:44 +0000 (14:22 -0700)
committerEric Blake <ebb9@byu.net>
Thu, 12 Nov 2009 02:24:36 +0000 (19:24 -0700)
commit5ca4b90d06ed5871ed0bf7bd59dbbf23b69a00ea
treeab0be09934f25c3faee0ee0ae4b1841a6d84ecec
parent599bbd22717fdd0f8d6b8a6f54b99b2a9fa7b410
mkfifoat: use new modules for Solaris and BSD bugs

Pick up Solaris 9 and BSD fixes to mkfifo and mknod.  No known
system has mknodat but broken mknod, so there is no need for
rpl_mkfifoat or rpl_mknodat.  Split mknodat into its own file.

* m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
* lib/mkfifoat.c (mknodat): Split...
* lib/mknodat.c (mknodat): ...into new file.
* modules/mkfifoat (Files): Ship new file.
(Depends-on): Add mkfifo, mknod.
* modules/mkfifoat-tests (Files): Reuse mkfifo tests.
(Depends-on): Add symlink.
* tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
redundant with test_mkfifo.h.
(do_mkfifoat, do_mknodat): New helpers.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/mkfifoat.c
lib/mknodat.c [new file with mode: 0644]
m4/mkfifoat.m4
modules/mkfifoat
modules/mkfifoat-tests
tests/test-mkfifoat.c