OSDN Git Service

* msg.cc: New file.
authorcgf <cgf>
Sat, 30 Aug 2003 16:34:56 +0000 (16:34 +0000)
committercgf <cgf>
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 c308056..813192a 100644 (file)
@@ -1,5 +1,10 @@
 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.
 
 2003-08-25  Christopher Faylor  <cgf@redhat.com>
index b039634..5780dab 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;
+}