LWN.net Logo

Glibc and the kernel user-space API

Glibc and the kernel user-space API

Posted Jan 30, 2013 19:14 UTC (Wed) by kpfleming (subscriber, #23250)
In reply to: Glibc and the kernel user-space API by samroberts
Parent article: Glibc and the kernel user-space API

A header file with the appropriate 'static inline' functions would serve this purpose nicely; it doesn't need to be compiled and distributed as a library, but the function calls are type-checked and can be written more easily than preprocessor macros.


(Log in to post comments)

Glibc and the kernel user-space API

Posted Jan 30, 2013 21:48 UTC (Wed) by justincormack (subscriber, #70439) [Link]

You would have to namespace them though, as they mainly have the same names as existing libc functions...

Glibc and the kernel user-space API

Posted Jan 30, 2013 23:41 UTC (Wed) by and (subscriber, #2883) [Link]

> You would have to namespace them though, as they mainly have the same names as existing libc functions...

The same is true if you would use macros

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds