OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / netkit / draft / man3 / setproctitle.3
diff --git a/manual/netkit/draft/man3/setproctitle.3 b/manual/netkit/draft/man3/setproctitle.3
new file mode 100644 (file)
index 0000000..e42fcc8
--- /dev/null
@@ -0,0 +1,99 @@
+.\"    OpenBSD: setproctitle.3,v 1.4 1996/10/08 01:20:08 michaels Exp 
+.\"     $Id: setproctitle.3,v 1.2 2000/12/14 09:58:54 ysato Exp $
+.\"
+.\" Copyright (c) 1994, 1995 Christopher G. Demetriou
+.\" 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 Christopher G. Demetriou
+.\"     for the NetBSD Project.
+.\" 3. The name of the author may not be used to endorse or promote products
+.\"    derived from this software without specific prior written permission
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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.
+.\"
+.\" Japanese Version Copyright (c) 2000 Yuichi SATO
+.\"         all rights reserved.
+.\" Translated Thu Dec 14 18:22:51 JST 2000
+.\"         by Yuichi SATO <sato@complex.eng.hokudai.ac.jp>
+.\"
+.Dd April 13, 1994
+.Dt SETPROCTITLE 3
+.Os "Linux NetKit (0.17)"
+.\"O .Sh NAME
+.Sh Ì¾Á°
+.Nm setproctitle
+.\"O .Nd set process title
+.Nd ¥×¥í¥»¥¹¤Î¥¿¥¤¥È¥ë¤òÀßÄꤹ¤ë
+.\"O .Sh SYNOPSIS
+.Sh ½ñ¼°
+.Fd #include <stdlib.h>
+.Ft void
+.Fn setproctitle "const char *fmt" "..."
+.\"O .Sh DESCRIPTION
+.\"O The
+.\"O .Fn setproctitle
+.\"O function sets the invoking process's title.
+.\"O The process title is set to the last component of the program
+.\"O name, followed by a colon and the formatted string specified
+.\"O by
+.\"O .Va fmt .
+.\"O If
+.\"O .Va fmt
+.\"O is NULL, the colon and formatted string are omitted.
+.\"O The length of a process title is limited to 2048 bytes.
+.Sh ÀâÌÀ
+.Fn setproctitle
+¤Ï¡¢µ¯Æ°¤·¤Æ¤¤¤ë¥×¥í¥»¥¹¤Î¥¿¥¤¥È¥ë¤òÀßÄꤹ¤ë¡£
+¥×¥í¥»¥¹¤Î¥¿¥¤¥È¥ë¤Ï¡¢¥×¥í¥°¥é¥à̾¤«¤é¥Ç¥£¥ì¥¯¥È¥êÉôʬ¤ò¼è¤êµî¤Ã¤¿Ì¾Á°¤Ë¡¢
+¥³¥í¥ó¤ò¶´¤ó¤Ç
+.Va fmt
+¤Ë»ØÄꤵ¤ì¤¿½ñ¼°ÉÕ¤­Ê¸»úÎó¤ò³¤±¤¿¤â¤Î¤Ë¤Ê¤ë¡£
+.Va fmt
+¤¬ NULL ¤Î¾ì¹ç¡¢¥³¥í¥ó¤È¥Õ¥©¡¼¥Þ¥Ã¥È¤µ¤ì¤¿Ê¸»úÎó¤Ï¾Êά¤µ¤ì¤ë¡£
+¥×¥í¥»¥¹¤Î¥¿¥¤¥È¥ë¤ÎŤµ¤Ï¡¢2048 ¥Ð¥¤¥È¤Þ¤Ç¤ËÀ©¸Â¤µ¤ì¤Æ¤¤¤ë¡£
+.\"O .Sh EXAMPLES
+.Sh Îã
+.\"O Set the process title to the program name, with no further information:
+¥×¥í¥»¥¹¤Î¥¿¥¤¥È¥ë¤ò¡¢Â¾¤Î¾ðÊó¤ò´Þ¤Þ¤Ê¤¤¡¢¥×¥í¥°¥é¥à̾¤Î¤ß¤ËÀßÄꤹ¤ë:
+.Bd -literal -offset indent
+setproctitle(NULL);
+.Ed
+.Pp
+.\"O Set the process title to the program name, an informational string,
+.\"O and the process id:
+¥×¥í¥»¥¹¤Î¥¿¥¤¥È¥ë¤ò¡¢¥×¥í¥°¥é¥à̾¡¦¾ðÊ󤬽ñ¤«¤ì¤¿Ê¸»úÎó¡¦
+¥×¥í¥»¥¹ ID ¤ò³¤±¤¿¤â¤Î¤ËÀßÄꤹ¤ë:
+.Bd -literal -offset indent
+setproctitle("foo! (%d)", getpid());
+.Ed
+.\"O .Sh SEE ALSO
+.Sh ´ØÏ¢¹àÌÜ
+.Xr ps 1 ,
+.Xr w 1 ,
+.Xr printf 3
+.\"O .Sh HISTORY
+.Sh ÍúÎò
+.\"O The
+.\"O .Fn setproctitle
+.\"O function first appeared in NetBSD 0.9a.
+.Fn setproctitle
+¤Ï NetBSD 0.9a ¤Ç½é¤á¤ÆÅо줷¤¿¡£