summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorBruce Momjian2014-01-10 23:03:28 +0000
committerBruce Momjian2014-01-10 23:03:28 +0000
commit111022eac64579cc12d20e33146ce01717562b29 (patch)
treeb09e0eef58f48860ca2e97a10ca6f9260f4fb706 /src/include
parent423e1211a86df0d0dd8914223137edbfd4d52400 (diff)
Move username lookup functions from /port to /common
Per suggestion from Peter E and Alvaro
Diffstat (limited to 'src/include')
-rw-r--r--src/include/common/username.h15
-rw-r--r--src/include/port.h4
2 files changed, 15 insertions, 4 deletions
diff --git a/src/include/common/username.h b/src/include/common/username.h
new file mode 100644
index 00000000000..115d1ed450b
--- /dev/null
+++ b/src/include/common/username.h
@@ -0,0 +1,15 @@
+/*
+ * username.h
+ * lookup effective username
+ *
+ * Copyright (c) 2003-2014, PostgreSQL Global Development Group
+ *
+ * src/include/common/username.h
+ */
+#ifndef USERNAME_H
+#define USERNAME_H
+
+extern const char *get_user_name(char **errstr);
+extern const char *get_user_name_or_exit(const char *progname);
+
+#endif /* USERNAME_H */
diff --git a/src/include/port.h b/src/include/port.h
index bc275c0c1c2..f50fbecf010 100644
--- a/src/include/port.h
+++ b/src/include/port.h
@@ -473,10 +473,6 @@ extern pqsigfunc pqsignal(int signo, pqsigfunc func);
/* port/quotes.c */
extern char *escape_single_quotes_ascii(const char *src);
-/* port/username.c */
-extern const char *get_user_name(char **errstr);
-extern const char *get_user_name_or_exit(const char *progname);
-
/* port/wait_error.c */
extern char *wait_result_to_str(int exit_status);