summaryrefslogtreecommitdiff
path: root/sys/compat/osf1/osf1.h
blob: 2a20142b384f6ad3811c60f08cd7502bcd614059 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
/*	$OpenBSD: osf1.h,v 1.3 2002/03/14 01:26:50 millert Exp $	*/
/*	$NetBSD: osf1.h,v 1.20 1999/05/10 21:41:07 cgd Exp $	*/

/*
 * Copyright (c) 1999 Christopher G. Demetriou.  All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. All advertising materials mentioning features or use of this software
 *    must display the following acknowledgement:
 *      This product includes software developed by Christopher G. Demetriou
 *	for the NetBSD Project.
 * 4. The name of the author may not be used to endorse or promote products
 *    derived from this software without specific prior written permission
 *
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#ifndef _COMPAT_OSF1_OSF1_H_
#define _COMPAT_OSF1_OSF1_H_

/*
 * Collected OSF/1 definitions and structures, sorted by OSF/1 header.
 * Error numbers (errno.h) aren't here, since they're likely to change
 * (additions) more often.
 *
 * This file is up to date as of Digital UNIX V4.0.
 */

#include <sys/types.h>
#include <compat/osf1/osf1_errno.h>
#include <compat/osf1/osf1_signal.h>

/*
 * type and structure definitions used by other structures
 */

typedef int16_t		osf1_short;
typedef int32_t		osf1_int;
typedef int64_t		osf1_long;
typedef u_int32_t	osf1_u_int;

typedef int32_t		osf1_dev_t;
typedef u_int32_t	osf1_ino_t;
typedef u_int32_t	osf1_mode_t;
typedef u_int16_t	osf1_nlink_t;
typedef u_int32_t	osf1_uid_t;
typedef u_int32_t	osf1_gid_t;
typedef u_int64_t	osf1_off_t;
typedef int32_t		osf1_time_t;
typedef u_int32_t	osf1_uint_t;
typedef u_int64_t	osf1_sigset_t;
typedef u_int64_t	osf1_size_t;
typedef u_int64_t	osf1_fsid_t;
typedef u_int64_t	osf1_rlim_t;
typedef void		*osf1_data_ptr;	/* XXX hard to fix size */
typedef void		*osf1_fcn_ptr;	/* XXX hard to fix size, bogus */
typedef	osf1_int	osf1_key_t;
typedef	osf1_int	osf1_pid_t;
typedef void    (*osf1_handler_t)(int);

struct osf1_timeval {				/* time.h */
	osf1_time_t	tv_sec;
	osf1_int	tv_usec;
};


/* access.h */

#define OSF1_F_OK			0		/* pseudo-flag */
#define OSF1_X_OK			0x01
#define OSF1_W_OK			0x02
#define OSF1_R_OK			0x04


/* auxv.h */

union osf1_auxv_data {
	osf1_long	a_val;
	osf1_data_ptr	a_ptr;
	osf1_fcn_ptr	a_fcn;
};

struct osf1_auxv {
	osf1_int	a_type;
	union osf1_auxv_data a_un;
};

/* auxv entry types */
#define OSF1_AT_NULL			0
#define OSF1_AT_IGNORE			1
#define OSF1_AT_EXECFD			2
#define OSF1_AT_PHDR			3
#define OSF1_AT_PHENT			4
#define OSF1_AT_PHNUM			5
#define OSF1_AT_PAGESZ			6
#define OSF1_AT_BASE			7
#define OSF1_AT_FLAGS			8
#define OSF1_AT_ENTRY			9
#define OSF1_AT_EXEC_FILENAME		1001
#define OSF1_AT_EXEC_LOADER_FILENAME	1002
#define OSF1_AT_EXEC_LOADER_FLAGS	1003


/* exec.h/ldr_exec.h */

#define	OSF1_LDR_EXEC_DEFAULT_LOADER	"/sbin/loader"

/* exec_with_loader()/OSF1_AT_EXEC_LOADER_FLAGS flags regions */
#define	OSF1_LDR_EXEC_SYSTEM_MASK	0xffff0000
#define	OSF1_LDR_EXEC_USER_MASK		0xffff0000

/* OSF1_AT_EXEC_LOADER_FLAGS flags */
#define	OSF1_LDR_EXEC_NOPRIVS_F		0x10000000
#define	OSF1_LDR_EXEC_PTRACE_F		0x20000000
#define	OSF1_LDR_EXEC_SETGID_F		0x40000000
#define	OSF1_LDR_EXEC_SETUID_F		0x80000000


/* fcntl.h */

/* fcntl ops */
#define OSF1_F_DUPFD		0
#define OSF1_F_GETFD		1	/* uses flags, see below */
#define OSF1_F_SETFD		2	/* uses flags, see below */
#define OSF1_F_GETFL		3	/* uses flags, see below */
#define OSF1_F_SETFL		4	/* uses flags, see below */
#define OSF1_F_GETOWN		5
#define OSF1_F_SETOWN		6
#define OSF1_F_GETLK		7	/* uses osf1_flock, see below */
#define OSF1_F_SETLK		8	/* uses osf1_flock, see below */
#define OSF1_F_SETLKW		9	/* uses osf1_flock, see below */
#define OSF1_F_RGETLK		10	/* [lock mgr op] */
#define OSF1_F_RSETLK		11	/* [lock mgr op] */
#define OSF1_F_CNVT		12	/* [lock mgr op] */
#define OSF1_F_RSETLKW		13	/* [lock mgr op] */
#define OSF1_F_PURGEFS		14	/* [lock mgr op] */
#define OSF1_F_PURGENFS		15	/* [DECsafe op] */

/* fcntl GETFD/SETFD flags */
#define OSF1_FD_CLOEXEC		1

/* fcntl GETFL/SETFL flags, in addition to the O_* flags below */
#define	OSF1_FASYNC		0x00000040

/* struct osf1_flock, for GETLK/SETLK/SETLKW */
struct osf1_flock {
	osf1_short	l_type;
	osf1_short	l_whence;
	osf1_off_t	l_start;
	osf1_off_t	l_len;
	osf1_pid_t	l_pid;
};

/* GETLK/SETLK/SETLKW locking types */
#define	OSF1_F_RDLCK	1
#define	OSF1_F_WRLCK	2
#define	OSF1_F_UNLCK	8

/* open flags */
#define OSF1_O_RDONLY		0x00000000
#define OSF1_O_WRONLY		0x00000001
#define OSF1_O_RDWR		0x00000002
#define OSF1_O_ACCMODE		0x00000003	/* mask of RD and WR bits */
#define OSF1_O_NONBLOCK		0x00000004
#define OSF1_O_APPEND		0x00000008
/* no				0x00000010 */
#define OSF1_O_DEFER		0x00000020
/* no				0x00000040 */
/* no				0x00000080 */
/* no				0x00000100 */
#define OSF1_O_CREAT		0x00000200
#define OSF1_O_TRUNC		0x00000400
#define OSF1_O_EXCL		0x00000800
#define OSF1_O_NOCTTY		0x00001000
#define OSF1_O_SYNC		0x00004000
#define OSF1_O_NDELAY		0x00008000
#define OSF1_O_DRD		0x00008000	/* == O_NDELAY, DON'T USE */
/* no				0x00010000 */
/* no				0x00020000 */
/* no				0x00040000 */
#define OSF1_O_DSYNC		0x00080000
#define OSF1_O_RSYNC		0x00100000
/* no				0x00200000+ */


/* ioctl.h */

#define OSF1_IOCPARM_MASK	0x1fff
#define OSF1_IOCPARM_LEN(x)	(((x) >> 16) & OSF1_IOCPARM_MASK)
#define OSF1_IOCGROUP(x)	(((x) >> 8) & 0xff)
#define OSF1_IOCCMD(x)		((x) & 0xff)

#define OSF1_IOCPARM_MAX	8192
#define OSF1_IOC_VOID		0x20000000
#define OSF1_IOC_OUT		0x40000000
#define OSF1_IOC_IN		0x80000000
#define OSF1_IOC_INOUT		(OSF1_IOC_IN|OSF1_IOC_OUT)
#define OSF1_IOC_DIRMASK	0xe0000000


/* mman.h */

/* protection mask */
#define OSF1_PROT_NONE		0		/* pseudo-flag */
#define	OSF1_PROT_READ		0x0001
#define	OSF1_PROT_WRITE		0x0002
#define	OSF1_PROT_EXEC		0x0004

/* mmap flags */
#define OSF1_MAP_SHARED		0x0001
#define OSF1_MAP_PRIVATE	0x0002

#define OSF1_MAP_FILE		0		/* pseudo-flag */
#define OSF1_MAP_ANON		0x0010
#define OSF1_MAP_TYPE		0x00f0

#define OSF1_MAP_FIXED		0x0100
#define OSF1_MAP_VARIABLE	0		/* pseudo-flag */

#define OSF1_MAP_HASSEMAPHORE	0x0200
#define OSF1_MAP_INHERIT	0x0400
#define OSF1_MAP_UNALIGNED	0x0800

/* madvise operations */
#define OSF1_MADV_NORMAL	0
#define OSF1_MADV_RANDOM	1
#define OSF1_MADV_SEQUENTIAL	2
#define OSF1_MADV_WILLNEED	3
#define OSF1_MADV_DONTNEED_COMPAT 4
#define OSF1_MADV_SPACEAVAIL	5
#define OSF1_MADV_DONTNEED	6


/* mount.h */

/* file system type numbers */
#define OSF1_MOUNT_NONE		0
#define OSF1_MOUNT_UFS		1
#define OSF1_MOUNT_NFS		2
#define OSF1_MOUNT_MFS		3
#define OSF1_MOUNT_PC		4
#define OSF1_MOUNT_S5FS		5
#define OSF1_MOUNT_CDFS		6
#define OSF1_MOUNT_DFS		7
#define OSF1_MOUNT_EFS		8
#define OSF1_MOUNT_PROCFS	9
#define OSF1_MOUNT_MSFS		10
#define OSF1_MOUNT_FFM		11
#define OSF1_MOUNT_FDFS		12
#define OSF1_MOUNT_ADDON	13
#define OSF1_MOUNT_NFS3		14

#define OSF1_MNAMELEN		90

/* MFS mount argument structure */
struct osf1_mfs_args {
	osf1_data_ptr	name;
	osf1_data_ptr	base;
	osf1_u_int	size;
};

/* NFS mount argument structure */
struct osf1_nfs_args {
	osf1_data_ptr	addr;
	osf1_data_ptr	fh;
	osf1_int	flags;
	osf1_int	wsize;
	osf1_int	rsize;
	osf1_int	timeo;
	osf1_int	retrans;
	osf1_data_ptr	hostname;
	osf1_int	acregmin;
	osf1_int	acregmax;
	osf1_int	acdirmin;
	osf1_int	acdirmax;
	osf1_data_ptr	netname;
	osf1_data_ptr	pathconf;
};

/* NFS mount argument structure flags */
#define OSF1_NFSMNT_SOFT	0x00000001
#define OSF1_NFSMNT_WSIZE	0x00000002
#define OSF1_NFSMNT_RSIZE	0x00000004
#define OSF1_NFSMNT_TIMEO	0x00000008
#define OSF1_NFSMNT_RETRANS	0x00000010
#define OSF1_NFSMNT_HOSTNAME	0x00000020
#define OSF1_NFSMNT_INT		0x00000040
#define OSF1_NFSMNT_NOCONN	0x00000080
#define OSF1_NFSMNT_NOAC	0x00000100
#define OSF1_NFSMNT_ACREGMIN	0x00000200
#define OSF1_NFSMNT_ACREGMAX	0x00000400
#define OSF1_NFSMNT_ACDIRMIN	0x00000800
#define OSF1_NFSMNT_ACDIRMAX	0x00001000
#define OSF1_NFSMNT_NOCTO	0x00002000
#define OSF1_NFSMNT_POSIX	0x00004000
#define OSF1_NFSMNT_AUTO	0x00008000
#define OSF1_NFSMNT_SEC		0x00010000
#define OSF1_NFSMNT_TCP		0x00020000
#define OSF1_NFSMNT_PROPLIST	0x00040000
/* no				0x00080000+ */

/* union of all mount argument structures */
union osf1_mount_info {
	struct osf1_mfs_args mfs_args;
	struct osf1_nfs_args nfs_args;
	char		pad[80];
};

/* statfs structure */
struct osf1_statfs {
	osf1_short	f_type;
	osf1_short	f_flags;
	osf1_int	f_fsize;
	osf1_int	f_bsize;
	osf1_int	f_blocks;
	osf1_int	f_bfree;
	osf1_int	f_bavail;
	osf1_int	f_files;
	osf1_int	f_ffree;
	osf1_fsid_t	f_fsid;
	osf1_int	f_spare[9];
	char		f_mntonname[OSF1_MNAMELEN];
	char		f_mntfromname[OSF1_MNAMELEN];
	union osf1_mount_info mount_info;
};


/* reboot.h */

/* reboot flags */
#define OSF1_RB_AUTOBOOT	0		/* pseudo-flag */

#define OSF1_RB_ASKNAME		0x0001
#define OSF1_RB_SINGLE		0x0002
#define OSF1_RB_NOSYNC		0x0004
#define OSF1_RB_KDB		0x0004		/* == RB_NOSYNC; boot only? */
#define OSF1_RB_HALT		0x0008
#define OSF1_RB_INITNAME	0x0010
#define OSF1_RB_DFLTROOT	0x0020
#define OSF1_RB_ALTBOOT		0x0040
#define OSF1_RB_UNIPROC		0x0080
#define OSF1_RB_PARAM		0x0100
#define OSF1_RB_DUMP		0x0200


/* resource.h */

#define	OSF1_RUSAGE_THREAD	1
#define	OSF1_RUSAGE_SELF	0
#define	OSF1_RUSAGE_CHILDREN	-1

struct osf1_rusage {
	struct osf1_timeval ru_utime;
	struct osf1_timeval ru_stime;
	osf1_long	ru_maxrss;
	osf1_long	ru_ixrss;
	osf1_long	ru_idrss;
	osf1_long	ru_isrss;
	osf1_long	ru_minflt;
	osf1_long	ru_majflt;
	osf1_long	ru_nswap;
	osf1_long	ru_inblock;
	osf1_long	ru_oublock;
	osf1_long	ru_msgsnd;
	osf1_long	ru_msgrcv;
	osf1_long	ru_nsignals;
	osf1_long	ru_nvcsw;
	osf1_long	ru_nivcsw;
};

#define OSF1_RLIMIT_CPU		0
#define OSF1_RLIMIT_FSIZE	1
#define OSF1_RLIMIT_DATA	2
#define OSF1_RLIMIT_STACK	3
#define OSF1_RLIMIT_CORE	4
#define OSF1_RLIMIT_RSS		5
#define OSF1_RLIMIT_NOFILE	6
#define OSF1_RLIMIT_AS		7

#define OSF1_RLIM_INFINITY	0x7fffffffffffffffL 

struct osf1_rlimit {
	rlim_t	rlim_cur;
	rlim_t	rlim_max;
};


/* seek.h */

#define	OSF1_SEEK_SET		0
#define	OSF1_SEEK_CUR		1
#define	OSF1_SEEK_END		2


/* signal.h (some in machine/signal.h) */

#define sigemptyset(s)          bzero((s), sizeof(*(s)))
#define sigismember(s, n)       (*(s) & sigmask(n))
#define sigaddset(s, n)         (*(s) |= sigmask(n))

struct osf1_sigaction {
        osf1_handler_t  sa__handler;
        osf1_sigset_t   sa_mask;
        int             sa_flags;
};

/* actually from sysmisc.h */
struct osf1_sigaltstack {
	osf1_data_ptr	ss_sp;
	osf1_int	ss_flags;
	osf1_size_t	ss_size;
};

/* sigaction flags */
#define OSF1_SA_ONSTACK		0x00000001
#define OSF1_SA_RESTART		0x00000002
#define OSF1_SA_NOCLDSTOP	0x00000004
#define OSF1_SA_NODEFER		0x00000008
#define OSF1_SA_RESETHAND	0x00000010
#define OSF1_SA_NOCLDWAIT	0x00000020
#define OSF1_SA_SIGINFO		0x00000040

/* sigaltstack flags */
#define OSF1_SS_ONSTACK		0x00000001
#define OSF1_SS_DISABLE		0x00000002
#define OSF1_SS_NOMASK		0x00000004
#define OSF1_SS_UCONTEXT	0x00000008

/* signal set manipulation macros */
#define osf1_sigmask(n)		((osf1_sigset_t)1 << ((n) - 1))
#define osf1_sigemptyset(s)	(*(s) = (osf1_sigset_t)0)
#define osf1_sigismember(s, n)	(*(s) & osf1_sigmask(n))
#define osf1_sigaddset(s, n)	(*(s) |= osf1_sigmask(n))


/* socket.h */

struct osf1_msghdr {
	osf1_data_ptr	msg_name;
	osf1_u_int	msg_namelen;
	osf1_data_ptr	msg_iov;		/* struct osf1_iovec_xopen * */
	osf1_u_int	msg_iovlen;
	osf1_data_ptr	msg_control;
	osf1_u_int	msg_controllen;
	osf1_int	msg_flags;
};

struct osf1_msghdr_xopen {
	osf1_data_ptr	msg_name;
	osf1_size_t	msg_namelen;
	osf1_data_ptr	msg_iov;		/* struct osf1_iovec_xopen * */
	osf1_int	msg_iovlen;
	osf1_data_ptr	msg_control;
	osf1_size_t	msg_controllen;
	osf1_int	msg_flags;
};

/* max message iov len */
#define	OSF1_MSG_MAXIOVLEN	16

/* send/recv-family message flags */
#define OSF1_MSG_OOB		0x0001
#define OSF1_MSG_PEEK		0x0002
#define OSF1_MSG_DONTROUTE	0x0004
#define OSF1_MSG_EOR		0x0008
#define OSF1_MSG_TRUNC		0x0010
#define OSF1_MSG_CTRUNC		0x0020
#define OSF1_MSG_WAITALL	0x0040


/* stat.h */

struct osf1_stat {
	osf1_dev_t	st_dev;
	osf1_ino_t	st_ino;
	osf1_mode_t	st_mode;
	osf1_nlink_t	st_nlink;
	osf1_uid_t	st_uid;
	osf1_gid_t	st_gid;
	osf1_dev_t	st_rdev;
	osf1_off_t	st_size;
	osf1_time_t	st_atime_sec;
	osf1_int	st_spare1;
	osf1_time_t	st_mtime_sec;
	osf1_int	st_spare2;
	osf1_time_t	st_ctime_sec;
	osf1_int	st_spare3;
	osf1_uint_t	st_blksize;
	osf1_int	st_blocks;
	osf1_uint_t	st_flags;
	osf1_uint_t	st_gen;
};


/* systeminfo.h */

#define OSF1_SI_SYSNAME		1
#define OSF1_SI_HOSTNAME	2
#define OSF1_SI_RELEASE		3
#define OSF1_SI_VERSION		4
#define OSF1_SI_MACHINE		5
#define OSF1_SI_ARCHITECTURE	6
#define OSF1_SI_HW_SERIAL	7
#define OSF1_SI_HW_PROVIDER	8
#define OSF1_SI_SRPC_DOMAIN	9
#define OSF1_SI_SET_HOSTNAME	258
#define OSF1_SI_SET_SYSNAME	259
#define OSF1_SI_SET_SRPC_DOMAIN	265


/* time.h */

struct osf1_itimerval {
	struct osf1_timeval it_interval;
	struct osf1_timeval it_value;
};

#define OSF1_ITIMER_REAL	0
#define OSF1_ITIMER_VIRTUAL	1
#define OSF1_ITIMER_PROF	2

struct osf1_timezone {
	osf1_int	tz_minuteswest;
	osf1_int	tz_dsttime;
};


/* types.h */

#define osf1_major(x)		((((dev_t)(x)) >> 20) & 0x00000fff)
#define osf1_minor(x)		((((dev_t)(x)) >>  0) & 0x000fffff)
#define osf1_makedev(x,y)	((((dev_t)(x)) << 20) | ((dev_t)(y)))


/* uio.h */

struct osf1_iovec {
	osf1_data_ptr	iov_base;
	osf1_int	iov_len;
};

struct osf1_iovec_xopen {
	osf1_data_ptr	iov_base;
	osf1_size_t	iov_len;
};


/* unistd.h (user-land header) */

#define OSF1__PC_CHOWN_RESTRICTED 10
#define OSF1__PC_LINK_MAX	11
#define OSF1__PC_MAX_CANON	12
#define OSF1__PC_MAX_INPUT	13
#define OSF1__PC_NAME_MAX	14
#define OSF1__PC_NO_TRUNC	15
#define OSF1__PC_PATH_MAX	16
#define OSF1__PC_PIPE_BUF	17
#define OSF1__PC_VDISABLE	18


/* utsname.h */

#define	OSF1__SYS_NMLN		32

struct osf1_utsname {
	char		sysname[OSF1__SYS_NMLN];
	char		nodename[OSF1__SYS_NMLN];
	char		release[OSF1__SYS_NMLN];
	char		version[OSF1__SYS_NMLN];
	char		machine[OSF1__SYS_NMLN];
};


/* wait.h */

/* wait3() and wait4() options. */
#define	OSF1_WNOHANG		0x01
#define	OSF1_WUNTRACED		0x02

/* XXX should have status word bits */


#endif /* _COMPAT_OSF1_OSF1_H_ */