From a767724386c9fe175c2fe4311511c0a402339c37 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 25 Aug 2023 14:06:00 +0200 Subject: libc: get as+ld to work --- src/libc/stdio/file.c | 4 ---- src/libc/stdio/misc.c | 6 ------ 2 files changed, 10 deletions(-) (limited to 'src/libc/stdio') diff --git a/src/libc/stdio/file.c b/src/libc/stdio/file.c index 984c419..de88a9f 100644 --- a/src/libc/stdio/file.c +++ b/src/libc/stdio/file.c @@ -305,10 +305,6 @@ int fseeko(FILE *f, off_t offset, int whence) { break; case SEEK_CUR: base = f->pos; - // TODO untested - if (f->readbuf) { - base -= f->rblen; - } break; case SEEK_END: base = _sys_getsize(f->fd); diff --git a/src/libc/stdio/misc.c b/src/libc/stdio/misc.c index 45144f3..7e8e746 100644 --- a/src/libc/stdio/misc.c +++ b/src/libc/stdio/misc.c @@ -44,9 +44,3 @@ char *tmpnam(char *s) { strcpy(s, "/tmp/tmpnam"); return s; } - -// TODO sscanf -int sscanf(const char *restrict s, const char *restrict format, ...) { - (void)s; (void)format; - return 0; -} -- cgit v1.2.3