This repository contains different Lab session code practies in college. we practied some of the main system programming concept such as:
- Files Input Output operations:-
int open (const char* Path, int flags [, int mode ]);
int creat(char *filename, mode_t mode)
int close(int fd);
size_t read (int fd, void* buf, size_t cnt);
size_t write(int fd, void* buf, size_t cnt);
off_t lseek(int fd, off_t offset, int whence);
- How to access uinx files and directories using c programming language
int stat(const char *pathname, struct stat *buf);
int fstat(int fildes, struct stat *buf);
int lstat(const char *pathname, struct stat *buf);