summaryrefslogtreecommitdiff
path: root/src/stat/__xstat.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014-06-22 00:37:12 -0400
committerRich Felker <dalias@aerifal.cx>2014-06-22 00:37:12 -0400
commit1fd0f6e31f157cc9be115c29f0c537d8a225cc86 (patch)
tree61e99e768aab844bfe14b980ac43c8f7d08e9441 /src/stat/__xstat.c
parent76f2bcc7d673d0a1b06ea4b2545b4096979ad518 (diff)
downloadmusl-1fd0f6e31f157cc9be115c29f0c537d8a225cc86.tar.gz
add __xmknod and __xmknodat abi-compat functions
these are put alongside the similar functions for __xstat, etc. in __xstat.c to avoid bloating the number of source files.
Diffstat (limited to 'src/stat/__xstat.c')
-rw-r--r--src/stat/__xstat.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/stat/__xstat.c b/src/stat/__xstat.c
index 8138cbe8..73c873ae 100644
--- a/src/stat/__xstat.c
+++ b/src/stat/__xstat.c
@@ -25,3 +25,13 @@ LFS64(__fxstat);
LFS64(__fxstatat);
LFS64(__lxstat);
LFS64(__xstat);
+
+int __xmknod(int ver, const char *path, mode_t mode, dev_t *dev)
+{
+ return mknod(path, mode, *dev);
+}
+
+int __xmknodat(int ver, int fd, const char *path, mode_t mode, dev_t *dev)
+{
+ return mknodat(fd, path, mode, *dev);
+}