mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +00:00
Kernel: Pass characters+length to readlink()
Note that I'm developing some helper types in the Syscall namespace as I go here. Once I settle on some nice types, I will convert all the other syscalls to use them as well.
This commit is contained in:
parent
5c3c2a9bac
commit
0695ff8282
4 changed files with 37 additions and 12 deletions
|
@ -151,7 +151,7 @@ public:
|
|||
int sys$clock_nanosleep(const Syscall::SC_clock_nanosleep_params*);
|
||||
int sys$gethostname(char*, ssize_t);
|
||||
int sys$uname(utsname*);
|
||||
int sys$readlink(const char*, char*, ssize_t);
|
||||
int sys$readlink(const Syscall::SC_readlink_params*);
|
||||
int sys$ttyname_r(int fd, char*, ssize_t);
|
||||
int sys$ptsname_r(int fd, char*, ssize_t);
|
||||
pid_t sys$fork(RegisterDump&);
|
||||
|
@ -260,6 +260,8 @@ public:
|
|||
bool validate_read_typed(T* value, size_t count = 1) { return validate_read(value, sizeof(T) * count); }
|
||||
template<typename T>
|
||||
bool validate_write_typed(T* value, size_t count = 1) { return validate_write(value, sizeof(T) * count); }
|
||||
template<typename DataType, typename SizeType>
|
||||
bool validate(const Syscall::MutableBufferArgument<DataType, SizeType>&);
|
||||
|
||||
Custody& current_directory();
|
||||
Custody* executable() { return m_executable.ptr(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue