8a72894489
Sync with the original version. Unify some japanese words. Submitted by: kano@na.rim.or.jp
96 lines
3.2 KiB
Groff
96 lines
3.2 KiB
Groff
.\" Copyright (c) 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.
|
|
.\"
|
|
.\" @(#)tcsetpgrp.3 8.1 (Berkeley) 6/4/93
|
|
.\" %FreeBSD: src/lib/libc/gen/tcsetpgrp.3,v 1.6.2.3 2001/12/14 18:33:51 ru Exp %
|
|
.\"
|
|
.\" $FreeBSD$
|
|
.Dd June 4, 1993
|
|
.Dt TCSETPGRP 3
|
|
.Os
|
|
.Sh ̾¾Î
|
|
.Nm tcsetpgrp
|
|
.Nd ¥Õ¥©¥¢¥°¥é¥¦¥ó¥É½èÍý¥°¥ë¡¼¥× ID ¤ÎÀßÄê
|
|
.Sh ¥é¥¤¥Ö¥é¥ê
|
|
.Lb libc
|
|
.Sh ½ñ¼°
|
|
.In sys/types.h
|
|
.In unistd.h
|
|
.Ft int
|
|
.Fn tcsetpgrp "int fd" "pid_t pgrp_id"
|
|
.Sh ²òÀâ
|
|
½èÍý¤¬À©¸æ¤¹¤ëüËö¤ò»ý¤Ä¾ì¹ç¤Ï¡¢
|
|
.Fn tcsetpgrp
|
|
´Ø¿ô¤Ï¤½¤ÎüËö¥Ç¥Ð¥¤¥¹¤ÈÏ¢·È¤·¤¿¥Õ¥©¥¢¥°¥é¥¦¥ó¥É½èÍý¥°¥ë¡¼¥× ID ¤ò
|
|
.Fa pgrp_id
|
|
¤ËÀßÄꤷ¤Þ¤¹¡£
|
|
.Fa fd
|
|
¤ËÏ¢·È¤·¤¿Ã¼Ëö¥Ç¥Ð¥¤¥¹¤Ï¡¢¸Æ¤Ó½Ð¤·½èÍý¤ÎÀ©¸æüËö¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤º¡¢¤Þ¤¿¤½¤Î
|
|
À©¸æüËö¤Ï¤½¤Î¸Æ¤Ó½Ð¤·Â¦½èÍý¤Î¥»¥Ã¥·¥ç¥ó¤Ë
|
|
¸½ºßÏ¢·È¤·¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
|
|
.Fa pgrp_id
|
|
¤ÎÃͤϡ¢Æ±¤¸¥»¥Ã¥·¥ç¥ó¤Ë¤ª¤±¤ë½èÍý¤Î¸Æ¤Ó½Ð¤·Â¦½èÍý¤Î½èÍý¥°¥ë¡¼¥× ID ¤È
|
|
Ʊ¤¸¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
|
|
.Sh Ìá¤êÃÍ
|
|
.Rv -std tcsetpgrp
|
|
.Sh ¥¨¥é¡¼
|
|
.Fn tcsetpgrp
|
|
¤Ï¼¡¤Î¾ì¹ç¤Ë¼ºÇÔ¤·¤Þ¤¹¡£
|
|
.Bl -tag -width Er
|
|
.It Bq Er EBADF
|
|
°ú¿ô
|
|
.Fa fd
|
|
¤¬Í¸ú¤Ê¥Õ¥¡¥¤¥ëµ½Ò»Ò¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£
|
|
.It Bq Er EINVAL
|
|
̵¸ú¤Ê
|
|
.Fa pgrp_id
|
|
¤ÎÃͤ¬»ØÄꤵ¤ì¤Þ¤·¤¿¡£
|
|
.It Bq Er ENOTTY
|
|
¸Æ¤Ó½Ð¤·½èÍý¤¬À©¸æüËö¤ò»ý¤Ã¤Æ¤¤¤Ê¤¤¤«¡¢¤Þ¤¿¤Ï
|
|
.Fa fd
|
|
¤Ç
|
|
ɽ¤ï¤µ¤ì¤ë¥Õ¥¡¥¤¥ë¤¬À©¸æüËö¤Ç¤Ï¤Ê¤¤¤«¡¢¤Þ¤¿¤ÏÀ©¸æüËö¤¬¤â¤Ï¤ä¸Æ¤Ó½Ð¤·
|
|
½èÍý¤Î¥»¥Ã¥·¥ç¥ó¤Ë·ë¹ç¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£
|
|
.It Bq Er EPERM
|
|
°ú¿ô
|
|
.Fa pgrp_id
|
|
¤¬¡¢Æ±¤¸¥»¥Ã¥·¥ç¥ó¤Ë¤ª¤±¤ë½èÍý¤Î¸Æ¤Ó½Ð¤·Â¦½èÍý¤Î
|
|
½èÍý¥°¥ë¡¼¥× ID ¤È°ìÃפ·¤Þ¤»¤ó¡£
|
|
.El
|
|
.Sh ´ØÏ¢¹àÌÜ
|
|
.Xr setpgid 2 ,
|
|
.Xr setsid 2 ,
|
|
.Xr tcgetpgrp 3
|
|
.Sh µ¬³Ê
|
|
.Fn tcsetpgprp
|
|
´Ø¿ô¤Ï¡¢
|
|
.St -p1003.1-88
|
|
µ¬³Ê¤ËŬ¹ç¤·¤Æ¤¤¤ë¤â¤Î¤È¹Í¤¨¤é¤ì¤Þ¤¹¡£
|