]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - include/os/linux/spl/sys/strings.h
Update OpenZFS to 2.0.0-rc3-gbd565f
[FreeBSD/FreeBSD.git] / include / os / linux / spl / sys / strings.h
1 /*
2  *  Copyright (C) 2018 Lawrence Livermore National Security, LLC.
3  *  Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
4  *  UCRL-CODE-235197
5  *
6  *  This file is part of the SPL, Solaris Porting Layer.
7  *
8  *  The SPL is free software; you can redistribute it and/or modify it
9  *  under the terms of the GNU General Public License as published by the
10  *  Free Software Foundation; either version 2 of the License, or (at your
11  *  option) any later version.
12  *
13  *  The SPL is distributed in the hope that it will be useful, but WITHOUT
14  *  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15  *  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
16  *  for more details.
17  *
18  *  You should have received a copy of the GNU General Public License along
19  *  with the SPL.  If not, see <http://www.gnu.org/licenses/>.
20  */
21 #ifndef _SPL_SYS_STRINGS_H
22 #define _SPL_SYS_STRINGS_H
23
24 #include <linux/string.h>
25
26 #define bzero(ptr, size)                memset(ptr, 0, size)
27 #define bcopy(src, dest, size)          memmove(dest, src, size)
28 #define bcmp(src, dest, size)           memcmp((src), (dest), (size_t)(size))
29
30 #endif  /* _SPL_SYS_STRINGS_H */