openbsd function fixes