mirror of
https://github.com/openRuyi-Project/gcc.git
synced 2026-09-06 22:11:37 +00:00
D front-end changes: - Import dmd v2.112.0-beta.1. D runtime changes: - Import druntime v2.112.0-beta.1. - Added 64-bit `mul' and `udivmod' overloads to `core.int128'. Phobos changes: - Added `lazyCache' to `std.algorithm.iteration'. - Added `writeText', `writeWText', and `writeDText' to `std.conv'. gcc/d/ChangeLog: * dmd/MERGE: Merge upstream dmd 1017635a96. * dmd/VERSION: Bump version to v2.112.0-beta.1. * decl.cc (DeclVisitor::finish_vtable): Update for new front-end interface. (DeclVisitor::visit): Likewise. * typeinfo.cc (TypeInfoVisitor::visit): Likewise. libphobos/ChangeLog: * libdruntime/MERGE: Merge upstream druntime 1017635a96. * libdruntime/Makefile.am (DRUNTIME_DSOURCES_LINUX): Add core/sys/linux/sys/syscall.d, core/sys/linux/syscall.d. * libdruntime/Makefile.in: Regenerate. * src/MERGE: Merge upstream phobos 5a142da0a. * src/Makefile.am (PHOBOS_DSOURCES): Remove std/internal/windows/bcrypt.d. * src/Makefile.in: Regenerate. gcc/testsuite/ChangeLog: * gdc.dg/asm1.d: Adjust test.
30 lines
954 B
D
30 lines
954 B
D
/**
|
|
* D header file for OpenBSD string.
|
|
*
|
|
* Copyright: Copyright © 2019, The D Language Foundation
|
|
* License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
|
|
* Authors: Emily Castellotti
|
|
*/
|
|
module core.sys.openbsd.string;
|
|
|
|
public import core.stdc.string;
|
|
import core.sys.openbsd.sys.cdefs;
|
|
|
|
version (OpenBSD):
|
|
extern (C):
|
|
nothrow:
|
|
@nogc:
|
|
|
|
static if (__BSD_VISIBLE)
|
|
{
|
|
void explicit_bzero(void*, size_t);
|
|
pure void* memmem(return scope const void* haystack, size_t haystacklen, scope const void* needle, size_t needlelen);
|
|
void* memrchr(scope const void*, int, size_t);
|
|
size_t strlcat(char*, scope const char*, size_t);
|
|
size_t strlcpy(char*, scope const char*, size_t);
|
|
void strmode(int, char*);
|
|
char* strsep(char**, scope const char*);
|
|
pure int timingsafe_bcmp(scope const void*, scope const void*, size_t);
|
|
pure int timingsafe_memcmp(scope const void*, scope const void*, size_t);
|
|
}
|