Source Compatibility Guide

Header Files

The Source Compatibility Package header files can be found in /usr/ucbinclude. Differences remain in the case of header files, and you should be aware of them; in some cases it was impossible to achieve complete source compatibility. Some SunOS 4.1 header files do not exist in the default SunOS 5.x release. The header files in bold are also available in the default system.

Table 2-8 Header FIles

 

Header Files 

 

a.out.h 

struct.h 

sys/tty.h  

assert.h 

sys/dir.h 

sys/ttychars.h  

curses.h 

sys/fcntl.h 

sys/types.h  

dbm.h 

sys/file.h 

sys/vfs.h  

fcntl.h 

sys/ioctl.h 

sys/wait.h  

regexp.h 

sys/param.h 

syscall.h  

resolv.h 

sys/reboot.h 

sysexit.h  

setjmp.h 

sys/resource.h 

ufs/quota.h  

sgtty.h 

sys/rusage.h 

unistd.h  

signal.h 

sys/signal.h 

vfont.h  

stdio.h 

sys/sysmacros.h 

vfork.h  

strings.h 

 

 

As with the library routines, there are some header files under SunOS 5.x that differ slightly from their SunOS 4.1 counterparts. In those instances, the affected header files are included in this compatibility package with as many additions as possible to keep them compatible with SunOS 4.1. The following list shows those files affected and the reasons for their inclusion in this package:

a.out.h

Included for compatibility.

assert.h

Included for compatibility.

curses.h

Included for compatibility.

dbm.h

Used by routines in libdbm and user programs invoking libdbm.

fcntl.h

Included for compatibility.

regexp.h

Includes ctype.h for compatibility.

resolv.h

Included for compatibility.

setjmp.h

Includes additional #defines and #includes for compatibility.

sgtty.h

Included for compatibility.

signal.h

Contains sys/signal.h. Included here for compatibility.

stdio.h

Includes SunOS 4.1-specific definitions.

strings.h

Contains the same type of information as string.h.

struct.h

Contains useful macros.

sys/dir.h

Included for compatibility.

sys/fcntl.h

Includes missing #defines.

sys/file.h

Includes missing #defines such as L_SET, and L_INCR.

sys/ioctl.h

Included for compatibility.

sys/param.h

Includes missing #defines.

sys/reboot.h

Included for compatibility.

sys/resource.h

Includes the rusage structure missing from the SunOS 5.x version of resource.h and used by the getrusage function.

sys/rusage.h

Includes the rusage structure.

sys/signal.h

Includes SunOS 4.1-specific data structures and definitions.

sys/sysmacros.h

Included for compatibility.

sys/tty.h

Included for compatibility.

sys/ttychars.h

Included for compatibility.

sys/types.h

Includes the sys/sysmacros header files and additional type definitions.

sys/vfs.h

Includes sys/statfs header file.

sys/wait.h

Includes declarations required by the wait3 system call wrapper.

syscall.h

Included for compatibility.

sysexits.h

Contains useful exit codes.

ufs/quota.h

Includes sys/fs.ufs_quota.h. Added for compatibility.

unistd.h

Includes #defines missing in the SunOS 5.x version of this file.

vfont.h

Included for compatibility.

vfork.h

Included for compatibility.