gpt4 book ai didi

linux - linux中真的没有超过6个参数的系统调用吗?

转载 作者:可可西里 更新时间:2023-11-01 11:44:38 24 4
gpt4 key购买 nike

unistd.h中有_syscall0~_syscall6:

_syscall6(type,name,type1,arg1,type2,arg2,type3,arg3,type4,arg4,type5,arg5,type6,arg6)

那么我的结论对不对?

最佳答案

引用:

古代历史

Earlier versions of Linux could handle only four or five system call parameters, and therefore the system calls select() (5 parameters) and mmap() (6 parameters) used to have a single parameter that was a pointer to a parameter block in memory. Since Linux 1.3.0 five parameters are supported (and the earlier select with memory block was renamed old_select), and since Linux 2.3.31 six parameters are supported (and the earlier mmap with memory block was succeeded by the new mmap2).

关于linux - linux中真的没有超过6个参数的系统调用吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5388393/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com