Name
ap_ gname2id — convert a group name to a group ID (GID)
Synopsis
gid_t ap_ gname2id(const char *name)
If name
starts with a
“#,” returns the number following
it; otherwise, looks it up using getgrnam()
and
returns the GID. Under Win32, this function always returns
1
.
Get Apache: The Definitive Guide, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.