* filter_qualify.c (parse_inject_token): Replace 4095
with MAX_ERRNO_VALUE.
* negated_errno.h (is_negated_errno): Likewise. Remove redundant
comment.
" clipped to %d in compat personality",
intval, (int) intval);
- if ((int) intval < 0 && (int) intval >= -4095)
+ if ((int) intval < 0 && (int) intval >= -MAX_ERRNO_VALUE)
error_msg("Inadvertent injection of error %d is"
" possible in compat personality for"
" retval=%" PRI_kld,
static inline bool
is_negated_errno(kernel_ulong_t val)
{
- /* Linux kernel defines MAX_ERRNO to 4095. */
- kernel_ulong_t max = -(kernel_long_t) 4095;
+ kernel_ulong_t max = -(kernel_long_t) MAX_ERRNO_VALUE;
#ifndef current_klongsize
if (current_klongsize < sizeof(val)) {