[Glibc-bsd-commits] r4715 - trunk/glibc-ports/kfreebsd

Petr Salinger ps-guest at alioth.debian.org
Tue Jul 9 19:41:52 UTC 2013


Author: ps-guest
Date: 2013-07-09 19:41:52 +0000 (Tue, 09 Jul 2013)
New Revision: 4715

Added:
   trunk/glibc-ports/kfreebsd/aio_sigqueue.c
   trunk/glibc-ports/kfreebsd/gai_sigqueue.c
Log:
use sigqueue() instead of previous ENOSYS stub (fixes tst-aio4.out)



Added: trunk/glibc-ports/kfreebsd/aio_sigqueue.c
===================================================================
--- trunk/glibc-ports/kfreebsd/aio_sigqueue.c	                        (rev 0)
+++ trunk/glibc-ports/kfreebsd/aio_sigqueue.c	2013-07-09 19:41:52 UTC (rev 4715)
@@ -0,0 +1,36 @@
+/* Copyright (C) 2013 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, see
+   <http://www.gnu.org/licenses/>.  */
+
+#include <aio.h>
+#include <errno.h>
+#include <signal.h>
+#include <unistd.h>
+#include <string.h>
+
+#include <sysdep.h>
+#include <sys/syscall.h>
+
+#include <aio_misc.h>
+
+int
+__aio_sigqueue (sig, val, caller_pid)
+     int sig;
+     const union sigval val;
+     pid_t caller_pid;
+{
+    return sigqueue(caller_pid, sig, val);
+}

Added: trunk/glibc-ports/kfreebsd/gai_sigqueue.c
===================================================================
--- trunk/glibc-ports/kfreebsd/gai_sigqueue.c	                        (rev 0)
+++ trunk/glibc-ports/kfreebsd/gai_sigqueue.c	2013-07-09 19:41:52 UTC (rev 4715)
@@ -0,0 +1,36 @@
+/* Copyright (C) 2013 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, see
+   <http://www.gnu.org/licenses/>.  */
+
+#include <errno.h>
+#include <netdb.h>
+#include <signal.h>
+#include <string.h>
+#include <unistd.h>
+
+#include <sysdep.h>
+#include <sys/syscall.h>
+
+#include <gai_misc.h>
+
+int
+__gai_sigqueue (sig, val, caller_pid)
+     int sig;
+     const union sigval val;
+     pid_t caller_pid;
+{
+    return sigqueue(caller_pid, sig, val);
+}




More information about the Glibc-bsd-commits mailing list