HP C/iX Library Reference Manual (30026-90004)
Chapter 4 53
HP C/iX Library Header Descriptions
Header File Contents
The tm structure, used by several of the <time.h> functions, is shown below:
struct tm {
int tm_sec; /* seconds after the minute (0 through 59) */
int tm_min; /* minutes after the hour (0 through 59) */
int tm_hour; /* hours since midnight (0 through 23) */
int tm_mday; /* day of the month (1 through 31) */
int tm_mon; /* month of the year (0 through 11) */
int tm_year; /* years since 1900 */
int tm_wday; /* days since Sunday (0 through 6) */
int tm_yday; /* day of the year (0 through 365) */
int tm_isdst; /* daylight savings time flag (1 = dst) */
};
Standard Macros <unistd.h>
The header <unistd.h> defines several macros that are used as arguments to the lseek
function.
NOTE
This header file is not defined by the ANSI C standard. Programs using this
header are likely to be less portable.
Machine-Dependent Values <values.h>
The header <values.h> contains a set of manifest constants, conditionally defined for
particular processor architectures. The model assumed for integers is binary
representation (one's or two's complement), where the sign is represented by the value of
the high-order bit. The following macros are defined in this header file:
b. These identifiers are not defined by the ANSI C standard. Programs using these
identifiers are likely to be less portable.
Table 4-17. Standard Macros <unistd.h>
Name Type Description
SEEK_CUR macro A constant value that may be used as the whence parameter to lseek.
Seek relative to the current location in the file.
SEEK_END macro A constant value that may be used as the whence parameter to lseek.
Seek relative to the end of file.
SEEK_SET macro A constant value that may be used as the whence parameter to lseek.
Seek relative to the beginning of file.
Table 4-18. Machine-Dependent Values <values.h>
Name Type Description
BITS macro The number of bits in a specified type, such as int.