From 3e1379d84c4502a380cad375b93a7cf36ab2c02e Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 6 Aug 2025 22:35:02 -0400 Subject: lib: libc: Implement gethostname() + sethostname() This commit adds the POSIX gethostname() and sethostname() functions to the Hyra C library. Signed-off-by: Ian Moffett --- lib/libc/include/unistd.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/libc/include/unistd.h') diff --git a/lib/libc/include/unistd.h b/lib/libc/include/unistd.h index 8b03b81..21206ad 100644 --- a/lib/libc/include/unistd.h +++ b/lib/libc/include/unistd.h @@ -47,6 +47,9 @@ __BEGIN_DECLS int sysconf(int name); int setuid(uid_t new); +int gethostname(char *name, size_t size); +int sethostname(const char *name, size_t size); + uid_t getuid(void); char *getlogin(void); -- cgit v1.2.3