feat(passwd): getpw*/getgr*/setpwent/endpwent family

This commit is contained in:
2026-09-05 23:25:24 -04:00
parent 9b576757cf
commit 523045b5ae
6 changed files with 1549 additions and 0 deletions
+15
View File
@@ -544,6 +544,21 @@ getsubopt(char **optionp, char *const *tokens, char **valuep);
#endif /* VLIBC_LEVEL_GE(2) */
#if VLIBC_LEVEL_GE(2)
/*
* Resolve path to an absolute, NUL-terminated canonical pathname with no
* symbolic links, "." or ".." components (todo 38). resolved_path may be
* NULL, in which case the canonical path is returned in a malloc'd
* buffer the caller must free; otherwise it must hold at least PATH_MAX
* bytes. Returns resolved_path (or the malloc'd buffer), or NULL with
* errno set. XSI.
*/
char *
realpath(const char *restrict path, char *restrict resolved_path);
#endif /* VLIBC_LEVEL_GE(2) */
#ifdef __cplusplus
}
#endif