OSDN Git Service

(split) LDP: draft snapshot generated from latest ja.po files.
[linuxjm/LDP_man-pages.git] / draft / man3 / setenv.3
index befb61a..957888d 100644 (file)
 .\"     Noted nonstandard behavior of setenv() if name contains '='
 .\" 2005-08-12, mtk, glibc 2.3.4 fixed the "name contains '='" bug
 .\"
-.\" Japanese Version Copyright (c) 1997 HIROFUMI Nishizuka
-.\"    all rights reserved.
-.\" Translated 1997-12-19, HIROFUMI Nishizuka <nishi@rpts.cl.nec.co.jp>
-.\" Updated & Modified 2005-02-17, Yuichi SATO <ysato444@yahoo.co.jp>
-.\" Updated & Modified 2005-10-02, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
-.\" Updated 2008-08-08, Akihiro MOTOKI, LDP v3.05
-.\" Updated 2010-04-10, Akihiro MOTOKI, LDP v3.24
+.\"*******************************************************************
 .\"
-.TH SETENV 3  2009-09-20 "GNU" "Linux Programmer's Manual"
-.\"O .SH NAME
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH SETENV 3 2009\-09\-20 GNU "Linux Programmer's Manual"
 .SH 名前
-.\"O setenv \- change or add an environment variable
 setenv \- 環境変数を変更または追加する
-.\"O .SH SYNOPSIS
 .SH 書式
 .nf
-.B #include <stdlib.h>
+\fB#include <stdlib.h>\fP
 .sp
-.BI "int setenv(const char *" name ", const char *" value ", int " overwrite );
+\fBint setenv(const char *\fP\fIname\fP\fB, const char *\fP\fIvalue\fP\fB, int \fP\fIoverwrite\fP\fB);\fP
 .sp
-.BI "int unsetenv(const char *" name );
+\fBint unsetenv(const char *\fP\fIname\fP\fB);\fP
 .fi
 .sp
 .in -4n
-.\"O Feature Test Macro Requirements for glibc (see
-.\"O .BR feature_test_macros (7)):
-glibc 向けの機能検査マクロの要件
-.RB ( feature_test_macros (7)
-参照):
+glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
 .in
 .sp
 .ad l
-.BR setenv (),
-.BR unsetenv ():
+\fBsetenv\fP(), \fBunsetenv\fP():
 .RS 4
 _BSD_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L || _XOPEN_SOURCE\ >=\ 600
 .RE
 .ad b
-.\"O .SH DESCRIPTION
 .SH 説明
-.\"O The
-.\"O .BR setenv ()
-.\"O function adds the variable \fIname\fP to the
-.\"O environment with the value \fIvalue\fP, if \fIname\fP does not
-.\"O already exist.
-.\"O If \fIname\fP does exist in the environment, then
-.\"O its value is changed to \fIvalue\fP if \fIoverwrite\fP is nonzero;
-.\"O if \fIoverwrite\fP is zero, then the value of \fIname\fP is not
-.\"O changed.
-.BR setenv ()
-関数は、\fIname\fP が存在しない場合
-環境変数 \fIname\fP に値 \fIvalue\fP を設定し、環境に追加する。
-\fIname\fP が環境に存在する場合、\fIoverwrite\fP が 0 以外ならば
-その値を \fIvalue\fP に変更し、\fIoverwrite\fP が 0 ならば
-\fIname\fP の値を変更しない。
-.\"O This function makes copies of the strings pointed to by
-.\"O .I name
-.\"O and
-.\"O .I value
-.\"O (by contrast with
-.\"O .BR putenv (3)).
-この関数は、
-.RB ( putenv (3)
-と違い)
-.I name
-と
-.I value
+\fBsetenv\fP()  関数は、\fIname\fP が存在しない場合 環境変数 \fIname\fP に値 \fIvalue\fP を設定し、環境に追加する。
+\fIname\fP が環境に存在する場合、\fIoverwrite\fP が 0 以外ならば その値を \fIvalue\fP に変更し、\fIoverwrite\fP が
+0 ならば \fIname\fP の値を変更しない。 この関数は、 (\fBputenv\fP(3)  と違い)  \fIname\fP と \fIvalue\fP
 により参照される文字列のコピーを行う。
 .PP
-.\"O The
-.\"O .BR unsetenv ()
-.\"O function deletes the variable \fIname\fP from
-.\"O the environment.
-.BR unsetenv ()
-関数は、変数 \fIname\fP を環境から削除する。
-.\"O If
-.\"O .I name
-.\"O does not exist in the environment,
-.\"O then the function succeeds, and the environment is unchanged.
-.I name
+\fBunsetenv\fP()  関数は、変数 \fIname\fP を環境から削除する。 \fIname\fP
 が環境にない場合、この関数は成功し、環境は変更されない。
-.\"O .SH "RETURN VALUE"
 .SH 返り値
-.\"O The
-.\"O .BR setenv ()
-.\"O function returns zero on success,
-.\"O or \-1 on error, with
-.\"O .I errno
-.\"O set to indicate the cause of the error.
-.BR setenv ()
-関数は、成功すると 0 を返す。
-エラーの場合、\-1 を返し、
-.I errno
-にエラーの原因を示す値がセットされる。
+\fBsetenv\fP()  関数は、成功すると 0 を返す。 エラーの場合、\-1 を返し、 \fIerrno\fP にエラーの原因を示す値がセットされる。
 
-.\"O The
-.\"O .BR unsetenv ()
-.\"O function returns zero on success,
-.\"O or \-1 on error, with
-.\"O .I errno
-.\"O set to indicate the cause of the error.
-.BR unsetenv ()
-関数は、成功すると 0 を返す。
-エラーの場合は \-1 を返し、
-.I errno
-を設定してエラーの原因を示す。
-.\"O .SH "ERRORS"
+\fBunsetenv\fP()  関数は、成功すると 0 を返す。 エラーの場合は \-1 を返し、 \fIerrno\fP を設定してエラーの原因を示す。
 .SH エラー
-.TP
-.B EINVAL
-.\"O .I name
-.\"O is NULL, points to a string of length 0,
-.\"O or contains an \(aq=\(aq character.
-.I name
-が NULL であるか、長さが 0 の文字列を指しているか、
-\(aq=\(aq 文字が含まれている。
-.TP
-.B ENOMEM
-.\"O Insufficient memory to add a new variable to the environment.
+.TP 
+\fBEINVAL\fP
+\fIname\fP が NULL であるか、長さが 0 の文字列を指しているか、 \(aq=\(aq 文字が含まれている。
+.TP 
+\fBENOMEM\fP
 環境に新しい変数を追加するのに十分なメモリがない。
-.\"O .SH "CONFORMING TO"
 .SH 準拠
-4.3BSD, POSIX.1-2001.
-.\"O .SH "NOTES"
+4.3BSD, POSIX.1\-2001.
 .SH 注意
-.\"O POSIX.1-2001 does not require
-.\"O .BR setenv ()
-.\"O or
-.\"O .BR unsetenv ()
-.\"O to be reentrant.
-POSIX.1-2001 は、
-.BR setenv ()
-や
-.BR unsetenv ()
-がリエントラント (再入可能) であることを要求していない。
+POSIX.1\-2001 は、 \fBsetenv\fP()  や \fBunsetenv\fP()  がリエントラント (再入可能) であることを要求していない。
 
-.\"O Prior to glibc 2.2.2,
-.\"O .BR unsetenv ()
-.\"O was prototyped
-.\"O as returning \fIvoid\fP; more recent glibc versions follow the
-.\"O POSIX.1-2001-compliant prototype shown in the SYNOPSIS.
-glibc 2.2.2 以前では、
-.BR unsetenv ()
-は
-返り値が \fIvoid\fP のプロトタイプであった。
-もっと最近の glibc 版は、「書式」セクションで示しているように
-POSIX.1-2001 互換のプロトタイプである。
-.\"O .SH BUGS
+glibc 2.2.2 以前では、 \fBunsetenv\fP()  は 返り値が \fIvoid\fP のプロトタイプであった。 もっと最近の glibc
+版は、「書式」セクションで示しているように POSIX.1\-2001 互換のプロトタイプである。
 .SH バグ
-.\"O POSIX.1-2001 specifies that if
-.\"O .I name
-.\"O contains an \(aq=\(aq character, then
-.\"O .BR setenv ()
-.\"O should fail with the error
-.\"O .BR EINVAL ;
-POSIX.1-2001 では
-.RI 「 name
-に \(aq=\(aq 文字が含まれる場合、
-.BR setenv ()
-はエラー
-.B EINVAL
-で失敗すべきである」と述べられている。
-.\"O however, versions of glibc before 2.3.4 allowed an \(aq=\(aq sign in
-.\"O .IR name .
-しかし 2.3.4 より前のバージョンの glibc では、
-.I name
-に \(aq=\(aq 文字が含まれるのを許している。
-.\"O .SH "SEE ALSO"
+POSIX.1\-2001 では 「\fIname\fP に \(aq=\(aq 文字が含まれる場合、 \fBsetenv\fP()  はエラー \fBEINVAL\fP
+で失敗すべきである」と述べられている。 しかし 2.3.4 より前のバージョンの glibc では、 \fIname\fP に \(aq=\(aq
+文字が含まれるのを許している。
 .SH 関連項目
-.BR clearenv (3),
-.BR getenv (3),
-.BR putenv (3),
-.BR environ (7)
+\fBclearenv\fP(3), \fBgetenv\fP(3), \fBputenv\fP(3), \fBenviron\fP(7)