Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What would this safe API look like? The only thing I can think of would be to have the kernel allocate memory in the process and return that pointer, rather than having the caller provide a buffer. Performance would be painful. Is there a faster way that preserves safety?


No allocation--it returns the address of a buffer in a pool. Of course this permits a resource leak. It's a problem with no real solution.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: