This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]