]> xenbits.xensource.com Git - unikraft/libs/newlib.git/commitdiff
Remove functions provided by libvfscore
authorVlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@stud.acs.upb.ro>
Thu, 18 Apr 2019 11:09:54 +0000 (11:09 +0000)
committerFelipe Huici <felipe.huici@neclab.eu>
Thu, 2 May 2019 09:04:21 +0000 (11:04 +0200)
The core patch 'lib/vfs: expose remaining vfs functions'
provides additional functions which are currently stubs
in newlib's gluecode. This patch removes the stubs.

Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@stud.acs.upb.ro>
Reviewed-by: Costin Lupu <costin.lupu@cs.pub.ro>
file.c

diff --git a/file.c b/file.c
index 8bb4a01715ea47ff23281520546f8b7966d010d1..02f1b6f36562108a55354a57b66208a7c1892e8b 100644 (file)
--- a/file.c
+++ b/file.c
@@ -45,47 +45,6 @@ extern int errno;
 #define STDOUT_FILENO   1       /* standard output file descriptor */
 #define STDERR_FILENO   2       /* standard error file descriptor */
 
-int link(char *old __unused, char *new __unused)
-{
-       errno = EMLINK;
-       return -1;
-}
-
-int lseek(int file __unused, int ptr __unused, int dir __unused)
-{
-       return 0;
-}
-
-int access(const char *path __unused, int amode __unused)
-{
-       return 0;
-}
-
-int chdir(const char *path __unused)
-{
-       return 0;
-}
-
-#include <dirent.h>
-int closedir(DIR *dirp __unused)
-{
-       return 0;
-}
-
-void rewinddir(DIR *dirp __unused)
-{
-}
-
-DIR *fdopendir(int fd __unused)
-{
-       return NULL;
-}
-
-int rmdir(const char *path __unused)
-{
-       return 0;
-}
-
 mode_t umask(mode_t cmask __unused)
 {
        return 0;