bring some stuff from time_t=64...
- add sysalign parameter to syscalls.conf - add compat_50
This commit is contained in:
parent
0b1fe5192d
commit
4897e6c085
|
@ -1,5 +1,5 @@
|
|||
#! /bin/sh -
|
||||
# $NetBSD: makesyscalls.sh,v 1.67 2008/03/18 12:36:15 njoly Exp $
|
||||
# $NetBSD: makesyscalls.sh,v 1.68 2008/03/22 15:11:01 christos Exp $
|
||||
#
|
||||
# Copyright (c) 1994, 1996, 2000 Christopher G. Demetriou
|
||||
# All rights reserved.
|
||||
|
@ -42,6 +42,7 @@ case $# in
|
|||
esac
|
||||
|
||||
# the config file sets the following variables:
|
||||
# sysalign check for alignment of off_t
|
||||
# sysnames the syscall names file
|
||||
# sysnumhdr the syscall numbers file
|
||||
# syssw the syscall switch file
|
||||
|
@ -132,6 +133,7 @@ BEGIN {
|
|||
namesname = \"$namesname\"
|
||||
constprefix = \"$constprefix\"
|
||||
registertype = \"$registertype\"
|
||||
sysalign=\"$sysalign\"
|
||||
if (!registertype) {
|
||||
registertype = \"register_t\"
|
||||
}
|
||||
|
@ -425,7 +427,7 @@ function parseline() {
|
|||
if (argtype[argc] == "")
|
||||
parserr($f, "argument definition")
|
||||
if (argtype[argc] == "off_t") {
|
||||
if ((argalign % 2) != 0 &&
|
||||
if ((argalign % 2) != 0 && sysalign &&
|
||||
funcname != "sys_posix_fadvise") # XXX for now
|
||||
parserr($f, "a padding argument")
|
||||
} else {
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
# $NetBSD: syscalls.conf,v 1.12 2008/03/11 22:51:51 pooka Exp $
|
||||
# $NetBSD: syscalls.conf,v 1.13 2008/03/22 15:11:01 christos Exp $
|
||||
|
||||
sysnames="syscalls.c"
|
||||
sysnumhdr="../sys/syscall.h"
|
||||
syssw="init_sysent.c"
|
||||
sysarghdr="../sys/syscallargs.h"
|
||||
sysalign=1
|
||||
rumpcalls="../rump/librump/rumpkern/rump_syscalls.c"
|
||||
rumpcallshdr="../rump/librump/rumpkern/rump_syscalls.h"
|
||||
compatopts="compat_43 compat_09 compat_10 compat_11 compat_12 compat_13 compat_14 compat_15 compat_16 compat_20 compat_30 compat_40"
|
||||
compatopts="compat_43 compat_09 compat_10 compat_11 compat_12 compat_13 compat_14 compat_15 compat_16 compat_20 compat_30 compat_40 compat_50"
|
||||
libcompatopts=""
|
||||
|
||||
switchname="sysent"
|
||||
|
|
Loading…
Reference in New Issue