First of all go to /usr/src/include and create a header file with this structure:
NAME.h
_PROTOTYPE(int FUNCTION_NAME, (int PARAM));
After this go to /usr/src/lib/other and create the file with this structure:
NAME.c
#include<lib.h>
#include<unistd.h>
#include<stdio.h>PUBLIC int FUNCTION_NAME(int PARAM) {
// WHAT TO DO?!
}
Edit the file Makefile.in in the same directory (/usr/src/lib/other). Add the name of your file in the list using alphabetical order.
What to do now?
You need to regenerate the Makefile.
$ cd /usr/src/lib/other/
$ make Makefile
Generate the libraries: (slow process)
$ cd /usr/src/tools
$ make libraries
And when it ends without erros “compile” the system:
$ cd /usr/src/tools
$ make hdboot
It will replace your system with the new one automaticlly, you must restart to see the changes.
Now how to test? Create a file in /root dir.
testTest.c
#include <stdio.h>
#include <unistd.h>
#include <lib.h>
#include <fcntl.h>
#include <NAME.h>int main(int argc, char *argv[]) {
FUNCTION_NAME(PARAM);
}
Now you can create your own libraries to Minix system.
Example of library created by user to Minix
Best Regards,
Matheus
speelhal uithoorn
my web site :: beste gokken paysafecard nederland (Vida)
fantasy gambling apps [Gus] legal in canada,
online casino united states 1 dollar deposit and casino online real money australia, or $10 deposit usa
casinos
united kingdom real money online casino, free spins no deposit
online casino australia and best casino site australia, or new casinos no deposit bonus usa
Feel free to surf to my blog post: is gambling legal in bermuda
beste gokken met neteller
Feel free to visit my webpage … amusementshal zwolle
milwaukie casinos, online slots wynn casino table games – Bea
– australia and best casino site canada, or australian online casino no deposit signup bonus
remote gambling usa license, legitimate online pokies australia and
free no deposit australia casino, or best online casino for slots
uk
Here is my website … How do You play blackjack rules