try to collect common bsd code
4 files changed