[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Finding the dump
From: |
Andreas Schwab |
Subject: |
Re: Finding the dump |
Date: |
Sun, 27 Jan 2019 19:46:20 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1.91 (gnu/linux) |
On Jan 27 2019, "Daniel Colascione" <address@hidden> wrote:
> There's some confusion on this thread. argv[0] *is* reliable
Nope. The caller can set argv[0] to any string. It is in not required
to be related to the name of the executable in any way.
> every system I've seen. Here's the algorithm: look at argv[0]: if it's not
> an absolute path, make it absolute by prepending the startup CWD.
If the executable is found on $PATH then argv[0] is *not* relative to CWD.
Andreas.
--
Andreas Schwab, address@hidden
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
- Re: Finding the dump, (continued)
- Re: Finding the dump, Andreas Schwab, 2019/01/26
- Re: Finding the dump, Eli Zaretskii, 2019/01/26
- Re: Finding the dump, Andreas Schwab, 2019/01/26
- Re: Finding the dump, Eli Zaretskii, 2019/01/27
- Re: Finding the dump, Andreas Schwab, 2019/01/27
- Re: Finding the dump, Eli Zaretskii, 2019/01/27
- Re: Finding the dump, Andreas Schwab, 2019/01/27
- Re: Finding the dump, Eli Zaretskii, 2019/01/27
- Re: Finding the dump, Andreas Schwab, 2019/01/27
- Re: Finding the dump, Daniel Colascione, 2019/01/27
- Re: Finding the dump,
Andreas Schwab <=
- Re: Finding the dump, Stefan Monnier, 2019/01/27
- Re: Finding the dump, Daniel Colascione, 2019/01/27
- Re: Finding the dump, Stefan Monnier, 2019/01/27
- Re: Finding the dump, Daniel Colascione, 2019/01/27
- Re: Finding the dump, Andreas Schwab, 2019/01/27
- Re: Finding the dump, Daniel Colascione, 2019/01/27
- Re: Finding the dump, Andreas Schwab, 2019/01/27
- Re: Finding the dump, Paul Eggert, 2019/01/27
- Re: Finding the dump, Daniel Colascione, 2019/01/27
- Re: Finding the dump, Paul Eggert, 2019/01/27