aboutsummaryrefslogtreecommitdiffstats
path: root/com32/include
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2010-03-29 16:58:30 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2010-03-29 16:58:30 -0700
commit68a7538d5a80ec8db48c02d4a9de7199df0af9f9 (patch)
tree1b69abbdf7ec57cb1c8de4abd662a5639d2436b7 /com32/include
parentb684e0fe03ea0ad949f087b0a4d58fa3a8b29116 (diff)
downloadsyslinux-68a7538d5a80ec8db48c02d4a9de7199df0af9f9.tar.gz
syslinux-68a7538d5a80ec8db48c02d4a9de7199df0af9f9.tar.xz
syslinux-68a7538d5a80ec8db48c02d4a9de7199df0af9f9.zip
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 <hpa@linux.intel.com>
Diffstat (limited to 'com32/include')
-rw-r--r--com32/include/com32.h7
1 files changed, 4 insertions, 3 deletions
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;
/*