在哪里可以获得UNIX系统调用的列表? [英] Where can I obtain a list of UNIX system calls?

查看:65
本文介绍了在哪里可以获得UNIX系统调用的列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在UNIX上有哪些系统调用列表?

Where are some lists of system calls on UNIX?

这不是我最初的问题,但还是要感谢:)

This wasn't my original question, but thanks anyway :)

推荐答案

man 2 syscalls

除此之外,您还可以查看/usr/include/sys/syscall.h(在我的系统上仅#includes/usr/include/bits/syscall.h).这是在libc构建时从内核syscall列表生成的.

Aside from that, you can look in /usr/include/sys/syscall.h (which on my system merely #includes /usr/include/bits/syscall.h). That's generated at libc build time from kernel syscall list.

您还可以grep SYSCALL_DEFINE的Linux内核源代码. (我不是BSD专家,但我认为FreeBSD中的等效项是SYSCALL_MODULE)

You can also grep the Linux kernel source for SYSCALL_DEFINE. (I'm not a BSD expert, but I think the equivalent in FreeBSD is SYSCALL_MODULE)

这篇关于在哪里可以获得UNIX系统调用的列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆