1*52728Sbostic/*- 2*52728Sbostic * Copyright (c) 1991 The Regents of the University of California. 3*52728Sbostic * All rights reserved. 4*52728Sbostic * 5*52728Sbostic * This code is derived from software contributed to Berkeley by 6*52728Sbostic * Ralph Campbell. 7*52728Sbostic * 8*52728Sbostic * %sccs.include.redist.c% 9*52728Sbostic */ 10*52728Sbostic 11*52728Sbostic#include "SYS.h" 12*52728Sbostic 13*52728Sbostic#if defined(LIBC_SCCS) && !defined(lint) 14*52728Sbostic ASMSTR("@(#)ptrace.s 5.1 (Berkeley) 02/29/92") 15*52728Sbostic#endif /* LIBC_SCCS and not lint */ 16*52728Sbostic 17*52728SbosticLEAF(ptrace) 18*52728Sbostic sw zero, errno 19*52728Sbostic li v0, SYS_ptrace 20*52728Sbostic syscall 21*52728Sbostic bne a3, zero, 1f 22*52728Sbostic j ra 23*52728Sbostic1: 24*52728Sbostic j _cerror 25*52728SbosticEND(ptrace) 26