summaryrefslogtreecommitdiff
path: root/src/libc/stdio
diff options
context:
space:
mode:
authordzwdz2023-08-25 14:06:00 +0200
committerdzwdz2023-08-25 14:06:00 +0200
commita767724386c9fe175c2fe4311511c0a402339c37 (patch)
tree7667b5b9a0cd40da58a778c83666467e0a40b9ce /src/libc/stdio
parent3e09037780ca95633749be3acd52e817eed7f98c (diff)
libc: get as+ld to work
Diffstat (limited to 'src/libc/stdio')
-rw-r--r--src/libc/stdio/file.c4
-rw-r--r--src/libc/stdio/misc.c6
2 files changed, 0 insertions, 10 deletions
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;
-}