Implemented windows implementation of uniproc

This commit is contained in:
riley committed 2025-03-02 22:46:22 +11:00
1 parent 9cc6d81a9f
commit d47f6be401
3 files changed
+141

No files matched your search

+18
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);