LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* Peek at envinroment of procs
@ 2007-01-23  1:54 Jan Engelhardt
  0 siblings, 0 replies; only message in thread
From: Jan Engelhardt @ 2007-01-23  1:54 UTC (permalink / raw)
  To: Linux Kernel Mailing List

Hi,


what is the preferred way to get at another process's environment 
variables? /proc/$$/environ looks like the most portable way [across all 
arches Linux runs on], but it cannot easily be mmap'ed because the size 
is not known. In fact, mmap does not seem to work at all on that file. 
So I would have to allocate a large buffer (4K is the limit for procfs 
files AFAICR) to potentially hold big environments, which does not sound 
really wise either. Or is it the best choice available?


	-`J'
-- 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-01-23  1:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-23  1:54 Peek at envinroment of procs Jan Engelhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).