[ofw] [PATCH] complib: add cl_nodenamemap

Sean Hefty sean.hefty at intel.com
Mon Mar 2 11:32:31 PST 2009


>also, the implementation of cl_nodenamemap could be platform dependent, with
>fopen, strdup, etc. replaced with non CRT calls that are available.  I'll look
>into this option.

These are the calls that need to be replaced, and some replacement calls:

__imp_free			HeapFree
__imp__strtoui64 
__imp_malloc		HeapAlloc
__imp_strerror		can remove
__imp__errno		can remove
__imp_fgets
__imp_strtok
__imp_fopen			CreateFile
__imp_fprintf		can remove
__imp__strdup
__imp__iob			no idea where this comes from
__imp_fclose		CloseHandle

I don't know of easy replacement calls for the other functions.  We could
obviously implement our own versions of these, but that doesn't seem worth it.
The more painful calls to deal with are strtoui64 and fgets.  Thoughts anyone?

- Sean




More information about the ofw mailing list