Index of Section 2 Manual Pages

Interix / SUAsetgrent.2Interix / SUA

setgrent(2)                                                 setgrent(2)

  endgrent()

  NAME

    setgrent(), endgrent() - group database operations

  SYNOPSIS

    #include 

    void endgrent (void)
    void setgrent (void)

  DESCRIPTION

    These functions (along with getgrnam(2), getgrgid(2), and getgrent(2))
    operate on the group database (traditionally /etc/group, but part of the
    user database in Interix). Each line of the database is defined by the
    structure group found in the include file :

    struct group {
         char *gr_name;           /* group name */
         gid_t     gr_gid;        /* group id */
         char **gr_mem;           /* group members */
         char *gr_passwd;         /* group password */
    };

    The setgrent(2) function opens the file, or rewinds it if it is already
    open.

    The endgrent(2) function closes any open files.

  RETURN VALUES

    None.

  SEE ALSO

    getgrent(2)

    getgrnam(2)

    getgrgid(2)

    getpwent(2)

  USAGE NOTES

    None of these functions are thread safe.

    None of these functions are async-signal safe.


Interix / SUAHosted at SUA Community for Interix, SUA and SFUInterix / SUA