PDA

View Full Version : VFS Context size


dasOp
02-02-2004, 04:03 PM
I didnt see any limit to the actual size of the context. So is there any way of getting io to tell me the needed size for the context buffer of a specific path? Like winapi does for some things.

Or is the answer just to malloc til it hurts and hope noone is insane enough to have that big of a context?

Mouton
02-02-2004, 08:39 PM
If the size u allocated isn't enough, io will return the call will return non-zero, and the return value will be the size it needs.

Never tried myself, but that's what dark said.