]> sourceware.org Git - newlib-cygwin.git/commitdiff
* msg.cc: New file.
authorChristopher Faylor <me@cgf.cx>
Sat, 30 Aug 2003 16:34:56 +0000 (16:34 +0000)
committerChristopher Faylor <me@cgf.cx>
Sat, 30 Aug 2003 16:34:56 +0000 (16:34 +0000)
* sem.cc: Ditto.

winsup/cygserver/ChangeLog
winsup/cygserver/Makefile.in
winsup/cygserver/msg.cc [new file with mode: 0644]
winsup/cygserver/sem.cc [new file with mode: 0644]

index c308056395305923c6e763ea38e1129d01e904c1..813192a49aa981d245d91c79b776fb32c424a17e 100644 (file)
@@ -1,3 +1,8 @@
+2003-08-30  Christopher Faylor  <cgf@redhat.com>
+
+       * msg.cc: New file.
+       * sem.cc: Ditto.
+
 2003-08-30  Christopher Faylor  <cgf@redhat.com>
 
        * threaded_queue.h: New file.
index b0396340ae2e7dd966f2ba4057dc96092bf22d61..5780dab99edcd3d8bc146adf2561b64c299e8343 100644 (file)
@@ -37,8 +37,8 @@ override CXXFLAGS+=-fno-exceptions -fno-rtti -DHAVE_DECL_GETOPT=0 -D__OUTSIDE_CY
 
 include $(srcdir)/../Makefile.common
 
-OBJS:= cygserver.o client.o process.o shm.o threaded_queue.o transport.o \
-       transport_pipes.o transport_sockets.o
+OBJS:= cygserver.o client.o process.o msg.o sem.o shm.o threaded_queue.o \
+       transport.o transport_pipes.o transport_sockets.o
 LIBOBJS:=${patsubst %.o,lib%.o,$(OBJS)}
 
 CYGWIN_OBJS:=$(cygwin_build)/smallprint.o $(cygwin_build)/version.o \
diff --git a/winsup/cygserver/msg.cc b/winsup/cygserver/msg.cc
new file mode 100644 (file)
index 0000000..fecaa06
--- /dev/null
@@ -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 (file)
index 0000000..97d91a3
--- /dev/null
@@ -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;
+}
This page took 0.036422 seconds and 5 git commands to generate.