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
25c161eb
Commit
25c161eb
authored
Jul 23, 2004
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move Win32 defines from port.h to win32.h.
parent
acd907bf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
12 deletions
+10
-12
src/include/port.h
src/include/port.h
+1
-11
src/include/port/win32.h
src/include/port/win32.h
+9
-1
No files found.
src/include/port.h
View file @
25c161eb
...
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/include/port.h,v 1.4
4 2004/07/21 03:07:40
momjian Exp $
* $PostgreSQL: pgsql/src/include/port.h,v 1.4
5 2004/07/23 01:58:36
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -246,13 +246,3 @@ extern int pqGethostbyname(const char *name,
struct
hostent
**
result
,
int
*
herrno
);
/* FIXME: [win32] Placeholder win32 replacements, to allow continued development */
#ifdef WIN32
#define fsync(a) _commit(a)
#define sync() _flushall()
#define ftruncate(a,b) chsize(a,b)
#define WEXITSTATUS(w) (((w) >> 8) & 0xff)
#define WIFEXITED(w) (((w) & 0xff) == 0)
#define WIFSIGNALED(w) (((w) & 0x7f) > 0 && (((w) & 0x7f) < 0x7f))
#define WTERMSIG(w) ((w) & 0x7f)
#endif
src/include/port/win32.h
View file @
25c161eb
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.2
6 2004/06/24 21:03:33 tgl
Exp $ */
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.2
7 2004/07/23 01:58:36 momjian
Exp $ */
/* undefine and redefine after #include */
#undef mkdir
...
...
@@ -13,6 +13,9 @@
#define mkdir(a,b) mkdir(a)
#define fsync(a) _commit(a)
#define ftruncate(a,b) chsize(a,b)
#define USES_WINSOCK
/* defines for dynamic linking on Win32 platform */
...
...
@@ -145,6 +148,11 @@ extern int pgwin32_is_service(void);
#endif
#define WEXITSTATUS(w) (((w) >> 8) & 0xff)
#define WIFEXITED(w) (((w) & 0xff) == 0)
#define WIFSIGNALED(w) (((w) & 0x7f) > 0 && (((w) & 0x7f) < 0x7f))
#define WTERMSIG(w) ((w) & 0x7f)
/* Some extra signals */
#define SIGHUP 1
#define SIGQUIT 3
...
...
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