From: Vlad-Andrei BĂDOIU (78692) Date: Sun, 2 Jun 2019 16:13:14 +0000 (+0000) Subject: Add device related stubs X-Git-Tag: RELEASE-0.4~88 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b2192bd;p=unikraft%2Flibs%2Fnewlib.git Add device related stubs This patch adds a new file dev.c which contains stubs related to devices. Signed-off-by: Vlad-Andrei Badoiu Reviewed-by: Costin Lupu --- diff --git a/Makefile.uk b/Makefile.uk index f49264e..40e0dae 100644 --- a/Makefile.uk +++ b/Makefile.uk @@ -113,6 +113,7 @@ LIBNEWLIBGLUE_SRCS-y += $(LIBNEWLIBC_BASE)/resource.c LIBNEWLIBGLUE_SRCS-y += $(LIBNEWLIBC_BASE)/pty.c LIBNEWLIBGLUE_SRCS-y += $(LIBNEWLIBC_BASE)/time.c|glue LIBNEWLIBGLUE_SRCS-y += $(LIBNEWLIBC_BASE)/locale.c +LIBNEWLIBGLUE_SRCS-y += $(LIBNEWLIBC_BASE)/dev.c ################################################################################ # Newlib/libc code -- argz diff --git a/dev.c b/dev.c new file mode 100644 index 0000000..22f22d3 --- /dev/null +++ b/dev.c @@ -0,0 +1,50 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Authors: Vlad-Andrei Badoiu + +unsigned int major(dev_t dev __unused) +{ + return 0; +} + +unsigned int minor(dev_t dev __unused) +{ + return 0; +} + +dev_t makedev(unsigned int maj __unused, unsigned int min __unused) +{ + return 0; +}