Implemented windows implementation of uniproc

This commit is contained in:
2025-03-02 22:46:22 +11:00
parent 9cc6d81a9f
commit d47f6be401
3 changed files with 141 additions and 0 deletions

18
include/uniproc.h Normal file
View File

@@ -0,0 +1,18 @@
#pragma once
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <Windows.h>
typedef struct {
FILE* in;
FILE* out;
FILE* err;
// OS-dependent handle to the process
uint32_t _proc_hdl;
} uniproc_process;
uniproc_process uniproc_create_process(const char* cmd);
void uniproc_await_processes(uniproc_process* p, int* return_codes, size_t num_processes);
void uniproc_close_process(uniproc_process* p);