This section is based on catpages contributed by Mainichi Communications, Inc. Translated by: MYCOM team Converted by: Japanese Online Manual Project <man-jp@jp.FreeBSD.ORG> Submitted by: Kazuo Horikawa <k-horik@yk.rim.or.jp>
99 lines
3 KiB
Groff
99 lines
3 KiB
Groff
.\" Copyright (c) 1985, 1991, 1993
|
|
.\" The Regents of the University of California. All rights reserved.
|
|
.\"
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
.\" modification, are permitted provided that the following conditions
|
|
.\" are met:
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
.\" must display the following acknowledgement:
|
|
.\" This product includes software developed by the University of
|
|
.\" California, Berkeley and its contributors.
|
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|
.\" may be used to endorse or promote products derived from this software
|
|
.\" without specific prior written permission.
|
|
.\"
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
.\" SUCH DAMAGE.
|
|
.\"
|
|
.\" @(#)getusershell.3 8.1 (Berkeley) 6/4/93
|
|
.\"
|
|
.Dd June 4, 1993
|
|
.Dt GETUSERSHELL 3
|
|
.Os BSD 4.3
|
|
.Sh ̾¾Î
|
|
.Nm getusershell ,
|
|
.Nm setusershell ,
|
|
.Nm endusershell
|
|
.Nd Àµµ¬¥æ¡¼¥¶¥·¥§¥ë¤ò¼èÆÀ
|
|
.Sh ½ñ¼°
|
|
.Fd #include <unistd.h>
|
|
.Ft char *
|
|
.Fn getusershell void
|
|
.Ft void
|
|
.Fn setusershell void
|
|
.Ft void
|
|
.Fn endusershell void
|
|
.Sh ²òÀâ
|
|
.Fn getusershell
|
|
´Ø¿ô¤Ï¡¢¥Õ¥¡¥¤¥ë
|
|
.Pa /etc/shells
|
|
¤Ç¥·¥¹¥Æ¥à¥Þ¥Í¡¼¥¸¥ã¤Ë¤è¤Ã¤Æ
|
|
ÄêµÁ¤µ¤ì¤¿¡¢Àµµ¬¥æ¡¼¥¶¥·¥§¥ë¤Î¥Ý¥¤¥ó¥¿¤òÊÖ¤·¤Þ¤¹¡£
|
|
.Pa /etc/shells
|
|
¤¬ÆÉ¤ß¹þ¤á¤Ê¤¤¤«¤Þ¤¿¤Ï¸ºß¤·¤Ê¤¤¾ì¹ç¡¢
|
|
.Fn getusershell
|
|
¤Ï¡¢¤¢¤¿¤«¤â
|
|
.Pa /bin/sh
|
|
¤ª¤è¤Ó
|
|
.Pa /bin/csh
|
|
¤¬¥Õ¥¡¥¤¥ë¤Ë¥ê¥¹¥È¤µ¤ì¤Æ¤¤¤¿¤«¤Î¤è¤¦¤Ëµóư¤·¤Þ¤¹¡£
|
|
.Pp
|
|
.Fn getusershell
|
|
´Ø¿ô¤Ï
|
|
(ɬÍפʤé¤Ð¥Õ¥¡¥¤¥ë¤ò¥ª¡¼¥×¥ó¤·¤Æ)
|
|
¼¡¤Î¹Ô¤òÆÉ¤ß¹þ¤ß¤Þ¤¹¡£
|
|
.Fn setusershell
|
|
´Ø¿ô¤Ï¥Õ¥¡¥¤¥ë¤ò¥ê¥ï¥¤¥ó¥É¤·¡¢
|
|
.Fn endusershell
|
|
´Ø¿ô¤Ï¥Õ¥¡¥¤¥ë¤ò¥¯¥í¡¼¥º¤·¤Þ¤¹¡£
|
|
.Sh ´ØÏ¢¥Õ¥¡¥¤¥ë
|
|
.Bl -tag -width /etc/shells -compact
|
|
.It Pa /etc/shells
|
|
.El
|
|
.Sh ¿ÇÃÇ
|
|
¥ë¡¼¥Á¥ó
|
|
.Fn getusershell
|
|
¤Ï¡¢
|
|
.Dv EOF
|
|
¤Ç
|
|
null
|
|
¥Ý¥¤¥ó¥¿
|
|
(0)
|
|
¤òÊÖ¤·¤Þ¤¹¡£
|
|
.Sh ´ØÏ¢¹àÌÜ
|
|
.Xr shells 5
|
|
.Sh Îò»Ë
|
|
.Fn getusershell
|
|
´Ø¿ô¤Ï
|
|
.Bx 4.3
|
|
¤ÇºÇ½é¤Ë¼è¤êÆþ¤ì¤é¤ì¤Þ¤·¤¿¡£
|
|
.Sh ¥Ð¥°
|
|
.Fn getusershell
|
|
´Ø¿ô¤Ï¡¢½èÍý·ë²Ì¤òÆâÉô¤ÎÀÅŪ¥ª¥Ö¥¸¥§¥¯¥È¤Ë»Ä¤·¡¢¤½¤Î
|
|
¥ª¥Ö¥¸¥§¥¯¥È¤Î¥Ý¥¤¥ó¥¿¤òÊÖ¤·¤Þ¤¹¡£°Ê¸å¤Î
|
|
.Fn getusershell
|
|
¸Æ¤Ó½Ð¤·¤Ï¡¢Æ±¤¸¥ª¥Ö¥¸¥§¥¯¥È¤ò²þÊѤ·¤Þ¤¹¡£
|