[9fans] procdata() question?

2010-02-09 Thread Venkatesh Srinivas
Hi, If I'm writing a library and I'd like to use procdata, is there any way to safely do so, considering that applications using the library might be using procdata as well? Perhaps it should take a key, like pthread_getspecific/_setspecific? Thanks, -- vs

Re: [9fans] procdata() question?

2010-02-09 Thread erik quanstrom
If I'm writing a library and I'd like to use procdata, is there any way to safely do so, considering that applications using the library might be using procdata as well? Perhaps it should take a key, like pthread_getspecific/_setspecific? since procdata(2) it is unused, cd /sys/src

Re: [9fans] procdata() question?

2010-02-09 Thread Russ Cox
Don't use procdata directly; use privalloc. Russ