socket is located in:
m3core/src/runtime/FreeBSD4/socket.c
m3core/src/runtime/FreeBSD3/socket.c