Antes de tudo acesse /usr/src/include e crie o arquivo Header com a seguinte estrutura:
NOME.h
_PROTOTYPE(int NOME_DA_FUNCAO, (int PARAM));
Depois disso acesse /usr/src/lib/other e crie o arquivo com a seguinte estrutura:
NOME.c
#include<lib.h>
#include<unistd.h>
#include<stdio.h>PUBLIC int NOME_DA_FUNCAO(int PARAM) {
// O QUE FAZ?
}
Edite o arquivo Makefile.in no mesmo diretorio (/usr/src/lib/other). Adicione o nome do seu arquivo a lista em ordem alfabetica.
O que fazer agora?
Regere o arquivo Makefile
$ cd /usr/src/lib/other/
$ make Makefile
Gere as bibliotecas: (processo um pouco lento dependendo da maquina)
$ cd /usr/src/tools
$ make libraries
Quando finalizar sem erros “compile” o sistema:
$ cd /usr/src/tools
$ make hdboot
Ele substituira os arquivos do boot automaticamente, para ter as atualizacoes, reiniciar o sistema.
Como testar? Crie um arquivo no /
testTest.c
#include <stdio.h>
#include <unistd.h>
#include <lib.h>
#include <fcntl.h>
#include <NOME.h>int main(int argc, char *argv[]) {
NOME_DA_FUNCAO(PARAM);
}
Agora voce pode criar suas proprias bibliotecas do sistema no Minix.
Exemplo de biblioteca criada pelo usuario para o Minix
Atenciosamente,
Matheus
online casino 100 euro neteller
Here is my page – beste roulette trustly
box betting in horse racing
Look at my homepage; today’s crayford greyhound results
virtual betting site
Also visit my website top european sportsbooks; Alison,
southwell placing a horse racing bet (Monroe) results today live
sport wedden trucs Gratis (Nanwaimpex.com) aanbieder online 2026
beginners guide to gp betting
bingo geld
my web page: wo ist das größte casino der welt (Dan)
kenozahlen von heute live
Feel free to visit my web site … online slots real money; Mavis,
References:
Lex Casino Auszahlung https://s3.amazonaws.com/new-casino/Lex-Casino-Auszahlung.html