.\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
.\" 386BSD man pages
.\" Modified Sat Jul 24 19:17:53 1993 by Rik Faith (faith@cs.unc.edu)
-.TH GETUSERSHELL 3 2013-06-21 "GNU" "Linux Programmer's Manual"
+.TH GETUSERSHELL 3 2016-03-15 "GNU" "Linux Programmer's Manual"
.SH NAME
getusershell, setusershell, endusershell \- get permitted user shells
.SH SYNOPSIS
.nf
.B #include <unistd.h>
-.sp
+.PP
.B char *getusershell(void);
-.sp
+.PP
.B void setusershell(void);
-.sp
+.PP
.B void endusershell(void);
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR getusershell (),
.BR setusershell (),
.BR endusershell ():
-.RS 4
-_BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE\ <\ 500)
-.RE
+.nf
+ Since glibc 2.21:
+.\" commit 266865c0e7b79d4196e2cc393693463f03c90bd8
+ _DEFAULT_SOURCE
+ In glibc 2.19 and 2.20:
+ _DEFAULT_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE\ <\ 500)
+ Up to and including glibc 2.19:
+ _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE\ <\ 500)
+.fi
.ad b
.SH DESCRIPTION
The
.SH RETURN VALUE
The
.BR getusershell ()
-function returns a NULL pointer on end-of-file.
+function returns NULL on end-of-file.
.SH FILES
.nf
/etc/shells
.fi
.SH ATTRIBUTES
-.SS Multithreading (see pthreads(7))
-The
+For an explanation of the terms used in this section, see
+.BR attributes (7).
+.TS
+allbox;
+lbw31 lb lb
+l l l.
+Interface Attribute Value
+T{
.BR getusershell (),
-.BR setusershell ()
-and
+.BR setusershell (),
+.br
.BR endusershell ()
-functions are not thread-safe.
+T} Thread safety MT-Unsafe
+.TE
.SH CONFORMING TO
4.3BSD.
.SH SEE ALSO