summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorThomas Munro2023-07-09 06:12:28 +0000
committerThomas Munro2023-07-09 06:17:09 +0000
commit89333db963af20988fc407463ea626b1c41404e8 (patch)
tree7ace29b3d93e982380b42cac142f6ad7f4f23f1b /src/include
parentc23e7ea4d6a44cd0f6948d362a8477f14a3f849c (diff)
Rename port/thread.c to port/user.c.
Historically this module dealt with thread-safety of system interfaces, but now all that's left is wrapper code for user name and home directory lookup. Arguably the Windows variants of this logic could be moved in here too, to justify its presence under port. For now, just tidy up some obsolete references to multi-threading, and give the file a meaningful name. Reviewed-by: Andres Freund <[email protected]> Reviewed-by: Peter Eisentraut <[email protected]> Reviewed-by: Heikki Linnakangas <[email protected]> Discussion: https://postgr.es/m/CA%2BhUKGLtmexrpMtxBRLCVePqV_dtWG-ZsEbyPrYc%2BNBB2TkNsw%40mail.gmail.com
Diffstat (limited to 'src/include')
-rw-r--r--src/include/port.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/port.h b/src/include/port.h
index a88d403483e..5979139ebc6 100644
--- a/src/include/port.h
+++ b/src/include/port.h
@@ -432,7 +432,7 @@ extern size_t strlcpy(char *dst, const char *src, size_t siz);
extern size_t strnlen(const char *str, size_t maxlen);
#endif
-/* thread.c */
+/* port/user.c */
#ifndef WIN32
extern bool pg_get_user_name(uid_t user_id, char *buffer, size_t buflen);
extern bool pg_get_user_home_dir(uid_t user_id, char *buffer, size_t buflen);