├── OSSP_Individual_Yonas_Abate_Hunegnaw_1602838_Section_B..pdf ├── README.md ├── system call.c └── system call.pdf /OSSP_Individual_Yonas_Abate_Hunegnaw_1602838_Section_B..pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yonasabate21/BEOS-OS-Assignment/d51061d989068b4c357a408f58ea484e6e689696/OSSP_Individual_Yonas_Abate_Hunegnaw_1602838_Section_B..pdf -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | Documentation Content 3 | 4 | BeOS Project Documentation 5 | ## OS Installation description 6 | This guide outlines the installation of an outdated version of BeOS in a virtual environment. 7 | The process was performed using VirtualBox, with default virtual hardware settings. 8 | Due to limitations of the legacy ISO, some installation steps required manual configuration. 9 | Although no screenshots were available, each step was verified through console messages. 10 | The system booted successfully into the BeOS GUI environment. 11 | 12 | ## System Call Implementation description 13 | This section describes the implementation of a basic custom system call in the BeOS kernel. 14 | Kernel source code was modified and recompiled using the legacy build tools included in the BeOS developer kit. 15 | The system call was designed to return a predefined message to the user space. 16 | Testing was completed via a simple user-level application that invoked the new call. 17 | Functionality was confirmed by observing correct output from the user application. 18 | -------------------------------------------------------------------------------- /system call.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | using namespace std; 6 | 7 | int main() { 8 | ofstream file("newfile.txt"); 9 | if (!file) { 10 | cerr << "File creation failed." << endl; 11 | return 1; 12 | } 13 | 14 | file << "This is a system call demonstration." << endl; 15 | file.close(); 16 | 17 | FILE *checkFile = fopen("newfile.txt", "r"); 18 | if (checkFile) { 19 | cout << "File created successfully." << endl; 20 | fclose(checkFile); 21 | } else { 22 | cerr << "File does not exist." << endl; 23 | } 24 | 25 | return 0; 26 | } 27 | -------------------------------------------------------------------------------- /system call.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yonasabate21/BEOS-OS-Assignment/d51061d989068b4c357a408f58ea484e6e689696/system call.pdf --------------------------------------------------------------------------------