mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
Kernel: Use Userspace<T> for the gethostname syscall
This commit is contained in:
parent
b069d757a3
commit
1d9554f470
Notes:
sideshowbarker
2024-07-19 04:05:48 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/1d9554f4708 Pull-request: https://github.com/SerenityOS/serenity/pull/3062 Reviewed-by: https://github.com/awesomekling
2 changed files with 2 additions and 2 deletions
|
@ -250,7 +250,7 @@ public:
|
|||
int sys$clock_gettime(clockid_t, Userspace<timespec*>);
|
||||
int sys$clock_settime(clockid_t, Userspace<const timespec*>);
|
||||
int sys$clock_nanosleep(Userspace<const Syscall::SC_clock_nanosleep_params*>);
|
||||
int sys$gethostname(char*, ssize_t);
|
||||
int sys$gethostname(Userspace<char*>, ssize_t);
|
||||
int sys$sethostname(const char*, ssize_t);
|
||||
int sys$uname(utsname*);
|
||||
int sys$readlink(Userspace<const Syscall::SC_readlink_params*>);
|
||||
|
|
|
@ -31,7 +31,7 @@ namespace Kernel {
|
|||
extern String* g_hostname;
|
||||
extern Lock* g_hostname_lock;
|
||||
|
||||
int Process::sys$gethostname(char* buffer, ssize_t size)
|
||||
int Process::sys$gethostname(Userspace<char*> buffer, ssize_t size)
|
||||
{
|
||||
REQUIRE_PROMISE(stdio);
|
||||
if (size < 0)
|
||||
|
|
Loading…
Reference in a new issue