Using the setpgid() and setuid() system call
使用setpgid()和setuid()系统调用
The sigaction system call takes three parameters
sigaction系统调用需要使用 3 个参数
A shows the argument strings passed in each exec system call.
a显示每个exec系统调用中传递的参数字符串。
Any TCP system call that is made is received by the socket layer.
套接字层接收进行的任何TCP系统调用。
Figure 14 shows the sequence of calls for the recvmsg system call.
图14显示了用于recvmsg系统调用的调用序列。
The clone system call has been extended to optimize thread creation.
系统调用clone被扩展,以优化线程的创建。
The socket system call creates a new socket by assigning a new descriptor.
socket系统调用通过分配新的描述符创建新的套接字。
The shutdown system call closes either one or both ends of the connection.
shutdown系统调用关闭连接的任意一端或两端。
The open system call determines whether the mapping is readable or writable.
open系统调用确定映射是否可读或可写。
The close system call closes or aborts any pending connections on the socket.
close系统调用可关闭或中止套接字上任何挂起的连接。
The accept system call is a blocking call that waits for incoming connections.
accept系统调用是等待传入连接的阻塞调用。
Some functions need to use a system call in order to do their work, others do not.
有些函数需要使用系统调用来完成其工作,其它函数则不需要。
The socket system call also assigns the protocol to the created socket descriptor.
socket系统调用还向创建的套接字描述符分配协议。
The asterisk indicates that the read system call for all processes are to be probed.
星号表示所有进程的read系统调用都应该探测。
Step one: the read system call causes a context switch from user mode to kernel mode.
read() 调用(参见 图 2)引发了一次从用户模式到内核模式的上下文切换。
This system call changes what the process views when it views the "root" of the filesystem.
当进程查看文件系统的“root”时,这个系统调用会修改进程所看到的内容。
A user-space emulator such as lxrun waits for the application to try to make a system call.
用户空间模拟器,比如lxrun,会等待应用程序尝试进行系统调用。
This system call requires the file descriptor from shm_open and returns a pointer to memory.
这个系统调用需要shm_open返回的文件描述符,它返回指向内存的指针。
Adding a new system call is mostly procedural, although you should look out for a few things.
添加一个新系统调用主要是一些程序性的操作,但应该注意几件事情。
The hard part is that the system call may be difficult or impossible to implement reasonably.
困难之处在于可能难以或者不可能较好地实现系统调用。
Similarly, functions such as printf and fprintf invoke the write system call to do their work.
类似地,printf和fprintf这样的函数调用write系统调用完成其工作。
Access to the log buffer is provided at the core through the multi-purpose syslog system call.
多用途的syslog系统调用提供了内核的日志缓冲区访问方法。
A value of 1 (for the Linux exit system call) is stored in EAX to request that the program exit.
EAX中存储的值是1(代表Linuxexit系统调用),这请求程序退出。
For step 2, I update the header files to make room for the new functions in the system call table.
对于步骤2来说,我对头文件进行了更新:在系统调用表中为这几个新函数安排空间。
For more information on errors that can occur in system calls, see the section system call errors.
有关系统调用中出现错误的更多信息,请参阅系统调用错误一节。
Second, a Linux system call is basically a function that is a part of the operating system's code.
其次,Linux系统调用基本上是一个函数,它属于操作系统代码的一部分。
The connect system call is normally called by the client process to connect to the server process.
客户端进程通常调用connect系统调用,以连接到服务器进程。
After returning from the fork system call, the child process is instructed to execv the new binary.
在从fork系统调用返回以后,将指示子进程执行(execv)新的二进制文件。
The FreeBSD developers decided to add a new system call to counteract these problems, named jail().
FreeBSD开发者决定增加一个新的系统调用来解决这些问题,这个新的系统调用叫做 jail() 。
Unlike the corresponding system call DeviceIOControl, the input parameter list in ioctl is not fixed.
与对应的系统调用DeviceIOControl不同,ioctl的输入参数列表并不固定。
应用推荐