summaryrefslogtreecommitdiffstats
path: root/src/include/common/username.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/include/common/username.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/include/common/username.h b/src/include/common/username.h
new file mode 100644
index 0000000..b17f560
--- /dev/null
+++ b/src/include/common/username.h
@@ -0,0 +1,15 @@
+/*
+ * username.h
+ * lookup effective username
+ *
+ * Copyright (c) 2003-2022, 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 */