[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

r1075 - trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64



Author: ps-guest
Date: 2006-01-19 14:33:15 +0000 (Thu, 19 Jan 2006)
New Revision: 1075

Added:
   trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/pipe.S
Log:
pipe() for amd64


Added: trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/pipe.S
===================================================================
--- trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/pipe.S	2006-01-19 09:44:31 UTC (rev 1074)
+++ trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/pipe.S	2006-01-19 14:33:15 UTC (rev 1075)
@@ -0,0 +1,33 @@
+/* Copyright (C) 2006 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with the GNU C Library; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+   02111-1307 USA.  */
+
+#include <sysdep.h>
+
+.text
+ENTRY (__pipe)
+	DO_CALL (pipe, 1)
+	jb SYSCALL_ERROR_LABEL
+	movq 8(%rsp), %rcx
+        movl %eax, 0(%rcx)
+        movl %edx, 4(%rcx)
+        xorq %rax, %rax
+L(pseudo_end):
+	ret
+PSEUDO_END (__pipe)
+libc_hidden_def (__pipe)
+weak_alias (__pipe, pipe)



Reply to: