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