博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
glibc库函数,系统调用API
阅读量:7242 次
发布时间:2019-06-29

本文共 692 字,大约阅读时间需要 2 分钟。

     glibc封装了大部分系统API,我们一般都是使用glibc封装的接口进行系统调用,碰到一些没有封装的接口,可以通过这个

函数syscall 进行系统调用。

 
1 /* Invoke `system call' number SYSNO, passing it the remaining arguments. 2    This is completely system-dependent, and not often useful. 3  4    In Unix, `syscall' sets `errno' for all errors and most calls return -1 5    for errors; in many systems you cannot pass arguments or get return 6    values for all system calls (`pipe', `fork', and `getppid' typically 7    among them). 8  9    In Mach, all system calls take normal arguments and always return an10    error code (zero for success).  */11 extern long int syscall (long int __sysno, ...) __THROW;

 

转载于:https://www.cnblogs.com/blog-yejy/p/9373850.html

你可能感兴趣的文章
关于LUN和存储卷的区别详解
查看>>
JavaSE 学习参考:IO流之字节流
查看>>
Spring集合的注入
查看>>
JavaSE 数组排序
查看>>
java多线程同代码函数
查看>>
php编程 - php分糖果问题
查看>>
我的友情链接
查看>>
某个方法到底应该放到哪个文件中
查看>>
【更新】Word控件Spire.Doc V6.0.63发布| 支持表格样式的应用
查看>>
磁盘IO
查看>>
经典DM×××实验
查看>>
IT行业——Linux
查看>>
Powershell-查询当前文件目录层级结构
查看>>
shell上线脚本
查看>>
linux双网卡绑定
查看>>
Configure MySQL Master-Slave replication
查看>>
python资源大全中文版
查看>>
Mysql启报错报The server quit without updating PID file
查看>>
C++ 虚函数内存分配
查看>>
动态库的路径/etc/ld.so.conf
查看>>