Skip to content

Commit 82710e6

Browse files
syscall.h thing
1 parent 001d3f7 commit 82710e6

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

src/kernel/syscall.h

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
//
2+
// Created by AIDAN on 5/13/2025.
3+
//
4+
5+
#ifndef KITTY_SYSCALL_H
6+
#define KITTY_SYSCALL_H
7+
8+
#include <stdbool.h>
9+
#include "../cpu/cpu_options.h"
10+
#include "stdint.h"
11+
12+
typedef BITS_TYPE node_descriptor;
13+
14+
void open(char* path);
15+
void close(node_descriptor nd);
16+
void read(node_descriptor nd, BITS_TYPE offset, BITS_TYPE buffer, BITS_TYPE length);
17+
void write(node_descriptor nd);
18+
void symlink(node_descriptor nd, char* path, bool writeable);
19+
void create(node_descriptor nd, char* path);
20+
21+
#endif //KITTY_SYSCALL_H

0 commit comments

Comments
 (0)