OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / release / man3 / program_invocation_name.3
1 .\" Copyright (C) 2006 Michael Kerrisk <mtk.manpages@gmail.com>
2 .\"
3 .\" Permission is hereby granted, free of charge, to any person obtaining
4 .\" a copy of this software and associated documentation files (the
5 .\" "Software"), to deal in the Software without restriction, including
6 .\" without limitation the rights to use, copy, modify, merge, publish,
7 .\" distribute, sublicense, and/or sell copies of the Software, and to
8 .\" permit persons to whom the Software is furnished to do so, subject to
9 .\" the following conditions:
10 .\"
11 .\" The above copyright notice and this permission notice shall be
12 .\" included in all copies or substantial portions of the Software.
13 .\"
14 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 .\" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17 .\" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18 .\" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19 .\" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20 .\" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 .\"
22 .\" Japanese Version Copyright (c) 2006 Akihiro MOTOKI all rights reserved.
23 .\" Translated 2006-03-13, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
24 .\"
25 .TH INVOCATION_NAME 3 2006-04-29 "GNU" "Linux Programmer's Manual"
26 .SH Ì¾Á°
27 program_invocation_name, program_invocation_short_name \- \
28 ¥×¥í¥°¥é¥à¤Îµ¯Æ°¤Ë»È¤ï¤ì¤¿Ì¾Á°¤ò¼èÆÀ¤¹¤ë
29 .SH ½ñ¼°
30 .nf
31 .B #define _GNU_SOURCE
32 .B #include <errno.h>
33
34 .BI "extern char *" program_invocation_name ;
35 .BI "extern char *" program_invocation_short_name ;
36 .fi
37 .SH ÀâÌÀ
38 .I program_invocation_name
39 ¤Ï¡¢¸Æ¤Ó½Ð¤·¸µ¥×¥í¥°¥é¥à¤Îµ¯Æ°¤Ë»ÈÍѤµ¤ì¤¿Ì¾Á°¤òÊÝ»ý¤¹¤ë¡£
40 ÆâÍƤÏ
41 .IR main ()
42 ¤Î
43 .I argv[0]
44 ¤ÎÃͤÈƱ¤¸¤À¤¬¡¢
45 .I program_invocation_name
46 ¤ÎÊý¤Ï¥¹¥³¡¼¥×¤¬¥°¥í¡¼¥Ð¥ë¤Ç¤¢¤ëÅÀ¤¬°Û¤Ê¤ë¡£
47
48 .I program_invocation_short_name
49 ¤Ï¡¢¸Æ¤Ó½Ð¤·¸µ¥×¥í¥°¥é¥à¤Îµ¯Æ°¤Ë»ÈÍѤµ¤ì¤¿Ì¾Á°¤Î basename Éôʬ¤ò
50 ÊÝ»ý¤¹¤ë¡£¤Ä¤Þ¤ê¡¢¤³¤ÎÊÑ¿ô¤ÎÆâÍƤϡ¢ºÇ¸å¤Î¥¹¥é¥Ã¥·¥å (/) ¤È¤½¤ì¤è¤êÁ°¤Î
51 Éôʬ¤¬¤¢¤ë¾ì¹ç¡¢
52 .I program_invocation_name
53 ¤«¤é¤³¤ÎÉôʬ¤òºï½ü¤·¤¿¤â¤Î¤È¤Ê¤ë¡£
54
55 ¤³¤ì¤é¤ÎÊÑ¿ô¤Ï glibc ¤Î¥é¥ó¥¿¥¤¥à¡¦¥¹¥¿¡¼¥È¥¢¥Ã¥×¡¦¥³¡¼¥É¤Ç
56 ¼«Æ°Åª¤Ë½é´ü²½¤µ¤ì¤ë¡£
57 .SH ½àµò
58 ¤³¤ì¤é¤ÎÊÑ¿ô¤Ï GNU ¤Î³ÈÄ¥¤Ç¤¢¤ê¡¢
59 °Ü¿¢À­¤¬É¬Í×¤Ê¥×¥í¥°¥é¥à¤Ç¤Ï»ÈÍѤ¹¤Ù¤­¤Ç¤Ê¤¤¡£
60 .SH È÷¹Í
61 Linux Æȼ«¤Î¥Õ¥¡¥¤¥ë
62 .I /proc/[number]/cmdline
63 ¤Ç¤âƱÍͤξðÊó¤òÆÀ¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
64 .SH ´ØÏ¢¹àÌÜ
65 .BR proc (5),
66 .BR feature_test_macros (7)