Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
20ead395
Commit
20ead395
authored
Apr 24, 2003
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Win32 shmem/sema prototypes.
parent
f690920a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
59 additions
and
5 deletions
+59
-5
src/backend/port/sysv_shmem.c
src/backend/port/sysv_shmem.c
+5
-1
src/backend/port/win32/sema.c
src/backend/port/win32/sema.c
+2
-1
src/backend/port/win32/shmem.c
src/backend/port/win32/shmem.c
+1
-2
src/include/port/win32.h
src/include/port/win32.h
+51
-1
No files found.
src/backend/port/sysv_shmem.c
View file @
20ead395
...
...
@@ -10,7 +10,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/port/sysv_shmem.c,v 1.
5 2003/03/25 16:15:44 petere
Exp $
* $Header: /cvsroot/pgsql/src/backend/port/sysv_shmem.c,v 1.
6 2003/04/24 21:23:01 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -30,6 +30,10 @@
#include <kernel/OS.h>
#endif
#ifdef WIN32
#include "win32/shmem.h"
#endif
#include "miscadmin.h"
#include "storage/ipc.h"
#include "storage/pg_shmem.h"
...
...
src/backend/port/win32/sem.c
→
src/backend/port/win32/sem
a
.c
View file @
20ead395
/*-------------------------------------------------------------------------
*
* sem.c
* sem
a
.c
* Microsoft Windows Win32 Semaphores Emulation
*
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
...
...
@@ -10,6 +10,7 @@
#include "postgres.h"
#include "storage/shmem.h"
#include "sema.h"
#include <errno.h>
...
...
src/backend/port/win32/shm.c
→
src/backend/port/win32/shm
em
.c
View file @
20ead395
/*-------------------------------------------------------------------------
*
* shm.c
* shm
em
.c
* Microsoft Windows Win32 Shared Memory Emulation
*
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
...
...
@@ -9,7 +9,6 @@
*/
#include "postgres.h"
#include "windows.h"
#include <stdio.h>
#include <errno.h>
...
...
src/include/port/win32.h
View file @
20ead395
/* $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>
...
...
@@ -32,6 +32,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>.
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment