head: Add more standard headers

Signed-off-by: Ian Moffett <ian@mirocom.org>
This commit is contained in:
2026-04-16 22:18:18 -04:00
parent d7acb60fa9
commit 5a2d6a8b64
3 changed files with 82 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
/*
* Copyright (c) 2026, Mirocom Laboratories
* All rights reserved.
*
* The following sources are CONFIDENTIAL and PROPRIETARY
* property of Mirocom Laboratories. Unauthorized copying,
* use, distribution or modification of this file, in whole
* and in part, is strictly prohibited without the prior written
* consent from Mirocom Laboratories.
*/
#ifndef _STDINT_H_
#define _STDINT_H_ 1
#include <sys/types.h>
typedef __ssize_t ssize_t;
typedef __size_t size_t;
#endif /* !_STDINT_H_ */
+29
View File
@@ -0,0 +1,29 @@
/*
* Copyright (c) 2026, Mirocom Laboratories
* All rights reserved.
*
* The following sources are CONFIDENTIAL and PROPRIETARY
* property of Mirocom Laboratories. Unauthorized copying,
* use, distribution or modification of this file, in whole
* and in part, is strictly prohibited without the prior written
* consent from Mirocom Laboratories.
*/
#ifndef _STDINT_H_
#define _STDINT_H_ 1
#include <sys/types.h>
/* Unsigned types */
typedef __uint8_t uint8_t;
typedef __uint16_t uint16_t;
typedef __uint32_t uint32_t;
typedef __uint64_t uint64_t;
/* Unsigned types */
typedef __int8_t int8_t;
typedef __int16_t int16_t;
typedef __int32_t int32_t;
typedef __int64_t int64_t;
#endif /* !_STDINT_H_ */
+33
View File
@@ -0,0 +1,33 @@
/*
* Copyright (c) 2026, Mirocom Laboratories
* All rights reserved.
*
* The following sources are CONFIDENTIAL and PROPRIETARY
* property of Mirocom Laboratories. Unauthorized copying,
* use, distribution or modification of this file, in whole
* and in part, is strictly prohibited without the prior written
* consent from Mirocom Laboratories.
*/
#ifndef _STRING_H_
#define _STRING_H_ 1
#include <sys/types.h>
#include <stddef.h>
/*
* Fill a buffer with 'n' bytes of 'c'
*/
void *memset(void *s, int c, size_t n);
/*
* Compare 'n' bytes of two buffers 's1' and 's2'
*/
int memcmp(const void *s1, const void *s2, size_t n);
/*
* Copy 'count' bytes of 'src' to 'dest'
*/
void *memcpy(void *dest, const void *src, size_t count);
#endif /* _STRING_H_ */