/* The name of the client executable, as specified on the command
line. */
-HChar* VG_(args_the_exename) = NULL;
+const HChar* VG_(args_the_exename) = NULL;
// Client's original rlimit data and rlimit stack
struct vki_rlimit VG_(client_rlimit_data);
}
// Returns NULL if it wasn't found.
-HChar* ML_(find_executable) ( HChar* exec )
+HChar* ML_(find_executable) ( const HChar* exec )
{
vg_assert(NULL != exec);
if (VG_(strchr)(exec, '/')) {
#ifndef __PRIV_INITIMG_PATHSCAN_H
#define __PRIV_INITIMG_PATHSCAN_
-extern HChar* ML_(find_executable) ( HChar* exec );
+extern HChar* ML_(find_executable) ( const HChar* exec );
#endif
/*====================================================================*/
// Print the command, escaping any chars that require it.
-static void umsg_or_xml_arg(Char* arg,
+static void umsg_or_xml_arg(const Char* arg,
UInt (*umsg_or_xml)( const HChar*, ... ) )
{
SizeT len = VG_(strlen)(arg);
HChar buf[50], buf2[50+64];
HChar nul[1];
Int fd, r;
- HChar* exename;
+ const HChar* exename;
VG_(debugLog)(1, "main", "Create fake /proc/<pid>/cmdline\n");
/* The name of the client executable, as specified on the command
line. */
-extern HChar* VG_(args_the_exename);
+extern const HChar* VG_(args_the_exename);
#endif // __PUB_TOOL_CLIENTSTATE_H