66 * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
77 * Portions Copyright (c) 1994, Regents of the University of California
88 *
9- * $PostgreSQL: pgsql/src/include/port.h,v 1.97 2006/08/30 18:06:27 tgl Exp $
9+ * $PostgreSQL: pgsql/src/include/port.h,v 1.98 2006/09/11 20:10:30 tgl Exp $
1010 *
1111 *-------------------------------------------------------------------------
1212 */
1313
14- #include <pwd.h>
15- #include <netdb.h>
16-
1714#include <ctype.h>
15+ #include <netdb.h>
16+ #include <pwd.h>
1817
1918/* non-blocking */
2019extern bool pg_set_noblock (int sock );
2120extern bool pg_set_block (int sock );
2221
23- /* Portable path handling for Unix/Win32 */
22+ /* Portable path handling for Unix/Win32(in path.c) */
2423
2524extern char * first_dir_separator (const char * filename );
2625extern char * last_dir_separator (const char * filename );
@@ -42,15 +41,13 @@ extern void get_pkglib_path(const char *my_exec_path, char *ret_path);
4241extern void get_locale_path (const char * my_exec_path ,char * ret_path );
4342extern void get_doc_path (const char * my_exec_path ,char * ret_path );
4443extern void get_man_path (const char * my_exec_path ,char * ret_path );
45- extern void set_pglocale_pgservice (const char * argv0 ,const char * app );
4644extern bool get_home_path (char * ret_path );
4745extern void get_parent_directory (char * path );
4846
4947/*
5048 *is_absolute_path
5149 *
52- *By making this a macro we prevent the need for libpq to include
53- *path.c which uses exec.c.
50+ *By making this a macro we avoid needing to include path.c in libpq.
5451 */
5552#ifndef WIN32
5653#define is_absolute_path (filename ) \
@@ -67,8 +64,10 @@ extern void get_parent_directory(char *path);
6764)
6865#endif
6966
67+ /* Portable locale initialization (in exec.c) */
68+ extern void set_pglocale_pgservice (const char * argv0 ,const char * app );
7069
71- /* Portable way to find binaries */
70+ /* Portable way to find binaries(in exec.c) */
7271extern int find_my_exec (const char * argv0 ,char * retpath );
7372extern int find_other_exec (const char * argv0 ,const char * target ,
7473const char * versionstr ,char * retpath );