getenv linux command man page
_dupenv_s is a Microsoft function, designed as a more secure form of getenv. _dupenv_s allocates the buffer itself; you have to pass it a pointer to a pointer and it sets this to the address of the newly allocated buffer. For example, getenv - 環境変数の値を取得する 環境変数の値を取得します。 phpinfo() を使えば、すべての環境変数の一覧を見ることができます。 これらの変数の多くは、 » RFC 3875 の section 4.1, "Request Meta-Variables" に挙げられているものです。 getenv - Hurricane Electric The secure_getenv() function is intended for use in general-purpose libraries to avoid vulnerabilities that could occur if set-user-ID or set-group-ID programs accidentally trusted the environment. RETURN VALUE The getenv() function returns a pointer to the value in the environ- ment, or NULL if there is no match.
g_getenv () const gchar * g_getenv (const gchar *variable); Returns the value of an environment variable. On UNIX, the name and value are byte strings which might or might not be in some consistent character set and encoding. On Windows, they are in UTF-8.
The string pointed to by the return value of getenv() may be statically allocated, and can be modified by a subsequent call to getenv(), putenv(3), setenv(3), or unsetenv(3). SEE ALSO clearenv(3), putenv(3), setenv(3), unsetenv(3), environ(7) COLOPHON This page is part of release 3.41 of the Linux man-pages project. A description of the project Mac OS X Manual Page For setenv(3) This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.
getenv() の実装はリエントラント (再入可能) であることを要求されていない。 getenv () の返り値により参照される文字列は静的に割り当てられてもよく、 文字列の内容は後続の getenv (), putenv (3), setenv (3), unsetenv (3) の呼び出しにより変更されることがある。
The "secure execution" mode of secure_getenv() is controlled by the AT_SECURE flag contained in the auxiliary vector passed from the kernel to user space. SEE ALSO¶ clearenv(3), getauxval(3), putenv(3), setenv(3), unsetenv(3), capabilities(7), environ(7) COLOPHON¶ This page is part of release 3.74 of the Linux man-pages project.