diff options
author | Christopher Faylor <me@cgf.cx> | 2003-08-30 16:34:56 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-08-30 16:34:56 +0000 |
commit | a245bd6e99ae2ca1eee574f6c90224f2187b80a5 (patch) | |
tree | 2d470340a0b279a1275f80a89cbedf4ceb8969cb | |
parent | 9540fc596231185913095e23fa5ddfca14061cb6 (diff) | |
download | cygnal-a245bd6e99ae2ca1eee574f6c90224f2187b80a5.tar.gz cygnal-a245bd6e99ae2ca1eee574f6c90224f2187b80a5.tar.bz2 cygnal-a245bd6e99ae2ca1eee574f6c90224f2187b80a5.zip |
* msg.cc: New file.
* sem.cc: Ditto.
-rw-r--r-- | winsup/cygserver/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygserver/Makefile.in | 4 | ||||
-rw-r--r-- | winsup/cygserver/msg.cc | 47 | ||||
-rw-r--r-- | winsup/cygserver/sem.cc | 40 |
4 files changed, 94 insertions, 2 deletions
diff --git a/winsup/cygserver/ChangeLog b/winsup/cygserver/ChangeLog index c30805639..813192a49 100644 --- a/winsup/cygserver/ChangeLog +++ b/winsup/cygserver/ChangeLog @@ -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> diff --git a/winsup/cygserver/Makefile.in b/winsup/cygserver/Makefile.in index b0396340a..5780dab99 100644 --- a/winsup/cygserver/Makefile.in +++ b/winsup/cygserver/Makefile.in @@ -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 index 000000000..fecaa068a --- /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 000000000..97d91a354 --- /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; +} |