From 68a7538d5a80ec8db48c02d4a9de7199df0af9f9 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Mon, 29 Mar 2010 16:58:30 -0700 Subject: com32: export the filename of a com32 module to the module itself Export the filename of the com32 module to the module itself, setting argv[0]. Signed-off-by: H. Peter Anvin --- com32/include/com32.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'com32/include/com32.h') diff --git a/com32/include/com32.h b/com32/include/com32.h index aa7fb4b6..665fa0bf 100644 --- a/com32/include/com32.h +++ b/com32/include/com32.h @@ -95,12 +95,13 @@ typedef struct { extern struct com32_sys_args { uint32_t cs_sysargs; char *cs_cmdline; - void __cdecl(*cs_intcall) (uint8_t, const com32sys_t *, com32sys_t *); + void __cdecl (*cs_intcall)(uint8_t, const com32sys_t *, com32sys_t *); void *cs_bounce; uint32_t cs_bounce_size; - void __cdecl(*cs_farcall) (uint32_t, const com32sys_t *, com32sys_t *); - int __cdecl(*cs_cfarcall) (uint32_t, const void *, uint32_t); + void __cdecl (*cs_farcall)(uint32_t, const com32sys_t *, com32sys_t *); + int __cdecl (*cs_cfarcall)(uint32_t, const void *, uint32_t); uint32_t cs_memsize; + const char *cs_name; } __com32; /* -- cgit v1.2.1