diff options
| author | Bruce Momjian | 2014-01-10 23:03:28 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2014-01-10 23:03:28 +0000 |
| commit | 111022eac64579cc12d20e33146ce01717562b29 (patch) | |
| tree | b09e0eef58f48860ca2e97a10ca6f9260f4fb706 /src/include/common | |
| parent | 423e1211a86df0d0dd8914223137edbfd4d52400 (diff) | |
Move username lookup functions from /port to /common
Per suggestion from Peter E and Alvaro
Diffstat (limited to 'src/include/common')
| -rw-r--r-- | src/include/common/username.h | 15 |
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 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 */ |
