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

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



Author: ps-guest
Date: 2006-02-27 13:48:58 +0000 (Mon, 27 Feb 2006)
New Revision: 1269

Added:
   trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/makecontext.c
Log:
* on amd64, we don't yet support makecontext.
* try to crash when used instead of silent hang ;-)


Added: trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/makecontext.c
===================================================================
--- trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/makecontext.c	2006-02-27 13:26:02 UTC (rev 1268)
+++ trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/makecontext.c	2006-02-27 13:48:58 UTC (rev 1269)
@@ -0,0 +1,32 @@
+/* Copyright (C) 1998 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 <errno.h>
+#include <ucontext.h>
+#include <string.h>
+
+void
+makecontext (ucontext_t *ucp, void (*func) (void), int argc, ...)
+{
+  __set_errno (ENOSYS);
+  memset(ucp, 0, sizeof(ucontext_t));
+}
+
+
+stub_warning (makecontext)
+#include <stub-tag.h>



Reply to: