* Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net [080204 17:42]:
It's not that easy. I need the location of the buffer and the current offset inside the buffer. The one global variable would have pointed to a struct containing all that info.
You want that pointer persistant anyways, because you will likely have to pass it to linux, too. So why not have the first 4 byte of the buffer as "buffer pointer"?
Stefan