diff packages/hal/synth/arch/current/include/hal_io.h @ 260:922ca26d90c4

Add variables cyg_hal_sys_argc/argv/environ, corresponding to the arguments and environment vector passed to the synthetic target application.
author bartv
date Sun, 04 Aug 2002 23:18:58 +0000
parents d2c90368aeef
children 7c1c8dc43ba1
line wrap: on
line diff
--- a/packages/hal/synth/arch/current/include/hal_io.h
+++ b/packages/hal/synth/arch/current/include/hal_io.h
@@ -409,6 +409,11 @@ externC int             cyg_hal_sys_getc
 // mmap on the "host" system - this may be unportable.
 externC int             cyg_hal_sys_mmap(struct cyg_hal_sys_mmap_args *);
 
+// Access to environmental data
+extern int              cyg_hal_sys_argc;
+extern const char**     cyg_hal_sys_argv;
+extern const char**     cyg_hal_sys_environ;
+
 // ----------------------------------------------------------------------------
 // Interaction between the application and the auxiliary.
 // Not yet available, but there is a hardware-initialization routine.