getusershell(3) Library Functions Manual getusershell(3) getusershell, setusershell, endusershell - (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) 3 . . : . 6.18 8 2026 getusershell(3)