[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT/NEWLIB PATCH 3/3] remove functions provided by libvfscore
Which are: close, read and write Signed-off-by: Yuri Volchkov <yuri.volchkov@xxxxxxxxx> --- file.c | 40 ---------------------------------------- 1 file changed, 40 deletions(-) diff --git a/file.c b/file.c index 7ad736d..9fd7809 100644 --- a/file.c +++ b/file.c @@ -50,11 +50,6 @@ int open(const char *name __unused, int flags __unused, int mode __unused) return -1; } -int close(int file __unused) -{ - return -1; -} - int fstat(int file __unused, struct stat *st) { st->st_mode = S_IFCHR; @@ -83,41 +78,6 @@ int unlink(char *name __unused) return -1; } -int read(int file, char *ptr, int len) -{ - int read; - - switch (file) { - case STDIN_FILENO: - while ((read = ukplat_cink(ptr, len)) == 0) - continue; /* busy wait */ - return read; - case STDOUT_FILENO: - case STDERR_FILENO: - errno = EBADF; - return -1; - default: - errno = EBADF; - return -1; - } -} - -int write(int file, char *ptr, int len) -{ - switch (file) { - case STDIN_FILENO: - errno = EBADF; - return -1; - case STDOUT_FILENO: - return ukplat_coutk(ptr, len); - case STDERR_FILENO: - return ukplat_coutd(ptr, len); - default: - errno = EBADF; - return -1; - } -} - int lseek(int file __unused, int ptr __unused, int dir __unused) { return 0; -- 2.17.0 _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |