diff options
-rw-r--r-- | usr.bin/sysctl/sysctl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.bin/sysctl/sysctl.c b/usr.bin/sysctl/sysctl.c index 18209bd..d4275a7 100644 --- a/usr.bin/sysctl/sysctl.c +++ b/usr.bin/sysctl/sysctl.c @@ -44,6 +44,7 @@ /* Hw var string constants */ #define NAME_PAGESIZE "pagesize" #define NAME_NCPU "ncpu" +#define NAME_MACHINE "machine" /* Name start string constants */ #define NAME_KERN "kern" @@ -166,6 +167,11 @@ hw_node(const char *node, bool *is_str) } return -1; + case 'm': + if (strcmp(node, NAME_MACHINE) == 0) { + return HW_MACHINE; + } + return -1; } return -1; |