unix环境高级编程-7-process env

1.  exit handler.

  atexit(void (*func)(void));   #automatically called by exit()

      exit() calls these functions in reverse order of their registeration. Ease function is called as many times as it was registered.

  unix环境高级编程-7-process env_第1张图片

2. environment list 

     extern char ** environ

     access to specific environment variable, use getenv() and putenv()

   unix环境高级编程-7-process env_第2张图片

    

3. memory arragement

    unix command size report the size(in bytes) of the text , data and bss segments

  unix环境高级编程-7-process env_第3张图片

 

     

你可能感兴趣的:(unix环境高级编程-7-process env)