Installation guide
B
Differences in ULTRIX and DIGITAL UNIX
Header Files and Library Routines
A number of system header files are different between the DIGITAL UNIX
and ULTRIX systems. In some cases, an ULTRIX header file is unavailable
on DIGITAL UNIX systems. Some differences between DIGITAL UNIX and
ULTRIX header files are in the definitions of constants. Some constants
that are defined on ULTRIX systems are undefined on DIGITAL UNIX
systems; other constants have different values on DIGITAL UNIX and
ULTRIX systems. Other differences are in the definitions of functions.
Some ULTRIX functions are not defined on DIGITAL UNIX systems; others
have different parameters or return values. These differences might affect
the binary or source portability of your application.
The header files for the system are so numerous that it is difficult to
compile a complete list. The following sections describe known differences
in /usr/include that may cause problems when porting binary or source
code and describes the effects the differences have on program portability.
B.1 Changes in the acct.h File
The /usr/include/sys/acct.h header file defines data types and
structures for use by programs that perform accounting. The following
definitions are different between ULTRIX and DIGITAL UNIX systems:
Definition Type on ULTRIX Type on DIGITAL UNIX
ac_uid short
uid_t (4 bytes)
ac_gid short
gid_t (4 bytes)
ac_tty short
dev_t (4 bytes)
B.2 Changes in the disktab.h File
The disktab.h header file defines structures, symbols, and routines that
work with disk geometries and disk partition characteristics. On DIGITAL
UNIX systems, the file omits the following definition:
struct disktab *creatediskbyname();
Differences in ULTRIX and DIGITAL UNIX Header Files and Library Routines B–1