Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > T


HP-UX 11i Version 3: February 2007

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index


types — primitive system data types


#include <sys/types.h>



The example given on this page is a typical version. The type names are in general expected to be present, although exceptions (if any) may be described in DEPENDENCIES. In most cases the fundamental type which implements each typedef is implementation dependent as long as source code which uses those typedefs need not be changed. In some cases the typedef is actually a shorthand for a commonly used type, and will not vary.

The data types defined in the include file are used in HP-UX system code; some data of these types are accessible to user code:

typedef struct { int r[1]; } *physadr; typedef char *caddr_t; typedef unsigned int uint; typedef unsigned short ushort; typedef unsigned long ino_t; typedef short cnt_t; typedef long time_t; typedef long dev_t; typedef long off_t; typedef long paddr_t; typedef long key_t; typedef int32_t pid_t; typedef long uid_t; typedef long gid_t; typedef long blkcnt_t;

Note that the defined names above are standardized, but the actual type to which they are defined may vary between HP-UX implementations.

The meanings of the types are:


used as a pointer to memory; the pointer is aligned to follow hardware-dependent instruction addressing conventions.


used as an untyped pointer or a pointer to untyped memory.


shorthand for unsigned integer.


shorthand for unsigned short.


used to specify I-numbers. All native file systems (including HFS and VxFS 3.5) through HP-UX 11i, use values that will fit within 32-bits. Some remote NFS servers may use larger values, which will be truncated without error for 32-bit applications and may not result in unique values.


used in some implementations to hold reference counts for some kernel data structures.


time encoded in seconds since 00:00:00 GMT, January 1, 1970.


specifies kind and unit number of a device, encoded in two parts known as major and minor.


offset measured in bytes from the beginning of a file. If a 32-bit application is compiled with -D_FILE_OFFSET_BITS=64 or -D_LARGEFILE64_SOURCE, off_t will become an int64_t.


used as an integer type which is properly sized to hold a pointer.


the type of a key used to obtain a message queue, semaphore, or shared memory identifier, see stdipc(3C).


used to specify process and process group identifiers.


used to specify user identifiers.


user to specify group identifiers.


disk quota or transfer size measured in blocks. If a 32-bit application is compiled with -D_FILE_OFFSET_BITS=64 or -D_LARGEFILE64_SOURCE, blkcnt_t will become an int64_t.


<sys/types.h>: AES, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.