|
|
Subscribe / Log in / New account

system call __NR_creat is different from __NR_open

system call __NR_creat is different from __NR_open

Posted Jun 26, 2024 15:59 UTC (Wed) by jreiser (subscriber, #11027)
In reply to: open() flags: O_TMPFILE and O_BENEATH by sstewartgallus
Parent article: open() flags: O_TMPFILE and O_BENEATH

In addition to __NR_open*, there are separate system calls __NR_creat:

/usr/include/asm/unistd_32.h:#define __NR_creat 8
/usr/include/asm/unistd_64.h:#define __NR_creat 85
/usr/include/asm/unistd_x32.h:#define __NR_creat (__X32_SYSCALL_BIT + 85)

/usr/include/asm/unistd_32.h:#define __NR_open 5
/usr/include/asm/unistd_32.h:#define __NR_openat 295
/usr/include/asm/unistd_32.h:#define __NR_openat2 437

/usr/include/asm/unistd_64.h:#define __NR_open 2
/usr/include/asm/unistd_64.h:#define __NR_openat 257
/usr/include/asm/unistd_64.h:#define __NR_openat2 437

/usr/include/asm-generic/unistd.h:#define __NR_openat 56


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds