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
35736874
Commit
35736874
authored
Nov 30, 2007
by
Magnus Hagander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use _dosmaperr() to deal with errors opening files in pgwin32_open().
Per complaint from Alvaro and subsequent discussion.
parent
c2d30556
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
17 deletions
+2
-17
src/port/open.c
src/port/open.c
+2
-17
No files found.
src/port/open.c
View file @
35736874
...
...
@@ -6,7 +6,7 @@
*
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/port/open.c,v 1.2
1 2007/11/15 21:14:46 momjian
Exp $
* $PostgreSQL: pgsql/src/port/open.c,v 1.2
2 2007/11/30 11:16:43 mha
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -88,22 +88,7 @@ pgwin32_open(const char *fileName, int fileFlags,...)
((
fileFlags
&
O_DSYNC
)
?
FILE_FLAG_WRITE_THROUGH
:
0
),
NULL
))
==
INVALID_HANDLE_VALUE
)
{
switch
(
GetLastError
())
{
/* EMFILE, ENFILE should not occur from CreateFile. */
case
ERROR_PATH_NOT_FOUND
:
case
ERROR_FILE_NOT_FOUND
:
errno
=
ENOENT
;
break
;
case
ERROR_FILE_EXISTS
:
errno
=
EEXIST
;
break
;
case
ERROR_ACCESS_DENIED
:
errno
=
EACCES
;
break
;
default:
errno
=
EINVAL
;
}
_dosmaperr
(
GetLastError
());
return
-
1
;
}
...
...
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