You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
write() is needed to view results of tests, because every tests write to console. write() should reads from given buffer and writes given size bytes to given file. write() implementation should do the following.
If fd == 1, use putbuf() to write to console.
Else, use file_write() defined in filesys/file.c to write to file, as large as possible.
The text was updated successfully, but these errors were encountered:
Implement
write()
.write()
is needed to view results of tests, because every tests write to console. write() should reads from given buffer and writes given size bytes to given file.write()
implementation should do the following.putbuf()
to write to console.file_write()
defined in filesys/file.c to write to file, as large as possible.The text was updated successfully, but these errors were encountered: