![Greg Kroah-Hartman](/assets/img/avatar_default.png)
Many user space API headers are missing licensing information, which makes it hard for compliance tools to determine the correct license. By default are files without license information under the default license of the kernel, which is GPLV2. Marking them GPLV2 would exclude them from being included in non GPLV2 code, which is obviously not intended. The user space API headers fall under the syscall exception which is in the kernels COPYING file: NOTE! This copyright does *not* cover user programs that use kernel services by normal system calls - this is merely considered normal use of the kernel, and does *not* fall under the heading of "derived work". otherwise syscall usage would not be possible. Update the files which contain no license information with an SPDX license identifier. The chosen identifier is 'GPL-2.0 WITH Linux-syscall-note' which is the officially assigned identifier for the Linux syscall exception. SPDX license identifiers are a legally binding shorthand, which can be used instead of the full boiler plate text. This patch is based on work done by Thomas Gleixner and Kate Stewart and Philippe Ombredanne. See the previous patch in this series for the methodology of how this patch was researched. Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Reviewed-by: Philippe Ombredanne <pombredanne@nexb.com> Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
98 lines
2.2 KiB
C
98 lines
2.2 KiB
C
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
|
#ifndef __ASM_GENERIC_POSIX_TYPES_H
|
|
#define __ASM_GENERIC_POSIX_TYPES_H
|
|
|
|
#include <asm/bitsperlong.h>
|
|
/*
|
|
* This file is generally used by user-level software, so you need to
|
|
* be a little careful about namespace pollution etc.
|
|
*
|
|
* First the types that are often defined in different ways across
|
|
* architectures, so that you can override them.
|
|
*/
|
|
|
|
#ifndef __kernel_long_t
|
|
typedef long __kernel_long_t;
|
|
typedef unsigned long __kernel_ulong_t;
|
|
#endif
|
|
|
|
#ifndef __kernel_ino_t
|
|
typedef __kernel_ulong_t __kernel_ino_t;
|
|
#endif
|
|
|
|
#ifndef __kernel_mode_t
|
|
typedef unsigned int __kernel_mode_t;
|
|
#endif
|
|
|
|
#ifndef __kernel_pid_t
|
|
typedef int __kernel_pid_t;
|
|
#endif
|
|
|
|
#ifndef __kernel_ipc_pid_t
|
|
typedef int __kernel_ipc_pid_t;
|
|
#endif
|
|
|
|
#ifndef __kernel_uid_t
|
|
typedef unsigned int __kernel_uid_t;
|
|
typedef unsigned int __kernel_gid_t;
|
|
#endif
|
|
|
|
#ifndef __kernel_suseconds_t
|
|
typedef __kernel_long_t __kernel_suseconds_t;
|
|
#endif
|
|
|
|
#ifndef __kernel_daddr_t
|
|
typedef int __kernel_daddr_t;
|
|
#endif
|
|
|
|
#ifndef __kernel_uid32_t
|
|
typedef unsigned int __kernel_uid32_t;
|
|
typedef unsigned int __kernel_gid32_t;
|
|
#endif
|
|
|
|
#ifndef __kernel_old_uid_t
|
|
typedef __kernel_uid_t __kernel_old_uid_t;
|
|
typedef __kernel_gid_t __kernel_old_gid_t;
|
|
#endif
|
|
|
|
#ifndef __kernel_old_dev_t
|
|
typedef unsigned int __kernel_old_dev_t;
|
|
#endif
|
|
|
|
/*
|
|
* Most 32 bit architectures use "unsigned int" size_t,
|
|
* and all 64 bit architectures use "unsigned long" size_t.
|
|
*/
|
|
#ifndef __kernel_size_t
|
|
#if __BITS_PER_LONG != 64
|
|
typedef unsigned int __kernel_size_t;
|
|
typedef int __kernel_ssize_t;
|
|
typedef int __kernel_ptrdiff_t;
|
|
#else
|
|
typedef __kernel_ulong_t __kernel_size_t;
|
|
typedef __kernel_long_t __kernel_ssize_t;
|
|
typedef __kernel_long_t __kernel_ptrdiff_t;
|
|
#endif
|
|
#endif
|
|
|
|
#ifndef __kernel_fsid_t
|
|
typedef struct {
|
|
int val[2];
|
|
} __kernel_fsid_t;
|
|
#endif
|
|
|
|
/*
|
|
* anything below here should be completely generic
|
|
*/
|
|
typedef __kernel_long_t __kernel_off_t;
|
|
typedef long long __kernel_loff_t;
|
|
typedef __kernel_long_t __kernel_time_t;
|
|
typedef __kernel_long_t __kernel_clock_t;
|
|
typedef int __kernel_timer_t;
|
|
typedef int __kernel_clockid_t;
|
|
typedef char * __kernel_caddr_t;
|
|
typedef unsigned short __kernel_uid16_t;
|
|
typedef unsigned short __kernel_gid16_t;
|
|
|
|
#endif /* __ASM_GENERIC_POSIX_TYPES_H */
|