1 /** 2 * D header file for OpenBSD string. 3 * 4 * Copyright: Copyright © 2019, The D Language Foundation 5 * License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>. 6 * Authors: Ernesto Castellotti 7 */ 8 module core.sys.openbsd.string; 9 10 public import core.stdc.string; 11 import core.sys.openbsd.sys.cdefs; 12 13 version (OpenBSD): 14 extern (C): 15 nothrow: 16 @nogc: 17 18 static if (__BSD_VISIBLE) 19 { 20 void explicit_bzero(void*, size_t); 21 pure void* memmem(return scope const void* haystack, size_t haystacklen, scope const void* needle, size_t needlelen); 22 void* memrchr(scope const void*, int, size_t); 23 size_t strlcat(char*, scope const char*, size_t); 24 size_t strlcpy(char*, scope const char*, size_t); 25 void strmode(int, char*); 26 char* strsep(char**, scope const char*); 27 pure int timingsafe_bcmp(scope const void*, scope const void*, size_t); 28 pure int timingsafe_memcmp(scope const void*, scope const void*, size_t); 29 } 30