Mail Archives: cygwin/2005/03/29/03:37:12
On Mar 28 23:36, Anthony Heading wrote:
> On Fri, Jan 14, 2005 at 02:35:28PM -0500, Christopher Faylor wrote:
> > On Fri, Jan 14, 2005 at 10:39:23AM -0800, Earl Chew wrote:
> > >I think the name of the current executable is stored in myself->progname
> > >within cygwin1.dll.
> > >
> > >The more easily accessible __progname returns the basename of the
> > >executable.
> > >
> > >Is there a way for an application to obtain myself->program, other
> > >than resorting to raw win32 call to GetModuleFileName()?
> >
> > argv[0] or __argv[0] or /proc/self/exename
>
> Has this link been renamed? It appears to have changed to
> /proc/self/exe now, which has broken a lot of my programs...
The old exename was a file containing the path, the new exe is a symlink
pointing to the binary. This is how it's done on Linux.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader mailto:cygwin AT cygwin DOT com
Red Hat, Inc.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -