This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Calling convention bug in io.cxx?
- From: Øyvind Harboe <oyvind dot harboe at zylin dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Fri, 25 Feb 2005 20:57:34 +0100
- Subject: [ECOS] Calling convention bug in io.cxx?
Shouldn't io.cxx line 255 be:
__externC int ioctl( int fd, CYG_ADDRWORD com, CYG_ADDRWORD data, ...)
instead of:
__externC int ioctl( int fd, CYG_ADDRWORD com, CYG_ADDRWORD data)
?
Given that ioctl.h defines:
__BEGIN_DECLS
int ioctl __P((int, unsigned long, ...));
__END_DECLS
This matters on targets where the callee normally cleans up the stack,
since these targets need to let the caller clean up varargs fn's.
--
Øyvind Harboe
http://www.zylin.com
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss