rump: fix kernel headers
This commit is contained in:
parent
9a141b4152
commit
e2fe8bb5b6
|
|
@ -141,10 +141,14 @@ int getmcontext(mcontext_t *mcp);
|
|||
#define MCF_MAGIC 0xc0ffee
|
||||
#define _MC_FPU_SAVED 0x001
|
||||
|
||||
#endif /* defined(__minix) */
|
||||
#define __UCONTEXT_SIZE 784
|
||||
|
||||
#else
|
||||
|
||||
#define __UCONTEXT_SIZE 776
|
||||
|
||||
#endif /* defined(__minix) */
|
||||
|
||||
static __inline void *
|
||||
__lwp_getprivate_fast(void)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
|
||||
#include <sys/featuretest.h>
|
||||
|
||||
#if defined(__minix) && (defined(_LIBMINC) || ! defined(_STANDALONE))
|
||||
#if !defined(_KERNEL) && defined(__minix) && (defined(_LIBMINC) || ! defined(_STANDALONE))
|
||||
#include <machine/fpu.h>
|
||||
#endif /* defined(__minix) ... */
|
||||
|
||||
|
|
@ -108,7 +108,7 @@ struct sigcontext {
|
|||
int sc_err;
|
||||
|
||||
sigset_t sc_mask; /* signal mask to restore (new style) */
|
||||
#if defined(__minix) && (defined(_LIBMINC) || ! defined(_STANDALONE))
|
||||
#if !defined(_KERNEL) && defined(__minix) && (defined(_LIBMINC) || ! defined(_STANDALONE))
|
||||
union fpu_state_u sc_fpu_state;
|
||||
int trap_style; /* KTS_* method of entering kernel */
|
||||
int sc_flags; /* MF_FPU_INITIALIZED if fpu state valid */
|
||||
|
|
|
|||
|
|
@ -89,14 +89,14 @@ struct vndgeom {
|
|||
* Ioctl definitions for file (vnode) disk pseudo-device.
|
||||
*/
|
||||
struct vnd_ioctl {
|
||||
#if !defined(__minix)
|
||||
#if !defined(__minix) || defined(_KERNEL)
|
||||
char *vnd_file; /* pathname of file to mount */
|
||||
#else
|
||||
int vnd_fildes; /* file descriptor of file to mount */
|
||||
#endif /* !defined(__minix)*/
|
||||
int vnd_flags; /* flags; see below */
|
||||
struct vndgeom vnd_geom; /* geometry to emulate */
|
||||
#if !defined(__minix)
|
||||
#if !defined(__minix) || defined(_KERNEL)
|
||||
unsigned int vnd_osize; /* (returned) size of disk */
|
||||
#endif /* !defined(__minix)*/
|
||||
uint64_t vnd_size; /* (returned) size of disk */
|
||||
|
|
@ -107,7 +107,6 @@ struct vnd_ioctl {
|
|||
#define VNDIOF_READONLY 0x02 /* as read-only device */
|
||||
#define VNDIOF_FORCE 0x04 /* force close */
|
||||
|
||||
#if !defined(__minix)
|
||||
#ifdef _KERNEL
|
||||
|
||||
struct vnode;
|
||||
|
|
@ -162,7 +161,6 @@ struct vnd_comp_header
|
|||
u_int32_t block_size;
|
||||
u_int32_t num_blocks;
|
||||
};
|
||||
#endif /* !defined(__minix) */
|
||||
|
||||
/*
|
||||
* A simple structure for describing which vnd units are in use.
|
||||
|
|
|
|||
|
|
@ -192,6 +192,7 @@
|
|||
# define _SIGN
|
||||
#endif
|
||||
|
||||
#if !defined(_KERNEL)
|
||||
/* minix-specific error codes */
|
||||
#define ERESTART (_SIGN 200 ) /* service restarted */
|
||||
#define ENOTREADY (_SIGN 201 ) /* source or destination is not ready */
|
||||
|
|
@ -212,6 +213,8 @@
|
|||
#define EBADEPT (_SIGN 216 ) /* specified endpoint is bad */
|
||||
#define EBADCPU (_SIGN 217 ) /* requested CPU does not work */
|
||||
|
||||
#endif /* !defined(_KERNEL) */
|
||||
|
||||
#endif /* defined(__minix) */
|
||||
|
||||
#endif /* !_SYS_ERRNO_H_ */
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ struct ttysize {
|
|||
#include <sys/filio.h>
|
||||
#include <sys/sockio.h>
|
||||
|
||||
#if defined(__minix)
|
||||
#if !defined(_KERNEL) && defined(__minix)
|
||||
/* ioctls */
|
||||
#include <sys/ioc_net.h> /* 'n' */
|
||||
#include <sys/ioc_disk.h> /* 'd' */
|
||||
|
|
|
|||
|
|
@ -281,7 +281,7 @@ struct itimerspec {
|
|||
};
|
||||
|
||||
#define CLOCK_REALTIME 0
|
||||
#if !defined(__minix)
|
||||
#if !defined(__minix) || defined(_KERNEL)
|
||||
#define CLOCK_VIRTUAL 1
|
||||
#define CLOCK_PROF 2
|
||||
#endif /* !defined(__minix) */
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ struct uucred {
|
|||
gid_t cr_groups[NGROUPS_MAX]; /* groups */
|
||||
};
|
||||
|
||||
#if defined(__minix)
|
||||
#if defined(__minix) && !defined(_KERNEL)
|
||||
#include <minix/type.h>
|
||||
|
||||
int getnucred(endpoint_t proc_ep, struct uucred *ucred);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user