All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Aleksandar Milivojevic <amilivojevic@pbl.ca>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: argv null terminated in main()?
Date: Thu, 16 Sep 2004 22:01:13 +0100	[thread overview]
Message-ID: <1095368471.23579.0.camel@localhost.localdomain> (raw)
In-Reply-To: <414A04F6.8040106@pbl.ca>

On Iau, 2004-09-16 at 22:26, Aleksandar Milivojevic wrote:
> I was looking for info on this question on web and in documentation, but 
> couldn't find it documented anywhere.
> 
> The question is, after call to execve() system call, and after new image 
> is loaded, is argv (as passed to main() function of new program) NULL 
> terminated or not in Linux?

Yes. execve is documented in SuS v3 which you can find on the web. See
also info glibc which does have a lot more information on other useful
extensions like saved argv0 copies.


Alan


  reply	other threads:[~2004-09-16 22:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-16 21:26 argv null terminated in main()? Aleksandar Milivojevic
2004-09-16 21:01 ` Alan Cox [this message]
2004-09-17 13:54   ` Aleksandar Milivojevic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1095368471.23579.0.camel@localhost.localdomain \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=amilivojevic@pbl.ca \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.