From c3a8e22f2e0eb0201ac123017fb4c6ca3ce6f8c5 Mon Sep 17 00:00:00 2001 From: WuZheng Date: Tue, 14 Jan 2025 05:25:44 +0000 Subject: [PATCH] recover `clean_c` for Makefile. --- Makefile | 3 +++ ulib/include/ax_pthread_cond.h | 2 +- ulib/include/ax_pthread_mutex.h | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 957517e9e..2d76c7945 100644 --- a/Makefile +++ b/Makefile @@ -270,6 +270,9 @@ clean: clean_c clean_musl rm -rf $(APP)/*.bin $(APP)/*.elf cargo clean +clean_c:: + rm -rf $(app-objs) + clean_musl: rm -rf ulib/ruxmusl/build_* rm -rf ulib/ruxmusl/install diff --git a/ulib/include/ax_pthread_cond.h b/ulib/include/ax_pthread_cond.h index e5179cef9..96fd090f1 100644 --- a/ulib/include/ax_pthread_cond.h +++ b/ulib/include/ax_pthread_cond.h @@ -1,6 +1,6 @@ // Generated by ruxos_posix_api/build.rs, DO NOT edit! typedef struct { - long __l[5]; + long __l[4]; } pthread_cond_t; diff --git a/ulib/include/ax_pthread_mutex.h b/ulib/include/ax_pthread_mutex.h index 59a6b494e..e9e391a9e 100644 --- a/ulib/include/ax_pthread_mutex.h +++ b/ulib/include/ax_pthread_mutex.h @@ -1,8 +1,8 @@ // Generated by ruxos_posix_api/build.rs, DO NOT edit! typedef struct { - long __l[6]; + long __l[5]; } pthread_mutex_t; -#define PTHREAD_MUTEX_INITIALIZER { .__l = {0, 8, 0, 0, 0, 0}} +#define PTHREAD_MUTEX_INITIALIZER { .__l = {8, 0, 0, 0, 0}}