git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Extend runtime prefix computation

From
MWMichael Weiser <m.weiser@science-computing.de>
Date
Nov 30, 2012, 10:45 UTC
Message-ID
<20121130104532.GC2640@science-computing.de>
In-Reply-To
<CABPQNSYhscHdnTFLye=oif_R84kpdaVsrCK+-174v7Ugrae_yQ@mail.gmail.com>
Hello Erik,
On Fri, Nov 30, 2012 at 11:20:52AM +0100, Erik Faye-Lund wrote:
Show 12 quoted lines
> > +#if defined(__linux__)
> > +               struct stat st;
> > +               if (!stat("/proc/self/exe", &st)) {
> > +                       abs_argv0 = xstrdup(real_path("/proc/self/exe"));
> > +               }
> > +#elif defined(__APPLE__)
> > +               /* Mac OS X has realpath, which incidentally allocates its own
> > +                * memory, which in turn is why we do all the xstrdup's in the
> > +                * other cases. */
> > +               abs_argv0 = realpath(argv0, NULL);
> > +#endif
> ...perhaps a "GetModuleFileName(NULL, ...)" for Windows is in place here?

Agreed. However, I do not use git on Windows and don't have a Windows devel toolchain in place. So I guess this should be added in a separate patch by someone actually in need of it and in a position to develop and test it?

Thanks,
-- 
Michael Weiser                science + computing ag
Senior Systems Engineer       Geschaeftsstelle Duesseldorf
                              Martinstrasse 47-55, Haus A
phone: +49 211 302 708 32     D-40223 Duesseldorf
fax:   +49 211 302 708 50     www.science-computing.de
-- 
Vorstandsvorsitzender/Chairman of the board of management:
Gerd-Lothar Leonhart
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Michael Heinrichs, 
Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Philippe Miltin
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196
Previous: Erik Faye-LundNext: Michael Weiser
Message 3 of 11 in “Extend runtime prefix computation”
  1. Extend runtime prefix computationMichael Weiser, Nov 27, 2012
  2. Erik Faye-LundNov 30, 2012
  3. Michael WeiserNov 30, 2012
  4. Michael WeiserMar 5, 2013
  5. Junio C HamanoMar 5, 2013
  6. Michael WeiserMar 6, 2013
  7. Michael WeiserApr 16, 2013
  8. Junio C HamanoApr 16, 2013
  9. Erik Faye-LundApr 16, 2013
  10. Michael WeiserApr 17, 2013
  11. Michael WeiserOct 4, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.