6
6
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
7
7
* Portions Copyright (c) 1994, Regents of the University of California
8
8
*
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 $
10
10
*
11
11
*-------------------------------------------------------------------------
12
12
*/
13
13
14
- #include <pwd.h>
15
- #include <netdb.h>
16
-
17
14
#include <ctype.h>
15
+ #include <netdb.h>
16
+ #include <pwd.h>
18
17
19
18
/* non-blocking */
20
19
extern bool pg_set_noblock (int sock );
21
20
extern bool pg_set_block (int sock );
22
21
23
- /* Portable path handling for Unix/Win32 */
22
+ /* Portable path handling for Unix/Win32 (in path.c) */
24
23
25
24
extern char * first_dir_separator (const char * filename );
26
25
extern char * last_dir_separator (const char * filename );
@@ -42,15 +41,13 @@ extern void get_pkglib_path(const char *my_exec_path, char *ret_path);
42
41
extern void get_locale_path (const char * my_exec_path , char * ret_path );
43
42
extern void get_doc_path (const char * my_exec_path , char * ret_path );
44
43
extern void get_man_path (const char * my_exec_path , char * ret_path );
45
- extern void set_pglocale_pgservice (const char * argv0 , const char * app );
46
44
extern bool get_home_path (char * ret_path );
47
45
extern void get_parent_directory (char * path );
48
46
49
47
/*
50
48
* is_absolute_path
51
49
*
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.
54
51
*/
55
52
#ifndef WIN32
56
53
#define is_absolute_path (filename ) \
@@ -67,8 +64,10 @@ extern void get_parent_directory(char *path);
67
64
)
68
65
#endif
69
66
67
+ /* Portable locale initialization (in exec.c) */
68
+ extern void set_pglocale_pgservice (const char * argv0 , const char * app );
70
69
71
- /* Portable way to find binaries */
70
+ /* Portable way to find binaries (in exec.c) */
72
71
extern int find_my_exec (const char * argv0 , char * retpath );
73
72
extern int find_other_exec (const char * argv0 , const char * target ,
74
73
const char * versionstr , char * retpath );
0 commit comments