aboutsummaryrefslogtreecommitdiff
path: root/src/include/port.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/port.h')
-rw-r--r--src/include/port.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/include/port.h b/src/include/port.h
index 783d41cc0ed..16f733d67ca 100644
--- a/src/include/port.h
+++ b/src/include/port.h
@@ -6,11 +6,15 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: port.h,v 1.6 2003/06/12 08:15:29 momjian Exp $
+ * $Id: port.h,v 1.7 2003/06/14 14:35:42 momjian Exp $
*
*-------------------------------------------------------------------------
*/
+/* for thread.c */
+#include <pwd.h>
+#include <netdb.h>
+
/* Portable path handling for Unix/Win32 */
bool is_absolute_path(const char *filename);
char *first_path_separator(const char *filename);
@@ -98,3 +102,15 @@ extern long random(void);
#ifndef HAVE_SRANDOM
extern void srandom(unsigned int seed);
#endif
+
+/* thread.h */
+extern char *pqStrerror(int errnum, char *strerrbuf, size_t buflen);
+
+extern int pqGetpwuid(uid_t uid, struct passwd *resultbuf, char *buffer,
+ size_t buflen, struct passwd **result);
+
+extern int pqGethostbyname(const char *name,
+ struct hostent *resbuf,
+ char *buf, size_t buflen,
+ struct hostent **result,
+ int *herrno);