setnetgrent(3) Library Functions Manual setnetgrent(3) setnetgrent, endnetgrent, getnetgrent, getnetgrent_r, innetgr - C (libc, -lc) #include int setnetgrent(const char *netgroup); void endnetgrent(void); int getnetgrent(char **restrict host, char **restrict user, char **restrict domain); int getnetgrent_r(char **restrict host, char **restrict user, char **restrict domain, char buf[restrict .buflen], size_t buflen); int innetgr(const char *netgroup, const char *host, const char *user, const char *domain); glibc (. feature_test_macros(7)): setnetgrent(), endnetgrent(), getnetgrent(), getnetgrent_r(), innetgr(): glibc 2.19: _DEFAULT_SOURCE glibc 2.19 : _BSD_SOURCE || _SVID_SOURCE netgroup SunOS. netgroup (hostname, username, domainname) netgroup. , . netgroup. /etc/nsswitch.conf . setnetgrent() netgroup, getnetgrent(). getnetgrent() netgroup host, user, domain. null , . , netgroup. GNU getnetgrent_r(), . endnetgrent(). (hostname, username, domainname) netgroup. innetgr() . , null -- . . 1 0 . /etc/netgroup /etc/nsswitch.conf attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |setnetgrent(), | | MT-Unsafe race:netgrent | |getnetgrent_r(), innetgr() | | locale | +----------------------------+----------------------------------------------------------+--------------------------+ |endnetgrent() | | MT-Unsafe race:netgrent | +----------------------------+----------------------------------------------------------+--------------------------+ |getnetgrent() | | MT-Unsafe race:netgrent | | | | race:netgrentbuf locale | +----------------------------+----------------------------------------------------------+--------------------------+ netgrent race:netgrent , setnetgrent(), getnetgrent_r(), innetgr(), getnetgrent() endnetgrent(), . BSD setnetgrent() void. None. setnetgrent(), endnetgrent(), getnetgrent(), and innetgr() are available on most UNIX systems. getnetgrent_r() is not widely available on other systems. sethostent(3), setprotoent(3), setservent(3) () Alexander Golubev , Azamat Hackimov , Hotellook, Nikita , Spiros Georgaras , Vladislav , Yuri Kozlov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.9.1 2 2024 . setnetgrent(3)