Skip to content

Commit be44c78

Browse files
committed
libtock: sys: add renames for picolib
1 parent 0228657 commit be44c78

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

libtock/sys.c

+11
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ int _fstat(int fd, struct stat *st)
5454
st->st_mode = S_IFCHR;
5555
return 0;
5656
}
57+
5758
int _lseek(int fd, uint32_t offset, int whence)
5859
{
5960
return 0;
@@ -85,3 +86,13 @@ caddr_t _sbrk(int incr)
8586
}
8687
return (caddr_t) ret.data;
8788
}
89+
90+
91+
// FOR PICOLIB
92+
int fstat(int fd, struct stat *st) { return _fstat(fd, st); }
93+
int isatty(int fd) { return _isatty(fd); }
94+
int read(int fd, void *buf, uint32_t count) { return _read(fd, buf, count); }
95+
int write(int fd, const void *buf, uint32_t count) { return _write(fd, buf, count); }
96+
int lseek(int fd, uint32_t offset, int whence) { return _lseek(fd, offset, whence); }
97+
int close(int fd) { return _close(fd); }
98+
caddr_t sbrk(int incr) { return _sbrk(incr); }

0 commit comments

Comments
 (0)