syscall_set_return_value(9) suse man page | unix.com

Man Page: syscall_set_return_value

Operating Environment: suse

Section: 9

SYSCALL_SET_RETURN_V(9) 					   Machine State					   SYSCALL_SET_RETURN_V(9)

NAME
syscall_set_return_value - change the return value of a traced system call
SYNOPSIS
void syscall_set_return_value(struct task_struct * task, struct pt_regs * regs, int error, long val);
ARGUMENTS
task task of interest, must be blocked regs task_pt_regs of task error negative error code, or zero to indicate success val user return value if error is zero
DESCRIPTION
This changes the results of the system call that user mode will see. If error is zero, the user sees a successful system call with a return value of val. If error is nonzero, it's a negated errno code; the user sees a failed system call with this errno code. It's only valid to call this when task is stopped for tracing on exit from a system call, due to TIF_SYSCALL_TRACE or TIF_SYSCALL_AUDIT. Kernel Hackers Manual 2.6. July 2010 SYSCALL_SET_RETURN_V(9)
Related Man Pages
getprojid(2) - sunos
settaskid(2) - sunos
iv_task(3) - debian
gettaskid(2) - sunos
getprojid(2) - hpux
Similar Topics in the Unix Linux Community
Grant unprivileged user rights to see the output of echo|format but not modify disks
Cut command on RHEL 6.8 compatibility issues
SOCKS proxy & PAM configuration exposure
A (ksh) Library For and From UNIX.com
32 bit process addressing more than 4GB