mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:57:44 +00:00
LibC: Implement pause function
This commit is contained in:
parent
f2b8b46bb0
commit
b6b6add78f
2 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -121,6 +121,7 @@ int umount(const char* mountpoint);
|
|||
int pledge(const char* promises, const char* execpromises);
|
||||
int unveil(const char* path, const char* permissions);
|
||||
char* getpass(const char* prompt);
|
||||
int pause();
|
||||
|
||||
enum {
|
||||
_PC_NAME_MAX,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue