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
dfc6649c
Commit
dfc6649c
authored
Apr 22, 2003
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Win32 versions of unlink and rename --- loop until success.
parent
5ed27e35
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
6 deletions
+27
-6
configure
configure
+7
-2
configure.in
configure.in
+8
-3
src/include/c.h
src/include/c.h
+12
-1
No files found.
configure
View file @
dfc6649c
...
...
@@ -11145,8 +11145,13 @@ ac_cv_func_fseeko=yes
esac
# Solaris has a very slow qsort in certain cases, so we replace it.
case
$host_os
in
solaris
*
)
LIBOBJS
=
"
$LIBOBJS
qsort.
$ac_objext
"
;;
case
$host_os
in
solaris
*
)
LIBOBJS
=
"
$LIBOBJS
qsort.
$ac_objext
"
;;
esac
# Win32 can't to rename or unlink on an open file
case
$host_os
in
win32
*
)
LIBOBJS
=
"
$LIBOBJS
dirmod.
$ac_objext
"
;;
esac
# On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
...
...
configure.in
View file @
dfc6649c
dnl Process this file with autoconf to produce a configure script.
dnl $Header: /cvsroot/pgsql/configure.in,v 1.24
2 2003/04/06 22:45:22 petere
Exp $
dnl $Header: /cvsroot/pgsql/configure.in,v 1.24
3 2003/04/22 02:18:09 momjian
Exp $
dnl
dnl Developers, please strive to achieve this order:
dnl
...
...
@@ -856,8 +856,13 @@ ac_cv_func_fseeko=yes
esac
# Solaris has a very slow qsort in certain cases, so we replace it.
case $host_os in
solaris*) AC_LIBOBJ(qsort) ;;
case $host_os in solaris*)
AC_LIBOBJ(qsort) ;;
esac
# Win32 can't to rename or unlink on an open file
case $host_os in win32*)
AC_LIBOBJ(dirmod) ;;
esac
# On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
...
...
src/include/c.h
View file @
dfc6649c
...
...
@@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: c.h,v 1.13
8 2003/04/18 01:03:42
momjian Exp $
* $Id: c.h,v 1.13
9 2003/04/22 02:18:09
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -711,6 +711,17 @@ int fseeko(FILE *stream, off_t offset, int whence);
off_t
ftello
(
FILE
*
stream
);
#endif
/*
* Win32 doesn't have reliable rename/unlink during concurrent access
*/
#ifdef WIN32
int
pgrename
(
const
char
*
from
,
const
char
*
to
);
int
pgunlink
(
const
char
*
path
);
#define rename(path) pgrename(path)
#define unlink(from, to) pgunlink(from, to)
#endif
/* These are for things that are one way on Unix and another on NT */
#define NULL_DEV "/dev/null"
...
...
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