Implementing my own C libs

This commit is contained in:
Harshit-Dhanwalkar 2026-06-08 13:36:51 +05:30
parent c0ddc27b5d
commit 5f98c5b633
24 changed files with 1245 additions and 381 deletions

View file

@ -1,11 +1,15 @@
/*
Still uses pthread functions, TODO: replace them with raw futex syscalls and clone()
*/
#include "ascii.h"
#include "capture.h"
#include "thread_sharing.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/mman.h>
#include <stdint.h>
#include "nolibc.h"
// Producer thread for capturing frames
void *capture_thread(void *arg) {