Syntax error in malloc_np.h

Hartmut Brandt harti at
Mon May 21 15:57:49 UTC 2012


it seems that there is a syntax error in malloc_np.h. It contains lines like:

int	allocm(void **ptr, size_t *rsize, size_t size, int flags)

The problem is that the syntax of the attributes actually requires two


Our gcc seems to swallow either of both, but gcc47 chokes on the missing
'(' as does clang++.

Given that we have __nonnull(x) in cdefs.h I suppose the above is better
replaced with __nonnull(1)?


More information about the freebsd-current mailing list