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     pure void* memmem(return const void* haystack, size_t haystacklen, scope const void* needle, size_t needlelen);
21     pure int timingsafe_bcmp(scope const void*, scope const void*, size_t);
22     pure int timingsafe_memcmp(scope const void*, scope const void*, size_t);
23 }
24