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
glorious goodwood best horse racing Betting strategy
tip
patent betting Live lines (https://www.Infinitumfest.com)
explained
top mobile best sports Betting
live Best Tour De France Betting Site
tips
ruby fortune online pokies canada, bet365 poker united states and legit australian online casino,
or when was the first casino built in Gambling Etf Australia
das sicherste online casino munich unterföhring