[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [MiNT] expanded /proc vs new /kern



> From: owner-mint@fishpool.com [mailto:owner-mint@fishpool.com]On Behalf
> Of Jo Even Skarstein
> Sent: Monday, December 06, 1999 9:42 PM
> To: mint@fishpool.com
> Subject: RE: [MiNT] expanded /proc vs new /kern
>
>
> On Mon, 6 Dec 1999 19:38:40 +0100, Julian Reschke wrote:
>
> > > I suggest that if the full name is really needed, then a new ioctl on
> > > /proc/.[pid] would suffice. Guido already suggested an ioctl to
> > > retrieve the
> > > argument-vector which also will return the complete filename of
> > > the process.
> >
> > The latter is called PLOADINFO and has been around in MiNT for
> several years
> > now.
>
> >From the Atari Compendium:
>
> "cmd should point to a 128 byte character
> buffer into which the processes' command line
> will be copied. fname should point to a buffer
> fnamelen bytes long into which the complete
> path and filename of the process' parent will
> be copied. If the buffer is too short the call
> will return ENAMETOOLONG."
>
> As far as I can see it only returns the commandline you normally
> find in the
> basepage, and not the ARGV-commandline. AFAIK the name of the
> process is not
> found on this commandline, although I could be wrong (I very often am).
>
> As for 'fname', why does it return the path and filename to the process'
> *parent* and not the process itself? Am I missing something
> incredibly obvious
> here?

Well, I guess this is a very good example for the bugs in this bug. Of
course PLOADINFO gives the file name from which the given process was
loaded, not for the parent.