Name

ap_uname2id — convert a username to a user ID (UID)

Synopsis

uid_t ap_uname2id(const char *name)

If name starts with a “#,” returns the number following it; otherwise, looks it up using getpwnam() and returns the UID. 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.