Kernel: Added the ability to set the hostname via new syscall

Userland/hostname: Now takes parameter to set the hostname
LibC/unistd: Added sethostname function
This commit is contained in:
Luke Payne 2020-04-26 15:59:47 +10:00 committed by Andreas Kling
commit f191b84b50
Notes: sideshowbarker 2024-07-19 07:17:18 +09:00
7 changed files with 40 additions and 9 deletions

View file

@ -36,7 +36,7 @@ struct GlobalState {
String username;
String home;
char ttyname[32];
char hostname[32];
char hostname[64];
uid_t uid;
struct termios termios;
struct termios default_termios;