This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2 0/3] posix: Execute file function fixes


Adhemerval Zanella wrote:
Execlp can not because since it can be used in following vfork.

I guess that's OK. Please document that execlp has the same limitations that execl and execle do, in this area.


the only missing point is total mmap area of posix_spawn which sets a hard limit for old shell argument handling and posix_spawnp. We can either document these limit or add a logic to calculate total argument list and mmap an area to accommodate all of it.

It's better to not impose hard limits of our own.

One other hard limit is that argc cannot exceed INT_MAX; posix_spawn* should ensure that the argc it computes doesn't go past that.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]