vfs: check userland buffers before reading them.
[haiku.git] / src / tools / fs_shell / byte_order.cpp
blobee6c33dfa1949816ea8086dd79003a4849e339eb
1 /*
2 * Copyright 2008, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
6 #include "compatibility.h"
8 #include <ByteOrder.h>
10 #include "fssh_byte_order.h"
13 uint16_t
14 __fssh_swap_int16(uint16_t value)
16 return __swap_int16(value);
19 uint32_t
20 __fssh_swap_int32(uint32_t value)
22 return __swap_int32(value);
25 uint64_t
26 __fssh_swap_int64(uint64_t value)
28 return __swap_int64(value);