Lab 7: Processes II

Due: 2024-11-04 at 23:59

In this lab, you’re going to continue working on your process library and ps binary from last time.

In this lab, you will learn

  • how to make system calls; and
  • how to call functions in the C standard library to interact with the operating system.

Like Lab 6, this one is going to be specific to Linux.

Preliminaries

Reuse your assignment repository from the previous lab. Because you are using your lab 6 repository, please make the your first commit message for lab 7 say “Lab 7 starts here.”

Be sure to ask any questions on Ed.

Compiler warnings and errors

Make sure your code compiles and passes clippy without errors or warnings. That is, running

$ cargo clean
$ cargo build
$ cargo clippy

should build your program without errors or warnings.

Formatting

Your code must be formatted by running cargo fmt.