rmtest.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <html>
  2. <head>
  3. <title>rmtest</title>
  4. <body bgcolor=#ffffff>
  5. <h2 align=center>rmtest</h2>
  6. <h4 align=center>OS/161 Reference Manual</h4>
  7. <h3>Name</h3>
  8. rmtest - test removing open files
  9. <h3>Synopsis</h3>
  10. /testbin/rmtest
  11. <h3>Description</h3>
  12. rmtest deletes a file while it's open and then attempts to do further
  13. I/O to it, and tries to check that the right things happen.
  14. <h3>Requirements</h3>
  15. rmtest uses the following system calls:
  16. <ul>
  17. <li> <A HREF=../syscall/fork.html>fork</A>
  18. <li> <A HREF=../syscall/execv.html>execv</A>
  19. <li> <A HREF=../syscall/waitpid.html>waitpid</A>
  20. <li> <A HREF=../syscall/open.html>open</A>
  21. <li> <A HREF=../syscall/read.html>read</A>
  22. <li> <A HREF=../syscall/write.html>write</A>
  23. <li> <A HREF=../syscall/lseek.html>lseek</A>
  24. <li> <A HREF=../syscall/close.html>close</A>
  25. <li> <A HREF=../syscall/_exit.html>_exit</A>
  26. </ul>
  27. rmtest also spawns a copy of <A HREF=../bin/rm.html>/bin/rm</A>, which
  28. uses these system calls:
  29. <ul>
  30. <li> <A HREF=../syscall/remove.html>remove</A>
  31. <li> <A HREF=../syscall/write.html>write</A>
  32. <li> <A HREF=../syscall/_exit.html>_exit</A>
  33. </ul>
  34. rmtest should run correctly once the file system assignment is
  35. complete.
  36. <h3>Bugs</h3>
  37. There's no particular reason it should use /bin/rm instead of calling
  38. <A HREF=../syscall/remove.html>remove</A> itself. But I guess it makes
  39. life more exciting.
  40. </body>
  41. </html>