Hacker News new | ask | show | jobs
by ainar-g 1957 days ago
The parent comment talked about the syscall, not the library function.

   return((caddr_t)(long)__syscall((quad_t)SYS_mmap, addr, len, prot,
       flags, fd, 0, offset));
The first argument is the syscall number, the rest are the seven arguments in question.