file_io_syscalls.c - a C program that demonstrates uses of the creat(), open(), read(), write(), pread(), pwrite(), ftruncate(), fsync(), sync(), lseek(), and close() file I/O system calls.
select_syscall_example.c - a C program that demonstrates a use of the select() system call, which continuously checks for the availability of several I/O files.
poll_syscall_example.c - a C program that demonstrates a use of the poll() system call, a more efficient function than select() in some aspects. It continuously checks for the availability of several I/O files.
Runnable Linux Commands
The command: gcc -Wall -Wextra -O2 -g -o program program.c
compiles the C source code located inside the file program.c. See more details here.
The command: . ./.short_prompt
executes code inside a file named .short_prompt and sources it (applies all the changes to the current session.) See more details here.
The command: . ./.long_prompt
executes code inside a file named .long_prompt and sources it (applies all the changes to the current session.) See more details here.