hash.html 1012 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <html>
  2. <head>
  3. <title>hash</title>
  4. <body bgcolor=#ffffff>
  5. <h2 align=center>hash</h2>
  6. <h4 align=center>OS/161 Reference Manual</h4>
  7. <h3>Name</h3>
  8. hash - compute a simple hash function of a file
  9. <h3>Synopsis</h3>
  10. /testbin/hash <em>file</em>
  11. <br>
  12. host-hash <em>file</em>
  13. <h3>Description</h3>
  14. hash takes a file and computes a hash value for it by adding all the
  15. bytes in the file together modulo a prime.
  16. <p>
  17. hash is by default also compiled for the System/161 host OS so you can
  18. cross-check the answers you get.
  19. <h3>Requirements</h3>
  20. hash uses the following system calls:
  21. <ul>
  22. <li> <A HREF=../syscall/open.html>open</A>
  23. <li> <A HREF=../syscall/read.html>read</A>
  24. <li> <A HREF=../syscall/write.html>write</A>
  25. <li> <A HREF=../syscall/close.html>close</A>
  26. <li> <A HREF=../syscall/_exit.html>_exit</A>
  27. </ul>
  28. Once the basic system calls are complete, hash should work on any file
  29. the system supports. However, it will probably of most use for testing
  30. while working on the file system assignment.
  31. </body>
  32. </html>