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
6a9627e7
Commit
6a9627e7
authored
Mar 02, 1998
by
Marc G. Fournier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Last minute clean up for SunOS...
From: t-ishii@sra.co.jp
parent
86d13439
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
9 deletions
+12
-9
src/backend/libpq/pqcomm.c
src/backend/libpq/pqcomm.c
+3
-4
src/backend/storage/ipc/ipc.c
src/backend/storage/ipc/ipc.c
+3
-1
src/include/libpq/libpq.h
src/include/libpq/libpq.h
+2
-1
src/include/libpq/pqcomm.h
src/include/libpq/pqcomm.h
+4
-3
No files found.
src/backend/libpq/pqcomm.c
View file @
6a9627e7
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.
39 1998/02/26 04:31:53 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.
40 1998/03/02 05:41:53 scrappy
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -564,8 +564,8 @@ static char sock_path[MAXPGPATH + 1] = "";
* Shutdown routine for backend connection
* If a Unix socket is used for communication, explicitly close it.
*/
static
void
do_u
nlink
()
void
StreamDoU
nlink
()
{
if
(
sock_path
[
0
])
unlink
(
sock_path
);
...
...
@@ -645,7 +645,6 @@ StreamServerPort(char *hostName, short portName, int *fdP)
if
(
family
==
AF_UNIX
)
{
chmod
(
sock_path
,
0777
);
atexit
(
do_unlink
);
}
return
(
STATUS_OK
);
}
...
...
src/backend/storage/ipc/ipc.c
View file @
6a9627e7
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.
19 1998/02/26 04:35:38 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.
20 1998/03/02 05:41:55 scrappy
Exp $
*
* NOTES
*
...
...
@@ -38,6 +38,7 @@
#include <sys/sem.h>
#include <sys/shm.h>
#include "utils/memutils.h"
#include "libpq/libpq.h"
#if defined(sparc_solaris)
#include <string.h>
...
...
@@ -136,6 +137,7 @@ exitpg(int code)
for
(
i
=
onexit_index
-
1
;
i
>=
0
;
--
i
)
(
*
onexit_list
[
i
].
function
)
(
code
,
onexit_list
[
i
].
arg
);
StreamDoUnlink
();
exit
(
code
);
}
...
...
src/include/libpq/libpq.h
View file @
6a9627e7
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: libpq.h,v 1.1
2 1998/02/26 04:41:51 momjian
Exp $
* $Id: libpq.h,v 1.1
3 1998/03/02 05:42:06 scrappy
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -282,5 +282,6 @@ extern void pq_async_notify(void);
extern
int
StreamServerPort
(
char
*
hostName
,
short
portName
,
int
*
fdP
);
extern
int
StreamConnection
(
int
server_fd
,
Port
*
port
);
extern
void
StreamClose
(
int
sock
);
extern
void
StreamDoUnlink
(
void
);
#endif
/* LIBPQ_H */
src/include/libpq/pqcomm.h
View file @
6a9627e7
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: pqcomm.h,v 1.2
3 1998/02/26 04:41:53 momjian
Exp $
* $Id: pqcomm.h,v 1.2
4 1998/03/02 05:42:15 scrappy
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -35,8 +35,9 @@ typedef union SockAddr
/* Configure the UNIX socket address for the well known port. */
#define UNIXSOCK_PATH(sun,port) \
(sprintf((sun).sun_path, "/tmp/.s.PGSQL.%d", (port)) + \
offsetof(struct sockaddr_un, sun_path))
(sprintf((sun).sun_path, "/tmp/.s.PGSQL.%d", (port)), \
strlen((sun).sun_path)+ offsetof(struct sockaddr_un, sun_path))
/*
* We do this because sun_len is in BSD's struct, while others don't.
* We never actually set BSD's sun_len, and I can't think of a
...
...
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