diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-10-26 08:58:01 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-12-29 16:44:16 -0300 |
commit | 99468ed45f5a58f584bab60364af937eb6f8afda (patch) | |
tree | c4f743f79860cbee8dd9ff5ec19cd46edb5edcc1 /io/mknod.c | |
parent | 4d97cc8cf3da925fd06fc37d4daebafce3247719 (diff) | |
download | glibc-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/mknod.c')
-rw-r--r-- | io/mknod.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io/mknod.c b/io/mknod.c index 9eb4a2af7f..22566b259c 100644 --- a/io/mknod.c +++ b/io/mknod.c @@ -15,13 +15,13 @@ License along with the GNU C Library; if not, see <https://www.gnu.org/licenses/>. */ -#include <sys/types.h> #include <sys/stat.h> +#include <fcntl.h> int __mknod (const char *path, mode_t mode, dev_t dev) { - return __xmknod (_MKNOD_VER, path, mode, &dev); + return __mknodat (AT_FDCWD, path, mode, dev); } libc_hidden_def (__mknod) weak_alias (__mknod, mknod) |