#include <grp.h>
Link against:
libc.lib
_PATH_GROUP "/etc/group"
Description
Interface status: |
externallyDefinedApi |
|
typedef __gid_t gid_t;
Description
Used for group IDs.
Interface status: |
externallyDefinedApi |
|
IMPORT_C void endgrent(void);
Description
Refer to getgrent(void)
getgrent(void)
for the documentation
Interface status: |
externallyDefinedApi |
|
IMPORT_C struct group* getgrent(void);
Description
Note: This description also covers the following functions - getgrnam(const char *)
getgrnam(const char *)
getgrnam_r(const char *,struct group *,char *,size_t,struct group **)
getgrnam_r(const char *,struct group *,char *,size_t,struct group **)
getgrgid(gid_t)
getgrgid(gid_t)
getgrgid_r(gid_t,struct group *,char *,size_t,struct group **)
getgrgid_r(gid_t,struct group *,char *,size_t,struct group **)
setgroups(int,const gid_t *)
setgroups(int,const gid_t *)
setgrent(void)
setgrent(void)
endgrent(void)
endgrent(void)
These APIs are build supported but not available functionally. Symbian OS does not support multiple users and groups.
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C struct group* getgrgid(gid_t);
Description
Parameters
Return value
struct group group * |
The functions getgrent, getgrnam, and getgrgid, return a pointer to a group structure on success or NULL if the entry is not
found or if an error occurs. If an error does occur, errno will be set. The functions getgrnam_r and getgrgid_r return 0 if
no error occurred, or an error number to indicate failure. It is not an error if a matching entry is not found. (Thus, if
result is set to NULL and the return value is 0, no matching entry exists.) The setgrent return the value 1 if successful,
otherwise the value 0 is returned. The endgrent API has no return value.
|
|
Interface status: |
externallyDefinedApi |
|
IMPORT_C struct group* getgrnam(const char *);
Description
Refer to getgrent(void)
getgrent(void)
for the documentation
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C int setgrent(void);
Description
Refer to getgrent(void)
getgrent(void)
for the documentation
Return value
getgrgid_r(gid_t,struct group *,char *,size_t,struct group **)
Interface status: |
externallyDefinedApi |
|
IMPORT_C int getgrgid_r(gid_t, struct group *, char *, size_t, struct group **);
Description
Parameters
Return value
getgrnam_r(const char *,struct group *,char *,size_t,struct group **)
Interface status: |
externallyDefinedApi |
|
IMPORT_C int getgrnam_r(const char *, struct group *, char *, size_t, struct group **);
Description
Parameters
Return value