OSDN Git Service

(split) LDP: Update the version to 3.53 in PO files
[linuxjm/LDP_man-pages.git] / release / man3 / getusershell.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\"
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" %%%LICENSE_END
24 .\"
25 .\" References consulted:
26 .\"     Linux libc source code
27 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
28 .\"     386BSD man pages
29 .\" Modified Sat Jul 24 19:17:53 1993 by Rik Faith (faith@cs.unc.edu)
30 .\"*******************************************************************
31 .\"
32 .\" This file was generated with po4a. Translate the source file.
33 .\"
34 .\"*******************************************************************
35 .TH GETUSERSHELL 3 2013\-06\-21 GNU "Linux Programmer's Manual"
36 .SH 名前
37 getusershell, setusershell, endusershell \- 許可されたユーザシェルを得る
38 .SH 書式
39 .nf
40 \fB#include <unistd.h>\fP
41 .sp
42 \fBchar *getusershell(void);\fP
43 .sp
44 \fBvoid setusershell(void);\fP
45 .sp
46 \fBvoid endusershell(void);\fP
47 .fi
48 .sp
49 .in -4n
50 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
51 .in
52 .sp
53 .ad l
54 \fBgetusershell\fP(), \fBsetusershell\fP(), \fBendusershell\fP():
55 .RS 4
56 _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE\ <\ 500)
57 .RE
58 .ad b
59 .SH 説明
60 \fBgetusershell\fP()  関数は \fI/etc/shells\fP ファイルから (開く必要があればこのファイルを開いてから)
61 現在行の次の一行を返す。 返された行の中身は有効なユーザシェルのうちの一つのパス名である。 (訳注. 一行に付き一つのシェルのパス名が書かれている。)
62 もし \fI/etc/shells\fP が存在しないか、読み込み不可の場合には、 \fBgetusershell\fP()  は \fI/bin/sh\fP と
63 \fI/bin/csh\fP がファイルに記されているかのようにふるまう。
64 .PP
65 \fBsetusershell\fP()  関数は \fI/etc/shells\fP ファイルの ファイルポインタを先頭に戻す。
66 .PP
67 \fBendusershell\fP()  関数は \fI/etc/shells\fP ファイルを閉じる。
68 .SH 返り値
69 \fBgetusershell\fP()  関数はファイルの終端ではNULL ポインタを返す。
70 .SH ファイル
71 .nf
72 /etc/shells
73 .fi
74 .SH 属性
75 .SS "マルチスレッディング (pthreads(7) 参照)"
76 関数 \fBgetusershell\fP(), \fBsetusershell\fP(), \fBendusershell\fP() はスレッドセーフではない。
77 .SH 準拠
78 4.3BSD.
79 .SH 関連項目
80 \fBshells\fP(5)
81 .SH この文書について
82 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
83 である。プロジェクトの説明とバグ報告に関する情報は
84 http://www.kernel.org/doc/man\-pages/ に書かれている。