27#if !defined(AV_OFFSET) || !defined(FP_INDIR)
33#ifdef HAVE_VAR___PROGNAME
35#ifdef HAVE_VAR___PROGNAME_FULL
36extern char *__progname_full;
38#define __progname_full __progname
79 if (slen <= (
int)
sizeof (
av0_sp))
134 if (slen <=
sizeof (
prn_sp))
177#if defined(HAVE_SCANSTACK) || defined(HAVE_GETPROGNAME)
185#ifdef HAVE_GETPROGNAME
192#ifdef HAVE_VAR___PROGNAME
193 if (__progname_full) {
210#if defined(HAVE_DLINFO) && defined(HAVE_DLOPEN_IN_LIBC) && defined(RTLD_DI_ARGSINFO)
213 if (dlinfo(RTLD_SELF, RTLD_DI_ARGSINFO, &
args) < 0 ||
214 args.dla_argc <= 0 ||
ACPI_SIZE strlen(const char *String)
char * strcpy(char *DstString, const char *SrcString)
static const char * progname
LOCAL void save_av0(char *av0)
EXPORT void set_progname(char *name) const
EXPORT void save_args(int ac, av)
EXPORT char * get_progname()
LOCAL void init_progname()
static char * progpath_saved
EXPORT char ** saved_av()
EXPORT char * saved_av0()
LOCAL void init_arginfo()
EXPORT char * get_progpath()
static char * progname_saved
static char * av0_name_saved
_Check_return_ _CRTIMP _CONST_RETURN char *__cdecl strrchr(_In_z_ const char *_Str, _In_ int _Ch)