next up previous contents
Next: The /proc File System Up: SYSTEMS PROGRAMMING LABORATORY IX Previous: SYSTEMS PROGRAMMING LABORATORY IX   Contents

Examples&Exercises:

  1. access: Testing File Permissions; http://siber.cankaya.edu.tr/SystemsProgramming/cfiles/check-access.c check-access.c
  2. fcntl: Locks and Other File Operations; http://siber.cankaya.edu.tr/SystemsProgramming/cfiles/lock-file.c lock-file.c
  3. fsync: Flushing Disk Buffers ; http://siber.cankaya.edu.tr/SystemsProgramming/cfiles/write_journal_entry.c write_journal_entry.c
  4. getrlimit and setrlimit: Resource Limits; http://siber.cankaya.edu.tr/SystemsProgramming/cfiles/limit-cpu.c limit-cpu.c
  5. getrusage: Process Statistics; http://siber.cankaya.edu.tr/SystemsProgramming/cfiles/print-cpu-times.c print-cpu-times.c
  6. mprotect: Setting Memory Permissions; http://siber.cankaya.edu.tr/SystemsProgramming/cfiles/mprotect.c mprotect.c
  7. readlink: Reading Symbolic Links; http://siber.cankaya.edu.tr/SystemsProgramming/cfiles/print-symlink.c print-symlink.c
  8. sysinfo: Obtaining System Statistics; http://siber.cankaya.edu.tr/SystemsProgramming/cfiles/sysinfo.c sysinfo.c
  9. Inline Assembly Code (Example); http://siber.cankaya.edu.tr/SystemsProgramming/cfiles/bit-pos-asm.c bit-pos-asm.c, http://siber.cankaya.edu.tr/SystemsProgramming/cfiles/bit-pos-loop.c bit-pos-loop.c
  10. TO BE GRADED; modify the code http://siber.cankaya.edu.tr/SystemsProgramming/cfiles/lock-file.c lock-file.c such that
  11. TO BE GRADED; modify the completed code; http://siber.cankaya.edu.tr/SystemsProgramming/cfiles/print-cpu-times.c print-cpu-times.c such that

next up previous contents
Next: The /proc File System Up: SYSTEMS PROGRAMMING LABORATORY IX Previous: SYSTEMS PROGRAMMING LABORATORY IX   Contents
Cem Ozdogan 2007-05-16