所有这一切我迄今阅读文献的setuid有关谈判seteuid,暗示它是一个系统调用的方式.第2节man页面从不说明函数是否是系统调用,因此seteuid(2)没有帮助.如果它不是系统调用,意味着内核不提供功能,那么如何实现"设置有效UID"呢?
第2节手册页是所有的系统调用-这就是第2节是.第3节手册页都是库调用,这就是第3节的用途.请参阅man(1)(man自身的手册页)以获取部分列表及其内容:
1 Executable programs or shell commands
2 System calls (functions provided by the kernel)
3 Library calls (functions within program libraries)
4 Special files (usually found in /dev)
5 File formats and conventions eg /etc/passwd
6 Games
7 Miscellaneous (including macro packages and conventions), e.g.
man(7), groff(7)
8 System administration commands (usually only for root)
9 Kernel routines [Non standard]
Run Code Online (Sandbox Code Playgroud)