Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何添加新的 libc 函数并从 C 程序中调用它?新函数不是任何内核级系统调用的包装器。它的功能将在用户空间中完成。
将其放入自己的库文件中,并与-llibrary_name_here. 唯一属于 libc 的东西已经存在(还有很多不属于那里的东西)。
-llibrary_name_here