This is the DocBook XML source for a reference page.
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"> <refentry> <refmeta> <refentrytitle>getpwnam</refentrytitle> <manvolnum>3</manvolnum> </refmeta> <refnamediv> <refname>getpwnam</refname> <refname>getpwuid</refname> <refpurpose>get password file entry</refpurpose> </refnamediv> <refsynopsisdiv><title>Synopsis</title> <synopsis> #include <pwd.h> #include <sys/types.h> struct passwd *getpwnam(const char * name); struct passwd *getpwuid(uid_t uid); </synopsis> </refsynopsisdiv> <refsect1><title>Description</title> <para>The <function>getpwnam</function> function returns a pointer to a structure containing the broken out fields of a line from <filename>/etc/passwd</filename> for the entry that matches the user name <parameter>name</parameter>. </para> <!--...--> </refsect1> <!--...--> </refentry>