Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getenv(3C) — DG/UX R4.11MU05

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

exec(2)

reentrant(3)

putenv(3C)

environ(5)



getenv(3C)                     DG/UX R4.11MU05                    getenv(3C)


NAME
       getenv - return value for environment name

SYNOPSIS
       #include <stdlib.h>

       char *getenv (const char *name);

DESCRIPTION
       getenv searches the environment list [see environ(5)] for a string of
       the form name=value and, if the string is present, returns a pointer
       to the value in the current environment.  Otherwise, it returns a
       null pointer.


   Considerations for Threads Programming
                     +---------+-----------------------------+
                     |         |                      async- |
                     |function | reentrant   cancel   cancel |
                     |         |             point     safe  |
                     +---------+-----------------------------+
                     |getenv   |     Y         N        N    |
                     +---------+-----------------------------+
       The environment information is global to all threads in a process.
       Any thread in a process may issue a getenv call.

       See putenv(3C) for information on changing the environment
       information in a multi-threaded application.


SEE ALSO
       exec(2), reentrant(3), putenv(3C), environ(5).


Licensed material--property of copyright holder(s)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026