Skip to content

Commit bff0049

Browse files
committed
libtock: sys: format
1 parent eb82f24 commit bff0049

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

libtock/sys.c

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,24 @@ int _kill(pid_t pid, int sig) {
4343
}
4444

4545
// FOR NEWLIB
46-
int _fstat(int fd, struct stat *st) { return _tock_fstat(fd, st); }
47-
int _isatty(int fd) { return _tock_isatty(fd); }
48-
int _read(int fd, void *buf, uint32_t count) { return _tock_read(fd, buf, count); }
49-
int _write(int fd, const void *buf, uint32_t count) { return _tock_write(fd, buf, count); }
50-
int _lseek(int fd, uint32_t offset, int whence) { return _tock_lseek(fd, offset, whence); }
51-
int _close(int fd) { return _tock_close(fd); }
52-
caddr_t _sbrk(int incr) { return _tock_sbrk(incr); }
46+
int _fstat(int fd, struct stat *st) {
47+
return _tock_fstat(fd, st);
48+
}
49+
int _isatty(int fd) {
50+
return _tock_isatty(fd);
51+
}
52+
int _read(int fd, void *buf, uint32_t count) {
53+
return _tock_read(fd, buf, count);
54+
}
55+
int _write(int fd, const void *buf, uint32_t count) {
56+
return _tock_write(fd, buf, count);
57+
}
58+
int _lseek(int fd, uint32_t offset, int whence) {
59+
return _tock_lseek(fd, offset, whence);
60+
}
61+
int _close(int fd) {
62+
return _tock_close(fd);
63+
}
64+
caddr_t _sbrk(int incr) {
65+
return _tock_sbrk(incr);
66+
}

0 commit comments

Comments
 (0)