1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/sys/posix/include/sys/bytes.h
Frederik Haxel 394cd0e3a8 sys: 64 bit compatibility
* priority_queue_t: Replaced `-1U` literal with PRIORITY_QUEUE_DATA_SIGNALING define
* architecture.h: Added 64-bit
* bloom.h: Fixed typedef for the hashfp_t function pointer
* vfs.h: Increased default vfs buffer sizes for 64 bit
* bytes.h: Check if socklen_t is already defined
* ztimer: Use PRIxPTR format specifier
2024-01-17 16:05:12 +01:00

46 lines
857 B
C

/*
* Copyright (C) 2015 Martine Lenders <mlenders@inf.fu-berlin.de>
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @addtogroup posix_sockets
*/
/**
* @{
*
* @file
* @brief System-internal byte operations.
*
* @author Martine Lenders <mlenders@inf.fu-berlin.de>
*/
#ifndef SYS_BYTES_H
#define SYS_BYTES_H
#include <stddef.h>
#include "byteorder.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifndef __socklen_t_defined
#if SIZE_MAX < UINT32_MAX
typedef size_t socklen_t; /**< socket address length */
#else
// Specification calls for at least 32 bits
typedef uint32_t socklen_t; /**< socket address length */
#endif
#endif
#ifdef __cplusplus
}
#endif
#endif /* SYS_BYTES_H */
/** @} */