compat linux (and linux32) uid16 functions cleanup and fixes.
commit7cf859a54fb626108cfe4388b257fd138916afd8
authorNicolas Joly <njoly@NetBSD.org>
Tue, 15 Jan 2008 22:38:36 +0000 (15 22:38 +0000)
committerNicolas Joly <njoly@NetBSD.org>
Tue, 15 Jan 2008 22:38:36 +0000 (15 22:38 +0000)
tree27760014d876cf790a29d982fb097f90000c3992
parent9e2816de8471dd04165008457d463d7359b0fe6d
compat linux (and linux32) uid16 functions cleanup and fixes.

- Move uid16 functions to their own file linux_uid16.c, included by
  needed archs (arm, i386 and m68k).
- Add new MI types linux_{u,g}id16_t.
- Add macros to handle linux_uid16_t and uid_t conversions.
- Add linux_sys_getres{uid,gid}16 syscalls, to fix an overflow with
  bad sizes given to copyout when linux_sys_getres{uid,gid} are used.
- Update arm syscall table to use more uid16 functions.
17 files changed:
sys/compat/linux/arch/arm/linux_commons.c
sys/compat/linux/arch/arm/syscalls.master
sys/compat/linux/arch/i386/linux_commons.c
sys/compat/linux/arch/i386/syscalls.master
sys/compat/linux/arch/m68k/files.linux_m68k
sys/compat/linux/arch/m68k/syscalls.master
sys/compat/linux/common/linux_file.c
sys/compat/linux/common/linux_misc.c
sys/compat/linux/common/linux_types.h
sys/compat/linux/common/linux_uid16.c [new file with mode: 0644]
sys/compat/linux32/arch/amd64/files.linux32_amd64
sys/compat/linux32/arch/amd64/linux32_missing.c
sys/compat/linux32/arch/amd64/linux32_missing.h
sys/compat/linux32/arch/amd64/syscalls.master
sys/compat/linux32/common/linux32_types.h
sys/compat/linux32/common/linux32_uid16.c [new file with mode: 0644]
sys/compat/linux32/common/linux32_unistd.c