syscall_set_return_value man page on Scientific

Man page or keyword search:  
man Server   26626 pages
apropos Keyword Search (all sections)
Output format
Scientific logo
[printable version]

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.	 November 2013	       SYSCALL_SET_RETURN_V(9)
[top]

List of man pages available for Scientific

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net