diff options
author | Christopher Faylor <me@cgf.cx> | 2002-06-15 21:59:32 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-06-15 21:59:32 +0000 |
commit | 6ea3e429df9c98b850e3a4bf906da06f1c447bd9 (patch) | |
tree | 44e991f12dde60a88b0e2223dc9ba18bc22abe61 /winsup/cygwin/environ.h | |
parent | 5ae611458b5e107705f414c782afc53ce0bd4b59 (diff) | |
download | newlib-6ea3e429df9c98b850e3a4bf906da06f1c447bd9.zip newlib-6ea3e429df9c98b850e3a4bf906da06f1c447bd9.tar.gz newlib-6ea3e429df9c98b850e3a4bf906da06f1c447bd9.tar.bz2 |
* child_info.h (child_proc_info): Declare as base class.
(spawn_info): Declare as alias of child_proc_info to aid debugging.
(fork_info): Ditto.
* cygheap.cc (cygheap_fixup_in_child): Use child_proc_info global rather than
parameter.
* cygheap.h (cygheap_fixup_in_child): Reflect above change in declaration.
* dcrt0.cc (_dll_crt0): Move 'si' definition here. Assign child_proc_info.
(dll_crt0_1): Accommodate cygheap_fixup_in_child and *_info changes.
* environ.cc (spenv::retrieve): Make regparm.
* environ.h (environ_init): Ditto.
(win_env::add_cache): Ditto.
(build_env): Ditto.
(getwinenv): Ditto.
* fork.cc (sync_with_parent): Use fork_info global.
(fork_child): Ditto.
Diffstat (limited to 'winsup/cygwin/environ.h')
-rw-r--r-- | winsup/cygwin/environ.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/winsup/cygwin/environ.h b/winsup/cygwin/environ.h index 3f372b1..ebccc53 100644 --- a/winsup/cygwin/environ.h +++ b/winsup/cygwin/environ.h @@ -9,7 +9,8 @@ Cygwin license. Please consult the file "CYGWIN_LICENSE" for details. */ /* Initialize the environment */ -void environ_init (char **, int); +void environ_init (char **, int) + __attribute__ ((regparm (2))); /* The structure below is used to control conversion to/from posix-style file specs. Currently, only PATH and HOME are converted, but PATH @@ -26,15 +27,18 @@ struct win_env int (*towin32) (const char *, char *); int (*posix_len) (const char *); int (*win32_len) (const char *); - void add_cache (const char *in_posix, const char *in_native = NULL); + void add_cache (const char *in_posix, const char *in_native = NULL) + __attribute__ ((regparm (3))); const char * get_native () const {return native ? native + namelen : NULL;} const char * get_posix () const {return posix ? posix : NULL;} }; -win_env * __stdcall getwinenv (const char *name, const char *posix = NULL); +win_env * __stdcall getwinenv (const char *name, const char *posix = NULL) + __attribute__ ((regparm (3))); void __stdcall update_envptrs (); extern char **__cygwin_environ, ***main_environ; extern "C" char __stdcall **cur_environ (); char ** __stdcall build_env (const char * const *envp, char *&envblock, - int &envc, bool need_envblock); + int &envc, bool need_envblock) + __attribute__ ((regparm (3))); |