Now the kernel compile without COMPAT_43 option.
{ AS(sbrk_args), (sy_call_t *)sys_sbrk }, /* 69 = sbrk */
{ AS(sstk_args), (sy_call_t *)sys_sstk }, /* 70 = sstk */
{ compat(AS(ommap_args),mmap) }, /* 71 = old mmap */
- { AS(ovadvise_args), (sy_call_t *)sys_ovadvise }, /* 72 = vadvise */
+ { compat(AS(ovadvise_args),vadvise) }, /* 72 = old vadvise */
{ AS(munmap_args), (sy_call_t *)sys_munmap }, /* 73 = munmap */
{ AS(mprotect_args), (sy_call_t *)sys_mprotect }, /* 74 = mprotect */
{ AS(madvise_args), (sy_call_t *)sys_madvise }, /* 75 = madvise */
"sbrk", /* 69 = sbrk */
"sstk", /* 70 = sstk */
"old.mmap", /* 71 = old mmap */
- "vadvise", /* 72 = vadvise */
+ "old.vadvise", /* 72 = old vadvise */
"munmap", /* 73 = munmap */
"mprotect", /* 74 = mprotect */
"madvise", /* 75 = madvise */
70 STD BSD { int sstk(int incr); }
71 COMPAT BSD { int mmap(void *addr, int len, int prot, \
int flags, int fd, long pos); }
-72 STD BSD { int ovadvise(int anom); } vadvise ovadvise_args int
+72 COMPAT BSD { int vadvise(int anom); } vadvise ovadvise_args int
73 STD BSD { int munmap(void *addr, size_t len); }
74 STD BSD { int mprotect(void *addr, size_t len, int prot); }
75 STD BSD { int madvise(void *addr, size_t len, int behav); }
HIDE_BSD(sbrk)
HIDE_BSD(sstk)
HIDE_BSD(mmap)
-HIDE_BSD(ovadvise)
+HIDE_BSD(vadvise)
HIDE_BSD(munmap)
HIDE_BSD(mprotect)
HIDE_BSD(madvise)
#define SYS_sbrk 69
#define SYS_sstk 70
/* 71 is old mmap */
-#define SYS_vadvise 72
+ /* 72 is old vadvise */
#define SYS_munmap 73
#define SYS_mprotect 74
#define SYS_madvise 75
vfork.o \
sbrk.o \
sstk.o \
- vadvise.o \
munmap.o \
mprotect.o \
madvise.o \
#endif
int incr; char incr_[PAD_(int)];
};
-struct ovadvise_args {
-#ifdef _KERNEL
- struct sysmsg sysmsg;
-#endif
- int anom; char anom_[PAD_(int)];
-};
struct munmap_args {
#ifdef _KERNEL
struct sysmsg sysmsg;
int fd; char fd_[PAD_(int)];
long pos; char pos_[PAD_(long)];
};
+struct ovadvise_args {
+#ifdef _KERNEL
+ struct sysmsg sysmsg;
+#endif
+ int anom; char anom_[PAD_(int)];
+};
struct gethostname_args {
#ifdef _KERNEL
struct sysmsg sysmsg;
int sys_ogetkerninfo (struct getkerninfo_args *);
int sys_ogetpagesize (struct getpagesize_args *);
int sys_ommap (struct ommap_args *);
+int sys_ovadvise (struct ovadvise_args *);
int sys_owait (struct owait_args *);
int sys_ogethostname (struct gethostname_args *);
int sys_osethostname (struct sethostname_args *);
int sys_vfork (struct vfork_args *);
int sys_sbrk (struct sbrk_args *);
int sys_sstk (struct sstk_args *);
-int sys_ovadvise (struct ovadvise_args *);
int sys_munmap (struct munmap_args *);
int sys_mprotect (struct mprotect_args *);
int sys_madvise (struct madvise_args *);
#ifdef COMPAT_43
struct ommap_args sys_ommap;
#endif
- struct ovadvise_args ovadvise;
+#ifdef COMPAT_43
+ struct ovadvise_args vadvise;
+#endif
struct munmap_args munmap;
struct mprotect_args mprotect;
struct madvise_args madvise;