Add a display server and graphical user interface #38

Merged
apio merged 103 commits from display-server into main 2023-09-20 18:49:21 +00:00
Showing only changes of commit 29a341d8f3 - Show all commits

View File

@ -339,6 +339,13 @@ static void mount_shmfs()
if (chmod("/dev/shm", 01777) < 0) exit(255);
}
static void mount_devpts()
{
if (mkdir("/dev/pts", 0755) < 0) exit(255);
if (mount("/dev/pts", "devpts", "devpts") < 0) exit(255);
}
Result<int> sysinit(StringView path)
{
if (getpid() != 1)
@ -359,6 +366,7 @@ Result<int> sysinit(StringView path)
mount_tmpfs();
mount_shmfs();
mount_devpts();
umask(022);