summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-10-27 00:48:21 +0200
committerAnton Kling <anton@kling.gg>2023-10-30 21:49:48 +0100
commit5026f823fa2708404302aa59d03401635a435c0b (patch)
tree03d8db6da25416fa27b9744ae60df2cfa5fc1d2b /fs
parentf8e15da04472f5ed6a26e588de4a23cb3e1ba20b (diff)
Kernel/Networking/LibC: Add syscalls and libc functions for UDP
This allows a UDP server to be created in userland and read data. Currently it can't send data and is very very simplistic. Code is horrible and probably needs some fixing until it can be further built upon.
Diffstat (limited to 'fs')
-rw-r--r--fs/fifo.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/fifo.h b/fs/fifo.h
index ee91ba1..1ba7168 100644
--- a/fs/fifo.h
+++ b/fs/fifo.h
@@ -1,17 +1,18 @@
+typedef struct S_FIFO_FILE FIFO_FILE;
#ifndef FIFO_H
#define FIFO_H
#include "vfs.h"
#include <stddef.h>
#include <stdint.h>
-typedef struct {
+struct S_FIFO_FILE {
char *buffer;
uint64_t buffer_len;
uint64_t write_len;
uint8_t is_blocking;
uint8_t has_data;
uint8_t can_write;
-} FIFO_FILE;
+};
int create_fifo(void);
FIFO_FILE *create_fifo_object(void);