在内核代码中加入自定义的stdint.h文件 (#109)

This commit is contained in:
login
2022-12-16 16:20:09 +08:00
committed by GitHub
parent d02e6ea411
commit 0e0c187484
17 changed files with 4505 additions and 17 deletions

View File

@ -1,9 +1,9 @@
#pragma once
#include <DragonOS/stdint.h>
#include <common/glib.h>
#include "stdint.h"
#include <common/semaphore.h>
#include <common/mutex.h>
#include <common/semaphore.h>
#define BLK_TYPE_AHCI 0
@ -16,7 +16,7 @@ struct block_device_operation
long (*open)();
long (*close)();
long (*ioctl)(long cmd, long arg);
/**
* @brief 块设备驱动程序的传输函数
*

View File

@ -1,6 +1,6 @@
#pragma once
#include <common/compiler.h>
#include <stdint.h>
#include <DragonOS/stdint.h>
#define MAX_ERRNO 4095
#define IS_ERR_VALUE(x) unlikely((x) >= (uint64_t)-MAX_ERRNO)

View File

@ -7,7 +7,7 @@
//引入对bool类型的支持
#include <stdbool.h>
#include <stdint.h>
#include <DragonOS/stdint.h>
#include <common/stddef.h>
#include <arch/arch.h>
#include <common/compiler.h>

View File

@ -1,6 +1,6 @@
#pragma once
#include <stdint.h>
#include <DragonOS/stdint.h>
#include <common/spinlock.h>
struct kfifo_t

View File

@ -566,7 +566,7 @@ extern "C"
#define LZ4_HASH_SIZE_U32 (1 << LZ4_HASHLOG) /* required as macro for static allocation */
#if defined(__cplusplus) || (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */)
#include <stdint.h>
#include <DragonOS/stdint.h>
typedef int8_t LZ4_i8;
typedef uint8_t LZ4_byte;
typedef uint16_t LZ4_u16;

View File

@ -5,3 +5,7 @@
#define NULL 0
typedef __PTRDIFF_TYPE__ ptrdiff_t; // Signed integer type of the result of subtracting two pointers.
#ifndef __always_inline
#define __always_inline __inline__
#endif

View File

@ -1,6 +1,6 @@
#pragma once
#include <stdint.h>
#include <DragonOS/stdint.h>
#include <stdbool.h>
typedef unsigned char u_char;