aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelfyn <>2003-08-30 16:18:39 +0000
committerelfyn <>2003-08-30 16:18:39 +0000
commit0210f04828fdff6ffa9606bb2d81ae80ecc01952 (patch)
tree036259f912358128dcfd1f79f1b6db0eacf58221
parent1910279d014b6b850d52c84d07c6e1bfb570e6e9 (diff)
downloadnewlib-github/Z-emcb-cygwin_daemon.zip
newlib-github/Z-emcb-cygwin_daemon.tar.gz
newlib-github/Z-emcb-cygwin_daemon.tar.bz2
* msg.cc: Move from cygwin directory.github/Z-emcb-cygwin_daemonZ-emcb-cygwin_daemon
* sem.cc: Ditto. * threaded_queue.cc: Ditto.
-rw-r--r--winsup/cygserver/ChangeLog6
-rw-r--r--winsup/cygserver/msg.cc47
-rw-r--r--winsup/cygserver/sem.cc40
3 files changed, 93 insertions, 0 deletions
diff --git a/winsup/cygserver/ChangeLog b/winsup/cygserver/ChangeLog
index fcc3b28..6487d21 100644
--- a/winsup/cygserver/ChangeLog
+++ b/winsup/cygserver/ChangeLog
@@ -1,3 +1,9 @@
+2003-08-30 Elfyn McBratney <elfyn@emcb.co.uk>
+
+ * msg.cc: Move from cygwin directory.
+ * sem.cc: Ditto.
+ * threaded_queue.cc: Ditto.
+
2003-08-25 Christopher Faylor <cgf@redhat.com>
* Makefile.in: Build libcygserver.a.
diff --git a/winsup/cygserver/msg.cc b/winsup/cygserver/msg.cc
new file mode 100644
index 0000000..fecaa06
--- /dev/null
+++ b/winsup/cygserver/msg.cc
@@ -0,0 +1,47 @@
+/* msg.cc: Single unix specification IPC interface for Cygwin.
+
+ Copyright 2002 Red Hat, Inc.
+
+ Written by Conrad Scott <conrad.scott@dsl.pipex.com>.
+
+This file is part of Cygwin.
+
+This software is a copyrighted work licensed under the terms of the
+Cygwin license. Please consult the file "CYGWIN_LICENSE" for
+details. */
+
+#include "winsup.h"
+
+#include <sys/types.h>
+#include <cygwin/msg.h>
+
+
+#include "cygerrno.h"
+
+extern "C" int
+msgctl (int msqid, int cmd, struct msqid_ds *buf)
+{
+ set_errno (ENOSYS);
+ return -1;
+}
+
+extern "C" int
+msgget (key_t key, int msgflg)
+{
+ set_errno (ENOSYS);
+ return -1;
+}
+
+extern "C" ssize_t
+msgrcv (int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg)
+{
+ set_errno (ENOSYS);
+ return -1;
+}
+
+extern "C" int
+msgsnd (int msqid, const void *msgp, size_t msgsz, int msgflg)
+{
+ set_errno (ENOSYS);
+ return -1;
+}
diff --git a/winsup/cygserver/sem.cc b/winsup/cygserver/sem.cc
new file mode 100644
index 0000000..97d91a3
--- /dev/null
+++ b/winsup/cygserver/sem.cc
@@ -0,0 +1,40 @@
+/* sem.cc: Single unix specification IPC interface for Cygwin.
+
+ Copyright 2002 Red Hat, Inc.
+
+ Written by Conrad Scott <conrad.scott@dsl.pipex.com>.
+
+This file is part of Cygwin.
+
+This software is a copyrighted work licensed under the terms of the
+Cygwin license. Please consult the file "CYGWIN_LICENSE" for
+details. */
+
+#include "winsup.h"
+
+#include <sys/types.h>
+#include <cygwin/sem.h>
+
+
+#include "cygerrno.h"
+
+extern "C" int
+semctl (int semid, int semnum, int cmd, ...)
+{
+ set_errno (ENOSYS);
+ return -1;
+}
+
+extern "C" int
+semget (key_t key, int nsems, int semflg)
+{
+ set_errno (ENOSYS);
+ return -1;
+}
+
+extern "C" int
+semop (int semid, struct sembuf *sops, size_t nsops)
+{
+ set_errno (ENOSYS);
+ return -1;
+}