KASTURI VENKATA SESHA SASIDHAR
2007-Dec-16 05:31 UTC
[zfs-code] /usr/bin and /usr/xpg4/bin differences
Hello, I am working on open solaris bugs .. and need to change the code of df in the above two folders.. I would like to know why there are two df''s with diff options in the respective folders.. /usr/bin/df is different is from /usr/xpg4/bin/df!! Why is it so?? What is this xpg4 represent? Thanks, Sasidhar. -- This messages posted from opensolaris.org
Frank Batschulat (Home)
2007-Dec-16 13:43 UTC
[zfs-code] /usr/bin and /usr/xpg4/bin differences
KASTURI VENKATA SESHA SASIDHAR wrote:> Hello, > I am working on open solaris bugs .. and need to change the code of df in the above two folders.. > > I would like to know why there are two df''s with diff options in the respective folders.. > /usr/bin/df is different is from /usr/xpg4/bin/df!! > > Why is it so?? What is this xpg4 represent?because of: standards(5) <snip> Utilities If the behavior required by POSIX.2, POSIX.2a, XPG4, SUS, or SUSv2 conflicts with historical Solaris utility behavior, the original Solaris version of the utility is unchanged; a new version that is standard-conforming has been provided in /usr/xpg4/bin. If the behavior required by POSIX.1-2001 or SUSv3 conflicts with historical Solaris utility behavior, a new version that is standard-conforming has been provided in /usr/xpg4/bin or in /usr/xpg6/bin. If the behavior required by POSIX.1-2001 or SUSv3 conflicts with POSIX.2, POSIX.2a, SUS, or SUSv2, a new version that is SUSv3 standard- conforming has been provided in /usr/xpg6/bin. An application that wants to use standard-conforming utili- tues must set the PATH (sh(1) or ksh(1)) or path (csh(1)) environment variable to specify the directories listed below in the order specified to get the appropriate utilities: SVID3, XPG3 1. /usr/ccs/bin 2. /usr/bin 3. directory containing binaries for your compiler 4. other directories containing binaries needed by the application POSIX.2, POSIX.2a, SUS, SUSv2, XPG4 1. /usr/xpg4/bin 2. /usr/ccs/bin 3. /usr/bin 4. directory containing binaries for your compiler 5. other directories containing binaries needed by the application <snip end> --- frankB