a quick C cat

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2020-06-03 07:00:06 +00:00
parent 17ed296e2d
commit 6202b44eba
5 changed files with 88 additions and 68 deletions

View File

@@ -17108,6 +17108,7 @@ Good sanity check for user mode: <<qemu-user-mode-getting-started>>
*** link:userland/c/stderr.c[]
*** File IO
**** link:userland/c/file_write_read.c[]
***** link:userland/c/cat.c[]: a quick and dirty `cat` implementation for interactive <<user-mode-simulation>> tests
**** link:userland/linux/open_o_tmpfile.c[]: https://stackoverflow.com/questions/4508998/what-is-an-anonymous-inode-in-linux/44388030#44388030
** `time.h`
*** link:userland/c/timespec_get.c[] `timespec_get` is a C11 for `clock_gettime` http://stackoverflow.com/questions/361363/how-to-measure-time-in-milliseconds-using-ansi-c/36095407#36095407