Code:
$ uname -a
SunOS myblade1 5.10 Generic_147440-07 sun4u sparc SUNW,Sun-Blade-100
$ /bin/sparc && echo 'I AM a sparc' || echo 'I am NOT a sparc'
I AM a sparc
$ /bin/sun && echo 'I AM a sun' || echo 'I am NOT a sun'
I am NOT a sun
$ /bin/sun4 && echo 'I AM a sun' || echo 'I am NOT a sun'
I am NOT a sun
$ truss /bin/sun
execve("/usr/bin/sun", 0xFFBFF9DC, 0xFFBFF9E4) argc = 1
sysinfo(SI_MACHINE, "sun4u", 257) = 6
mmap(0x00000000, 32, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF3F0000
mmap(0x00000000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF3A0000
mmap(0x00000000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF390000
memcntl(0xFF3B0000, 17560, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF380000
memcntl(0x00010000, 1528, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
resolvepath("/usr/lib/ld.so.1", "/lib/ld.so.1", 1023) = 12
resolvepath("/usr/bin/sun", "/usr/bin/sun", 1023) = 12
stat64("/usr/bin/sun", 0xFFBFF4A8) = 0
open("/var/ld/ld.config", O_RDONLY) Err#2 ENOENT
stat64("/lib/libc.so.1", 0xFFBFEC08) = 0
resolvepath("/lib/libc.so.1", "/lib/libc.so.1", 1023) = 14
open("/lib/libc.so.1", O_RDONLY) = 3
mmap(0x00010000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) = 0xFF370000
mmap(0x00010000, 1368064, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF200000
mmap(0xFF200000, 1245365, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFF200000
mmap(0xFF342000, 35965, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 1253376) = 0xFF342000
mmap(0xFF34C000, 1616, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xFF34C000
munmap(0xFF332000, 65536) = 0
munmap(0xFF370000, 32768) = 0
close(3) = 0
memcntl(0xFF200000, 145988, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
mmap(0x00010000, 24576, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF370000
getcontext(0xFFBFF318)
getrlimit(RLIMIT_STACK, 0xFFBFF2F8) = 0
getpid() = 1054 [1053]
setustack(0xFF372A88)
sysinfo(SI_ARCHITECTURE, "sparc", 257) = 6
sysinfo(SI_MACHINE, "sun4u", 257) = 6
sysinfo(SI_HW_PROVIDER, "Oracle Corporation", 257) = 19
_exit(255)
$