File: set_scno.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 (10 lines) | stat: -rw-r--r-- 200 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
static int
arch_set_scno(struct tcb *tcp, long scno)
{
#ifdef HAVE_GETREGS_OLD
	return upoke(tcp->pid, sizeof(long) * PT_R0, scno);
#else
	ppc_regs.gpr[0] = scno;
	return set_regs(tcp->pid);
#endif
}