Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Alternative to /proc/self/exe

3 views
Skip to first unread message

Thomas Schwinge

unread,
Oct 31, 2011, 5:27:52 AM10/31/11
to Jan Struyf, help...@gnu.org, glx-...@lists.sf.net
Hi Jan!

On Tue, 11 Oct 2011 11:15:55 +0200 (CEST), Jan Struyf <jan.s...@struyf-ye.org> wrote:
> I'm trying to port a piece of GNU / Linux software to GNU / Hurd.

Thanks!


> On Linux, there is /proc/self/exe to find the absolute path to
> the executable that you are running. Is there an alternative to
> this mechanism on GNU / Hurd? Or should the executable location
> be determined based on argv[0]?

We are aware of this missing functionality, but there is no solution
implemented yet; sorry.


Grüße,
Thomas

Jan Struyf

unread,
Oct 31, 2011, 8:41:16 AM10/31/11
to Thomas Schwinge, help...@gnu.org, glx-...@lists.sf.net

Dear Thomas,

>> On Linux, there is /proc/self/exe to find the absolute path to
>> the executable that you are running. Is there an alternative
>> to this mechanism on GNU / Hurd? Or should the executable
>> location be determined based on argv[0]?
>
> We are aware of this missing functionality, but there is no
> solution implemented yet; sorry.

Thanks for the information! I'll do a solution based on argv[0]
for the moment.

Best Regards,

Jan

Christian T. Steigies

unread,
Oct 31, 2011, 9:28:02 AM10/31/11
to Jan Struyf, glx-...@lists.sf.net, help...@gnu.org, Thomas Schwinge
On Mon, Oct 31, 2011 at 01:41:16PM +0100, Jan Struyf wrote:
>
> Dear Thomas,
>
> > We are aware of this missing functionality, but there is no
> > solution implemented yet; sorry.
>
> Thanks for the information! I'll do a solution based on argv[0]
> for the moment.

And its working, I will fix the remaining (unrelated) build error in my next
upload, so the best plot program will be available on Debian/GNU Hurd real
soon :-)

Christian

0 new messages