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
4df1a414
Commit
4df1a414
authored
Oct 31, 1996
by
Marc G. Fournier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more removals of PORTNAME_*
parent
bdd07411
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
27 deletions
+27
-27
src/backend/storage/file/fd.c
src/backend/storage/file/fd.c
+5
-5
src/backend/storage/ipc/ipc.c
src/backend/storage/ipc/ipc.c
+2
-2
src/backend/storage/ipc/s_lock.c
src/backend/storage/ipc/s_lock.c
+20
-20
No files found.
src/backend/storage/file/fd.c
View file @
4df1a414
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Id: fd.c,v 1.
5 1996/09/22 01:30:52
scrappy Exp $
* $Id: fd.c,v 1.
6 1996/10/31 10:19:59
scrappy Exp $
*
*
* NOTES:
* NOTES:
*
*
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
#include "miscadmin.h"
/* for DataDir */
#include "miscadmin.h"
/* for DataDir */
#include "utils/palloc.h"
#include "utils/palloc.h"
#ifdef
PORTNAME_
sparc
#ifdef sparc
/*
/*
* the SunOS 4 NOFILE is a lie, because the default limit is *not* the
* the SunOS 4 NOFILE is a lie, because the default limit is *not* the
* maximum number of file descriptors you can have open.
* maximum number of file descriptors you can have open.
...
@@ -60,13 +60,13 @@
...
@@ -60,13 +60,13 @@
#include <sys/user.h>
#include <sys/user.h>
#undef NOFILE
#undef NOFILE
#define NOFILE NOFILE_IN_U
#define NOFILE NOFILE_IN_U
#endif
/*
PORTNAME_
sparc */
#endif
/* sparc */
#if defined(
PORTNAME_sparc_solaris) || defined(PORTNAME_
i386_solaris)
#if defined(
sparc_solaris) || defined(
i386_solaris)
#include <sys/user.h>
#include <sys/user.h>
#undef NOFILE
#undef NOFILE
#define NOFILE 64
#define NOFILE 64
#endif
/*
PORTNAME_sparc_solaris || PORTNAME_
i386_solaris */
#endif
/*
sparc_solaris ||
i386_solaris */
/*
/*
* Problem: Postgres does a system(ld...) to do dynamic loading. This
* Problem: Postgres does a system(ld...) to do dynamic loading. This
...
...
src/backend/storage/ipc/ipc.c
View file @
4df1a414
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.
4 1996/08/14 05:01:53
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.
5 1996/10/31 10:20:06
scrappy Exp $
*
*
* NOTES
* NOTES
*
*
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
#include "utils/memutils.h"
#include "utils/memutils.h"
#include "utils/elog.h"
#include "utils/elog.h"
#if defined(
PORTNAME_
bsd44)
#if defined(bsd44)
int
UsePrivateMemory
=
1
;
int
UsePrivateMemory
=
1
;
#else
#else
int
UsePrivateMemory
=
0
;
int
UsePrivateMemory
=
0
;
...
...
src/backend/storage/ipc/s_lock.c
View file @
4df1a414
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/Attic/s_lock.c,v 1.
4 1996/07/22 23:00:03
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/Attic/s_lock.c,v 1.
5 1996/10/31 10:20:09
scrappy Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
#if defined(HAS_TEST_AND_SET)
#if defined(HAS_TEST_AND_SET)
#if defined (
PORTNAME_
next)
#if defined (next)
/*
/*
* NEXTSTEP (mach)
* NEXTSTEP (mach)
* slock_t is defined as a struct mutex.
* slock_t is defined as a struct mutex.
...
@@ -74,11 +74,11 @@ int
...
@@ -74,11 +74,11 @@ int
return
(
lock
->
lock
==
0
);
return
(
lock
->
lock
==
0
);
}
}
#endif
/*
PORTNAME_
next */
#endif
/* next */
#if defined(
PORTNAME_
irix5)
#if defined(irix5)
/*
/*
* SGI IRIX 5
* SGI IRIX 5
* slock_t is defined as a struct abilock_t, which has a single unsigned long
* slock_t is defined as a struct abilock_t, which has a single unsigned long
...
@@ -115,7 +115,7 @@ S_LOCK_FREE(slock_t *lock)
...
@@ -115,7 +115,7 @@ S_LOCK_FREE(slock_t *lock)
return
(
stat_lock
(
lock
)
==
UNLOCKED
);
return
(
stat_lock
(
lock
)
==
UNLOCKED
);
}
}
#endif
/*
PORTNAME_
irix5 */
#endif
/* irix5 */
/*
/*
...
@@ -125,7 +125,7 @@ S_LOCK_FREE(slock_t *lock)
...
@@ -125,7 +125,7 @@ S_LOCK_FREE(slock_t *lock)
* (see storage/ipc.h).
* (see storage/ipc.h).
*/
*/
#if defined(
PORTNAME_
alpha)
#if defined(alpha)
void
void
S_LOCK
(
slock_t
*
lock
)
S_LOCK
(
slock_t
*
lock
)
...
@@ -152,14 +152,14 @@ S_LOCK_FREE(slock_t *lock)
...
@@ -152,14 +152,14 @@ S_LOCK_FREE(slock_t *lock)
return
(
lock
->
msem_state
?
0
:
1
);
return
(
lock
->
msem_state
?
0
:
1
);
}
}
#endif
/*
PORTNAME_
alpha */
#endif
/* alpha */
/*
/*
* Solaris 2
* Solaris 2
*/
*/
#if defined(
PORTNAME_
i386_solaris) || \
#if defined(i386_solaris) || \
defined(
PORTNAME_
sparc_solaris)
defined(sparc_solaris)
/* for xxxxx_solaris, this is defined in port/.../tas.s */
/* for xxxxx_solaris, this is defined in port/.../tas.s */
extern
int
tas
(
slock_t
*
lock
);
extern
int
tas
(
slock_t
*
lock
);
...
@@ -183,7 +183,7 @@ S_INIT_LOCK(slock_t *lock)
...
@@ -183,7 +183,7 @@ S_INIT_LOCK(slock_t *lock)
S_UNLOCK
(
lock
);
S_UNLOCK
(
lock
);
}
}
#endif
/*
PORTNAME_i86pc_solaris || PORTNAME_
sparc_solaris */
#endif
/*
i86pc_solaris ||
sparc_solaris */
/*
/*
* AIX (POWER)
* AIX (POWER)
...
@@ -192,7 +192,7 @@ S_INIT_LOCK(slock_t *lock)
...
@@ -192,7 +192,7 @@ S_INIT_LOCK(slock_t *lock)
* (see storage/ipc.h).
* (see storage/ipc.h).
*/
*/
#if defined(
PORTNAME_
aix)
#if defined(aix)
void
void
S_LOCK
(
slock_t
*
lock
)
S_LOCK
(
slock_t
*
lock
)
...
@@ -213,7 +213,7 @@ S_INIT_LOCK(slock_t *lock)
...
@@ -213,7 +213,7 @@ S_INIT_LOCK(slock_t *lock)
S_UNLOCK
(
lock
);
S_UNLOCK
(
lock
);
}
}
#endif
/*
PORTNAME_
aix */
#endif
/* aix */
/*
/*
* HP-UX (PA-RISC)
* HP-UX (PA-RISC)
...
@@ -222,7 +222,7 @@ S_INIT_LOCK(slock_t *lock)
...
@@ -222,7 +222,7 @@ S_INIT_LOCK(slock_t *lock)
* (see storage/ipc.h).
* (see storage/ipc.h).
*/
*/
#if defined(
PORTNAME_
hpux)
#if defined(hpux)
/* defined in port/.../tas.s */
/* defined in port/.../tas.s */
extern
int
tas
(
slock_t
*
lock
);
extern
int
tas
(
slock_t
*
lock
);
...
@@ -260,7 +260,7 @@ S_LOCK_FREE(slock_t *lock)
...
@@ -260,7 +260,7 @@ S_LOCK_FREE(slock_t *lock)
return
(
*
lock_word
!=
0
);
return
(
*
lock_word
!=
0
);
}
}
#endif
/*
PORTNAME_
hpux */
#endif
/* hpux */
/*
/*
* sun3
* sun3
...
@@ -313,7 +313,7 @@ tas_dummy()
...
@@ -313,7 +313,7 @@ tas_dummy()
* SPARC (SunOS 4)
* SPARC (SunOS 4)
*/
*/
#if defined(
PORTNAME_
sparc)
#if defined(sparc)
/* if we're using -ansi w/ gcc, use __asm__ instead of asm */
/* if we're using -ansi w/ gcc, use __asm__ instead of asm */
#if defined(__STRICT_ANSI__)
#if defined(__STRICT_ANSI__)
...
@@ -375,16 +375,16 @@ S_INIT_LOCK(unsigned char *addr)
...
@@ -375,16 +375,16 @@ S_INIT_LOCK(unsigned char *addr)
*
addr
=
0
;
*
addr
=
0
;
}
}
#endif
/*
PORTNAME_
sparc */
#endif
/* sparc */
/*
/*
* Linux and friends
* Linux and friends
*/
*/
#if defined(
PORTNAME_
BSD44_derived) || \
#if defined(BSD44_derived) || \
defined(
PORTNAME_
bsdi) || \
defined(bsdi) || \
defined(
PORTNAME_
bsdi_2_1) || \
defined(bsdi_2_1) || \
defined(
PORTNAME_
linux)
defined(linux)
int
int
tas
(
slock_t
*
m
)
tas
(
slock_t
*
m
)
...
...
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