diff options
author | kib <kib@FreeBSD.org> | 2008-09-24 10:14:37 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2008-09-24 10:14:37 +0000 |
commit | c50080867468c7354bdcffe03f0917bb5813f5b7 (patch) | |
tree | 6f64cce43a5cbd519a28e6d8cdd1f045953d31aa /sys/kern | |
parent | c01b2f07c60be4c69749ddba8fb198994cca96b5 (diff) | |
download | FreeBSD-src-c50080867468c7354bdcffe03f0917bb5813f5b7.zip FreeBSD-src-c50080867468c7354bdcffe03f0917bb5813f5b7.tar.gz |
Change the static struct sysentvec and struct Elf_Brandinfo initializers
to the C99 style. At least, it is easier to read sysent definitions
that way, and search for the actual instances of sigcode etc.
Explicitely initialize sysentvec.sv_maxssiz that was missed in most
sysvecs.
No objection from: jhb
MFC after: 1 month
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/imgact_aout.c | 53 | ||||
-rw-r--r-- | sys/kern/init_main.c | 53 |
2 files changed, 54 insertions, 52 deletions
diff --git a/sys/kern/imgact_aout.c b/sys/kern/imgact_aout.c index ab8ef08..f4e4614 100644 --- a/sys/kern/imgact_aout.c +++ b/sys/kern/imgact_aout.c @@ -56,32 +56,33 @@ static int exec_aout_imgact(struct image_params *imgp); static int aout_fixup(register_t **stack_base, struct image_params *imgp); struct sysentvec aout_sysvec = { - SYS_MAXSYSCALL, - sysent, - 0, - 0, - NULL, - 0, - NULL, - NULL, - aout_fixup, - sendsig, - sigcode, - &szsigcode, - NULL, - "FreeBSD a.out", - NULL, - NULL, - MINSIGSTKSZ, - PAGE_SIZE, - VM_MIN_ADDRESS, - VM_MAXUSER_ADDRESS, - USRSTACK, - PS_STRINGS, - VM_PROT_ALL, - exec_copyout_strings, - exec_setregs, - NULL + .sv_size = SYS_MAXSYSCALL, + .sv_table = sysent, + .sv_mask = 0, + .sv_sigsize = 0, + .sv_sigtbl = NULL, + .sv_errsize = 0, + .sv_errtbl = NULL, + .sv_transtrap = NULL, + .sv_fixup = aout_fixup, + .sv_sendsig = sendsig, + .sv_sigcode = sigcode, + .sv_szsigcode = &szsigcode, + .sv_prepsyscall = NULL, + .sv_name = "FreeBSD a.out", + .sv_coredump = NULL, + .sv_imgact_try = NULL, + .sv_minsigstksz = MINSIGSTKSZ, + .sv_pagesize = PAGE_SIZE, + .sv_minuser = VM_MIN_ADDRESS, + .sv_maxuser = VM_MAXUSER_ADDRESS, + .sv_usrstack = USRSTACK, + .sv_psstrings = PS_STRINGS, + .sv_stackprot = VM_PROT_ALL, + .sv_copyout_strings = exec_copyout_strings, + .sv_setregs = exec_setregs, + .sv_fixlimit = NULL, + .sv_maxssiz = NULL }; static int diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 1d55a8c..9dc8b5f 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -322,32 +322,33 @@ set_boot_verbose(void *data __unused) SYSINIT(boot_verbose, SI_SUB_TUNABLES, SI_ORDER_ANY, set_boot_verbose, NULL); struct sysentvec null_sysvec = { - 0, - NULL, - 0, - 0, - NULL, - 0, - NULL, - NULL, - NULL, - NULL, - NULL, - NULL, - NULL, - "null", - NULL, - NULL, - 0, - PAGE_SIZE, - VM_MIN_ADDRESS, - VM_MAXUSER_ADDRESS, - USRSTACK, - PS_STRINGS, - VM_PROT_ALL, - NULL, - NULL, - NULL + .sv_size = 0, + .sv_table = NULL, + .sv_mask = 0, + .sv_sigsize = 0, + .sv_sigtbl = NULL, + .sv_errsize = 0, + .sv_errtbl = NULL, + .sv_transtrap = NULL, + .sv_fixup = NULL, + .sv_sendsig = NULL, + .sv_sigcode = NULL, + .sv_szsigcode = NULL, + .sv_prepsyscall = NULL, + .sv_name = "null", + .sv_coredump = NULL, + .sv_imgact_try = NULL, + .sv_minsigstksz = 0, + .sv_pagesize = PAGE_SIZE, + .sv_minuser = VM_MIN_ADDRESS, + .sv_maxuser = VM_MAXUSER_ADDRESS, + .sv_usrstack = USRSTACK, + .sv_psstrings = PS_STRINGS, + .sv_stackprot = VM_PROT_ALL, + .sv_copyout_strings = NULL, + .sv_setregs = NULL, + .sv_fixlimit = NULL, + .sv_maxssiz = NULL }; /* |