misc/159916: stdarg.h doesn't have a lint version of va_copy

Keith Bostic keith at bostic.com
Fri Aug 19 15:50:12 UTC 2011


>Number:         159916
>Category:       misc
>Synopsis:       stdarg.h doesn't have a lint version of va_copy
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 19 15:50:11 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Keith Bostic
>Release:        8.2
>Organization:
>Environment:
FreeBSD pixiebob.home 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011     root at mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
the lint chunk of <stdarg.h>:


#elif defined(lint)
/* Provide a fake implementation for lint's benefit */
#define __va_size(type) \
        (((sizeof(type) + sizeof(long) - 1) / sizeof(long)) * sizeof(long))
#define va_start(ap, last) \
        ((ap) = (va_list)&(last) + __va_size(last))
#define va_arg(ap, type) \
        (*(type *)((ap) += __va_size(type), (ap) - __va_size(type)))
#define va_end(ap)

Doesn't have an entry for va_copy().

>How-To-Repeat:
By examination.
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list