File: program_invocation_name.3

package info (click to toggle)
manpages-ja 0.5.0.0.20080615-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 20,508 kB
  • ctags: 1
  • sloc: sh: 13,690; perl: 157; makefile: 114
file content (66 lines) | stat: -rw-r--r-- 2,437 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
.\" Copyright (C) 2006 Michael Kerrisk <mtk.manpages@gmail.com>
.\"
.\" Permission is hereby granted, free of charge, to any person obtaining
.\" a copy of this software and associated documentation files (the
.\" "Software"), to deal in the Software without restriction, including
.\" without limitation the rights to use, copy, modify, merge, publish,
.\" distribute, sublicense, and/or sell copies of the Software, and to
.\" permit persons to whom the Software is furnished to do so, subject to
.\" the following conditions:
.\"
.\" The above copyright notice and this permission notice shall be
.\" included in all copies or substantial portions of the Software.
.\"
.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
.\" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
.\" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
.\" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
.\" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
.\" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
.\"
.\" Japanese Version Copyright (c) 2006 Akihiro MOTOKI all rights reserved.
.\" Translated 2006-03-13, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
.\"
.TH INVOCATION_NAME 3 2006-04-29 "GNU" "Linux Programmer's Manual"
.SH ̾
program_invocation_name, program_invocation_short_name \- \
ץεư˻Ȥ줿̾
.SH 
.nf
.B #define _GNU_SOURCE
.B #include <errno.h>

.BI "extern char *" program_invocation_name ;
.BI "extern char *" program_invocation_short_name ;
.fi
.SH 
.I program_invocation_name
ϡƤӽФץεư˻Ѥ줿̾ݻ롣
Ƥ
.IR main ()

.I argv[0]
ͤƱ
.I program_invocation_name
ϥפХǤۤʤ롣

.I program_invocation_short_name
ϡƤӽФץεư˻Ѥ줿̾ basename ʬ
ݻ롣ĤޤꡢѿƤϡǸΥå (/) Ȥ
ʬ硢
.I program_invocation_name
餳ʬΤȤʤ롣

ѿ glibc Υ󥿥ࡦȥåסɤ
ưŪ˽롣
.SH 
ѿ GNU γĥǤꡢ
ܿɬפʥץǤϻѤ٤Ǥʤ
.SH 
Linux ȼΥե
.I /proc/[number]/cmdline
ǤƱͤξ뤳ȤǤ롣
.SH Ϣ
.BR proc (5),
.BR feature_test_macros (7)