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
846429e3
Commit
846429e3
authored
May 05, 2002
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Not needed anymore.
parent
d15c30d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
74 deletions
+0
-74
src/include/port/darwin/sem.h
src/include/port/darwin/sem.h
+0
-74
No files found.
src/include/port/darwin/sem.h
deleted
100644 → 0
View file @
d15c30d3
/*-------------------------------------------------------------------------
*
* sem.h
* System V Semaphore Emulation
*
* Copyright (c) 1999, repas AEG Automation GmbH
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/include/port/darwin/Attic/sem.h,v 1.6 2001/11/08 20:37:52 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef _SYS_SEM_H
#define _SYS_SEM_H
/* #define DEBUG_IPC here if you want to see the shim in action */
#include <sys/ipc.h>
#ifdef __cplusplus
extern
"C"
{
#endif
/*
* Semctl Command Definitions.
*/
#define GETNCNT 3
/* get semncnt */
#define GETPID 4
/* get sempid */
#define GETVAL 5
/* get semval */
#define GETALL 6
/* get all semval's */
#define GETZCNT 7
/* get semzcnt */
#define SETVAL 8
/* set semval */
#define SETALL 9
/* set all semval's */
#ifndef ushort_t
#define ushort_t unsigned int
#endif
/*
* There is one semaphore structure for each semaphore in the system.
*/
struct
sem
{
ushort_t
semval
;
/* semaphore text map address */
pid_t
sempid
;
/* pid of last operation */
ushort_t
semncnt
;
/* # awaiting semval > cval */
ushort_t
semzcnt
;
/* # awaiting semval = 0 */
};
/*
* User semaphore template for semop system calls.
*/
struct
sembuf
{
ushort_t
sem_num
;
/* semaphore # */
short
sem_op
;
/* semaphore operation */
short
sem_flg
;
/* operation flags */
};
extern
int
semctl
(
int
semid
,
int
semnum
,
int
cmd
,
/* ... */
union
semun
arg
);
extern
int
semget
(
key_t
key
,
int
nsems
,
int
semflg
);
extern
int
semop
(
int
semid
,
struct
sembuf
*
sops
,
size_t
nsops
);
#ifdef __cplusplus
}
#endif
#endif
/* _SYS_SEM_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