glib-unix: Add g_unix_get_passwd_entry() function

This is a convenience wrapper around getpwnam_r() which handles all the
memory allocation faff.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Helps: #1687
This commit is contained in:
Philip Withnall
2019-06-11 13:52:48 +01:00
parent ae49ff0903
commit 94a800fb9d
4 changed files with 165 additions and 0 deletions

View File

@@ -2455,6 +2455,9 @@ g_unix_fd_add
g_unix_fd_add_full
g_unix_fd_source_new
<SUBSECTION>
g_unix_get_passwd_entry
<SUBSECTION Private>
g_unix_error_quark
</SECTION>