]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man3/getusershell.3
fuse.4: ffix
[thirdparty/man-pages.git] / man3 / getusershell.3
index b52fb043166e018ddd25748e5090a7cf53124390..9706615ea2b215dd4c40bd89674adbd2bcc8feec 100644 (file)
 .\"     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
@@ -85,19 +91,26 @@ function closes
 .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