syswrap openat2 for all linux arches
[valgrind.git] / drd / drd_strmem_intercepts.c
blobba82014df740306d4882541adbe32a07faf64839
1 /*--------------------------------------------------------------------*/
2 /*--- Replacements for strlen() and strnlen(), which run on the ---*/
3 /*--- simulated CPU. ---*/
4 /*--------------------------------------------------------------------*/
6 /*
7 This file is part of DRD, a heavyweight Valgrind tool for
8 detecting threading errors. The code below has been extracted
9 from memchec/mc_replace_strmem.c, which has the following copyright
10 notice:
12 Copyright (C) 2000-2017 Julian Seward
13 jseward@acm.org
15 This program is free software; you can redistribute it and/or
16 modify it under the terms of the GNU General Public License as
17 published by the Free Software Foundation; either version 2 of the
18 License, or (at your option) any later version.
20 This program is distributed in the hope that it will be useful, but
21 WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23 General Public License for more details.
25 You should have received a copy of the GNU General Public License
26 along with this program; if not, see <http://www.gnu.org/licenses/>.
28 The GNU General Public License is contained in the file COPYING.
31 #include "../shared/vg_replace_strmem.c"