syscall.sh / x86 / getresgid
getresgid
get real, effective, and saved user/group IDs
sys_getresgid16(old_gid_t *rgid, old_gid_t *egid, old_gid_t *sgid)
| number | 171 (0xab) |
|---|---|
| abi | i386 |
| entry point | sys_getresgid16 |
| since | Linux 3.3 |
| man page | getresgid(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 171, the syscall number |
ebx | old_gid_t *rgid |
ecx | old_gid_t *egid |
edx | old_gid_t *sgid |
eax | the return value |
Then run int 0x80 to enter the kernel.
Same syscall on other architectures
- x64 120
- arm64 150
- arm 171
- riscv64 150
- x32 1073741944
- loongarch64 150
- ppc64 170
- ppc 170
- s390x 211
- mips64 5118
- mipsn32 6118
- mipso32 4191
- alpha 372
- arc 150
- csky 150
- hexagon 150
- m68k 171
- microblaze 171
- nios2 150
- openrisc 150
- parisc 171
- sh 171
- sparc64 111
- xtensa 147
Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/getresgid