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
08a5901b
Commit
08a5901b
authored
Apr 24, 1997
by
Marc G. Fournier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Various patches not commited, plus a linux/sparc patch from
Satoshi Ishikawa <power@sekine.densi.gifu-u.ac.jp>
parent
7a7a9b1a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
1 deletion
+37
-1
src/backend/storage/ipc/s_lock.c
src/backend/storage/ipc/s_lock.c
+34
-1
src/include/port/linux.h
src/include/port/linux.h
+3
-0
No files found.
src/backend/storage/ipc/s_lock.c
View file @
08a5901b
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/Attic/s_lock.c,v 1.1
2 1997/03/12 21:06:48
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/Attic/s_lock.c,v 1.1
3 1997/04/24 02:35:35
scrappy Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -453,4 +453,37 @@ S_INIT_LOCK(slock_t *lock)
...
@@ -453,4 +453,37 @@ S_INIT_LOCK(slock_t *lock)
#endif
#endif
#if defined(linux) && defined(sparc)
int
tas
(
slock_t
*
m
)
{
slock_t
res
;
__asm__
(
"ldstub [%1], %0"
:
"=&r"
(
res
)
:
"r"
(
m
));
return
(
res
!=
0
);
}
void
S_LOCK
(
slock_t
*
lock
)
{
while
(
tas
(
lock
))
;
}
void
S_UNLOCK
(
slock_t
*
lock
)
{
*
lock
=
0
;
}
void
S_INIT_LOCK
(
slock_t
*
lock
)
{
S_UNLOCK
(
lock
);
}
#endif
/* defined(linux) && defined(sparc) */
#endif
/* HAS_TEST_AND_SET */
#endif
/* HAS_TEST_AND_SET */
src/include/port/linux.h
View file @
08a5901b
...
@@ -12,3 +12,6 @@
...
@@ -12,3 +12,6 @@
# define HAS_TEST_AND_SET
# define HAS_TEST_AND_SET
typedef
unsigned
char
slock_t
;
typedef
unsigned
char
slock_t
;
# endif
# endif
# if defined(sparc)
# undef NEED_I386_TAS_ASM
# endif
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