Binary Compatibility
Sun is providing the Binary Compatibility Package (BCP) to aid in
users transition from SunOS 4.x to 5.x. Here is a list of what the
BCP actually does (courtesy of ups.ucn.purdue.edu):
- Ensure that SunOS executables are properly linked and loaded at run
time, using the correct set of libraries.
- Enable SunOS executable files in a.out object file format
to execute on Solaris (where the default object file format is ELF).
- Correctly map SunOS system calls to the corresponding SunOS 5.x
system calls. Even if the interface to or behavior of the system
calls differs, this mapping ensures that the SunOS binaries will
run as expected.
- Provide SunOS behavior for library routines with new interfaces or
different behaviors.
- Provide the SunOS signal handling behavior, and correctly map SunOS
signals to the corresponding SunOS 5.x signals.
- Correctly map the set of supported SunOS ioctls to the corresponding
SunOS 5.x ioctls, and ensure that the ioctl parameters are
properly mapped.
- Ensure that commands and utilities are at the expected locations,
or transparently perform the necessary mapping of path names.
- Whenever possible, provide SunOS-compatible versions of system
files when the file formats are different or the SunOS files have
no counterpart in Solaris.
- Ensure that proper links are set up when system file names or paths
are different.
Since we are still in the process of upgrading (i.e. only Holly has
been upgraded), use of this package is expected. However, when the
machine you use has been upgraded, you should recompile your
applications.
SunOS 4.x and the Equivalent SunOS 5.x Commands
Here is a brief list of SunOS 4.x commands and their SunOS 5.x equivalents
(taken from the
Solaris FAQ):
SunOS 4.x | SunOS 5.x |
add_services | pkgadd |
arch | uname -m |
bar | Not available. Use cpio -H bar to
retrieve SunOS 4.x archives. |
biff -y | chmod o+x /dev/tty |
biff -n | chmod o-x /dev/tty |
cc | Not available. Use GNU's gcc. |
dbxtool | debugger (I can't find this, use gdb) |
devinfo | prtconf |
df | df -k |
du | du -k |
dump | /usr/sbin/ufsdump |
etherfind | snoop |
exportfs | share (exportfs is supplied in /usr/ucb) |
extract_unbundled | pkgadd |
reboot | reboot or init 6 |
fasthalt | init 0 |
hostid | sysdef -h |
hostname | uname -n |
lpc | lpadmin |
lpd | lpsched |
lpq | lpstat |
lpr | lp |
lprm | cancel |
mach | uname -p |
make | /usr/ccs/make or GNU's make |
mount -t | mount -F |
mountall | mount -a |
ps -a | ps -e |
ps -aux | ps -efl |
pstat | sar |
pstat -s | swap -s |
restore | /usr/sbin/ufsrestore |
showmount | dfmounts |
swapon | swap -a |
uptime | who -b |
users | who -q |
vipw | Not available |
whereis | Not available |
whoami | id |
©1996 kevin mcfadden