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
a4566a7a
Commit
a4566a7a
authored
Oct 05, 2000
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up gcc warning, fix inappropriate choice of configuration symbol.
parent
32616129
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
src/backend/libpq/pqcomm.c
src/backend/libpq/pqcomm.c
+6
-12
No files found.
src/backend/libpq/pqcomm.c
View file @
a4566a7a
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $Id: pqcomm.c,v 1.10
4 2000/10/03 03:11:14 momjian
Exp $
* $Id: pqcomm.c,v 1.10
5 2000/10/05 20:18:33 tgl
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -172,12 +172,10 @@ StreamServerPort(int family, unsigned short portName, int *fdP)
...
@@ -172,12 +172,10 @@ StreamServerPort(int family, unsigned short portName, int *fdP)
SockAddr
saddr
;
SockAddr
saddr
;
int
fd
,
int
fd
,
err
;
err
;
size_t
len
;
size_t
len
=
0
;
int
one
=
1
;
int
one
=
1
;
#ifdef HAVE_FCNTL_SETLK
#ifdef HAVE_FCNTL_SETLK
int
lock_fd
;
int
lock_fd
;
#endif
#endif
Assert
(
family
==
AF_INET
||
family
==
AF_UNIX
);
Assert
(
family
==
AF_INET
||
family
==
AF_UNIX
);
...
@@ -209,11 +207,7 @@ StreamServerPort(int family, unsigned short portName, int *fdP)
...
@@ -209,11 +207,7 @@ StreamServerPort(int family, unsigned short portName, int *fdP)
MemSet
((
char
*
)
&
saddr
,
0
,
sizeof
(
saddr
));
MemSet
((
char
*
)
&
saddr
,
0
,
sizeof
(
saddr
));
saddr
.
sa
.
sa_family
=
family
;
saddr
.
sa
.
sa_family
=
family
;
/* I know this isn't a good way of testing, but until we have a
#ifdef HAVE_UNIX_SOCKETS
* define for this it'll do!
* we have Unix sockets...
*/
#ifdef HAVE_SYS_UN_H
if
(
family
==
AF_UNIX
)
if
(
family
==
AF_UNIX
)
{
{
len
=
UNIXSOCK_PATH
(
saddr
.
un
,
portName
);
len
=
UNIXSOCK_PATH
(
saddr
.
un
,
portName
);
...
@@ -236,7 +230,7 @@ StreamServerPort(int family, unsigned short portName, int *fdP)
...
@@ -236,7 +230,7 @@ StreamServerPort(int family, unsigned short portName, int *fdP)
}
}
#endif
/* HAVE_FCNTL_SETLK */
#endif
/* HAVE_FCNTL_SETLK */
}
}
#endif
/* HAVE_
SYS_UN_H
*/
#endif
/* HAVE_
UNIX_SOCKETS
*/
if
(
family
==
AF_INET
)
if
(
family
==
AF_INET
)
{
{
...
@@ -266,7 +260,7 @@ StreamServerPort(int family, unsigned short portName, int *fdP)
...
@@ -266,7 +260,7 @@ StreamServerPort(int family, unsigned short portName, int *fdP)
return
STATUS_ERROR
;
return
STATUS_ERROR
;
}
}
#ifdef HAVE_
SYS_UN_H
/* yeah I know... */
#ifdef HAVE_
UNIX_SOCKETS
if
(
family
==
AF_UNIX
)
if
(
family
==
AF_UNIX
)
{
{
on_proc_exit
(
StreamDoUnlink
,
0
);
on_proc_exit
(
StreamDoUnlink
,
0
);
...
@@ -288,7 +282,7 @@ StreamServerPort(int family, unsigned short portName, int *fdP)
...
@@ -288,7 +282,7 @@ StreamServerPort(int family, unsigned short portName, int *fdP)
}
}
#endif
/* HAVE_FCNTL_SETLK */
#endif
/* HAVE_FCNTL_SETLK */
}
}
#endif
/* HAVE_
SYS_UN_H
*/
#endif
/* HAVE_
UNIX_SOCKETS
*/
listen
(
fd
,
SOMAXCONN
);
listen
(
fd
,
SOMAXCONN
);
...
...
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