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
f1d11161
Commit
f1d11161
authored
Sep 09, 2004
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Cygwin defines to be consistent.
parent
b70999d0
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
15 deletions
+15
-15
src/backend/libpq/be-secure.c
src/backend/libpq/be-secure.c
+2
-2
src/backend/postmaster/postmaster.c
src/backend/postmaster/postmaster.c
+2
-2
src/include/c.h
src/include/c.h
+3
-3
src/include/port.h
src/include/port.h
+2
-2
src/include/port/win32.h
src/include/port/win32.h
+2
-2
src/interfaces/ecpg/include/sqlca.h
src/interfaces/ecpg/include/sqlca.h
+1
-1
src/port/dirmod.c
src/port/dirmod.c
+3
-3
No files found.
src/backend/libpq/be-secure.c
View file @
f1d11161
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/libpq/be-secure.c,v 1.4
8 2004/08/29 05:06:43
momjian Exp $
* $PostgreSQL: pgsql/src/backend/libpq/be-secure.c,v 1.4
9 2004/09/09 00:59:31
momjian Exp $
*
*
* Since the server static private key ($DataDir/server.key)
* Since the server static private key ($DataDir/server.key)
* will normally be stored unencrypted so that the database
* will normally be stored unencrypted so that the database
...
@@ -659,7 +659,7 @@ initialize_SSL(void)
...
@@ -659,7 +659,7 @@ initialize_SSL(void)
* think of a reasonable check to apply on Windows. (See also the
* think of a reasonable check to apply on Windows. (See also the
* data directory permission check in postmaster.c)
* data directory permission check in postmaster.c)
*/
*/
#if !defined(
__CYGWIN__) && !defined(WIN32
)
#if !defined(
WIN32) && !defined(__CYGWIN__
)
if
(
!
S_ISREG
(
buf
.
st_mode
)
||
(
buf
.
st_mode
&
(
S_IRWXG
|
S_IRWXO
))
||
if
(
!
S_ISREG
(
buf
.
st_mode
)
||
(
buf
.
st_mode
&
(
S_IRWXG
|
S_IRWXO
))
||
buf
.
st_uid
!=
getuid
())
buf
.
st_uid
!=
getuid
())
ereport
(
FATAL
,
ereport
(
FATAL
,
...
...
src/backend/postmaster/postmaster.c
View file @
f1d11161
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.42
4 2004/08/29 05:06:46
momjian Exp $
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.42
5 2004/09/09 00:59:33
momjian Exp $
*
*
* NOTES
* NOTES
*
*
...
@@ -976,7 +976,7 @@ checkDataDir(const char *checkdir)
...
@@ -976,7 +976,7 @@ checkDataDir(const char *checkdir)
* be proper support for Unix-y file permissions. Need to think of a
* be proper support for Unix-y file permissions. Need to think of a
* reasonable check to apply on Windows.
* reasonable check to apply on Windows.
*/
*/
#if !defined(
__CYGWIN__) && !defined(WIN32
)
#if !defined(
WIN32) && !defined(__CYGWIN__
)
if
(
stat_buf
.
st_mode
&
(
S_IRWXG
|
S_IRWXO
))
if
(
stat_buf
.
st_mode
&
(
S_IRWXG
|
S_IRWXO
))
ereport
(
FATAL
,
ereport
(
FATAL
,
(
errcode
(
ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE
),
(
errcode
(
ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE
),
...
...
src/include/c.h
View file @
f1d11161
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $PostgreSQL: pgsql/src/include/c.h,v 1.16
8 2004/08/29 05:06:55
momjian Exp $
* $PostgreSQL: pgsql/src/include/c.h,v 1.16
9 2004/09/09 00:59:41
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
#include <sys/types.h>
#include <sys/types.h>
#include <errno.h>
#include <errno.h>
#if defined(
__CYGWIN__) || defined(WIN32
)
#if defined(
WIN32) || defined(__CYGWIN__
)
#include <fcntl.h>
/* ensure O_BINARY is available */
#include <fcntl.h>
/* ensure O_BINARY is available */
#endif
#endif
#ifdef HAVE_SUPPORTDEFS_H
#ifdef HAVE_SUPPORTDEFS_H
...
@@ -680,7 +680,7 @@ typedef NameData *Name;
...
@@ -680,7 +680,7 @@ typedef NameData *Name;
* literal control-Z. The other affect is that we see CRLF, but
* literal control-Z. The other affect is that we see CRLF, but
* that is OK because we can already handle those cleanly.
* that is OK because we can already handle those cleanly.
*/
*/
#if defined(
__CYGWIN__) || defined(WIN32
)
#if defined(
WIN32) || defined(__CYGWIN__
)
#define PG_BINARY O_BINARY
#define PG_BINARY O_BINARY
#define PG_BINARY_R "rb"
#define PG_BINARY_R "rb"
#define PG_BINARY_W "wb"
#define PG_BINARY_W "wb"
...
...
src/include/port.h
View file @
f1d11161
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $PostgreSQL: pgsql/src/include/port.h,v 1.
59 2004/09/09 00:24:10
momjian Exp $
* $PostgreSQL: pgsql/src/include/port.h,v 1.
60 2004/09/09 00:59:41
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -181,7 +181,7 @@ extern int win32_open(const char *, int,...);
...
@@ -181,7 +181,7 @@ extern int win32_open(const char *, int,...);
#endif
#endif
/* Global variable holding time zone information. */
/* Global variable holding time zone information. */
#if
!defined(__CYGWIN__)
#if
ndef __CYGWIN__
#define TIMEZONE_GLOBAL timezone
#define TIMEZONE_GLOBAL timezone
#define TZNAME_GLOBAL tzname
#define TZNAME_GLOBAL tzname
#else
#else
...
...
src/include/port/win32.h
View file @
f1d11161
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.3
1 2004/08/31 11:29:56
momjian Exp $ */
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.3
2 2004/09/09 00:59:44
momjian Exp $ */
/* undefine and redefine after #include */
/* undefine and redefine after #include */
#undef mkdir
#undef mkdir
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
#define USES_WINSOCK
#define USES_WINSOCK
/* defines for dynamic linking on Win32 platform */
/* defines for dynamic linking on Win32 platform */
#if defined(__
CYGWIN__) || defined(__MINGW32
__)
#if defined(__
MINGW32__) || defined(__CYGWIN
__)
#if __GNUC__ && ! defined (__declspec)
#if __GNUC__ && ! defined (__declspec)
#error You need egcs 1.1 or newer for compiling!
#error You need egcs 1.1 or newer for compiling!
...
...
src/interfaces/ecpg/include/sqlca.h
View file @
f1d11161
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
#define POSTGRES_SQLCA_H
#define POSTGRES_SQLCA_H
#ifndef DLLIMPORT
#ifndef DLLIMPORT
#if
defined(__CYGWIN__) || defined(WIN32
)
#if
defined(WIN32) || defined(__CYGWIN__
)
#define DLLIMPORT __declspec (dllimport)
#define DLLIMPORT __declspec (dllimport)
#else
#else
#define DLLIMPORT
#define DLLIMPORT
...
...
src/port/dirmod.c
View file @
f1d11161
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
* Win32 (NT, Win2k, XP). replace() doesn't work on Win95/98/Me.
* Win32 (NT, Win2k, XP). replace() doesn't work on Win95/98/Me.
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/port/dirmod.c,v 1.2
2 2004/08/29 05:07:02
momjian Exp $
* $PostgreSQL: pgsql/src/port/dirmod.c,v 1.2
3 2004/09/09 00:59:49
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -66,14 +66,14 @@ pgrename(const char *from, const char *to)
...
@@ -66,14 +66,14 @@ pgrename(const char *from, const char *to)
{
{
int
loops
=
0
;
int
loops
=
0
;
#if
def WIN32
#if
defined(WIN32) && !defined(__CYGWIN__)
while
(
!
MoveFileEx
(
from
,
to
,
MOVEFILE_REPLACE_EXISTING
))
while
(
!
MoveFileEx
(
from
,
to
,
MOVEFILE_REPLACE_EXISTING
))
#endif
#endif
#ifdef __CYGWIN__
#ifdef __CYGWIN__
while
(
rename
(
from
,
to
)
<
0
)
while
(
rename
(
from
,
to
)
<
0
)
#endif
#endif
{
{
#if
def WIN32
#if
defined(WIN32) && !defined(__CYGWIN__)
if
(
GetLastError
()
!=
ERROR_ACCESS_DENIED
)
if
(
GetLastError
()
!=
ERROR_ACCESS_DENIED
)
#endif
#endif
#ifdef __CYGWIN__
#ifdef __CYGWIN__
...
...
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