├── system call.pdf ├── Installation of Bodhi Linux.pdf ├── Installation of Bodhi Linux ├── system call fstat() └── README.md /system call.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bezawit-abta/Bezawit-Abita-Bodhi-Linux_/HEAD/system call.pdf -------------------------------------------------------------------------------- /Installation of Bodhi Linux.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bezawit-abta/Bezawit-Abita-Bodhi-Linux_/HEAD/Installation of Bodhi Linux.pdf -------------------------------------------------------------------------------- /Installation of Bodhi Linux: -------------------------------------------------------------------------------- 1 | Bodhi Linux is a lightweight Linux distribution based on Ubuntu. It uses the Moksha Desktop, which is known for its speed and minimal resource usage. The system is ideal for older hardware or users who prefer a clean, customizable interface. Bodhi comes with only essential software pre-installed, giving users full control over what to add. Its active community and regular updates keep the distro reliable and secure 2 | -------------------------------------------------------------------------------- /system call fstat(): -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | 6 | void handler(int sig) { 7 | // Just print something for demonstration 8 | printf("Signal %d received\n", sig); 9 | } 10 | 11 | int main() { 12 | signal(SIGINT, handler); // Set up signal handler 13 | char *data = "Hello\n"; 14 | ssize_t result = write(1, data, 6); // writing to stdout 15 | if (result == -1 && errno == EINTR) { 16 | perror("write was interrupted by signal"); 17 | } else { 18 | printf("write completed, wrote %zd bytes\n", result); 19 | } 20 | return 0; 21 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # installation of bodhi linux 2 | Bodhi Linux is a lightweight Linux distribution based on Ubuntu. It uses the Moksha Desktop, which is known for its speed and minimal resource usage. The system is ideal for older hardware or users who prefer a clean, customizable interface. Bodhi comes with only essential software pre-installed, giving users full control over what to add. Its active community and regular updates keep the distro reliable and secure. 3 | # system call(fstat) 4 | The fstat system call retrieves information about an open file, identified by its file descriptor. It fills a stat structure with details like file size, permissions, and timestamps. fstat is commonly used in low-level file handling to inspect file metadata without needing the file path. 5 | --------------------------------------------------------------------------------