/* sys_pipe() is the normal C calling standard for creating a pipe. It's not the way unix traditionally does this, though.  */
SYSCALL_DEFINE1(sparc_pipe_real, struct pt_regs *, regs)
/* sys_pipe() is the normal C calling standard for creating a pipe. It's not the way unix traditionally does this, though.  */
SYSCALL_DEFINE1(sparc_pipe_real, struct pt_regs *, regs)
{
	int fd[2];
	int error;
	error = do_pipe_flags(fd, 0);
	if (error)
		goto out;
	regs->u_regs[UREG_I1] = fd[1];
	error = fd[0];
out:
	return error;
}