diff options
author | 諏訪子 <suwako@076.moe> | 2024-06-20 00:43:47 +0900 |
---|---|---|
committer | 諏訪子 <suwako@076.moe> | 2024-06-20 00:43:47 +0900 |
commit | f7d10e058c16452de087a3774fe6645fc995b61f (patch) | |
tree | 2f521c599222258a2799f65a1f5776a841df5dbf /src/user.c | |
parent | fb2f5ff0a7f44a27b95bee6f755d4ed2add4d9fa (diff) |
全てのOSで「hostname」ってコマンドがあるから、OS別のコマンドが不要
Diffstat (limited to 'src/user.c')
-rw-r--r-- | src/user.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -6,13 +6,5 @@ const char *display_user_name() { } const char *display_user_host() { -#if defined(__OpenBSD__) - return run_command_s("cat /etc/myname"); -#elif defined(__NetBSD__) return run_command_s("hostname"); -#elif defined(__FreeBSD__) - return run_command_s("sysctl -n kern.hostname"); -#else - return run_command_s("cat /etc/hostname"); -#endif } |