What alternatives to __attribute__ exist on 64-bit kernels?

Posted by Saifi Khan on Stack Overflow See other posts from Stack Overflow or by Saifi Khan
Published on 2010-04-02T13:35:20Z Indexed on 2010/04/02 13:43 UTC
Read the original article Hit count: 205

Filed under:
|
|

Hi:

Is there any alternative to non-ISO gcc specific extension __attribute__ on 64-bit kernels ?

Three types that i've noticed are: function attributes, type attributes and variable attributes.

eg. i'd like to avoid using __attribute__((__packed__)) for structures passed over the network, even though some gcc based code do use it.

Any suggestions or pointers on how to entirely avoid __attribute__ usage in C systems/kernel code ?

thanks Saifi.

© Stack Overflow or respective owner

Related posts about c

    Related posts about iso