#include #include #include #include "child.h" // struct d_window { // int ptmx; // fd // }; // struct d_window new_window() { // struct d_window w = { // .ptmx = posix_openpt(O_RDWR | O_NOCTTY), // }; // } int main(int argc, char **argv) { struct d_child child; spawnchild(&child); return EXIT_SUCCESS; }