From 3a9241add947cb6d24b5de7a8927517426a78795 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 25 Aug 2012 14:25:22 -0500 Subject: Move commands into "posix", "lsb", and "other" menus/directories. --- toys/uname.c | 74 ------------------------------------------------------------ 1 file changed, 74 deletions(-) delete mode 100644 toys/uname.c (limited to 'toys/uname.c') diff --git a/toys/uname.c b/toys/uname.c deleted file mode 100644 index 185d633e..00000000 --- a/toys/uname.c +++ /dev/null @@ -1,74 +0,0 @@ -/* vi: set sw=4 ts=4: - * - * uname.c - return system name - * - * Copyright 2008 Rob Landley - * - * See http://www.opengroup.org/onlinepubs/009695399/utilities/uname.html - -USE_UNAME(NEWTOY(uname, "amvrns", TOYFLAG_BIN)) - -config UNAME - bool "uname" - default y - help - usage: uname [-asnrvmpio] - - Print system information. - - -s System name - -n Network (domain) name - -r Release number - -v Version (build date) - -m Machine (hardware) name - -a All of the above -*/ - -#include "toys.h" - -// If a 32 bit x86 build environment working in a chroot under an x86-64 -// kernel returns x86_64 for -m it confuses ./configure. Special case it. - -#if defined(__i686__) -#define GROSS "i686" -#elif defined(__i586__) -#define GROSS "i586" -#elif defined(__i486__) -#define GROSS "i486" -#elif defined(__i386__) -#define GROSS "i386" -#endif - -#define FLAG_a (1<<5) - -void uname_main(void) -{ - int i, flags = toys.optflags, needspace=0; - - uname((void *)toybuf); - - if (!flags) flags=1; - for (i=0; i<5; i++) { - char *c = toybuf+(65*i); - - if (flags & ((1<