We need the tty fixes in here as well for testing and to base changes on.
Showing the changes to include/uapi (2 of 629 files). Show all
Unified · Split
| @@ -1962,7 +1962,9 @@ union bpf_attr { · 1961 unmodified lines | ||
| 1962 | 1962 | * performed again, if the helper is used in combination with |
| 1963 | 1963 | * direct packet access. |
| 1964 | 1964 | * Return |
| 1965 | − * 0 on success, or a negative error in case of failure. | |
| 1965 | + * 0 on success, or a negative error in case of failure. Positive | |
| 1966 | + * error indicates a potential drop or congestion in the target | |
| 1967 | + * device. The particular positive error codes are not defined. | |
| 1966 | 1968 | * |
| 1967 | 1969 | * u64 bpf_get_current_pid_tgid(void) |
| 1968 | 1970 | * Description |
| @@ -29,6 +29,11 @@ · 28 unmodified lines | ||
| 29 | 29 | struct TAG { MEMBERS } ATTRS NAME; \ |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | +#ifdef __cplusplus | |
| 33 | +/* sizeof(struct{}) is 1 in C++, not 0, can't use C version of the macro. */ | |
| 34 | +#define __DECLARE_FLEX_ARRAY(T, member) \ | |
| 35 | + T member[0] | |
| 36 | +#else | |
| 32 | 37 | /** |
| 33 | 38 | * __DECLARE_FLEX_ARRAY() - Declare a flexible array usable in a union |
| 34 | 39 | * |
| @@ -49,3 +54,5 @@ · 14 unmodified lines | ||
| 49 | 54 | #ifndef __counted_by |
| 50 | 55 | #define __counted_by(m) |
| 51 | 56 | #endif |
| 57 | + | |
| 58 | +#endif /* _UAPI_LINUX_STDDEF_H */ | |