[rtems-libbsd commit] Added stubs for funsetown() and fsetown()

Jennifer Averett jennifer at rtems.org
Wed May 2 15:24:46 UTC 2012


Module:    rtems-libbsd
Branch:    master
Commit:    be8032d2b61752e7b87e38ca3d09259b165e6bf3
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=be8032d2b61752e7b87e38ca3d09259b165e6bf3

Author:    Jennifer Averett <jennifer.averett at oarcorp.com>
Date:      Wed May  2 10:27:59 2012 -0500

Added stubs for funsetown() and fsetown()

---

 Makefile                         |    1 +
 freebsd-to-rtems.py              |    1 +
 rtemsbsd/src/rtems-bsd-descrip.c |   51 ++++++++++++++++++++++++++++++++++++++
 3 files changed, 53 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index a21913c..5690ddf 100644
--- a/Makefile
+++ b/Makefile
@@ -56,6 +56,7 @@ C_FILES += rtemsbsd/src/rtems-bsd-timesupport.c
 C_FILES += rtemsbsd/src/rtems-bsd-newproc.c
 C_FILES += rtemsbsd/src/rtems-bsd-vm_glue.c
 C_FILES += rtemsbsd/src/rtems-bsd-copyinout.c
+C_FILES += rtemsbsd/src/rtems-bsd-descrip.c
 C_FILES += freebsd/kern/subr_eventhandler.c
 C_FILES += freebsd/kern/kern_subr.c
 C_FILES += freebsd/kern/kern_tc.c
diff --git a/freebsd-to-rtems.py b/freebsd-to-rtems.py
index c654cc7..9aee0e2 100755
--- a/freebsd-to-rtems.py
+++ b/freebsd-to-rtems.py
@@ -551,6 +551,7 @@ rtems.addRTEMSSourceFiles(
 		'src/rtems-bsd-newproc.c',
 		'src/rtems-bsd-vm_glue.c',
 		'src/rtems-bsd-copyinout.c',
+		'src/rtems-bsd-descrip.c',
 	]
 )
 rtems.addEmptyHeaderFiles(
diff --git a/rtemsbsd/src/rtems-bsd-descrip.c b/rtemsbsd/src/rtems-bsd-descrip.c
new file mode 100644
index 0000000..75df534
--- /dev/null
+++ b/rtemsbsd/src/rtems-bsd-descrip.c
@@ -0,0 +1,51 @@
+/**
+ * @file
+ *
+ * @ingroup rtems_bsd_rtems
+ *
+ * @brief TODO.
+ */
+
+/*
+ *  COPYRIGHT (c) 1989-2012.
+ *  XXX
+ */
+
+#include <freebsd/machine/rtems-bsd-config.h>
+
+#include <freebsd/sys/param.h>
+#include <freebsd/sys/systm.h>
+
+#include <freebsd/sys/conf.h>
+#include <freebsd/sys/domain.h>
+#include <freebsd/sys/fcntl.h>
+#include <freebsd/sys/file.h>
+#include <freebsd/sys/filedesc.h>
+#include <freebsd/sys/filio.h>
+#include <freebsd/sys/jail.h>
+#include <freebsd/sys/kernel.h>
+#include <freebsd/sys/limits.h>
+#include <freebsd/sys/lock.h>
+#include <freebsd/sys/malloc.h>
+#include <freebsd/sys/mount.h>
+#include <freebsd/sys/mutex.h>
+#include <freebsd/sys/namei.h>
+#include <freebsd/sys/priv.h>
+#include <freebsd/sys/proc.h>
+
+/*
+ * This routine is not supported in the RTEMS interface
+ */
+void
+funsetown(struct sigio **sigiop)
+{
+}
+
+/*
+ * This routine is not supported in the RTEMS interface
+ */
+int
+fsetown(pid_t pgid, struct sigio **sigiop)
+{
+  return 0;
+}




More information about the vc mailing list