mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 02:03:06 -05:00
fe237ee215
- Turn Keyboard into a CharacterDevice (85,1) at /dev/keyboard. - Implement MM::unmapRegionsForTask() and MM::unmapRegion() - Save SS correctly on interrupt. - Add a simple Spawn syscall for launching another process. - Move a bunch of IO syscall debug output behind DEBUG_IO. - Have ASSERT do a "cli" immediately when failing. This makes the output look proper every time. - Implement a bunch of syscalls in LibC. - Add a simple shell ("sh"). All it can do now is read a line of text from /dev/keyboard and then try launching the specified executable by calling spawn(). There are definitely bugs in here, but we're moving on forward.
15 lines
194 B
C
15 lines
194 B
C
#pragma once
|
|
|
|
#include "types.h"
|
|
|
|
extern "C" {
|
|
|
|
uid_t getuid();
|
|
gid_t getgid();
|
|
pid_t getpid();
|
|
int open(const char* path);
|
|
ssize_t read(int fd, void* buf, size_t count);
|
|
int close(int fd);
|
|
|
|
}
|
|
|