getusershell(3) Library Functions Manual getusershell(3) getusershell, setusershell, endusershell - C (libc, -lc) #include char *getusershell(void); void setusershell(void); void endusershell(void); glibc (. feature_test_macros(7)): getusershell(), setusershell(), endusershell(): glibc 2.21: _DEFAULT_SOURCE glibc 2.19 2.20: _DEFAULT_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE < 500) glibc 2.19, : _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE < 500) getusershell() /etc/shells, . . /etc/shells , getusershell() , /bin/sh /bin/csh. setusershell() /etc/shells. endusershell() /etc/shells. getusershell() NULL . /etc/shells attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |getusershell(), | | MT-Unsafe | |setusershell(), | | | |endusershell() | | | +----------------------------+----------------------------------------------------------+--------------------------+ . 4.3BSD. shells(5) () Azamat Hackimov , Dmitry Bolkhovskikh , Vladislav , Yuri Kozlov , Kirill Rekhov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.9.1 2 2024 . getusershell(3)