add BSD ffifunctions