il fallait que sa puisse passer sur un cv
This commit is contained in:
+5
-5
@@ -4,35 +4,35 @@
|
|||||||
"target_name": "syscall",
|
"target_name": "syscall",
|
||||||
'cflags': [ '-Wall' ],
|
'cflags': [ '-Wall' ],
|
||||||
"sources": [
|
"sources": [
|
||||||
"clibs/chibrax/syscall.cc"
|
"clibs/syscall.cc"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"target_name": "ioctl",
|
"target_name": "ioctl",
|
||||||
'cflags': [ '-Wall' ],
|
'cflags': [ '-Wall' ],
|
||||||
"sources": [
|
"sources": [
|
||||||
"clibs/chibrax/ioctl.cc"
|
"clibs/ioctl.cc"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"target_name": "mount",
|
"target_name": "mount",
|
||||||
'cflags': [ '-Wall' ],
|
'cflags': [ '-Wall' ],
|
||||||
"sources": [
|
"sources": [
|
||||||
"clibs/chibrax/mount.cc"
|
"clibs/mount.cc"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"target_name": "socket",
|
"target_name": "socket",
|
||||||
'cflags': [ '-Wall' ],
|
'cflags': [ '-Wall' ],
|
||||||
"sources": [
|
"sources": [
|
||||||
"clibs/chibrax/socket.cc"
|
"clibs/socket.cc"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"target_name": "ip",
|
"target_name": "ip",
|
||||||
'cflags': [ '-Wall', '-Wextra' ],
|
'cflags': [ '-Wall', '-Wextra' ],
|
||||||
"sources": [
|
"sources": [
|
||||||
"clibs/chibrax/ip.cc"
|
"clibs/ip.cc"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -4,4 +4,4 @@ then echo "Please don't run this as root"
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
gcc chibraxLoader.c -O3 -o init
|
gcc osLoader.c -O3 -o init
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
//Chemin exacte de node (a changer aprés la creation d'un gestionnaire de packets)
|
//Chemin exacte de node (a changer aprés la creation d'un gestionnaire de packets)
|
||||||
#define node "/usr/local/bin/node"
|
#define node "/usr/local/bin/node"
|
||||||
#define chibrax "/chibrax/index.js"
|
#define chibrax "/core/index.js"
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
execl(node, node, chibrax);
|
execl(node, node, chibrax);
|
||||||
@@ -1,10 +1,3 @@
|
|||||||
#
|
|
||||||
# DO NOT EDIT THIS FILE
|
|
||||||
#
|
|
||||||
# It is automatically generated by grub-mkconfig using templates
|
|
||||||
# from /etc/grub.d and settings from /etc/default/grub
|
|
||||||
#
|
|
||||||
|
|
||||||
### BEGIN /etc/grub.d/00_header ###
|
### BEGIN /etc/grub.d/00_header ###
|
||||||
insmod part_gpt
|
insmod part_gpt
|
||||||
insmod part_msdos
|
insmod part_msdos
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//@ts-check
|
//@ts-check
|
||||||
const { cmount, mount, flags } = require('../../chibrax/mount.js')
|
const { cmount, mount, flags } = require('../../core/mount.js')
|
||||||
|
|
||||||
async function init() {
|
async function init() {
|
||||||
cmount("dummy", "/proc", "proc",
|
cmount("dummy", "/proc", "proc",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const ip = require('../../chibrax/ip')
|
const ip = require('../../core/ip')
|
||||||
//async is optional but recomended for optimisation (optimisations are yet to be implemented)
|
//async is optional but recomended for optimisation (optimisations are yet to be implemented)
|
||||||
async function init() {
|
async function init() {
|
||||||
ip.setFlags('lo', ip.flags.IFF_UP | ip.flags.IFF_LOOPBACK | ip.flags.IFF_RUNNING)
|
ip.setFlags('lo', ip.flags.IFF_UP | ip.flags.IFF_LOOPBACK | ip.flags.IFF_RUNNING)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const audio = require('/chibrax/audio.js')
|
const audio = require('../../core/audio')
|
||||||
|
|
||||||
async function init() {
|
async function init() {
|
||||||
audio('/chibrax/sheeebr.wav')
|
audio('/chibrax/sheeebr.wav')
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//@ts-check
|
//@ts-check
|
||||||
const graphics = require('../../chibrax/graphics')
|
const graphics = require('../../core/graphics')
|
||||||
const shapes = require('../lib/shapes')
|
const shapes = require('../lib/shapes')
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//@ts-check
|
//@ts-check
|
||||||
const { finit_module, uname } = require('../../chibrax/kernel.js')
|
const { finit_module, uname } = require('../../core/kernel.js')
|
||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
* DICKPICK is a image drawing library
|
* DICKPICK is a image drawing library
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const graphics = require('../../chibrax/graphics')
|
const graphics = require('../../core/graphics')
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param { number } x
|
* @param { number } x
|
||||||
|
|||||||
Reference in New Issue
Block a user