summaryrefslogtreecommitdiff
path: root/lib/libc/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-08-06 22:35:02 -0400
committerIan Moffett <ian@osmora.org>2025-08-06 22:39:08 -0400
commit3e1379d84c4502a380cad375b93a7cf36ab2c02e (patch)
tree34820cfc764ee2fec0a3aa8e5606f615a08c915a /lib/libc/include
parentbef8fdb8d444b61dc71ea446eeb0d9208ee77ad3 (diff)
lib: libc: Implement gethostname() + sethostname()
This commit adds the POSIX gethostname() and sethostname() functions to the Hyra C library. Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'lib/libc/include')
-rw-r--r--lib/libc/include/unistd.h3
1 files changed, 3 insertions, 0 deletions
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);