1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:47:34 +00:00

LibC: Implement pause function

This commit is contained in:
Jean-Baptiste Boric 2021-08-11 18:49:13 +02:00 committed by Andreas Kling
parent f2b8b46bb0
commit b6b6add78f
2 changed files with 7 additions and 0 deletions

View file

@ -21,6 +21,7 @@
#include <string.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/select.h>
#include <sys/types.h>
#include <syscall.h>
#include <termios.h>
@ -813,4 +814,9 @@ int getpagesize()
{
return PAGE_SIZE;
}
int pause()
{
return select(0, nullptr, nullptr, nullptr, nullptr);
}
}