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
7e42f481
Commit
7e42f481
authored
Nov 04, 1996
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed PORTNAME_. Use OS version only.
parent
510ebf75
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
78 additions
and
80 deletions
+78
-80
src/Makefile.global
src/Makefile.global
+2
-2
src/backend/utils/Gen_fmgrtab.sh
src/backend/utils/Gen_fmgrtab.sh
+6
-6
src/bin/monitor/monitor.c
src/bin/monitor/monitor.c
+2
-2
src/bin/pg4_dump/common.c
src/bin/pg4_dump/common.c
+1
-1
src/bin/pg_dump/common.c
src/bin/pg_dump/common.c
+2
-2
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.c
+2
-2
src/include/c.h
src/include/c.h
+4
-4
src/include/storage/buf_internals.h
src/include/storage/buf_internals.h
+13
-13
src/include/storage/ipc.h
src/include/storage/ipc.h
+22
-22
src/include/utils/array.h
src/include/utils/array.h
+4
-4
src/include/utils/builtins.h
src/include/utils/builtins.h
+3
-3
src/include/utils/exc.h
src/include/utils/exc.h
+4
-4
src/include/utils/memutils.h
src/include/utils/memutils.h
+2
-2
src/include/utils/nabstime.h
src/include/utils/nabstime.h
+5
-5
src/interfaces/libpq/Makefile
src/interfaces/libpq/Makefile
+1
-3
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-connect.c
+2
-2
src/interfaces/libpq/libpq-fe.h
src/interfaces/libpq/libpq-fe.h
+3
-3
No files found.
src/Makefile.global
View file @
7e42f481
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
#
#
#
#
# IDENTIFICATION
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.5
1 1996/11/03 06:54:10 scrappy
Exp $
# $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.5
2 1996/11/04 03:59:09 momjian
Exp $
#
#
# NOTES
# NOTES
# This is seen by any Makefiles that include mk/postgres.mk. To
# This is seen by any Makefiles that include mk/postgres.mk. To
...
@@ -888,7 +888,7 @@ ifdef PROFILE
...
@@ -888,7 +888,7 @@ ifdef PROFILE
endif
endif
# Globally pass PORTNAME
# Globally pass PORTNAME
CFLAGS
+=
-D
PORTNAME_
$(PORTNAME)
-D
$(PORTNAME)
CFLAGS
+=
-D
$(PORTNAME)
# include port-specific flags
# include port-specific flags
CFLAGS
+=
$(CFLAGS_BE)
CFLAGS
+=
$(CFLAGS_BE)
...
...
src/backend/utils/Gen_fmgrtab.sh
View file @
7e42f481
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
#
#
#
#
# IDENTIFICATION
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh,v 1.
4 1996/10/31 07:37:57 scrappy
Exp $
# $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh,v 1.
5 1996/11/04 03:59:18 momjian
Exp $
#
#
# NOTES
# NOTES
# Passes any -D options on to cpp prior to generating the list
# Passes any -D options on to cpp prior to generating the list
...
@@ -81,7 +81,7 @@ cat > $HFILE <<FuNkYfMgRsTuFf
...
@@ -81,7 +81,7 @@ cat > $HFILE <<FuNkYfMgRsTuFf
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
*
$Id
: Gen_fmgrtab.sh,v 1.
4 1996/10/31 07:37:57 scrappy
Exp $
*
$Id
: Gen_fmgrtab.sh,v 1.
5 1996/11/04 03:59:18 momjian
Exp $
*
*
* NOTES
* NOTES
* ******************************
* ******************************
...
@@ -173,7 +173,7 @@ cat > $TABCFILE <<FuNkYfMgRtAbStUfF
...
@@ -173,7 +173,7 @@ cat > $TABCFILE <<FuNkYfMgRtAbStUfF
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
*
$Header
: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh,v 1.
4 1996/10/31 07:37:57 scrappy
Exp $
*
$Header
: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh,v 1.
5 1996/11/04 03:59:18 momjian
Exp $
*
*
* NOTES
* NOTES
*
*
...
@@ -193,9 +193,9 @@ cat > $TABCFILE <<FuNkYfMgRtAbStUfF
...
@@ -193,9 +193,9 @@ cat > $TABCFILE <<FuNkYfMgRtAbStUfF
#ifdef WIN32
#ifdef WIN32
#include <limits.h>
#include <limits.h>
#else
#else
# if defined(
PORTNAME_
BSD44_derived) ||
\
# if defined(BSD44_derived) ||
\
defined(
PORTNAME_
bsdi) ||
\
defined(bsdi) ||
\
defined(
PORTNAME_
bsdi_2_1)
defined(bsdi_2_1)
# include <machine/limits.h>
# include <machine/limits.h>
# define MAXINT INT_MAX
# define MAXINT INT_MAX
# else
# else
...
...
src/bin/monitor/monitor.c
View file @
7e42f481
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/monitor/Attic/monitor.c,v 1.
5 1996/07/23 03:03:24 scrappy
Exp $
* $Header: /cvsroot/pgsql/src/bin/monitor/Attic/monitor.c,v 1.
6 1996/11/04 03:59:26 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
#ifndef WIN32
#ifndef WIN32
#include <unistd.h>
#include <unistd.h>
#endif
#endif
#if defined(
PORTNAME_sparc_solaris) || defined(PORTNAME_
i386_solaris)
#if defined(
sparc_solaris) || defined(
i386_solaris)
#include <netdb.h>
/* for MAXHOSTNAMELEN on some */
#include <netdb.h>
/* for MAXHOSTNAMELEN on some */
#endif
#endif
#include <sys/types.h>
#include <sys/types.h>
...
...
src/bin/pg4_dump/common.c
View file @
7e42f481
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
#include <stdlib.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdio.h>
#include <sys/param.h>
/* for MAXHOSTNAMELEN on most */
#include <sys/param.h>
/* for MAXHOSTNAMELEN on most */
#if defined(
PORTNAME_sparc_solaris) || defined(PORTNAME_
i386_solaris)
#if defined(
sparc_solaris) || defined(
i386_solaris)
#include <netdb.h>
/* for MAXHOSTNAMELEN on some */
#include <netdb.h>
/* for MAXHOSTNAMELEN on some */
#endif
#endif
...
...
src/bin/pg_dump/common.c
View file @
7e42f481
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/pg_dump/common.c,v 1.
6 1996/10/07 03:30:31 scrappy
Exp $
* $Header: /cvsroot/pgsql/src/bin/pg_dump/common.c,v 1.
7 1996/11/04 03:59:53 momjian
Exp $
*
*
* Modifications - 6/12/96 - dave@bensoft.com - version 1.13.dhb.2
* Modifications - 6/12/96 - dave@bensoft.com - version 1.13.dhb.2
*
*
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
#include <stdio.h>
#include <stdio.h>
#include <string.h>
#include <string.h>
#include <sys/param.h>
/* for MAXHOSTNAMELEN on most */
#include <sys/param.h>
/* for MAXHOSTNAMELEN on most */
#ifdef
PORTNAME_
sparc_solaris
#ifdef sparc_solaris
#include <netdb.h>
/* for MAXHOSTNAMELEN on some */
#include <netdb.h>
/* for MAXHOSTNAMELEN on some */
#endif
#endif
...
...
src/bin/pg_dump/pg_dump.c
View file @
7e42f481
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.1
1 1996/10/07 21:17:01 scrappy
Exp $
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.1
2 1996/11/04 04:00:02 momjian
Exp $
*
*
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
*
*
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
#include <stdio.h>
#include <stdio.h>
#include <string.h>
#include <string.h>
#include <sys/param.h>
/* for MAXHOSTNAMELEN on most */
#include <sys/param.h>
/* for MAXHOSTNAMELEN on most */
#ifdef
PORTNAME_
sparc_solaris
#ifdef sparc_solaris
#include <netdb.h>
/* for MAXHOSTNAMELEN on some */
#include <netdb.h>
/* for MAXHOSTNAMELEN on some */
#endif
#endif
...
...
src/include/c.h
View file @
7e42f481
...
@@ -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.
1 1996/10/31 07:10:12 scrappy
Exp $
* $Id: c.h,v 1.
2 1996/11/04 04:00:19 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -737,11 +737,11 @@ extern char *form(char *fmt, ...);
...
@@ -737,11 +737,11 @@ extern char *form(char *fmt, ...);
* ----------------------------------------------------------------
* ----------------------------------------------------------------
*/
*/
#if defined(
PORTNAME_
hpux)
#if defined(hpux)
#include "port/hpux/fixade.h"
/* for 8.07 unaligned access fixup */
#include "port/hpux/fixade.h"
/* for 8.07 unaligned access fixup */
#endif
/*
PORTNAME_
hpux */
#endif
/* hpux */
#if defined(
PORTNAME_
sparc)
#if defined(sparc)
#define memmove(d, s, l) bcopy(s, d, l)
#define memmove(d, s, l) bcopy(s, d, l)
#endif
#endif
...
...
src/include/storage/buf_internals.h
View file @
7e42f481
...
@@ -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
*
*
* $Id: buf_internals.h,v 1.
3 1996/11/01 03:36:13
momjian Exp $
* $Id: buf_internals.h,v 1.
4 1996/11/04 04:00:24
momjian Exp $
*
*
* NOTE
* NOTE
* If BUFFERPAGE0 is defined, then 0 will be used as a
* If BUFFERPAGE0 is defined, then 0 will be used as a
...
@@ -137,36 +137,36 @@ struct sbufdesc {
...
@@ -137,36 +137,36 @@ struct sbufdesc {
/* NO spinlock */
/* NO spinlock */
#if defined(
PORTNAME_
ultrix4)
#if defined(ultrix4)
char
sb_pad
[
60
];
/* no slock_t */
char
sb_pad
[
60
];
/* no slock_t */
#endif
/* mips */
#endif
/* mips */
/* HAS_TEST_AND_SET -- platform dependent size */
/* HAS_TEST_AND_SET -- platform dependent size */
#if defined(
PORTNAME_
aix)
#if defined(aix)
char
sb_pad
[
44
];
/* typedef unsigned int slock_t; */
char
sb_pad
[
44
];
/* typedef unsigned int slock_t; */
#endif
/* aix */
#endif
/* aix */
#if defined(
PORTNAME_
alpha)
#if defined(alpha)
char
sb_pad
[
40
];
/* typedef msemaphore slock_t; */
char
sb_pad
[
40
];
/* typedef msemaphore slock_t; */
#endif
/* alpha */
#endif
/* alpha */
#if defined(
PORTNAME_
hpux)
#if defined(hpux)
char
sb_pad
[
44
];
/* typedef struct { int sem[4]; } slock_t; */
char
sb_pad
[
44
];
/* typedef struct { int sem[4]; } slock_t; */
#endif
/* hpux */
#endif
/* hpux */
#if defined(
PORTNAME_
irix5)
#if defined(irix5)
char
sb_pad
[
44
];
/* typedef abilock_t slock_t; */
char
sb_pad
[
44
];
/* typedef abilock_t slock_t; */
#endif
/* irix5 */
#endif
/* irix5 */
#if defined(
PORTNAME_
next)
#if defined(next)
char
sb_pad
[
56
];
/* typedef struct mutex slock_t; */
char
sb_pad
[
56
];
/* typedef struct mutex slock_t; */
#endif
/* next */
#endif
/* next */
/* HAS_TEST_AND_SET -- default 1 byte spinlock */
/* HAS_TEST_AND_SET -- default 1 byte spinlock */
#if defined(
PORTNAME_
BSD44_derived) || \
#if defined(BSD44_derived) || \
defined(
PORTNAME_
bsdi) || \
defined(bsdi) || \
defined(
PORTNAME_
i386_solaris) || \
defined(i386_solaris) || \
defined(
PORTNAME_
linux) || \
defined(linux) || \
defined(
PORTNAME_
sparc) || \
defined(sparc) || \
defined(
PORTNAME_
sparc_solaris)
defined(sparc_solaris)
char
sb_pad
[
56
];
/* has slock_t */
char
sb_pad
[
56
];
/* has slock_t */
#endif
/* 1 byte slock_t */
#endif
/* 1 byte slock_t */
};
};
...
...
src/include/storage/ipc.h
View file @
7e42f481
...
@@ -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
*
*
* $Id: ipc.h,v 1.
8 1996/11/01 09:31:12 scrappy
Exp $
* $Id: ipc.h,v 1.
9 1996/11/04 04:00:28 momjian
Exp $
*
*
* NOTES
* NOTES
* This file is very architecture-specific. This stuff should actually
* This file is very architecture-specific. This stuff should actually
...
@@ -31,27 +31,27 @@
...
@@ -31,27 +31,27 @@
* we may in fact have different architectures, thus make the tests
* we may in fact have different architectures, thus make the tests
* based on portnames somewhat misleading.
* based on portnames somewhat misleading.
*/
*/
#if defined(
PORTNAME_
aix) || \
#if defined(aix) || \
defined(
PORTNAME_
alpha) || \
defined(alpha) || \
defined(
PORTNAME_
BSD44_derived) || \
defined(BSD44_derived) || \
defined(
PORTNAME_
bsdi) || \
defined(bsdi) || \
defined(
PORTNAME_
hpux) || \
defined(hpux) || \
defined(
PORTNAME_
i386_solaris) || \
defined(i386_solaris) || \
defined(
PORTNAME_
irix5) || \
defined(irix5) || \
defined(
PORTNAME_
linux) || \
defined(linux) || \
defined(
PORTNAME_
next) || \
defined(next) || \
defined(
PORTNAME_
sparc) || \
defined(sparc) || \
defined(
PORTNAME_
sparc_solaris)
defined(sparc_solaris)
#define HAS_TEST_AND_SET
#define HAS_TEST_AND_SET
#endif
#endif
#if defined(
PORTNAME_
BSD44_derived) && defined(__mips__)
#if defined(BSD44_derived) && defined(__mips__)
#undef HAS_TEST_AND_SET
#undef HAS_TEST_AND_SET
#endif
#endif
#if defined(HAS_TEST_AND_SET)
#if defined(HAS_TEST_AND_SET)
#if defined(
PORTNAME_
aix)
#if defined(aix)
/*
/*
* The AIX C library has the cs(3) builtin for compare-and-set that
* The AIX C library has the cs(3) builtin for compare-and-set that
* operates on ints.
* operates on ints.
...
@@ -59,11 +59,11 @@
...
@@ -59,11 +59,11 @@
typedef
unsigned
int
slock_t
;
typedef
unsigned
int
slock_t
;
#else
/* aix */
#else
/* aix */
#if defined(
PORTNAME_
alpha)
#if defined(alpha)
typedef
msemaphore
slock_t
;
typedef
msemaphore
slock_t
;
#else
/* alpha */
#else
/* alpha */
#if defined(
PORTNAME_
hpux)
#if defined(hpux)
/*
/*
* The PA-RISC "semaphore" for the LDWCX instruction is 4 bytes aligned
* The PA-RISC "semaphore" for the LDWCX instruction is 4 bytes aligned
* to a 16-byte boundary.
* to a 16-byte boundary.
...
@@ -71,11 +71,11 @@ typedef msemaphore slock_t;
...
@@ -71,11 +71,11 @@ typedef msemaphore slock_t;
typedef
struct
{
int
sem
[
4
];
}
slock_t
;
typedef
struct
{
int
sem
[
4
];
}
slock_t
;
#else
/* hpux */
#else
/* hpux */
#if defined(
PORTNAME_
irix5)
#if defined(irix5)
typedef
abilock_t
slock_t
;
typedef
abilock_t
slock_t
;
#else
/* irix5 */
#else
/* irix5 */
#if defined(
PORTNAME_
next)
#if defined(next)
/*
/*
* Use Mach mutex routines since these are, in effect, test-and-set
* Use Mach mutex routines since these are, in effect, test-and-set
* spinlocks.
* spinlocks.
...
@@ -99,10 +99,10 @@ extern void S_LOCK(slock_t *lock);
...
@@ -99,10 +99,10 @@ extern void S_LOCK(slock_t *lock);
extern
void
S_UNLOCK
(
slock_t
*
lock
);
extern
void
S_UNLOCK
(
slock_t
*
lock
);
extern
void
S_INIT_LOCK
(
slock_t
*
lock
);
extern
void
S_INIT_LOCK
(
slock_t
*
lock
);
#if defined(
PORTNAME_
alpha) || \
#if defined(alpha) || \
defined(
PORTNAME_
hpux) || \
defined(hpux) || \
defined(
PORTNAME_
irix5) || \
defined(irix5) || \
defined(
PORTNAME_
next)
defined(next)
extern
int
S_LOCK_FREE
(
slock_t
*
lock
);
extern
int
S_LOCK_FREE
(
slock_t
*
lock
);
#else
#else
#define S_LOCK_FREE(lock) ((*lock) == 0)
#define S_LOCK_FREE(lock) ((*lock) == 0)
...
...
src/include/utils/array.h
View file @
7e42f481
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: array.h,v 1.
1 1996/08/28 01:58:42 scrappy
Exp $
* $Id: array.h,v 1.
2 1996/11/04 04:00:36 momjian
Exp $
*
*
* NOTES
* NOTES
* XXX the data array should be LONGALIGN'd -- notice that the array
* XXX the data array should be LONGALIGN'd -- notice that the array
...
@@ -97,11 +97,11 @@ typedef struct {
...
@@ -97,11 +97,11 @@ typedef struct {
*------------------------------------------------------------------------
*------------------------------------------------------------------------
*/
*/
/* #if defined(
PORTNAME_
irix5) */
/* #if defined(irix5) */
/* #define RETURN_NULL {*isNull = true; return(0); }*/
/* #define RETURN_NULL {*isNull = true; return(0); }*/
/* #else*/
/*
PORTNAME_
irix5 */
/* #else*/
/* irix5 */
#define RETURN_NULL {*isNull = true; return(0); }
#define RETURN_NULL {*isNull = true; return(0); }
/* #endif */
/*
PORTNAME_
irix5 */
/* #endif */
/* irix5 */
#define NAME_LEN 30
#define NAME_LEN 30
#define MAX_BUFF_SIZE (1 << 13)
#define MAX_BUFF_SIZE (1 << 13)
...
...
src/include/utils/builtins.h
View file @
7e42f481
...
@@ -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
*
*
* $Id: builtins.h,v 1.
3 1996/11/03 12:13:34 scrappy
Exp $
* $Id: builtins.h,v 1.
4 1996/11/04 04:00:43 momjian
Exp $
*
*
* NOTES
* NOTES
* This should normally only be included by fmgr.h.
* This should normally only be included by fmgr.h.
...
@@ -170,9 +170,9 @@ extern uint32 NameComputeLength(Name name);
...
@@ -170,9 +170,9 @@ extern uint32 NameComputeLength(Name name);
/* numutils.c */
/* numutils.c */
/* XXX hack. HP-UX has a ltoa (with different arguments) already. */
/* XXX hack. HP-UX has a ltoa (with different arguments) already. */
#ifdef
PORTNAME_
hpux
#ifdef hpux
#define ltoa pg_ltoa
#define ltoa pg_ltoa
#endif
/*
PORTNAME_
hpux */
#endif
/* hpux */
extern
int32
pg_atoi
(
char
*
s
,
int
size
,
int
c
);
extern
int32
pg_atoi
(
char
*
s
,
int
size
,
int
c
);
extern
void
itoa
(
int
i
,
char
*
a
);
extern
void
itoa
(
int
i
,
char
*
a
);
extern
void
ltoa
(
int32
l
,
char
*
a
);
extern
void
ltoa
(
int32
l
,
char
*
a
);
...
...
src/include/utils/exc.h
View file @
7e42f481
...
@@ -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
*
*
* $Id: exc.h,v 1.
2 1996/10/31 09:51:13 scrappy
Exp $
* $Id: exc.h,v 1.
3 1996/11/04 04:00:47 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -22,9 +22,9 @@ extern Index ExcLineNumber;
...
@@ -22,9 +22,9 @@ extern Index ExcLineNumber;
* ExcMessage and Exception are now defined in c.h
* ExcMessage and Exception are now defined in c.h
*/
*/
#if defined(
PORTNAME_
hpux) || \
#if defined(hpux) || \
defined(
PORTNAME_
linux) || \
defined(linux) || \
defined(
PORTNAME_
next) || \
defined(next) || \
defined(WIN32)
defined(WIN32)
typedef
jmp_buf
ExcContext
;
typedef
jmp_buf
ExcContext
;
#else
#else
...
...
src/include/utils/memutils.h
View file @
7e42f481
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: memutils.h,v 1.
3 1996/11/03 12:13:35 scrappy
Exp $
* $Id: memutils.h,v 1.
4 1996/11/04 04:00:48 momjian
Exp $
*
*
* NOTES
* NOTES
* some of the information in this file will be moved to
* some of the information in this file will be moved to
...
@@ -67,7 +67,7 @@ s...)
...
@@ -67,7 +67,7 @@ s...)
*/
*/
#if defined(sun) && ! defined(sparc)
#if defined(sun) && ! defined(sparc)
#define LONGALIGN(LEN) SHORTALIGN(LEN)
#define LONGALIGN(LEN) SHORTALIGN(LEN)
#elif defined (
PORTNAME_
alpha)
#elif defined (alpha)
#define LONGALIGN(LEN)\
#define LONGALIGN(LEN)\
(((long)(LEN) + (sizeof (int) - 1)) & ~(sizeof (int) -1))
(((long)(LEN) + (sizeof (int) - 1)) & ~(sizeof (int) -1))
#else
#else
...
...
src/include/utils/nabstime.h
View file @
7e42f481
...
@@ -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
*
*
* $Id: nabstime.h,v 1.
2 1996/11/01 09:19:11 scrappy
Exp $
* $Id: nabstime.h,v 1.
3 1996/11/04 04:00:50 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -36,7 +36,7 @@ typedef TimeIntervalData *TimeInterval;
...
@@ -36,7 +36,7 @@ typedef TimeIntervalData *TimeInterval;
#define NOEND_ABSTIME ((AbsoluteTime) 2147483645)
/* 2^31 - 3 */
#define NOEND_ABSTIME ((AbsoluteTime) 2147483645)
/* 2^31 - 3 */
#if defined(
PORTNAME_
aix)
#if defined(aix)
/*
/*
* AIX considers 2147483648 == -2147483648 (since they have the same bit
* AIX considers 2147483648 == -2147483648 (since they have the same bit
* representation) but uses a different sign sense in a comparison to
* representation) but uses a different sign sense in a comparison to
...
@@ -49,7 +49,7 @@ typedef TimeIntervalData *TimeInterval;
...
@@ -49,7 +49,7 @@ typedef TimeIntervalData *TimeInterval;
#else
#else
/*#define NOSTART_ABSTIME ((AbsoluteTime) 2147483648)*/
/* - 2^31 */
/*#define NOSTART_ABSTIME ((AbsoluteTime) 2147483648)*/
/* - 2^31 */
#define NOSTART_ABSTIME ((AbsoluteTime) -2147483647)
/* - 2^31 */
#define NOSTART_ABSTIME ((AbsoluteTime) -2147483647)
/* - 2^31 */
#endif
/*
PORTNAME_
aix */
#endif
/* aix */
#define INVALID_RELTIME ((RelativeTime) 2147483647)
/* 2^31 - 1 */
#define INVALID_RELTIME ((RelativeTime) 2147483647)
/* 2^31 - 1 */
...
@@ -126,11 +126,11 @@ typedef TimeIntervalData *TimeInterval;
...
@@ -126,11 +126,11 @@ typedef TimeIntervalData *TimeInterval;
/* keep this struct small; it gets used a lot */
/* keep this struct small; it gets used a lot */
typedef
struct
{
typedef
struct
{
#if defined(
PORTNAME_
aix)
#if defined(aix)
char
*
token
;
char
*
token
;
#else
#else
char
token
[
TOKMAXLEN
];
char
token
[
TOKMAXLEN
];
#endif
/*
PORTNAME_
aix */
#endif
/* aix */
char
type
;
char
type
;
char
value
;
/* this may be unsigned, alas */
char
value
;
/* this may be unsigned, alas */
}
datetkn
;
}
datetkn
;
...
...
src/interfaces/libpq/Makefile
View file @
7e42f481
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
#
#
#
#
# IDENTIFICATION
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Makefile,v 1.1
0 1996/11/03 07:14:29 scrappy
Exp $
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Makefile,v 1.1
1 1996/11/04 04:00:53 momjian
Exp $
#
#
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
...
@@ -71,8 +71,6 @@ c.h: ../include/c.h
...
@@ -71,8 +71,6 @@ c.h: ../include/c.h
rm
-f
c.h
rm
-f
c.h
echo
"#undef PORTNAME"
>
c.h
echo
"#undef PORTNAME"
>
c.h
echo
"#define PORTNAME
$(PORTNAME)
"
>>
c.h
echo
"#define PORTNAME
$(PORTNAME)
"
>>
c.h
echo
"#undef PORTNAME_
$(PORTNAME)
"
>>
c.h
echo
"#define PORTNAME_
$(PORTNAME)
"
>>
c.h
cat
../include/c.h
>>
c.h
cat
../include/c.h
>>
c.h
.PHONY
:
beforeinstall-headers install-headers
.PHONY
:
beforeinstall-headers install-headers
...
...
src/interfaces/libpq/fe-connect.c
View file @
7e42f481
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.1
3 1996/11/03 07:14:31 scrappy
Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.1
4 1996/11/04 04:00:54 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
#include "fe-auth.h"
#include "fe-auth.h"
#include "libpq-fe.h"
#include "libpq-fe.h"
#if defined(
PORTNAME_ultrix4) || defined(PORTNAME_
next)
#if defined(
ultrix4) || defined(
next)
/* ultrix is lame and doesn't have strdup in libc for some reason */
/* ultrix is lame and doesn't have strdup in libc for some reason */
/* [TRH] So doesn't NEXTSTEP. But whaddaya expect for a non-ANSI
/* [TRH] So doesn't NEXTSTEP. But whaddaya expect for a non-ANSI
standard function? (My, my. Touchy today, are we?) */
standard function? (My, my. Touchy today, are we?) */
...
...
src/interfaces/libpq/libpq-fe.h
View file @
7e42f481
...
@@ -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
*
*
* $Id: libpq-fe.h,v 1.
8 1996/10/10 08:20:11 bryanh
Exp $
* $Id: libpq-fe.h,v 1.
9 1996/11/04 04:00:56 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -261,10 +261,10 @@ typedef void *TUPLE;
...
@@ -261,10 +261,10 @@ typedef void *TUPLE;
#define palloc malloc
#define palloc malloc
#define pfree free
#define pfree free
#if defined(
PORTNAME_
sparc)
#if defined(sparc)
extern
char
*
sys_errlist
[];
extern
char
*
sys_errlist
[];
#define strerror(A) (sys_errlist[(A)])
#define strerror(A) (sys_errlist[(A)])
#endif
/*
PORTNAME_
sparc */
#endif
/* sparc */
#ifdef __cplusplus
#ifdef __cplusplus
};
};
...
...
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