gathered all versions of sglist code into cpp/dmaSendFd.h