LibCore: Remove unused System::uname

This went unused.
This commit is contained in:
Undefine 2025-08-12 22:54:00 +02:00 committed by Jelle Raaijmakers
parent 0582c01c89
commit 41d04de1f2
Notes: github-actions[bot] 2025-11-07 10:29:40 +00:00
2 changed files with 0 additions and 10 deletions

View file

@ -520,14 +520,6 @@ ErrorOr<void> utimensat(int fd, StringView path, struct timespec const times[2],
return {};
}
ErrorOr<struct utsname> uname()
{
struct utsname uts;
if (::uname(&uts) < 0)
return Error::from_syscall("uname"sv, errno);
return uts;
}
ErrorOr<int> socket(int domain, int type, int protocol)
{
auto fd = ::socket(domain, type, protocol);

View file

@ -27,7 +27,6 @@
# include <sys/resource.h>
# include <sys/socket.h>
# include <sys/time.h>
# include <sys/utsname.h>
# include <sys/wait.h>
# include <termios.h>
# include <utime.h>
@ -140,7 +139,6 @@ struct WaitPidResult {
};
ErrorOr<WaitPidResult> waitpid(pid_t waitee, int options = 0);
ErrorOr<void> fchown(int fd, uid_t, gid_t);
ErrorOr<struct utsname> uname();
#endif
class AddressInfoVector {