Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
e44c9318
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e44c9318
编写于
7月 19, 1999
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Re-add getopt.h check, remove NT-specific tests for it.
上级
67702817
变更
18
隐藏空白更改
内联
并排
Showing
18 changed file
with
86 addition
and
101 deletion
+86
-101
src/backend/bootstrap/bootstrap.c
src/backend/bootstrap/bootstrap.c
+4
-5
src/backend/postmaster/postmaster.c
src/backend/postmaster/postmaster.c
+15
-21
src/backend/tcop/postgres.c
src/backend/tcop/postgres.c
+3
-3
src/backend/utils/mb/common.c
src/backend/utils/mb/common.c
+3
-7
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.c
+2
-2
src/bin/pg_id/pg_id.c
src/bin/pg_id/pg_id.c
+6
-4
src/bin/psql/psql.c
src/bin/psql/psql.c
+5
-2
src/configure.in
src/configure.in
+1
-0
src/include/config.h.in
src/include/config.h.in
+3
-0
src/include/port/win32.h
src/include/port/win32.h
+0
-1
src/interfaces/ecpg/preproc/ecpg.c
src/interfaces/ecpg/preproc/ecpg.c
+1
-1
src/interfaces/libpq/fe-auth.c
src/interfaces/libpq/fe-auth.c
+5
-6
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-connect.c
+7
-8
src/interfaces/libpq/fe-exec.c
src/interfaces/libpq/fe-exec.c
+6
-8
src/interfaces/libpq/fe-lobj.c
src/interfaces/libpq/fe-lobj.c
+7
-9
src/interfaces/libpq/fe-misc.c
src/interfaces/libpq/fe-misc.c
+8
-11
src/interfaces/libpq/fe-print.c
src/interfaces/libpq/fe-print.c
+10
-10
src/interfaces/libpq/win32.h
src/interfaces/libpq/win32.h
+0
-3
未找到文件。
src/backend/bootstrap/bootstrap.c
浏览文件 @
e44c9318
...
...
@@ -7,7 +7,7 @@
* Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.6
5 1999/07/17 20:16:47
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.6
6 1999/07/19 02:27:04
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -15,14 +15,13 @@
#include <time.h>
#include <signal.h>
#include <setjmp.h>
#ifdef __CYGWIN32__
#include <getopt.h>
#endif
#define BOOTSTRAP_INCLUDE
/* mask out stuff in tcop/tcopprot.h */
#include "postgres.h"
#ifdef HAVE_GETOPT_H
#include <getopt.h>
#endif
#include "access/genam.h"
#include "access/heapam.h"
...
...
src/backend/postmaster/postmaster.c
浏览文件 @
e44c9318
...
...
@@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.11
4 1999/07/17 20:17:32
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.11
5 1999/07/19 02:27:06
momjian Exp $
*
* NOTES
*
...
...
@@ -32,46 +32,40 @@
*
*-------------------------------------------------------------------------
*/
#include "postgres.h"
#include <unistd.h>
#include <signal.h>
#include <time.h>
#include <sys/wait.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/param.h>
#include "postgres.h"
/* moved here to prevent double define */
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifndef MAXHOSTNAMELEN
#define MAXHOSTNAMELEN 256
#endif
#if !defined(NO_UNISTD_H)
#include <unistd.h>
#endif
/* !NO_UNISTD_H */
#include <signal.h>
#include <time.h>
#ifdef HAVE_LIMITS_H
#include <limits.h>
#else
#include <values.h>
#endif
#include <sys/wait.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <errno.h>
#include <fcntl.h>
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif
#ifdef
__CYGWIN32__
#ifdef
HAVE_GETOPT_H
#include "getopt.h"
#endif
...
...
src/backend/tcop/postgres.c
浏览文件 @
e44c9318
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.12
5 1999/07/17 20:17:51
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.12
6 1999/07/19 02:27:06
momjian Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
...
...
@@ -39,7 +39,7 @@
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#ifdef
__CYGWIN32__
#ifdef
HAVE_GETOPT_H
#include <getopt.h>
#endif
...
...
@@ -1494,7 +1494,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
if
(
!
IsUnderPostmaster
)
{
puts
(
"
\n
POSTGRES backend interactive interface "
);
puts
(
"$Revision: 1.12
5 $ $Date: 1999/07/17 20:17:51
$
\n
"
);
puts
(
"$Revision: 1.12
6 $ $Date: 1999/07/19 02:27:06
$
\n
"
);
}
/* ----------------
...
...
src/backend/utils/mb/common.c
浏览文件 @
e44c9318
...
...
@@ -2,19 +2,15 @@
* This file contains some public functions
* usable for both the backend and the frontend.
* Tatsuo Ishii
* $Id: common.c,v 1.
5 1999/05/25 16:12:41
momjian Exp $ */
* $Id: common.c,v 1.
6 1999/07/19 02:27:07
momjian Exp $ */
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#ifdef WIN32
#include "win32.h"
#else
#if !defined(NO_UNISTD_H)
#include <unistd.h>
#endif
#endif
#include <string.h>
#include "mb/pg_wchar.h"
...
...
src/bin/pg_dump/pg_dump.c
浏览文件 @
e44c9318
...
...
@@ -21,7 +21,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.11
7 1999/07/17 20:18:1
8 momjian Exp $
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.11
8 1999/07/19 02:27:0
8 momjian Exp $
*
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
*
...
...
@@ -75,7 +75,7 @@
#include <termios.h>
#endif
#ifdef
__CYGWIN32__
#ifdef
HAVE_GETOPT_H
#include <getopt.h>
#endif
...
...
src/bin/pg_id/pg_id.c
浏览文件 @
e44c9318
...
...
@@ -9,16 +9,18 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/pg_id/Attic/pg_id.c,v 1.
8 1999/02/13 23:20:2
9 momjian Exp $
* $Header: /cvsroot/pgsql/src/bin/pg_id/Attic/pg_id.c,v 1.
9 1999/07/19 02:27:0
9 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include <sys/types.h>
#include <pwd.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#ifdef __CYGWIN32__
#include <sys/types.h>
#include <pwd.h>
#include "postgres.h"
#ifdef HAVE_GETOPT_H
#include <getopt.h>
#endif
...
...
src/bin/psql/psql.c
浏览文件 @
e44c9318
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.18
3 1999/07/17 20:18:23
momjian Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.18
4 1999/07/19 02:27:10
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -32,13 +32,16 @@
#include "pqsignal.h"
#include "stringutils.h"
#include "psqlHelp.h"
#ifndef HAVE_STRDUP
#include "strdup.h"
#endif
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#endif
#ifdef __CYGWIN32__
#ifdef HAVE_GETOPT_H
#include <getopt.h>
#endif
...
...
src/configure.in
浏览文件 @
e44c9318
...
...
@@ -582,6 +582,7 @@ AC_CHECK_HEADERS(dld.h)
AC_CHECK_HEADERS(endian.h)
AC_CHECK_HEADERS(float.h)
AC_CHECK_HEADERS(fp_class.h)
AC_CHECK_HEADERS(getopt.h)
AC_CHECK_HEADERS(history.h)
AC_CHECK_HEADERS(ieeefp.h)
AC_CHECK_HEADERS(limits.h)
...
...
src/include/config.h.in
浏览文件 @
e44c9318
...
...
@@ -235,6 +235,9 @@
/* Set to 1 if you have <fp_class.h> */
#undef HAVE_FP_CLASS_H
/* Set to 1 if you have <getopt.h> */
#undef HAVE_GETOPT_H
/* Set to 1 if you have <history.h> */
#undef HAVE_HISTORY_H
...
...
src/include/port/win32.h
浏览文件 @
e44c9318
#define JMP_BUF
#define NEED_SIG_JMP
#define NO_UNISTD_H
#define USES_WINSOCK
#define NOFILE 100
#ifndef MAXPATHLEN
...
...
src/interfaces/ecpg/preproc/ecpg.c
浏览文件 @
e44c9318
...
...
@@ -5,7 +5,7 @@
#include <unistd.h>
#include "postgres.h"
#ifdef
__CYGWIN32__
#ifdef
HAVE_GETOPT_H
#include "getopt.h"
#endif
...
...
src/interfaces/libpq/fe-auth.c
浏览文件 @
e44c9318
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.3
0 1999/07/17 20:18:43
momjian Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.3
1 1999/07/19 02:27:14
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -25,10 +25,12 @@
*
*/
#include <unistd.h>
#include "postgres.h"
#include "libpq-fe.h"
#include "libpq-int.h"
#include "fe-auth.h"
#include "postgres.h"
#ifdef WIN32
#include "win32.h"
...
...
@@ -37,11 +39,8 @@
#ifndef MAXHOSTNAMELEN
#include <netdb.h>
/* for MAXHOSTNAMELEN on some */
#endif
#if !defined(NO_UNISTD_H)
#include <unistd.h>
#endif
#include <pwd.h>
#endif
/* WIN32 */
#endif
#ifdef HAVE_CRYPT_H
#include <crypt.h>
...
...
src/interfaces/libpq/fe-connect.c
浏览文件 @
e44c9318
...
...
@@ -7,28 +7,27 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.
99 1999/07/17 20:18:44
momjian Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.
100 1999/07/19 02:27:15
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <ctype.h>
#include "postgres.h"
#include "libpq-fe.h"
#include "libpq-int.h"
#include "fe-auth.h"
#include "postgres.h"
#ifdef WIN32
#include "win32.h"
#else
#if !defined(NO_UNISTD_H)
#include <unistd.h>
#endif
#include <netdb.h>
#include <netinet/tcp.h>
#endif
#include <fcntl.h>
#include <errno.h>
#include <ctype.h>
/* for isspace() */
#ifndef HAVE_STRDUP
#include "strdup.h"
...
...
src/interfaces/libpq/fe-exec.c
浏览文件 @
e44c9318
...
...
@@ -7,23 +7,21 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.8
2 1999/07/17 20:18:4
5 momjian Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.8
3 1999/07/19 02:27:1
5 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include <unistd.h>
#include <errno.h>
#include <ctype.h>
#include "postgres.h"
#include "libpq-fe.h"
#include "libpq-int.h"
#include "postgres.h"
#ifdef WIN32
#include "win32.h"
#else
#if !defined(NO_UNISTD_H)
#include <unistd.h>
#endif
#endif
#include <errno.h>
#include <ctype.h>
/* keep this in same order as ExecStatusType in libpq-fe.h */
...
...
src/interfaces/libpq/fe-lobj.c
浏览文件 @
e44c9318
...
...
@@ -7,25 +7,23 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-lobj.c,v 1.2
1 1999/07/17 20:18:46
momjian Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-lobj.c,v 1.2
2 1999/07/19 02:27:15
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include <unistd.h>
#include <fcntl.h>
#include <io.h>
#include <sys/stat.h>
#include "postgres.h"
#include "libpq-fe.h"
#include "libpq-int.h"
#include "postgres.h"
#ifdef WIN32
#include "win32.h"
#include <io.h>
#else
#if !defined(NO_UNISTD_H)
#include <unistd.h>
#endif
#endif
#include <fcntl.h>
#include <sys/stat.h>
#include "libpq/libpq-fs.h"
/* must come after sys/stat.h */
...
...
src/interfaces/libpq/fe-misc.c
浏览文件 @
e44c9318
...
...
@@ -24,28 +24,25 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.2
6 1999/07/17 20:18:46
momjian Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.2
7 1999/07/19 02:27:15
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "libpq-fe.h"
#include "libpq-int.h"
#include <unistd.h>
#include <sys/time.h>
#include <errno.h>
#include <signal.h>
#include <time.h>
#include "postgres.h"
#include "libpq-fe.h"
#include "libpq-int.h"
#include "pqsignal.h"
#include <errno.h>
#include <signal.h>
#include <time.h>
#ifdef WIN32
#include "win32.h"
#else
#include <sys/time.h>
#if !defined(NO_UNISTD_H)
#include <unistd.h>
#endif
#endif
/* WIN32 */
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
...
...
src/interfaces/libpq/fe-print.c
浏览文件 @
e44c9318
...
...
@@ -9,29 +9,29 @@
* didn't really belong there.
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-print.c,v 1.2
4 1999/07/17 20:18:47
momjian Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-print.c,v 1.2
5 1999/07/19 02:27:16
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include <unistd.h>
#include <signal.h>
#include "postgres.h"
#include "libpq-fe.h"
#include "libpq-int.h"
#include "postgres.h"
#include "pqsignal.h"
#ifdef WIN32
#include "win32.h"
#else
#if !defined(NO_UNISTD_H)
#include <unistd.h>
#endif
#include <sys/ioctl.h>
#
ifndef HAVE_TERMIOS_H
#include <sys/termios.h>
#
else
#
endif
#
ifdef HAVE_TERMIOS_H
#include <termios.h>
#else
#include <sys/termios.h>
#endif
#endif
/* WIN32 */
#include <signal.h>
#ifdef MULTIBYTE
#include "mb/pg_wchar.h"
...
...
src/interfaces/libpq/win32.h
浏览文件 @
e44c9318
...
...
@@ -5,9 +5,6 @@
*/
#define strcasecmp(a,b) stricmp(a,b)
#define NO_UNISTD_H
#define SOCKET_SIZE_TYPE int
/*
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录