aboutsummaryrefslogtreecommitdiff
path: root/src/backend/port/qnx/shm.h
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1999-12-16 01:25:23 +0000
committerBruce Momjian <bruce@momjian.us>1999-12-16 01:25:23 +0000
commit7585deb0878bca96eee9a3e00fb5726c7725831c (patch)
treeabbc9add268b6fbc32af0871f8d14f804681747b /src/backend/port/qnx/shm.h
parent9805abb0fb1d2d57834a233d1a34279757d3f068 (diff)
downloadpostgresql-7585deb0878bca96eee9a3e00fb5726c7725831c.tar.gz
postgresql-7585deb0878bca96eee9a3e00fb5726c7725831c.zip
I have done the QNX4 port with the current source tree. The number of
backend/Makefiles to be patched could significantly be reduced since they have been adopted to the QNX4 needs. Andreas Kardos
Diffstat (limited to 'src/backend/port/qnx/shm.h')
-rw-r--r--src/backend/port/qnx/shm.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/backend/port/qnx/shm.h b/src/backend/port/qnx/shm.h
new file mode 100644
index 00000000000..02c2eeb3df7
--- /dev/null
+++ b/src/backend/port/qnx/shm.h
@@ -0,0 +1,40 @@
+/*-------------------------------------------------------------------------
+ *
+ * shm.h
+ * System V Shared Memory Emulation
+ *
+ * Copyright (c) 1999, repas AEG Automation GmbH
+ *
+ *
+ * IDENTIFICATION
+ * $Header: /cvsroot/pgsql/src/backend/port/qnx/Attic/shm.h,v 1.1 1999/12/16 01:25:06 momjian Exp $
+ *
+ *-------------------------------------------------------------------------
+ */
+
+#ifndef _SYS_SHM_H
+#define _SYS_SHM_H
+
+#include <sys/ipc.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define SHM_R 0400 /* read permission */
+#define SHM_W 0200 /* write permission */
+
+struct shmid_ds {
+ int dummy;
+};
+
+extern void *shmat( int shmid, const void *shmaddr, int shmflg );
+extern int shmdt( const void *addr );
+extern int shmctl( int shmid, int cmd, struct shmid_ds *buf );
+extern int shmget( key_t key, size_t size, int flags );
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _SYS_SHM_H */