summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/port/win32.h52
1 files changed, 51 insertions, 1 deletions
diff --git a/src/include/port/win32.h b/src/include/port/win32.h
index a117be863af..ecd79368fb9 100644
--- a/src/include/port/win32.h
+++ b/src/include/port/win32.h
@@ -1,4 +1,4 @@
-/* $Header: /cvsroot/pgsql/src/include/port/win32.h,v 1.7 2003/04/18 01:03:42 momjian Exp $ */
+/* $Header: /cvsroot/pgsql/src/include/port/win32.h,v 1.8 2003/04/24 21:23:01 momjian Exp $ */
#include <port/win32defs.h>
@@ -33,6 +33,56 @@
#endif
/*
+ * IPC defines
+ */
+#define IPC_RMID 256
+#define IPC_CREAT 512
+#define IPC_EXCL 1024
+#define IPC_PRIVATE 234564
+#define IPC_NOWAIT 2048
+#define IPC_STAT 4096
+
+
+/*
+ * Shared memory
+ */
+struct shmid_ds
+{
+ int dummy;
+ int shm_nattch;
+};
+
+int shmdt(const void *shmaddr);
+void* shmat(int memId, void* shmaddr, int flag);
+int shmctl(int shmid, int flag, struct shmid_ds * dummy);
+int shmget(int memKey, int size, int flag);
+
+
+/*
+ * Semaphores
+ */
+union semun
+{
+ int val;
+ struct semid_ds *buf;
+ unsigned short *array;
+};
+
+struct sembuf
+{
+ int sem_flg;
+ int sem_op;
+ int sem_num;
+};
+
+int semctl(int semId, int semNum, int flag, union semun);
+int semget(int semKey, int semNum, int flags);
+int semop(int semId, struct sembuf * sops, int flag);
+
+
+/* FROM SRA */
+
+/*
* Supplement to <sys/types.h>.
*/
#define uid_t int