Re: environment strings

1999-06-29 Thread Greg Lehey
On Tuesday, 29 June 1999 at 5:56:37 -0400, Brian F. Feldman wrote: > On Tue, 29 Jun 1999, Brian F. Feldman wrote: > >> >> That's not true, Greg. I'm sure you of all people know that it (the >> composition of address space) is described in "The Design and >> Implementation of the 4.4BSD Operating

Re: environment strings

1999-06-29 Thread Greg Lehey
On Tuesday, 29 June 1999 at 5:56:37 -0400, Brian F. Feldman wrote: > On Tue, 29 Jun 1999, Brian F. Feldman wrote: > >> >> That's not true, Greg. I'm sure you of all people know that it (the >> composition of address space) is described in "The Design and >> Implementation of the 4.4BSD Operating S

Re: environment strings

1999-06-29 Thread Peter Jeremy
Wes Peters <[EMAIL PROTECTED]> wrote: >Time for a main() man page? Where would it go? Section 2, 3, or 9? >Hmm... I'd support that. I believe the page needs to be tied to exec (ala setjmp/longjmp), which means it either ties to execve(2) or exec*(3). Note that execve(2) already includes a ref

Re: environment strings

1999-06-29 Thread Peter Jeremy
Wes Peters wrote: >Time for a main() man page? Where would it go? Section 2, 3, or 9? >Hmm... I'd support that. I believe the page needs to be tied to exec (ala setjmp/longjmp), which means it either ties to execve(2) or exec*(3). Note that execve(2) already includes a reference to the callin

Re: environment strings

1999-06-29 Thread Brian F. Feldman
On Tue, 29 Jun 1999, Brian F. Feldman wrote: > > That's not true, Greg. I'm sure you of all people know that it (the > composition of address space) is described in "The Design and > Implementation of the 4.4BSD Operating System," even if things > are slightly different in FreeBSD of today (espe

Re: environment strings

1999-06-29 Thread Brian F. Feldman
On Tue, 29 Jun 1999, Brian F. Feldman wrote: > > That's not true, Greg. I'm sure you of all people know that it (the > composition of address space) is described in "The Design and > Implementation of the 4.4BSD Operating System," even if things > are slightly different in FreeBSD of today (espec

Re: environment strings

1999-06-29 Thread Greg Lehey
On Tuesday, 29 June 1999 at 5:49:04 -0400, Brian F. Feldman wrote: > On Tue, 29 Jun 1999, Greg Lehey wrote: > >> On Monday, 28 June 1999 at 23:32:59 -0400, Amol Mohite wrote: >>> What I want to know is the exact position of these variables on the stack. >> >> As I said, at the top. >> >>> and if

Re: environment strings

1999-06-29 Thread Greg Lehey
On Tuesday, 29 June 1999 at 5:49:04 -0400, Brian F. Feldman wrote: > On Tue, 29 Jun 1999, Greg Lehey wrote: > >> On Monday, 28 June 1999 at 23:32:59 -0400, Amol Mohite wrote: >>> What I want to know is the exact position of these variables on the stack. >> >> As I said, at the top. >> >>> and if a

Re: environment strings

1999-06-29 Thread Brian F. Feldman
On Tue, 29 Jun 1999, Greg Lehey wrote: > On Monday, 28 June 1999 at 23:32:59 -0400, Amol Mohite wrote: > > What I want to know is the exact position of these variables on the stack. > > As I said, at the top. > > > and if anywhere I can find some data, on the exact compisoition of > > the stcak

Re: environment strings

1999-06-29 Thread Brian F. Feldman
On Tue, 29 Jun 1999, Greg Lehey wrote: > On Monday, 28 June 1999 at 23:32:59 -0400, Amol Mohite wrote: > > What I want to know is the exact position of these variables on the stack. > > As I said, at the top. > > > and if anywhere I can find some data, on the exact compisoition of > > the stcak,

Re: environment strings

1999-06-28 Thread Wes Peters
Greg Lehey wrote: > > On Tuesday, 29 June 1999 at 12:18:07 +1000, Patryk Zadarnowski wrote: > > > > This is of course correct except for the `undocumented' claim. The > > `envp' has been documented as the third argument to main() since the > > Pharaons (well, not quite ;). Apparently AT&T UNIX ev

Re: environment strings

1999-06-28 Thread Wes Peters
Greg Lehey wrote: > > On Tuesday, 29 June 1999 at 12:18:07 +1000, Patryk Zadarnowski wrote: > > > > This is of course correct except for the `undocumented' claim. The > > `envp' has been documented as the third argument to main() since the > > Pharaons (well, not quite ;). Apparently AT&T UNIX eve

Re: environment strings

1999-06-28 Thread Greg Lehey
On Tuesday, 29 June 1999 at 14:44:39 +1000, Patryk Zadarnowski wrote: > >> I know about envp. >> >> What I want to know is the exact position of these variables on the stack. >> >> and if anywhere I can find some data, on the exact compisoition of the >> stcak, then it will be very helpful. >> >>

Re: environment strings

1999-06-28 Thread Greg Lehey
On Tuesday, 29 June 1999 at 14:44:39 +1000, Patryk Zadarnowski wrote: > >> I know about envp. >> >> What I want to know is the exact position of these variables on the stack. >> >> and if anywhere I can find some data, on the exact compisoition of the >> stcak, then it will be very helpful. >> >> r

Re: environment strings

1999-06-28 Thread Patryk Zadarnowski
> I know about envp. > > What I want to know is the exact position of these variables on the stack. > > and if anywhere I can find some data, on the exact compisoition of the > stcak, then it will be very helpful. > > references of books and websites wil be most helpful. Basically, i386 BSD k

Re: environment strings

1999-06-28 Thread Patryk Zadarnowski
> I know about envp. > > What I want to know is the exact position of these variables on the stack. > > and if anywhere I can find some data, on the exact compisoition of the > stcak, then it will be very helpful. > > references of books and websites wil be most helpful. Basically, i386 BSD ke

Re: environment strings

1999-06-28 Thread Greg Lehey
On Monday, 28 June 1999 at 23:32:59 -0400, Amol Mohite wrote: >> On Monday, 28 June 1999 at 5:54:29 -0400, Amol Mohite wrote: >>> >>> Hi! >>> >>> i hope this is the right list for this qs. >>> >>> I wanted t know where the environment strings i bsd were stored after a >>> program execs another on

Re: environment strings

1999-06-28 Thread Greg Lehey
On Monday, 28 June 1999 at 23:32:59 -0400, Amol Mohite wrote: >> On Monday, 28 June 1999 at 5:54:29 -0400, Amol Mohite wrote: >>> >>> Hi! >>> >>> i hope this is the right list for this qs. >>> >>> I wanted t know where the environment strings i bsd were stored after a >>> program execs another one

Re: environment strings

1999-06-28 Thread Anonymous
I know about envp. What I want to know is the exact position of these variables on the stack. and if anywhere I can find some data, on the exact compisoition of the stcak, then it will be very helpful. references of books and websites wil be most helpful. amol > On Monday, 28 June 1999 at

Re: environment strings

1999-06-28 Thread Amol Mohite
I know about envp. What I want to know is the exact position of these variables on the stack. and if anywhere I can find some data, on the exact compisoition of the stcak, then it will be very helpful. references of books and websites wil be most helpful. amol > On Monday, 28 June 1999 at

Re: environment strings

1999-06-28 Thread Anonymous
On Tue, 29 Jun 1999, Greg Lehey wrote: > > This is of course correct except for the `undocumented' claim. The > > `envp' has been documented as the third argument to main() since the > > Pharaons (well, not quite ;). Apparently AT&T UNIX even has a > > (documented) five-parameter main(). > > Thi

Re: environment strings

1999-06-28 Thread Chuck Robey
On Tue, 29 Jun 1999, Greg Lehey wrote: > > This is of course correct except for the `undocumented' claim. The > > `envp' has been documented as the third argument to main() since the > > Pharaons (well, not quite ;). Apparently AT&T UNIX even has a > > (documented) five-parameter main(). > > This

Re: environment strings

1999-06-28 Thread Anonymous
> > This is of course correct except for the `undocumented' claim. The > > `envp' has been documented as the third argument to main() since the > > Pharaons (well, not quite ;). Apparently AT&T UNIX even has a > > (documented) five-parameter main(). > > This is news to me. Can you point to the

Re: environment strings

1999-06-28 Thread Patryk Zadarnowski
> > This is of course correct except for the `undocumented' claim. The > > `envp' has been documented as the third argument to main() since the > > Pharaons (well, not quite ;). Apparently AT&T UNIX even has a > > (documented) five-parameter main(). > > This is news to me. Can you point to the d

Re: environment strings

1999-06-28 Thread Anonymous
On Tuesday, 29 June 1999 at 12:18:07 +1000, Patryk Zadarnowski wrote: > >>> I wanted t know where the environment strings i bsd were stored after a >>> program execs another one. > > extern char **environ; > >> At the top of memory. You can access them by the standard (but >> undocumented) method

Re: environment strings

1999-06-28 Thread Greg Lehey
On Tuesday, 29 June 1999 at 12:18:07 +1000, Patryk Zadarnowski wrote: > >>> I wanted t know where the environment strings i bsd were stored after a >>> program execs another one. > > extern char **environ; > >> At the top of memory. You can access them by the standard (but >> undocumented) method:

Re: environment strings

1999-06-28 Thread Anonymous
> > I wanted t know where the environment strings i bsd were stored after a > > program execs another one. extern char **environ; > At the top of memory. You can access them by the standard (but > undocumented) method: > > int main (int argc, char *argv [], char *envp []) > > envp is a poin

Re: environment strings

1999-06-28 Thread Patryk Zadarnowski
> > I wanted t know where the environment strings i bsd were stored after a > > program execs another one. extern char **environ; > At the top of memory. You can access them by the standard (but > undocumented) method: > > int main (int argc, char *argv [], char *envp []) > > envp is a point

Re: environment strings

1999-06-28 Thread Anonymous
On Monday, 28 June 1999 at 5:54:29 -0400, Amol Mohite wrote: > > Hi! > > i hope this is the right list for this qs. > > I wanted t know where the environment strings i bsd were stored after a > program execs another one. At the top of memory. You can access them by the standard (but undocumente

Re: environment strings

1999-06-28 Thread Greg Lehey
On Monday, 28 June 1999 at 5:54:29 -0400, Amol Mohite wrote: > > Hi! > > i hope this is the right list for this qs. > > I wanted t know where the environment strings i bsd were stored after a > program execs another one. At the top of memory. You can access them by the standard (but undocumented