]> xenbits.xensource.com Git - unikraft/libs/newlib.git/commitdiff
Remove umask, fchown, lchown, rename
authorSimon Kuenzer <simon.kuenzer@neclab.eu>
Wed, 18 Sep 2019 12:23:46 +0000 (14:23 +0200)
committerFelipe Huici <felipe.huici@neclab.eu>
Wed, 18 Sep 2019 13:38:48 +0000 (15:38 +0200)
Removes the stubs `umask`, `fchown`, and `lchown` from the the glue
code, since these functions are now provided by libvfscore.  Further,
libfscore now provides an implementation of `rename`; as a result, we
no longer build newlibc's version of it.

Signed-off-by: Simon Kuenzer <simon.kuenzer@neclab.eu>
Reviewed-by: Felipe Huici <felipe.huici@neclab.eu>
Makefile.uk
file.c

index 812f602636294b18744be924ea701a106724094b..95b919af8738606a0167e7e311a9416c0666db17 100644 (file)
@@ -461,7 +461,6 @@ LIBNEWLIBC_SRCS-y += $(LIBNEWLIB_LIBC)/stdio/putchar_u.c
 LIBNEWLIBC_SRCS-y += $(LIBNEWLIB_LIBC)/stdio/puts.c
 LIBNEWLIBC_SRCS-y += $(LIBNEWLIB_LIBC)/stdio/refill.c
 LIBNEWLIBC_SRCS-y += $(LIBNEWLIB_LIBC)/stdio/remove.c
-LIBNEWLIBC_SRCS-y += $(LIBNEWLIB_LIBC)/stdio/rename.c
 LIBNEWLIBC_SRCS-y += $(LIBNEWLIB_LIBC)/stdio/rewind.c
 LIBNEWLIBC_SRCS-y += $(LIBNEWLIB_LIBC)/stdio/rget.c
 LIBNEWLIBC_SRCS-y += $(LIBNEWLIB_LIBC)/stdio/scanf.c
diff --git a/file.c b/file.c
index 7d78f798947e00ede584fe46c63a14a86dd1e056..006f191c5aaac9efa7479a3688520adb98d5eab7 100644 (file)
--- a/file.c
+++ b/file.c
@@ -54,11 +54,6 @@ extern int errno;
 #define STDOUT_FILENO   1       /* standard output file descriptor */
 #define STDERR_FILENO   2       /* standard error file descriptor */
 
-mode_t umask(mode_t cmask __unused)
-{
-       return 0;
-}
-
 #include <sys/mman.h>
 void *mmap(void *addr __unused, size_t len __unused, int prot __unused,
                int flags __unused, int fildes __unused, off_t off __unused)
@@ -96,18 +91,6 @@ int select(int nfds, fd_set *readfds __unused, fd_set *writefds __unused,
 }
 #endif /* !CONFIG_LWIP_SOCKET */
 
-int fchown(int fd __unused, uid_t owner __unused, gid_t group __unused)
-{
-       return 0;
-}
-
-int lchown(const char *pathname __unused, uid_t owner __unused,
-               gid_t group __unused)
-{
-       return 0;
-}
-
-
 int utimes(const char *filename __unused,
                const struct timeval times[2] __unused)
 {