Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
c0285682
Commit
c0285682
authored
28 years ago
by
Marc G. Fournier
Browse files
Options
Downloads
Patches
Plain Diff
first pass...move some of the "Port" dependencies to src/include/config.h
parent
672aec6c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/backend/postmaster/postmaster.c
+42
-39
42 additions, 39 deletions
src/backend/postmaster/postmaster.c
with
42 additions
and
39 deletions
src/backend/postmaster/postmaster.c
+
42
−
39
View file @
c0285682
...
...
@@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.
5
1996/08/
14
0
4
:5
1:34
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.
6
1996/08/
27
0
6
:5
5:28
scrappy Exp $
*
* NOTES
*
...
...
@@ -33,17 +33,22 @@
*-------------------------------------------------------------------------
*/
#include
"libpq/pqsignal.h"
/* substitute for <signal.h> */
#include
"config.h"
#include
<string.h>
#include
<stdlib.h>
#ifndef WIN32
#if !defined(NO_UNISTD_H)
# include <unistd.h>
#endif
/* WIN32 */
#endif
/* !NO_UNISTD_H */
#include
<ctype.h>
#include
<sys/types.h>
/* for fd_set stuff */
#include
<sys/stat.h>
/* for umask */
#include
<sys/time.h>
#include
<sys/param.h>
/* for MAXHOSTNAMELEN on most */
#ifdef WIN32
#if defined(USES_WINSOCK)
# include <winsock.h>
# include <limits.h>
# define MAXINT INT_MAX
...
...
@@ -53,23 +58,22 @@
# include <arpa/nameser.h>
# define MAXHOSTNAMELEN MAXDNAME
# endif
# if defined(PORTNAME_BSD44_derived) || \
defined(PORTNAME_bsdi) || \
defined(PORTNAME_bsdi_2_1)
# if defined(USE_LIMITS_H)
# include <machine/limits.h>
# define MAXINT INT_MAX
# else
# include <values.h>
# endif
/* !
PORTNAME_BSD44_derived
*/
# endif
/* !
USE_LIMITS_H
*/
# include <sys/wait.h>
#endif
/* WIN32 */
#endif
/* USES_WINSOCK */
#include
<errno.h>
#include
<fcntl.h>
#include
<stdio.h>
#if defined(
PORTNAME_aix
)
#if defined(
NEED_SYS_SELECT_H
)
# include <sys/select.h>
#endif
/*
PORTNAME_aix
*/
#endif
/*
NEED_SYS_SELECT_H
*/
#include
"storage/ipc.h"
#include
"libpq/libpq.h"
...
...
@@ -81,11 +85,10 @@
#include
"storage/proc.h"
#include
"utils/elog.h"
#ifdef
DBX_VERSION
#if
def
ined(
DBX_VERSION
)
# define FORK() (0)
#else
#if defined(PORTNAME_irix5)
/* IRIX 5 does not have vfork() */
# if defined(NO_VFORK)
# define FORK() fork()
# else
# define FORK() vfork()
...
...
@@ -140,7 +143,7 @@ static int SendStop = 0;
static
int
MultiplexedBackends
=
0
;
static
int
MultiplexedBackendPort
;
#ifdef
HBA
#if
def
ined(
HBA
)
static
int
useHostBasedAuth
=
1
;
#else
static
int
useHostBasedAuth
=
0
;
...
...
@@ -153,7 +156,7 @@ static void pmdaemonize(void);
static
int
ConnStartup
(
Port
*
port
);
static
int
ConnCreate
(
int
serverFd
,
int
*
newFdP
);
static
void
reset_shared
(
short
port
);
#if defined(
PORTNAME_
linux)
#if defined(linux)
static
void
pmdie
(
int
);
static
void
reaper
(
int
);
static
void
dumpstatus
(
int
);
...
...
@@ -184,7 +187,7 @@ PostmasterMain(int argc, char *argv[])
int
status
;
int
silentflag
=
0
;
char
hostbuf
[
MAXHOSTNAMELEN
];
#ifdef
WIN32
#if
def
ined(
WIN32
)
WSADATA
WSAData
;
#endif
/* WIN32 */
...
...
@@ -313,7 +316,7 @@ PostmasterMain(int argc, char *argv[])
}
#ifdef
WIN32
#if
def
ined(
WIN32
)
if
((
status
=
WSAStartup
(
MAKEWORD
(
1
,
1
),
&
WSAData
))
==
0
)
(
void
)
printf
(
"%s
\n
Initializing WinSock: %s
\n
"
,
WSAData
.
szDescription
,
WSAData
.
szSystemStatus
);
else
...
...
@@ -951,7 +954,7 @@ DoExec(StartupInfo *packet, int portFd)
char
dbbuf
[
ARGV_SIZE
+
1
];
int
ac
=
0
;
int
i
;
#ifdef
WIN32
#if
def
ined(
WIN32
)
char
win32_args
[(
2
*
ARGV_SIZE
)
+
1
];
PROCESS_INFORMATION
piProcInfo
;
STARTUPINFO
siStartInfo
;
...
...
@@ -984,7 +987,7 @@ DoExec(StartupInfo *packet, int portFd)
if
(
packet
->
tty
[
0
])
{
(
void
)
strncpy
(
ttybuf
,
packet
->
tty
,
ARGV_SIZE
);
av
[
ac
++
]
=
"-o"
;
#ifdef
WIN32
#if
def
ined(
WIN32
)
/* BIG HACK - The front end is passing "/dev/null" here which
** causes new backends to fail. So, as a very special case,
** use a real NT filename.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment