lkml.org 
[lkml]   [2003]   [Jan]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Changing argv[0] under Linux.
On Tue, 14 Jan 2003, DervishD wrote:

> Hi Richard :)
>
> > > Any header where I can see the length for argv[0] or is this some
> > > kind of unoficial standard? Just doing strcpy seems dangerous to me
> > > (you can read 'paranoid'...).
> > They need to have space for _POSIX_PATH_MAX (512 bytes), to
> > claim POSIX compatibility so any POSIX system will have at
> > least 512 bytes available because the pathname of the executable
> > normally goes there.
>
> Enough for me, then. Thanks a lot :)) Just one more thing: in my
> Single Unix Spec v3 says that the minimum value of _POSIX_PATH_MAX is
> 256, not 512, and the libc manual says just the same :??
>
> Anyway, 256 bytes is a fair large amount ;))))
>
> Thanks again, Richard.
>
> Ra
\
 
 \ /
  Last update: 2005-03-22 13:32    [from the cache]
©2003-2011 Jasper Spaans