21 lines
357 B
C
21 lines
357 B
C
#include <fcntl.h>
|
|
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
|
|
#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;
|
|
}
|