diff options
author | Marçal Comajoan Cara <mcomajoancara@gmail.com> | 2018-11-21 19:19:12 +0100 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2018-11-21 12:43:23 -0600 |
commit | 96064e839ac1fdb72a59ab3f727d15369aa3245d (patch) | |
tree | f3965df92e37b610fe317908367d1136ed1ba045 /posix-users | |
parent | 9980ff21a3cb1a5c396566e0c3151b1be4c442cb (diff) |
posix-users/system_database.rst: Add Prototypes
Add Prototypes to System Database APIs in POSIX Users Guide.
This work was part of GCI 2018.
Diffstat (limited to 'posix-users')
-rw-r--r-- | posix-users/system_database.rst | 40 |
1 files changed, 36 insertions, 4 deletions
diff --git a/posix-users/system_database.rst b/posix-users/system_database.rst index 871cca8..eed5611 100644 --- a/posix-users/system_database.rst +++ b/posix-users/system_database.rst @@ -58,7 +58,9 @@ getgrgid - Get Group File Entry for ID .. code-block:: c - int getgrgid( + #include <grp.h> + struct group *getgrgid( + gid_t gid ); **STATUS CODES:** @@ -84,7 +86,13 @@ getgrgid_r - Reentrant Get Group File Entry .. code-block:: c + #include <grp.h> int getgrgid_r( + gid_t gid, + struct group *grp, + char *buffer, + size_t bufsize, + struct group **result ); **STATUS CODES:** @@ -110,7 +118,9 @@ getgrnam - Get Group File Entry for Name .. code-block:: c - int getgrnam( + #include <grp.h> + struct group *getgrnam( + const char *name ); **STATUS CODES:** @@ -136,7 +146,13 @@ getgrnam_r - Reentrant Get Group File Entry for Name .. code-block:: c + #include <grp.h> int getgrnam_r( + const char *name, + struct group *grp, + char *buffer, + size_t bufsize, + struct group **result ); **STATUS CODES:** @@ -162,7 +178,9 @@ getpwuid - Get Password File Entry for UID .. code-block:: c - int getpwuid( + #include <pwd.h> + struct passwd *getpwuid( + uid_t uid ); **STATUS CODES:** @@ -188,7 +206,13 @@ getpwuid_r - Reentrant Get Password File Entry for UID .. code-block:: c + #include <pwd.h> int getpwuid_r( + uid_t uid, + struct passwd *pwd, + char *buffer, + size_t bufsize, + struct passwd **result ); **STATUS CODES:** @@ -214,7 +238,9 @@ getpwnam - Password File Entry for Name .. code-block:: c - int getpwnam( + #include <pwd.h> + struct passwd *getpwnam( + const char *name ); **STATUS CODES:** @@ -240,7 +266,13 @@ getpwnam_r - Reentrant Get Password File Entry for Name .. code-block:: c + #include <pwd.h> int getpwnam_r( + const char *name, + struct passwd *pwd, + char *buffer, + size_t bufsize, + struct passwd **result ); **STATUS CODES:** |