class: title # Lab Working Day ## CSC 213 – September 30, 2026 --- # Agenda for Today 1. Department Events 2. Upcoming Work 3. Files and Directories, _continued_ 5. Wrap Up --- # Department Events ## Flu and COVID Shot Clinic .indent[ October 1st and 2nd from 9am–4pm in the Harris Center Register with Hy-Vee at
] ## CS Table: Topic TBD .indent[ Tuesday, October 6th at noon in the CS Commons ] *To receive a token, send an email to let me know you attended no more than 48 hours after the event.* --- class: section, blue # Upcoming Work --- # Assignment: Listing Directories **Due:** Wednesday, October 7th by 11:59pm **Late Deadline:** Friday, October 9th by 10:00am *Let's look at the assignment now.* --- # Lab: Malloc **Due:** Wednesday, October 7th by 11:59pm **Late Deadline:** Monday, October 12th by 11:59pm ## Questions _No new questions since last class_ --- class: section, blue # File and Directory Puzzles, _continued_ --- # Puzzle 7 ```c int fd = open("symlink.txt", O_RDWR | O_CREAT | O_TRUNC, 0640); char* message = "I love the malloc lab\n"; write(fd, message, strlen(message)); close(fd); ``` --- # Puzzle 10 ```c int fd = open("message.txt", O_RDWR, 0640); char* data = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); data[2] = 'f'; data[3] = 'e'; data[4] = 'a'; data[5] = 'r'; munmap(data, 4096); close(fd); ``` --- class: section, green # Lab Working Time --- class: section, blue # Wrap Up --- # Reminders ## Upcoming Deadlines - **Malloc Lab:** due next Wednesday, or the following Monday with a token - **Listing Directories Assignment:** due next Wednesday, or Friday morning with a token ## Need help? Use your resources! - Book an appointment during office hours - Attend mentor office hours - Review slides, readings, and other course resources - Use tools like `gdb` and AddressSanitizer to catch and diagnose issues ## Reading - **File System Implementation** (OSTEP, Chapter 40) - **Crash Consistency: FSCK and Journaling** (OSTEP, Chapter 42)