about summary refs log tree commit diff
path: root/io/mknodat.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-10-26 08:58:01 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-12-29 16:44:16 -0300
commit99468ed45f5a58f584bab60364af937eb6f8afda (patch)
treec4f743f79860cbee8dd9ff5ec19cd46edb5edcc1 /io/mknodat.c
parent4d97cc8cf3da925fd06fc37d4daebafce3247719 (diff)
downloadglibc-99468ed45f5a58f584bab60364af937eb6f8afda.tar.gz
glibc-99468ed45f5a58f584bab60364af937eb6f8afda.tar.xz
glibc-99468ed45f5a58f584bab60364af937eb6f8afda.zip
io: Remove xmknod{at} implementations
With xmknod wrapper functions removed (589260cef8), the mknod functions
are now properly exported, and version is done using symbols versioning
instead of the extra _MKNOD_* argument.

It also allows us to consolidate Linux and Hurd mknod implementation.

Reviewed-by: Lukasz Majewski <lukma@denx.de>
Diffstat (limited to 'io/mknodat.c')
-rw-r--r--io/mknodat.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/io/mknodat.c b/io/mknodat.c
index 63a8068ad6..cf491f99a7 100644
--- a/io/mknodat.c
+++ b/io/mknodat.c
@@ -21,7 +21,10 @@
 int
 __mknodat (int fd, const char *path, mode_t mode, dev_t dev)
 {
-  return __xmknodat (_MKNOD_VER, fd, path, mode, &dev);
+  __set_errno (ENOSYS);
+  return -1;
 }
 libc_hidden_def (__mknodat)
 weak_alias (__mknodat, mknodat)
+
+stub_warning (mknodat)