CSCI 415/515 - Fall 2022
Systems Programming
File I/O
Monday, Sept 12, 2022
Readings
The Linux Programming Interface
:
- Ch 4: File I/O: The Universal I/O Model (4.1 - 4.6)
Materials
-
Slides: File I/O Overview
-
Sample code:
cat
Wednesday, Sept 14, 2022
Readings
The Linux Programming Interface
:
- Ch 4: File I/O: The Universal I/O Model (4.7)
- Ch 5: File I/O: Further Details (5.1 - 5.6)
Materials
-
Slides: fds, open files, and i-nodes
-
Sample code:
read_range
Friday, Sept 16, 2022
Readings
The Linux Programming Interface
:
- Ch 4: File I/O: The Universal I/O Model (5.8)
- Ch 14: File Systems (14.1 - 14.7)
Materials
-
Slides: File Systems
-
Sample code:
{get,set}_file_size
Monday, Sept 19, 2022
Readings
The Linux Programming Interface
:
- Ch 15: File Attributes (15.1 - 15.4)
Materials
-
Slides: File Attributes
-
Sample code:
file_type
Wednesday, Sept 21, 2022
Readings
The Linux Programming Interface
:
- Ch 18: Directories and Links (18.1 - 18.3)
Materials
-
Slides: Directories and Links
Friday, Sept 23, 2022
Readings
The Linux Programming Interface
:
- Ch 18: Directories and Links (18.4 - 18.8)
- Ch 13: File I/O Buffering (13.1 - 13.8)
Materials
-
Slides: File I/O Buffering
-
Sample code:
list_dir
-
Sample code:
stdio_buf
-
Sample code:
repl