* Copyright (c) 1988 University of Utah.
* Copyright (c) 1990 The Regents of the University of California.
* This code is derived from software contributed to Berkeley by
* the Systems Programming Group of the University of Utah Computer
* %sccs.include.redist.c%
* from: Utah $Hdr: hpux.h 1.1 90/07/09$
* @(#)hpux.h 7.3 (Berkeley) %G%
/* HP-UX style UTSNAME struct used by uname syscall */
/* HP-UX style "old" IOCTLs */
int sg_flags
; /* only a short in BSD */
#define HPUXTIOCGETP _IOR('t', 8, struct hpuxsgttyb)
#define HPUXTIOCSETP _IOW('t', 9, struct hpuxsgttyb)
/* 6.5 job control related ioctls which need to be mapped */
#define HPUXTIOCSLTC _IOW('T', 23, struct ltchars)
#define HPUXTIOCGLTC _IOR('T', 24, struct ltchars)
#define HPUXTIOCLBIS _IOW('T', 25, int)
#define HPUXTIOCLBIC _IOW('T', 26, int)
#define HPUXTIOCLSET _IOW('T', 27, int)
#define HPUXTIOCLGET _IOR('T', 28, int)
# define HPUXLTOSTOP 0000001
#define HPUXTIOCSPGRP _IOW('T', 29, int)
#define HPUXTIOCGPGRP _IOR('T', 30, int)
#define HPUXTIOCCONS _IO('t', 104)
/* HP-UX stat structure */
#define bsdtohpuxdev(d) ((major(d) << 24) | minor(d))
* Skeletal 6.X HP-UX user structure info for ptrace() mapping.
* Yes, this is as bogus as it gets...
#define HU_PAD1 (HU_AROFF)
#define HU_PAD2 (HU_TSOFF-HU_AROFF-4)
#define HU_PAD3 (HU_EDOFF-HU_TSOFF-12)
#define HU_PAD4 (HU_FPOFF-HU_EDOFF-sizeof(struct hpux_exec))
u_char whocares1
[HU_PAD1
]; /* +0x000 */
int *hpuxu_ar0
; /* +0x004 */
u_char whocares2
[HU_PAD2
]; /* +0x008 */
int hpuxu_tsize
; /* +0x0B2 */
int hpuxu_dsize
; /* +0x0B6 */
int hpuxu_ssize
; /* +0x0BA */
u_char whocares3
[HU_PAD3
]; /* +0x0BE */
struct hpux_exec hpuxu_exdata
; /* +0x93A */
u_char whocares4
[HU_PAD4
]; /* +0x95E */
struct hpuxfp
{ /* +0xA66 */
short hpuxu_dragon
; /* +0xBCA */
/* HP-UX compat file flags */
#define HPUXFCREAT 00000400
#define HPUXFTRUNC 00001000
#define HPUXFEXCL 00002000
#define HPUXFSYNCIO 00100000
#define HPUXFREMOTE 01000000
#define FUSECACHE 04000000
/* HP-UX only sysV shmctl() commands */
#define SHM_LOCK 3 /* Lock segment in core */
#define SHM_UNLOCK 4 /* Unlock segment */
/* HP-UX rtprio values */
#define RTPRIO_NOCHG 1000
#define RTPRIO_RTOFF 1001
/* HP-UX only sigvec sv_flags values */
#define HPUXSV_RESET 000000004
* HP-UX returns SIGILL instead of SIGFPE for the CHK and TRAPV exceptions.
* It also returns different u_code values for certain illegal instruction
* and floating point exceptions. Here are the proper HP-UX u_code values
* (numbers from hpux 6.2 manual pages).
#define HPUX_ILL_ILLINST_TRAP 0 /* T_ILLINST+USER */
#define HPUX_ILL_CHK_TRAP 6 /* T_CHKINST+USER */
#define HPUX_ILL_TRAPV_TRAP 7 /* T_TRAPVINST+USER */
#define HPUX_ILL_PRIV_TRAP 8 /* T_PRIVINST+USER */
#define HPUX_FPE_INTDIV_TRAP 5 /* T_ZERODIV+USER */
/* HP-UX POSIX signal stuff implementation */
typedef struct __hpuxsigset_t
{ long sigset
[8]; } hpuxsigset_t
;
#define HPUXSA_RESETHAND 4
#define HPUXSA_NOCLDSTOP 8
#define HPUXSIG_BLOCK 0 /* block specified signal set */
#define HPUXSIG_UNBLOCK 1 /* unblock specified signal set */
#define HPUXSIG_SETMASK 2 /* set specified signal set */