Skip to content

3. Porting To Your OS

stupd edited this page Oct 1, 2024 · 2 revisions

Porting TO Your OS

Notice:

This article is not a tutorial, you are expected to do this on your own with the resources provided to you.

"Needs more work!":

This article is a stub.

Your coding environment

  • A working cross-compiler (e.g. GCC, LLVM/Clang)
  • A working elf loader in your OS
  • A code editor (Ofc)

Getting started

You'll start by porting the libraries below to your OS (IM SO SORRY):

#include <sys/wait.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <time.h>
#include <unistd.h>
#include <fcntl.h>
#include <dirent.h>
#include <stdbool.h>
#include <dirent.h> 

Once done you can start making the shell work

Clone this wiki locally