/* On IA-64, we return the two file descriptors in ret0 and ret1 (r8 and r9) as this is faster than doing a copy_to_user().  */
asmlinkage long sys_ia64_pipe(void)
/* On IA-64, we return the two file descriptors in ret0 and ret1 (r8 and r9) as this is faster than doing a copy_to_user().  */
asmlinkage long sys_ia64_pipe(void)
{
	struct pt_regs *regs = task_pt_regs(current);
	int fd[2];
	int retval;
	retval = do_pipe_flags(fd, 0);
	if (retval)
		goto out;
	retval = fd[0];
	regs->r9 = fd[1];
  out:
	return retval;
}