瀏覽代碼

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.
Rich Felker 10 年之前
父節點
當前提交
1fd0f6e31f
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      src/stat/__xstat.c

+ 10 - 0
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);
+}