mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-30 14:08:21 +00:00
/dev/console
This commit is contained in:
@@ -59,6 +59,9 @@ syscallret syscall_write(int ifd, void* buff, size_t count){
|
||||
|
||||
fd->offset += writec;
|
||||
|
||||
if(fd->node->st.st_size < fd->offset)
|
||||
fd->offset = fd->node->st.st_size;
|
||||
|
||||
retv.errno = 0;
|
||||
retv.ret = writec;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user