1 /* linux32.c - Change uname -m output, and on some architectures /proc/cpuinfo 2 * 3 * Copyright 2023 Rob Landley <[email protected]> 4 * 5 * No standard: it's a syscall wrapper provided by util-linux. 6 7 USE_LINUX32(NEWTOY(linux32, 0, TOYFLAG_USR|TOYFLAG_BIN)) 8 9 config LINUX32 10 bool "linux32" 11 default y 12 help 13 usage: linux32 [COMMAND...] 14 15 Tell uname -m to lie to autoconf (to build 32 bit binaries on 64 bit kernel). 16 */ 17 18 #include "toys.h" 19 linux32_main(void)20void linux32_main(void) 21 { 22 personality(PER_LINUX32); 23 xexec(toys.optc ? toys.optargs : (char *[]){"/bin/sh", 0}); 24 } 25