cvs commit: src/sys/sys cdefs.h systm.h
    Scott Long 
    scottl at freebsd.org
       
    Mon Jul 21 20:42:53 PDT 2003
    
    
  
Poul-Henning Kamp wrote:
> phk         2003/07/21 11:35:51 PDT
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sys/sys              cdefs.h systm.h 
>   Log:
>   Add a new macro __nonnull(x) to use the new GCC33 attribute which checks
>   that an argument is not a NULL pointer.
>   
>   Apply various obvious places.
>   
>   I belive __printf*() implies __nonnull() so it is not needed on functions
>   already tagged that way.
>   
>   Revision  Changes    Path
>   1.72      +6 -0      src/sys/sys/cdefs.h
>   1.195     +16 -16    src/sys/sys/systm.h
> 
strtoul and strtol are allowed to have their second argument be NULL.
It's even expressly documented in the man page, and a casual look at
libkern verifies it.
Scott
    
    
More information about the cvs-all
mailing list