DROPS L4Env I/O client API not applicable for C++ programs

Marcel Winandy winandy at crypto.ruhr-uni-bochum.de
Mon Oct 23 18:56:01 CEST 2006


Hello!

I have just encountered a problem with the L4Env I/O client API libio.h if you 
try to use this in a C++ program. You get a syntax error because there is a 
variable having the name "class". But that is a C++ keyword.

In l4/include/x86/l4/generic_io/types.h:
****************************************
struct l4io_drv:
  "unsigned class:8;"

struct l4io_pci_dev:
  "unsigned long class;"

In l4/include/x86/l4/generic_io/libio.h:
****************************************
"int l4io_pci_find_class(unsigned long class, ...)"

Although these variable names are possible in C, you run in syntax errors when 
trying to use these API interfaces in a C++ program. I think these variables 
should get other names, shouldn't they?

Kind regards
 Marcel
-- 
Marcel Winandy
http://www.prosec.rub.de/staff/winandy.html
Applied Data Security Group, Ruhr-University Bochum, Germany




More information about the l4-hackers mailing list