File: get_syscall_args.c

package info (click to toggle)
strace 4.15-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 22,752 kB
  • ctags: 9,462
  • sloc: ansic: 62,976; sh: 7,256; makefile: 3,551; perl: 352; awk: 343; lisp: 44; sed: 6
file content (12 lines) | stat: -rw-r--r-- 335 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
/* Return -1 on error or 1 on success (never 0!). */
static int
get_syscall_args(struct tcb *tcp)
{
	tcp->u_arg[0] = nios2_regs.regs[4];
	tcp->u_arg[1] = nios2_regs.regs[5];
	tcp->u_arg[2] = nios2_regs.regs[6];
	tcp->u_arg[3] = nios2_regs.regs[7];
	tcp->u_arg[4] = nios2_regs.regs[8];
	tcp->u_arg[5] = nios2_regs.regs[9];
	return 1;
}