开发者

Adding new function to libc

开发者 https://www.devze.com 2023-03-02 12:50 出处:网络
How can I add a new libc function and also call it from C programs? The new function is a not a wrappe开发者_如何学Gor to any kernel level system calls. Its function will be done in user space.Put it

How can I add a new libc function and also call it from C programs? The new function is a not a wrappe开发者_如何学Gor to any kernel level system calls. Its function will be done in user space.


Put it in its own library file and link it with -llibrary_name_here. The only things that belong in libc are already there (along with plenty of things that don't belong there).

0

精彩评论

暂无评论...
验证码 换一张
取 消