We are developing a project 'FCoE support for gPXE'.
The open-fcoe group(open-fcoe.org) have implemented FCoE protocol but that is created to run in linux environment i.e. it uses linux library functions from socket.h,ioctl.h,types.,etc.

I need to make this implementation to run under perboot execution environment (gPXE)
so i need to make it free from usages of library functions.
how can that be done.

Plz help