2005-04-21 21:26:15 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 2005-04-21
|
|
|
|
;
|
|
|
|
; extern char** _environ;
|
|
|
|
;
|
|
|
|
;
|
|
|
|
; __environ is a pointer to the environment.
|
|
|
|
; __envcount is the number of entries in the environment.
|
|
|
|
; __envsize is the size of the allocated array.
|
|
|
|
;
|
|
|
|
; The maximum number of environment entries is 64. putenv() will set errno
|
|
|
|
; to ENOMEM when trying to increase the number beyond this limit.
|
|
|
|
;
|
|
|
|
|
|
|
|
.export __environ, __envcount, __envsize
|
2013-05-09 11:56:54 +00:00
|
|
|
.import initenv
|
|
|
|
.constructor env_init
|
2016-03-16 15:28:32 +00:00
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
env_init := initenv
|
2016-03-16 15:28:32 +00:00
|
|
|
|
|
|
|
.data
|
2005-04-21 21:26:15 +00:00
|
|
|
|
|
|
|
__environ:
|
|
|
|
.addr 0
|
|
|
|
__envcount:
|
|
|
|
.byte 0
|
|
|
|
__envsize:
|
|
|
|
.byte 0
|