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
540c1142
Commit
540c1142
authored
Jul 13, 1999
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Redefine cpu's as __cpu__. Only for 6.6 branch.
parent
0ab1c117
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
23 additions
and
23 deletions
+23
-23
src/backend/port/dynloader/bsd.c
src/backend/port/dynloader/bsd.c
+3
-3
src/backend/port/dynloader/freebsd.c
src/backend/port/dynloader/freebsd.c
+3
-3
src/include/c.h
src/include/c.h
+2
-2
src/include/port/bsd.h
src/include/port/bsd.h
+3
-3
src/include/port/bsdi.h
src/include/port/bsdi.h
+2
-2
src/include/port/freebsd.h
src/include/port/freebsd.h
+3
-3
src/include/storage/s_lock.h
src/include/storage/s_lock.h
+5
-5
src/interfaces/libpq/libpq-int.h
src/interfaces/libpq/libpq-int.h
+2
-2
No files found.
src/backend/port/dynloader/bsd.c
View file @
540c1142
...
@@ -61,7 +61,7 @@ BSD44_derived_dlerror(void)
...
@@ -61,7 +61,7 @@ BSD44_derived_dlerror(void)
void
*
void
*
BSD44_derived_dlopen
(
const
char
*
file
,
int
num
)
BSD44_derived_dlopen
(
const
char
*
file
,
int
num
)
{
{
#if defined(__mips__) || (defined(__NetBSD__) && defined(
vax
))
#if defined(__mips__) || (defined(__NetBSD__) && defined(
__vax__
))
sprintf
(
error_message
,
"dlopen (%s) not supported"
,
file
);
sprintf
(
error_message
,
"dlopen (%s) not supported"
,
file
);
return
NULL
;
return
NULL
;
#else
#else
...
@@ -76,7 +76,7 @@ BSD44_derived_dlopen(const char *file, int num)
...
@@ -76,7 +76,7 @@ BSD44_derived_dlopen(const char *file, int num)
void
*
void
*
BSD44_derived_dlsym
(
void
*
handle
,
const
char
*
name
)
BSD44_derived_dlsym
(
void
*
handle
,
const
char
*
name
)
{
{
#if defined(__mips__) || (defined(__NetBSD__) && defined(
vax
))
#if defined(__mips__) || (defined(__NetBSD__) && defined(
__vax__
))
sprintf
(
error_message
,
"dlsym (%s) failed"
,
name
);
sprintf
(
error_message
,
"dlsym (%s) failed"
,
name
);
return
NULL
;
return
NULL
;
#elif defined(__ELF__)
#elif defined(__ELF__)
...
@@ -99,7 +99,7 @@ BSD44_derived_dlsym(void *handle, const char *name)
...
@@ -99,7 +99,7 @@ BSD44_derived_dlsym(void *handle, const char *name)
void
void
BSD44_derived_dlclose
(
void
*
handle
)
BSD44_derived_dlclose
(
void
*
handle
)
{
{
#if defined(__mips__) || (defined(__NetBSD__) && defined(
vax
))
#if defined(__mips__) || (defined(__NetBSD__) && defined(
__vax__
))
#else
#else
dlclose
(
handle
);
dlclose
(
handle
);
#endif
#endif
...
...
src/backend/port/dynloader/freebsd.c
View file @
540c1142
...
@@ -61,7 +61,7 @@ BSD44_derived_dlerror(void)
...
@@ -61,7 +61,7 @@ BSD44_derived_dlerror(void)
void
*
void
*
BSD44_derived_dlopen
(
const
char
*
file
,
int
num
)
BSD44_derived_dlopen
(
const
char
*
file
,
int
num
)
{
{
#if defined(__mips__) || (defined(__NetBSD__) && defined(
vax
))
#if defined(__mips__) || (defined(__NetBSD__) && defined(
__vax__
))
sprintf
(
error_message
,
"dlopen (%s) not supported"
,
file
);
sprintf
(
error_message
,
"dlopen (%s) not supported"
,
file
);
return
NULL
;
return
NULL
;
#else
#else
...
@@ -76,7 +76,7 @@ BSD44_derived_dlopen(const char *file, int num)
...
@@ -76,7 +76,7 @@ BSD44_derived_dlopen(const char *file, int num)
void
*
void
*
BSD44_derived_dlsym
(
void
*
handle
,
const
char
*
name
)
BSD44_derived_dlsym
(
void
*
handle
,
const
char
*
name
)
{
{
#if defined(__mips__) || (defined(__NetBSD__) && defined(
vax
))
#if defined(__mips__) || (defined(__NetBSD__) && defined(
__vax__
))
sprintf
(
error_message
,
"dlsym (%s) failed"
,
name
);
sprintf
(
error_message
,
"dlsym (%s) failed"
,
name
);
return
NULL
;
return
NULL
;
#else
#else
...
@@ -99,7 +99,7 @@ BSD44_derived_dlsym(void *handle, const char *name)
...
@@ -99,7 +99,7 @@ BSD44_derived_dlsym(void *handle, const char *name)
void
void
BSD44_derived_dlclose
(
void
*
handle
)
BSD44_derived_dlclose
(
void
*
handle
)
{
{
#if defined(__mips__) || (defined(__NetBSD__) && defined(
vax
))
#if defined(__mips__) || (defined(__NetBSD__) && defined(
__vax__
))
#else
#else
dlclose
(
handle
);
dlclose
(
handle
);
#endif
#endif
...
...
src/include/c.h
View file @
540c1142
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: c.h,v 1.5
8 1999/07/01 19:47:25
momjian Exp $
* $Id: c.h,v 1.5
9 1999/07/13 20:00:32
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -759,7 +759,7 @@ extern char *vararg_format(const char *fmt,...);
...
@@ -759,7 +759,7 @@ extern char *vararg_format(const char *fmt,...);
#endif
/* hpux */
#endif
/* hpux */
#endif
#endif
#if defined(sun) && defined(
sparc
) && !defined(__SVR4)
#if defined(sun) && defined(
__sparc__
) && !defined(__SVR4)
#define memmove(d, s, l) bcopy(s, d, l)
#define memmove(d, s, l) bcopy(s, d, l)
#include <unistd.h>
#include <unistd.h>
#include <varargs.h>
#include <varargs.h>
...
...
src/include/port/bsd.h
View file @
540c1142
#define USE_POSIX_TIME
#define USE_POSIX_TIME
#if defined(
i386
)
#if defined(
__i386__
)
#define NEED_I386_TAS_ASM
#define NEED_I386_TAS_ASM
#define HAS_TEST_AND_SET
#define HAS_TEST_AND_SET
#endif
#endif
#if defined(
sparc
)
#if defined(
__sparc__
)
#define NEED_SPARC_TAS_ASM
#define NEED_SPARC_TAS_ASM
#define HAS_TEST_AND_SET
#define HAS_TEST_AND_SET
#endif
#endif
#if defined(
vax
)
#if defined(
__vax__
)
#define NEED_VAX_TAS_ASM
#define NEED_VAX_TAS_ASM
#define HAS_TEST_AND_SET
#define HAS_TEST_AND_SET
#endif
#endif
...
...
src/include/port/bsdi.h
View file @
540c1142
#if defined(
i386
)
#if defined(
__i386__
)
#define NEED_I386_TAS_ASM
#define NEED_I386_TAS_ASM
#endif
#endif
#if defined(
sparc
)
#if defined(
__sparc__
)
#define NEED_SPARC_TAS_ASM
#define NEED_SPARC_TAS_ASM
#endif
#endif
#define USE_POSIX_TIME
#define USE_POSIX_TIME
...
...
src/include/port/freebsd.h
View file @
540c1142
#define USE_POSIX_TIME
#define USE_POSIX_TIME
#if defined(
i386
)
#if defined(
__i386__
)
#define NEED_I386_TAS_ASM
#define NEED_I386_TAS_ASM
#define HAS_TEST_AND_SET
#define HAS_TEST_AND_SET
#endif
#endif
#if defined(
sparc
)
#if defined(
__sparc__
)
#define NEED_SPARC_TAS_ASM
#define NEED_SPARC_TAS_ASM
#define HAS_TEST_AND_SET
#define HAS_TEST_AND_SET
#endif
#endif
#if defined(
vax
)
#if defined(
__vax__
)
#define NEED_VAX_TAS_ASM
#define NEED_VAX_TAS_ASM
#define HAS_TEST_AND_SET
#define HAS_TEST_AND_SET
#endif
#endif
...
...
src/include/storage/s_lock.h
View file @
540c1142
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.6
1 1999/06/13 00:07:43 ishii
Exp $
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.6
2 1999/07/13 20:00:36 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -108,7 +108,7 @@ __asm__(" ldq $0, %0 \n\
...
@@ -108,7 +108,7 @@ __asm__(" ldq $0, %0 \n\
#if defined(
i386
)
#if defined(
__i386__
)
#define TAS(lock) tas(lock)
#define TAS(lock) tas(lock)
static
__inline__
int
static
__inline__
int
...
@@ -120,7 +120,7 @@ __asm__("lock; xchgb %0,%1": "=q"(_res), "=m"(*lock):"0"(_res));
...
@@ -120,7 +120,7 @@ __asm__("lock; xchgb %0,%1": "=q"(_res), "=m"(*lock):"0"(_res));
return
(
int
)
_res
;
return
(
int
)
_res
;
}
}
#endif
/*
i386
*/
#endif
/*
__i386__
*/
...
@@ -140,7 +140,7 @@ __asm__("swpb %0, %0, [%3]": "=r"(_res), "=m"(*lock):"0"(_res), "r" (lock));
...
@@ -140,7 +140,7 @@ __asm__("swpb %0, %0, [%3]": "=r"(_res), "=m"(*lock):"0"(_res), "r" (lock));
#if defined(
sparc
)
#if defined(
__sparc__
)
#define TAS(lock) tas(lock)
#define TAS(lock) tas(lock)
static
__inline__
int
static
__inline__
int
...
@@ -154,7 +154,7 @@ tas(volatile slock_t *lock)
...
@@ -154,7 +154,7 @@ tas(volatile slock_t *lock)
return
(
int
)
_res
;
return
(
int
)
_res
;
}
}
#endif
/*
sparc
*/
#endif
/*
__sparc__
*/
#if defined(__mc68000__) && defined(__linux__)
#if defined(__mc68000__) && defined(__linux__)
...
...
src/interfaces/libpq/libpq-int.h
View file @
540c1142
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: libpq-int.h,v 1.
9 1999/05/25 22:43:49
momjian Exp $
* $Id: libpq-int.h,v 1.
10 1999/07/13 20:00:37
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -278,7 +278,7 @@ extern int pqWait(int forRead, int forWrite, PGconn *conn);
...
@@ -278,7 +278,7 @@ extern int pqWait(int forRead, int forWrite, PGconn *conn);
/* supply an implementation of strerror() macro if system doesn't have it */
/* supply an implementation of strerror() macro if system doesn't have it */
#ifndef strerror
#ifndef strerror
#if defined(sun) && defined(
sparc
) && !defined(__SVR4)
#if defined(sun) && defined(
__sparc__
) && !defined(__SVR4)
extern
char
*
sys_errlist
[];
extern
char
*
sys_errlist
[];
#define strerror(A) (sys_errlist[(A)])
#define strerror(A) (sys_errlist[(A)])
...
...
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