/usr/lib/gcc/x86_64-linux-gnu/5/include/d/rt/arraycat.d is in libphobos-5-dev 5.5.0-12ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | /**
* Implementation of array copy support routines.
*
* Copyright: Copyright Digital Mars 2004 - 2010.
* License: $(WEB www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
* Authors: Walter Bright, Sean Kelly
*/
/* Copyright Digital Mars 2004 - 2010.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
module rt.arraycat;
private
{
import core.stdc.string;
import rt.util.array;
import rt.util.string;
debug(PRINTF) import core.stdc.stdio;
}
extern (C) @trusted nothrow:
void[] _d_arraycopy(size_t size, void[] from, void[] to)
{
debug(PRINTF) printf("f = %p,%d, t = %p,%d, size = %d\n",
from.ptr, from.length, to.ptr, to.length, size);
enforceRawArraysConformable("copy", size, from, to);
memcpy(to.ptr, from.ptr, to.length * size);
return to;
}
|