mirror of
https://github.com/torvalds/linux.git
synced 2026-03-13 22:36:17 +01:00
uapi: stddef.h: Introduce __kernel_nonstring
In order to annotate byte arrays in UAPI that are not C strings (i.e. they may not be NUL terminated), the "nonstring" attribute is needed. However, we can't expose this to userspace as it is compiler version specific. Signed-off-by: Kees Cook <kees@kernel.org>
This commit is contained in:
parent
c0e1d4656e
commit
3407caa69a
1 changed files with 6 additions and 0 deletions
|
|
@ -70,4 +70,10 @@
|
|||
#define __counted_by_be(m)
|
||||
#endif
|
||||
|
||||
#ifdef __KERNEL__
|
||||
#define __kernel_nonstring __nonstring
|
||||
#else
|
||||
#define __kernel_nonstring
|
||||
#endif
|
||||
|
||||
#endif /* _UAPI_LINUX_STDDEF_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue