Simple file for testing on chapter 1
This commit is contained in:
9
chp1/syscalls/example1.c
Normal file
9
chp1/syscalls/example1.c
Normal file
@@ -0,0 +1,9 @@
|
||||
#include <fcntl.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int main(void) {
|
||||
int fd = open("test.txt", O_CREAT | O_RDWR);
|
||||
// close(fd);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
Reference in New Issue
Block a user