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
df247b82
Commit
df247b82
authored
Feb 27, 2001
by
Tatsuo Ishii
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Massive commits for SunOS4 port.
parent
919ace07
Changes
15
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
339 additions
and
148 deletions
+339
-148
configure
configure
+252
-126
configure.in
configure.in
+9
-0
src/Makefile.global.in
src/Makefile.global.in
+2
-1
src/Makefile.shlib
src/Makefile.shlib
+6
-1
src/backend/utils/adt/formatting.c
src/backend/utils/adt/formatting.c
+5
-5
src/bin/pg_dump/Makefile
src/bin/pg_dump/Makefile
+16
-5
src/bin/pg_dump/pg_restore.c
src/bin/pg_dump/pg_restore.c
+6
-1
src/bin/pg_id/pg_id.c
src/bin/pg_id/pg_id.c
+10
-2
src/bin/psql/Makefile
src/bin/psql/Makefile
+8
-1
src/bin/psql/input.c
src/bin/psql/input.c
+5
-1
src/bin/psql/print.c
src/bin/psql/print.c
+3
-1
src/bin/psql/stringutils.c
src/bin/psql/stringutils.c
+2
-1
src/include/config.h.in
src/include/config.h.in
+9
-1
src/interfaces/ecpg/preproc/ecpg.c
src/interfaces/ecpg/preproc/ecpg.c
+3
-0
src/makefiles/Makefile.sunos4
src/makefiles/Makefile.sunos4
+3
-2
No files found.
configure
View file @
df247b82
This diff is collapsed.
Click to expand it.
configure.in
View file @
df247b82
...
...
@@ -777,6 +777,9 @@ AC_CHECK_FUNCS([fcvt getopt_long memmove pstat setproctitle setsid sigprocmask s
dnl Check whether <unistd.h> declares fdatasync().
AC_EGREP_HEADER(fdatasync, unistd.h, AC_DEFINE(HAVE_FDATASYNC_DECL))
dnl Check whether <unistd.h> declares optarg
AC_EGREP_HEADER(optarg, unistd.h, AC_DEFINE(HAVE_OPTARG_DECL))
AC_CACHE_CHECK([for PS_STRINGS], [pgac_cv_var_PS_STRINGS],
[AC_TRY_LINK(
[#include <machine/vmparam.h>
...
...
@@ -1073,6 +1076,12 @@ AC_DEFINE_UNQUOTED(INT64_FORMAT, $INT64_FORMAT)
AC_CHECK_FUNCS([strtoll strtoq], [break])
AC_CHECK_FUNCS([strtoull strtouq], [break])
dnl psql needs atexit() or on_exit()
AC_CHECK_FUNC(atexit,
[AC_DEFINE(HAVE_ATEXIT)],
[AC_CHECK_FUNCS(on_exit,
[AC_DEFINE(HAVE_ON_EXIT)],
[AC_MSG_ERROR([atexi() nor on_exit() found])])])
dnl Need a #define for the size of Datum (unsigned long)
...
...
src/Makefile.global.in
View file @
df247b82
# -*-makefile-*-
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.1
19 2001/02/20 19:20:28 petere
Exp $
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.1
20 2001/02/27 08:13:29 ishii
Exp $
#------------------------------------------------------------------------------
# All PostgreSQL makefiles include this file and use the variables it sets,
...
...
@@ -288,6 +288,7 @@ INET_ATON = @INET_ATON@
STRERROR
=
@STRERROR@
SNPRINTF
=
@SNPRINTF@
STRDUP
=
@STRDUP@
STRTOUL
=
@STRTOUL@
##########################################################################
...
...
src/Makefile.shlib
View file @
df247b82
...
...
@@ -6,7 +6,7 @@
# Copyright (c) 1998, Regents of the University of California
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.4
5 2001/02/20 19:20:28 petere
Exp $
# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.4
6 2001/02/27 08:13:29 ishii
Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -184,6 +184,11 @@ ifeq ($(PORTNAME), solaris)
SHLIB_LINK
+=
-lm
-lc
endif
ifeq
($(PORTNAME), sunos4)
shlib
:=
lib
$(NAME)$(DLSUFFIX)
.
$(SO_MAJOR_VERSION)
.
$(SO_MINOR_VERSION)
LINK.shared
=
$(LD)
-assert
pure-text
-Bdynamic
endif
ifeq
($(PORTNAME), osf)
shlib
:=
lib
$(NAME)$(DLSUFFIX)
.
$(SO_MAJOR_VERSION)
.
$(SO_MINOR_VERSION)
LINK.shared
=
$(LD)
-shared
-expect_unresolved
'*'
...
...
src/backend/utils/adt/formatting.c
View file @
df247b82
/* -----------------------------------------------------------------------
* formatting.c
*
* $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.3
2 2001/02/12 12:52:02 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.3
3 2001/02/27 08:13:28 ishii
Exp $
*
*
* Portions Copyright (c) 1999-2000, PostgreSQL Global Development Group
...
...
@@ -1398,7 +1398,7 @@ int4len(int4 num)
{
char
b
[
16
];
return
s
printf
(
b
,
"%d"
,
num
);
return
s
nprintf
(
b
,
sizeof
(
b
)
,
"%d"
,
num
);
}
/* ----------
...
...
@@ -3211,7 +3211,7 @@ int_to_roman(int number)
fill_str
(
result
,
'#'
,
15
);
return
result
;
}
len
=
s
printf
(
numstr
,
"%d"
,
number
);
len
=
s
nprintf
(
numstr
,
sizeof
(
numstr
)
,
"%d"
,
number
);
for
(
p
=
numstr
;
*
p
!=
'\0'
;
p
++
,
--
len
)
{
...
...
@@ -4013,7 +4013,7 @@ NUM_processor(FormatNode *node, NUMDesc *Num, char *inout, char *number,
Np
->
inout_p
+=
strlen
(
Np
->
inout_p
)
-
1
;
}
else
Np
->
inout_p
+=
s
printf
(
Np
->
inout_p
,
"%15s"
,
Np
->
number_p
)
-
1
;
Np
->
inout_p
+=
s
nprintf
(
Np
->
inout_p
,
plen
-
(
Np
->
inout_p
-
Np
->
inout
)
,
"%15s"
,
Np
->
number_p
)
-
1
;
break
;
case
NUM_rn
:
...
...
@@ -4023,7 +4023,7 @@ NUM_processor(FormatNode *node, NUMDesc *Num, char *inout, char *number,
Np
->
inout_p
+=
strlen
(
Np
->
inout_p
)
-
1
;
}
else
Np
->
inout_p
+=
s
printf
(
Np
->
inout_p
,
"%15s"
,
str_tolower
(
Np
->
number_p
))
-
1
;
Np
->
inout_p
+=
s
nprintf
(
Np
->
inout_p
,
plen
-
(
Np
->
inout_p
-
Np
->
inout
)
,
"%15s"
,
str_tolower
(
Np
->
number_p
))
-
1
;
break
;
case
NUM_th
:
...
...
src/bin/pg_dump/Makefile
View file @
df247b82
...
...
@@ -5,7 +5,7 @@
# Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
# Portions Copyright (c) 1994, Regents of the University of California
#
# $Header: /cvsroot/pgsql/src/bin/pg_dump/Makefile,v 1.
29 2001/02/20 19:20:28 petere
Exp $
# $Header: /cvsroot/pgsql/src/bin/pg_dump/Makefile,v 1.
30 2001/02/27 08:13:28 ishii
Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -14,7 +14,21 @@ top_builddir = ../../..
include
$(top_builddir)/src/Makefile.global
OBJS
=
pg_backup_archiver.o pg_backup_db.o pg_backup_custom.o pg_backup_files.o
\
pg_backup_null.o pg_backup_tar.o
$(STRDUP)
pg_backup_null.o pg_backup_tar.o
ifdef
STRDUP
OBJS
+=
$(top_builddir)
/src/utils/strdup.o
$(top_builddir)/src/utils/strdup.o
:
$(MAKE)
-C
$(top_builddir)
/src/utils strdup.o
endif
ifdef
STRTOUL
OBJS
+=
$(top_builddir)
/src/backend/port/strtoul.o
$(top_builddir)/src/backend/port/strtoul.o
:
$(MAKE)
-C
$(top_builddir)
/src/backend/port strtoul.o
endif
override CPPFLAGS
:
= -I$(libpq_srcdir) $(CPPFLAGS)
...
...
@@ -26,9 +40,6 @@ pg_dump: pg_dump.o common.o $(OBJS) $(libpq_builddir)/libpq.a
pg_restore
:
pg_restore.o $(OBJS) $(libpq_builddir)/libpq.a
$(CC)
$(CFLAGS)
pg_restore.o
$(OBJS)
$(libpq)
$(LDFLAGS)
$(LIBS)
-o
$@
../../utils/strdup.o
:
$(MAKE)
-C
../../utils strdup.o
pg_dumpall
:
pg_dumpall.sh
sed
-e
's,@VERSION@,
$(VERSION)
,g'
\
-e
's,@MULTIBYTE@,
$(MULTIBYTE)
,g'
\
...
...
src/bin/pg_dump/pg_restore.c
View file @
df247b82
...
...
@@ -68,8 +68,13 @@
#ifdef HAVE_GETOPT_H
#include <getopt.h>
#else
#ifdef HAVE_OPTARG_DECL
#include <unistd.h>
#endif
#else
extern
char
*
optarg
;
extern
int
optind
,
opterr
,
optopt
;
#endif
/* HAVE_OPTARG_DECL */
#endif
/* HAVE_GETOPT_H */
/* Forward decls */
static
void
usage
(
const
char
*
progname
);
...
...
src/bin/pg_id/pg_id.c
View file @
df247b82
...
...
@@ -6,13 +6,21 @@
*
* Copyright (C) 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/pg_id/Attic/pg_id.c,v 1.1
7 2001/02/10 02:31:27 tgl
Exp $
* $Header: /cvsroot/pgsql/src/bin/pg_id/Attic/pg_id.c,v 1.1
8 2001/02/27 08:13:28 ishii
Exp $
*/
#include "postgres_fe.h"
#ifdef HAVE_GETOPT_H
#include <getopt.h>
#endif
#else
#ifdef HAVE_OPTARG_DECL
#include <unistd.h>
#else
extern
char
*
optarg
;
extern
int
optind
,
opterr
,
optopt
;
#endif
/* HAVE_OPTARG_DECL */
#endif
/* HAVE_GETOPT_H */
#include <pwd.h>
#include <stdio.h>
#include <stdlib.h>
...
...
src/bin/psql/Makefile
View file @
df247b82
...
...
@@ -5,7 +5,7 @@
# Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
# Portions Copyright (c) 1994, Regents of the University of California
#
# $Header: /cvsroot/pgsql/src/bin/psql/Makefile,v 1.
29 2001/02/20 19:20:29 petere
Exp $
# $Header: /cvsroot/pgsql/src/bin/psql/Makefile,v 1.
30 2001/02/27 08:13:27 ishii
Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -46,6 +46,13 @@ $(top_builddir)/src/backend/port/snprintf.o:
$(MAKE)
-C
$(top_builddir)
/src/backend/port snprintf.o
endif
ifdef
STRTOUL
OBJS
+=
$(top_builddir)
/src/backend/port/strtoul.o
$(top_builddir)/src/backend/port/strtoul.o
:
$(MAKE)
-C
$(top_builddir)
/src/backend/port strtoul.o
endif
# End of hacks for picking up backend 'port' modules
psql
:
$(OBJS) $(libpq_builddir)/libpq.a
...
...
src/bin/psql/input.c
View file @
df247b82
...
...
@@ -3,7 +3,7 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/input.c,v 1.1
5 2001/02/10 02:31:28 tgl
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/input.c,v 1.1
6 2001/02/27 08:13:27 ishii
Exp $
*/
#include "postgres_fe.h"
#include "input.h"
...
...
@@ -151,7 +151,11 @@ initializeInput(int flags)
}
#endif
#ifdef HAVE_ATEXIT
atexit
(
finishInput
);
#else
on_exit
(
finishInput
);
#endif
}
...
...
src/bin/psql/print.c
View file @
df247b82
...
...
@@ -3,7 +3,7 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/print.c,v 1.1
5 2001/02/10 02:31:28 tgl
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/print.c,v 1.1
6 2001/02/27 08:13:27 ishii
Exp $
*/
#include "postgres_fe.h"
#include "print.h"
...
...
@@ -21,6 +21,8 @@
#include "pqsignal.h"
#include "libpq-fe.h"
#include "settings.h"
#ifndef __CYGWIN__
#define DEFAULT_PAGER "more"
#else
...
...
src/bin/psql/stringutils.c
View file @
df247b82
...
...
@@ -3,10 +3,11 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/stringutils.c,v 1.2
7 2001/02/10 02:31:28 tgl
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/stringutils.c,v 1.2
8 2001/02/27 08:13:27 ishii
Exp $
*/
#include "postgres_fe.h"
#include "stringutils.h"
#include "settings.h"
#include <ctype.h>
#include <assert.h>
...
...
src/include/config.h.in
View file @
df247b82
...
...
@@ -8,7 +8,7 @@
* or in config.h afterwards. Of course, if you edit config.h, then your
* changes will be overwritten the next time you run configure.
*
* $Id: config.h.in,v 1.15
8 2001/02/18 04:39:42 tgl
Exp $
* $Id: config.h.in,v 1.15
9 2001/02/27 08:13:27 ishii
Exp $
*/
#ifndef CONFIG_H
...
...
@@ -579,6 +579,9 @@ extern int fdatasync(int fildes);
/* Set to 1 if you have getopt_long() (GNU long options) */
#undef HAVE_GETOPT_LONG
/* Set to 1 if optarg is declared in unistd.h */
#undef HAVE_OPTARG_DECL
/* Set to 1 if you have union semun */
#undef HAVE_UNION_SEMUN
...
...
@@ -651,6 +654,11 @@ extern int fdatasync(int fildes);
# define HAVE_STRTOULL 1
#endif
/* Define if you have atexit() */
#undef HAVE_ATEXIT
/* Define if you have on_exit() */
#undef HAVE_ON_EXIT
/*
*------------------------------------------------------------------------
...
...
src/interfaces/ecpg/preproc/ecpg.c
View file @
df247b82
...
...
@@ -8,6 +8,9 @@
#ifdef HAVE_GETOPT_H
#include "getopt.h"
#else
extern
char
*
optarg
;
extern
int
optind
,
opterr
,
optopt
;
#endif
#include "extern.h"
...
...
src/makefiles/Makefile.sunos4
View file @
df247b82
...
...
@@ -2,7 +2,7 @@ AROPT = cr
DLSUFFIX
=
.so
ifeq
($(GCC), yes)
CFLAGS_SL
=
-f
PIC
CFLAGS_SL
=
-f
pic
else
CFLAGS_SL
=
-PIC
endif
...
...
@@ -13,4 +13,5 @@ CXXFLAGS_SL = -PIC
endif
%.so
:
%.o
$(LD)
-dc
-dp
-Bdynamic
-o
$@
$<
$(LD)
-assert
pure-text
-Bdynamic
-o
$@
$<
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