2 * libc-style definitions and functions
4 * This code is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
10 #ifndef S390_CCW_LIBC_H
11 #define S390_CCW_LIBC_H
15 typedef unsigned char uint8_t;
16 typedef unsigned short uint16_t;
17 typedef unsigned int uint32_t;
18 typedef unsigned long long uint64_t;
20 static inline void *memset(void *s, int c, size_t n)
25 for (i = 0; i < n; i++) {
32 static inline void *memcpy(void *s1, const void *s2, size_t n)
35 const uint8_t *src = s2;
38 for (i = 0; i < n; i++) {