begin simple child process interface

This commit is contained in:
Emile Clark-Boman 2025-09-10 01:25:08 +10:00
parent 8991d8ec04
commit 2e10e88504
3 changed files with 82 additions and 14 deletions

14
cli/child.h Normal file
View file

@ -0,0 +1,14 @@
#ifndef DORNE_CHILD_H
#define DORNE_CHILD_H
#include <unistd.h>
struct d_child {
pid_t pid;
int fdmx; /* PTY master fd (read/write) */
int fderr; /* child's stderr (readonly) */
} __attribute__((packed, aligned(4)));
int spawnchild(struct d_child *child);
#endif /* DORNE_CHILD_H */