static int internal_flush(void);
#ifdef HAVE_UNIX_SOCKETS
-static int Lock_AF_UNIX(char *unixSocketDir, char *unixSocketPath);
-static int Setup_AF_UNIX(char *sock_path);
+static int Lock_AF_UNIX(const char *unixSocketDir, const char *unixSocketPath);
+static int Setup_AF_UNIX(const char *sock_path);
#endif /* HAVE_UNIX_SOCKETS */
static const PQcommMethods PqCommSocketMethods = {
*/
int
-StreamServerPort(int family, char *hostName, unsigned short portNumber,
- char *unixSocketDir,
+StreamServerPort(int family, const char *hostName, unsigned short portNumber,
+ const char *unixSocketDir,
pgsocket ListenSocket[], int MaxListen)
{
pgsocket fd;
* Lock_AF_UNIX -- configure unix socket file path
*/
static int
-Lock_AF_UNIX(char *unixSocketDir, char *unixSocketPath)
+Lock_AF_UNIX(const char *unixSocketDir, const char *unixSocketPath)
{
/*
* Grab an interlock file associated with the socket file.
* Setup_AF_UNIX -- configure unix socket permissions
*/
static int
-Setup_AF_UNIX(char *sock_path)
+Setup_AF_UNIX(const char *sock_path)
{
/*
* Fix socket ownership/permission if requested. Note we must do this
*/
extern WaitEventSet *FeBeWaitSet;
-extern int StreamServerPort(int family, char *hostName,
- unsigned short portNumber, char *unixSocketDir,
+extern int StreamServerPort(int family, const char *hostName,
+ unsigned short portNumber, const char *unixSocketDir,
pgsocket ListenSocket[], int MaxListen);
extern int StreamConnection(pgsocket server_fd, Port *port);
extern void StreamClose(pgsocket sock);