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
1494931d
Commit
1494931d
authored
Mar 21, 2014
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove MinGW readdir/errno bug workaround fixed on 2003-10-10
parent
6f03927f
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
0 additions
and
66 deletions
+0
-66
contrib/pg_archivecleanup/pg_archivecleanup.c
contrib/pg_archivecleanup/pg_archivecleanup.c
+0
-6
contrib/pg_standby/pg_standby.c
contrib/pg_standby/pg_standby.c
+0
-6
src/backend/storage/file/fd.c
src/backend/storage/file/fd.c
+0
-6
src/bin/initdb/initdb.c
src/bin/initdb/initdb.c
+0
-6
src/bin/pg_basebackup/pg_receivexlog.c
src/bin/pg_basebackup/pg_receivexlog.c
+0
-6
src/bin/pg_dump/pg_backup_directory.c
src/bin/pg_dump/pg_backup_directory.c
+0
-6
src/bin/pg_resetxlog/pg_resetxlog.c
src/bin/pg_resetxlog/pg_resetxlog.c
+0
-18
src/common/pgfnames.c
src/common/pgfnames.c
+0
-6
src/port/pgcheckdir.c
src/port/pgcheckdir.c
+0
-6
No files found.
contrib/pg_archivecleanup/pg_archivecleanup.c
View file @
1494931d
...
@@ -165,12 +165,6 @@ CleanupPriorWALFiles(void)
...
@@ -165,12 +165,6 @@ CleanupPriorWALFiles(void)
}
}
}
}
#ifdef WIN32
/* Bug in old Mingw dirent.c; fixed in mingw-runtime-3.2, 2003-10-10 */
if
(
GetLastError
()
==
ERROR_NO_MORE_FILES
)
errno
=
0
;
#endif
if
(
errno
)
if
(
errno
)
fprintf
(
stderr
,
"%s: could not read archive location
\"
%s
\"
: %s
\n
"
,
fprintf
(
stderr
,
"%s: could not read archive location
\"
%s
\"
: %s
\n
"
,
progname
,
archiveLocation
,
strerror
(
errno
));
progname
,
archiveLocation
,
strerror
(
errno
));
...
...
contrib/pg_standby/pg_standby.c
View file @
1494931d
...
@@ -284,12 +284,6 @@ CustomizableCleanupPriorWALFiles(void)
...
@@ -284,12 +284,6 @@ CustomizableCleanupPriorWALFiles(void)
}
}
}
}
#ifdef WIN32
/* Bug in old Mingw dirent.c; fixed in mingw-runtime-3.2, 2003-10-10 */
if
(
GetLastError
()
==
ERROR_NO_MORE_FILES
)
errno
=
0
;
#endif
if
(
errno
)
if
(
errno
)
fprintf
(
stderr
,
"%s: could not read archive location
\"
%s
\"
: %s
\n
"
,
fprintf
(
stderr
,
"%s: could not read archive location
\"
%s
\"
: %s
\n
"
,
progname
,
archiveLocation
,
strerror
(
errno
));
progname
,
archiveLocation
,
strerror
(
errno
));
...
...
src/backend/storage/file/fd.c
View file @
1494931d
...
@@ -1956,12 +1956,6 @@ ReadDir(DIR *dir, const char *dirname)
...
@@ -1956,12 +1956,6 @@ ReadDir(DIR *dir, const char *dirname)
if
((
dent
=
readdir
(
dir
))
!=
NULL
)
if
((
dent
=
readdir
(
dir
))
!=
NULL
)
return
dent
;
return
dent
;
#ifdef WIN32
/* Bug in old Mingw dirent.c; fixed in mingw-runtime-3.2, 2003-10-10 */
if
(
GetLastError
()
==
ERROR_NO_MORE_FILES
)
errno
=
0
;
#endif
if
(
errno
)
if
(
errno
)
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode_for_file_access
(),
(
errcode_for_file_access
(),
...
...
src/bin/initdb/initdb.c
View file @
1494931d
...
@@ -564,12 +564,6 @@ walkdir(char *path, void (*action) (char *fname, bool isdir))
...
@@ -564,12 +564,6 @@ walkdir(char *path, void (*action) (char *fname, bool isdir))
(
*
action
)
(
subpath
,
false
);
(
*
action
)
(
subpath
,
false
);
}
}
#ifdef WIN32
/* Bug in old Mingw dirent.c; fixed in mingw-runtime-3.2, 2003-10-10 */
if
(
GetLastError
()
==
ERROR_NO_MORE_FILES
)
errno
=
0
;
#endif
if
(
errno
)
if
(
errno
)
{
{
fprintf
(
stderr
,
_
(
"%s: could not read directory
\"
%s
\"
: %s
\n
"
),
fprintf
(
stderr
,
_
(
"%s: could not read directory
\"
%s
\"
: %s
\n
"
),
...
...
src/bin/pg_basebackup/pg_receivexlog.c
View file @
1494931d
...
@@ -209,12 +209,6 @@ FindStreamingStart(uint32 *tli)
...
@@ -209,12 +209,6 @@ FindStreamingStart(uint32 *tli)
}
}
}
}
#ifdef WIN32
/* Bug in old Mingw dirent.c; fixed in mingw-runtime-3.2, 2003-10-10 */
if
(
GetLastError
()
==
ERROR_NO_MORE_FILES
)
errno
=
0
;
#endif
if
(
errno
)
if
(
errno
)
{
{
fprintf
(
stderr
,
_
(
"%s: could not read directory
\"
%s
\"
: %s
\n
"
),
fprintf
(
stderr
,
_
(
"%s: could not read directory
\"
%s
\"
: %s
\n
"
),
...
...
src/bin/pg_dump/pg_backup_directory.c
View file @
1494931d
...
@@ -186,12 +186,6 @@ InitArchiveFmt_Directory(ArchiveHandle *AH)
...
@@ -186,12 +186,6 @@ InitArchiveFmt_Directory(ArchiveHandle *AH)
}
}
}
}
#ifdef WIN32
/* Bug in old Mingw dirent.c; fixed in mingw-runtime-3.2, 2003-10-10 */
if
(
GetLastError
()
==
ERROR_NO_MORE_FILES
)
errno
=
0
;
#endif
if
(
errno
)
if
(
errno
)
exit_horribly
(
modulename
,
"could not read directory
\"
%s
\"
: %s
\n
"
,
exit_horribly
(
modulename
,
"could not read directory
\"
%s
\"
: %s
\n
"
,
ctx
->
directory
,
strerror
(
errno
));
ctx
->
directory
,
strerror
(
errno
));
...
...
src/bin/pg_resetxlog/pg_resetxlog.c
View file @
1494931d
...
@@ -845,12 +845,6 @@ FindEndOfXLOG(void)
...
@@ -845,12 +845,6 @@ FindEndOfXLOG(void)
}
}
}
}
#ifdef WIN32
/* Bug in old Mingw dirent.c; fixed in mingw-runtime-3.2, 2003-10-10 */
if
(
GetLastError
()
==
ERROR_NO_MORE_FILES
)
errno
=
0
;
#endif
if
(
errno
)
if
(
errno
)
{
{
fprintf
(
stderr
,
_
(
"%s: could not read directory
\"
%s
\"
: %s
\n
"
),
fprintf
(
stderr
,
_
(
"%s: could not read directory
\"
%s
\"
: %s
\n
"
),
...
@@ -908,12 +902,6 @@ KillExistingXLOG(void)
...
@@ -908,12 +902,6 @@ KillExistingXLOG(void)
}
}
}
}
#ifdef WIN32
/* Bug in old Mingw dirent.c; fixed in mingw-runtime-3.2, 2003-10-10 */
if
(
GetLastError
()
==
ERROR_NO_MORE_FILES
)
errno
=
0
;
#endif
if
(
errno
)
if
(
errno
)
{
{
fprintf
(
stderr
,
_
(
"%s: could not read directory
\"
%s
\"
: %s
\n
"
),
fprintf
(
stderr
,
_
(
"%s: could not read directory
\"
%s
\"
: %s
\n
"
),
...
@@ -966,12 +954,6 @@ KillExistingArchiveStatus(void)
...
@@ -966,12 +954,6 @@ KillExistingArchiveStatus(void)
}
}
}
}
#ifdef WIN32
/* Bug in old Mingw dirent.c; fixed in mingw-runtime-3.2, 2003-10-10 */
if
(
GetLastError
()
==
ERROR_NO_MORE_FILES
)
errno
=
0
;
#endif
if
(
errno
)
if
(
errno
)
{
{
fprintf
(
stderr
,
_
(
"%s: could not read directory
\"
%s
\"
: %s
\n
"
),
fprintf
(
stderr
,
_
(
"%s: could not read directory
\"
%s
\"
: %s
\n
"
),
...
...
src/common/pgfnames.c
View file @
1494931d
...
@@ -64,12 +64,6 @@ pgfnames(const char *path)
...
@@ -64,12 +64,6 @@ pgfnames(const char *path)
}
}
}
}
#ifdef WIN32
/* Bug in old Mingw dirent.c; fixed in mingw-runtime-3.2, 2003-10-10 */
if
(
GetLastError
()
==
ERROR_NO_MORE_FILES
)
errno
=
0
;
#endif
if
(
errno
)
if
(
errno
)
{
{
#ifndef FRONTEND
#ifndef FRONTEND
...
...
src/port/pgcheckdir.c
View file @
1494931d
...
@@ -64,12 +64,6 @@ pg_check_dir(const char *dir)
...
@@ -64,12 +64,6 @@ pg_check_dir(const char *dir)
}
}
}
}
#ifdef WIN32
/* Bug in old Mingw dirent.c; fixed in mingw-runtime-3.2, 2003-10-10 */
if
(
GetLastError
()
==
ERROR_NO_MORE_FILES
)
errno
=
0
;
#endif
if
(
errno
||
closedir
(
chkdir
))
if
(
errno
||
closedir
(
chkdir
))
result
=
-
1
;
/* some kind of I/O error? */
result
=
-
1
;
/* some kind of I/O error? */
...
...
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