xref: /netbsd-src/sys/rump/include/rump/rumpdefs.h (revision a5847cc334d9a7029f6352b847e9e8d71a0f9e0c)
1 /*	$NetBSD: rumpdefs.h,v 1.10 2011/02/01 21:21:34 pooka Exp $	*/
2 
3 /*
4  *	AUTOMATICALLY GENERATED.  DO NOT EDIT.
5  */
6 
7 #ifndef _RUMP_RUMPDEFS_H_
8 #define _RUMP_RUMPDEFS_H_
9 
10 #include <rump/rump_namei.h>
11 
12 /*	NetBSD: fcntl.h,v 1.36 2010/09/21 19:26:18 chs Exp 	*/
13 #define	RUMP_O_RDONLY	0x00000000	/* open for reading only */
14 #define	RUMP_O_WRONLY	0x00000001	/* open for writing only */
15 #define	RUMP_O_RDWR		0x00000002	/* open for reading and writing */
16 #define	RUMP_O_ACCMODE	0x00000003	/* mask for above modes */
17 #define	RUMP_O_NONBLOCK	0x00000004	/* no delay */
18 #define	RUMP_O_APPEND	0x00000008	/* set append mode */
19 #define	RUMP_O_SHLOCK	0x00000010	/* open with shared file lock */
20 #define	RUMP_O_EXLOCK	0x00000020	/* open with exclusive file lock */
21 #define	RUMP_O_ASYNC		0x00000040	/* signal pgrp when data ready */
22 #define	RUMP_O_SYNC		0x00000080	/* synchronous writes */
23 #define	RUMP_O_NOFOLLOW	0x00000100	/* don't follow symlinks on the last */
24 #define	RUMP_O_CREAT		0x00000200	/* create if nonexistent */
25 #define	RUMP_O_TRUNC		0x00000400	/* truncate to zero length */
26 #define	RUMP_O_EXCL		0x00000800	/* error if already exists */
27 #define	RUMP_O_NOCTTY	0x00008000	/* don't assign controlling terminal */
28 #define	RUMP_O_DSYNC		0x00010000	/* write: I/O data completion */
29 #define	RUMP_O_RSYNC		0x00020000	/* read: I/O completion as for write */
30 #define	RUMP_O_DIRECT	0x00080000	/* direct I/O hint */
31 #define	RUMP_O_DIRECTORY	0x00200000	/* fail if not a directory */
32 
33 /*	NetBSD: vnode.h,v 1.223 2010/07/28 11:03:47 hannken Exp 	*/
34 #ifndef __VTYPE_DEFINED
35 #define __VTYPE_DEFINED
36 enum vtype	{ VNON, VREG, VDIR, VBLK, VCHR, VLNK, VSOCK, VFIFO, VBAD };
37 #endif /* __VTYPE_DEFINED */
38 #define	RUMP_LK_SHARED	0x00000001
39 #define	RUMP_LK_EXCLUSIVE	0x00000002
40 #define	RUMP_LK_NOWAIT	0x00000010
41 #define	RUMP_LK_RETRY	0x00020000
42 
43 /*	NetBSD: errno.h,v 1.39 2006/10/31 00:38:07 cbiere Exp 	*/
44 #ifndef EJUSTRETURN
45 #define	EJUSTRETURN	-2		/* don't modify regs, just return */
46 #endif /* EJUSTRETURN */
47 
48 /*	NetBSD: reboot.h,v 1.25 2007/12/25 18:33:48 perry Exp 	*/
49 #define	RUMP_RB_AUTOBOOT	0
50 #define	RUMP_RB_ASKNAME	0x00000001
51 #define	RUMP_RB_SINGLE	0x00000002
52 #define	RUMP_RB_NOSYNC	0x00000004
53 #define	RUMP_RB_HALT		0x00000008
54 #define	RUMP_RB_INITNAME	0x00000010
55 #define	__RUMP_RB_UNUSED1	0x00000020
56 #define	RUMP_RB_KDB		0x00000040
57 #define	RUMP_RB_RDONLY	0x00000080
58 #define	RUMP_RB_DUMP		0x00000100
59 #define	RUMP_RB_MINIROOT	0x00000200
60 #define	RUMP_RB_STRING	0x00000400
61 #define	RUMP_RB_POWERDOWN	(RUMP_RB_HALT|0x800)
62 #define RUMP_RB_USERCONF	0x00001000
63 #define	RUMP_RB_MD1		0x10000000
64 #define	RUMP_RB_MD2		0x20000000
65 #define	RUMP_RB_MD3		0x40000000
66 #define	RUMP_RB_MD4		0x80000000
67 #define	RUMP_AB_NORMAL	0x00000000
68 #define	RUMP_AB_QUIET	0x00010000
69 #define	RUMP_AB_VERBOSE	0x00020000
70 #define	RUMP_AB_SILENT	0x00040000
71 #define	RUMP_AB_DEBUG	0x00080000
72 
73 #endif /* _RUMP_RUMPDEFS_H_ */
74