diff --git a/BUILD.gn b/BUILD.gn old mode 100755 new mode 100644 diff --git a/Kconfig b/Kconfig old mode 100755 new mode 100644 diff --git a/apps/Makefile b/apps/Makefile old mode 100755 new mode 100644 diff --git a/apps/config.mk b/apps/config.mk old mode 100755 new mode 100644 diff --git a/apps/init/Makefile b/apps/init/Makefile old mode 100755 new mode 100644 diff --git a/apps/init/src/init.c b/apps/init/src/init.c old mode 100755 new mode 100644 diff --git a/apps/module.mk b/apps/module.mk old mode 100755 new mode 100644 diff --git a/apps/shell/Makefile b/apps/shell/Makefile old mode 100755 new mode 100644 diff --git a/apps/shell/builtin/cd.c b/apps/shell/builtin/cd.c old mode 100755 new mode 100644 index e2bc58f418f371cf91ad4a7103cad637faa153cb..9992f45fabd0c24007d933512997aecbaa3259f5 --- a/apps/shell/builtin/cd.c +++ b/apps/shell/builtin/cd.c @@ -37,11 +37,6 @@ #include "shcmd.h" #include "sherr.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ int Chdir(const char *tgtDir) { @@ -59,8 +54,3 @@ int Chdir(const char *tgtDir) return ret; } -#ifdef __cplusplus -#if __cplusplus -} -#endif -#endif diff --git a/apps/shell/include/shcmd.h b/apps/shell/include/shcmd.h old mode 100755 new mode 100644 diff --git a/apps/shell/include/shell.h b/apps/shell/include/shell.h old mode 100755 new mode 100644 diff --git a/apps/shell/include/shmsg.h b/apps/shell/include/shmsg.h old mode 100755 new mode 100644 diff --git a/apps/shell/include/show.h b/apps/shell/include/show.h old mode 100755 new mode 100644 diff --git a/apps/shell/src/main.c b/apps/shell/src/main.c old mode 100755 new mode 100644 index ef57ca00b1fef7321dc3a278c055f725a79aee72..a5e553a9e99136d248e3be49264bd9099a8d660a --- a/apps/shell/src/main.c +++ b/apps/shell/src/main.c @@ -36,11 +36,6 @@ #include "securec.h" #include "unistd.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ ShellCB *g_shellCB = NULL; @@ -139,8 +134,3 @@ ERR_OUT1: return ret; } -#ifdef __cplusplus -#if __cplusplus -} -#endif -#endif diff --git a/apps/shell/src/shcmd.c b/apps/shell/src/shcmd.c old mode 100755 new mode 100644 index 5d04431afa4250b8fe175b84dd0775cdd737b6fd..d14d1b98752831f5bdc79831d6dcf1d546bc1795 --- a/apps/shell/src/shcmd.c +++ b/apps/shell/src/shcmd.c @@ -36,11 +36,6 @@ #include "dirent.h" #include "securec.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #define SHELL_INIT_MAGIC_FLAG 0xABABABAB #define CTRL_C 0x03 /* 0x03: ctrl+c ASCII */ @@ -599,8 +594,3 @@ unsigned int OsCmdExec(CmdParsed *cmdParsed, char *cmdStr) return ret; } -#ifdef __cplusplus -#if __cplusplus -} -#endif -#endif diff --git a/apps/shell/src/shcmdparse.c b/apps/shell/src/shcmdparse.c old mode 100755 new mode 100644 index 978917475d4c7e992d5fe78f6951030adbc46b98..269b4193f2bd47c32e3ba3d3ccb31c9057249c01 --- a/apps/shell/src/shcmdparse.c +++ b/apps/shell/src/shcmdparse.c @@ -32,11 +32,6 @@ #include "shcmd.h" #include "sherr.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ /* * Filter out double quote or single-quoted strings at both ends @@ -157,8 +152,3 @@ unsigned int OsCmdParse(char *cmdStr, CmdParsed *cmdParsed) return OsCmdTokenSplit(cmdStr, ' ', cmdParsed); } -#ifdef __cplusplus -#if __cplusplus -} -#endif -#endif diff --git a/apps/shell/src/shmsg.c b/apps/shell/src/shmsg.c old mode 100755 new mode 100644 index b39aa724ed002c15321b76cedec59dbcb8eaec73..a72765266cec53cec9d9156ad55b919055abf6d6 --- a/apps/shell/src/shmsg.c +++ b/apps/shell/src/shmsg.c @@ -42,11 +42,6 @@ #include "shell_pri.h" #include "shcmd.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ char *GetCmdline(ShellCB *shellCB) @@ -640,8 +635,3 @@ int ShellEntryInit(ShellCB *shellCB) return ret; } -#ifdef __cplusplus -#if __cplusplus -} -#endif -#endif diff --git a/arch/Kconfig b/arch/Kconfig old mode 100755 new mode 100644 diff --git a/arch/arm/arm/Makefile b/arch/arm/arm/Makefile old mode 100755 new mode 100644 diff --git a/arch/arm/arm/include/arm.h b/arch/arm/arm/include/arm.h old mode 100755 new mode 100644 diff --git a/arch/arm/arm/include/arm_user_copy.h b/arch/arm/arm/include/arm_user_copy.h old mode 100755 new mode 100644 diff --git a/arch/arm/arm/include/arm_user_get.h b/arch/arm/arm/include/arm_user_get.h old mode 100755 new mode 100644 diff --git a/arch/arm/arm/include/arm_user_put.h b/arch/arm/arm/include/arm_user_put.h old mode 100755 new mode 100644 diff --git a/arch/arm/arm/include/los_hw_cpu.h b/arch/arm/arm/include/los_hw_cpu.h old mode 100755 new mode 100644 diff --git a/arch/arm/arm/include/los_mmu_descriptor_v6.h b/arch/arm/arm/include/los_mmu_descriptor_v6.h old mode 100755 new mode 100644 diff --git a/arch/arm/arm/src/hw_user_get.S b/arch/arm/arm/src/hw_user_get.S old mode 100755 new mode 100644 diff --git a/arch/arm/arm/src/hw_user_put.S b/arch/arm/arm/src/hw_user_put.S old mode 100755 new mode 100644 diff --git a/arch/arm/arm/src/include/asm.h b/arch/arm/arm/src/include/asm.h old mode 100755 new mode 100644 diff --git a/arch/arm/arm/src/include/los_hw_pri.h b/arch/arm/arm/src/include/los_hw_pri.h old mode 100755 new mode 100644 diff --git a/arch/arm/arm/src/los_arch_mmu.c b/arch/arm/arm/src/los_arch_mmu.c old mode 100755 new mode 100644 index bf90683713cf7200901d68a13ae3ba1cc776b937..39ef435f4975c9e5e7ffdf997883337e9a51792c --- a/arch/arm/arm/src/los_arch_mmu.c +++ b/arch/arm/arm/src/los_arch_mmu.c @@ -45,11 +45,6 @@ #include "los_vm_boot.h" #include "los_mmu_descriptor_v6.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #ifdef LOSCFG_KERNEL_MMU @@ -973,9 +968,4 @@ VOID OsInitMappingStartUp(VOID) } #endif -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/arch/arm/arm/src/los_asid.c b/arch/arm/arm/src/los_asid.c index 5be31c090b9d5312af687499a0e07cb32e123f14..30fd6331fb1f594c501da22b00419a41d5ca1420 100644 --- a/arch/arm/arm/src/los_asid.c +++ b/arch/arm/arm/src/los_asid.c @@ -39,11 +39,6 @@ #include "los_spinlock.h" #include "los_mmu_descriptor_v6.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #ifdef LOSCFG_KERNEL_VM @@ -76,8 +71,3 @@ VOID OsFreeAsid(UINT32 asid) } #endif -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/arch/arm/arm/src/los_dispatch.S b/arch/arm/arm/src/los_dispatch.S old mode 100755 new mode 100644 diff --git a/arch/arm/arm/src/los_exc.c b/arch/arm/arm/src/los_exc.c old mode 100755 new mode 100644 index 4646854889e177460652b60b9a701e2ad1053727..f86c9f6ba33458ce29bc83fba298c1fe903bd592 --- a/arch/arm/arm/src/los_exc.c +++ b/arch/arm/arm/src/los_exc.c @@ -66,11 +66,6 @@ #include "console.h" #endif -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #define INVALID_CPUID 0xFFFF #define OS_EXC_VMM_NO_REGION 0x0U @@ -1191,8 +1186,3 @@ VOID LOS_RecordLR(UINTPTR *LR, UINT32 LRSize, UINT32 recordCount, UINT32 jumpCou } } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/arch/arm/arm/src/los_hw.c b/arch/arm/arm/src/los_hw.c old mode 100755 new mode 100644 index 800bf1b99b06430b5df4ee680a2dfa894d0e1e39..675b3a3b994156be2c63f84861b0a41fcb8a1b82 --- a/arch/arm/arm/src/los_hw.c +++ b/arch/arm/arm/src/los_hw.c @@ -32,11 +32,6 @@ #include "los_hw_pri.h" #include "los_task_pri.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ /* support cpu vendors */ CpuVendor g_cpuTable[] = { @@ -192,8 +187,3 @@ VOID DCacheInvRange(UINT32 start, UINT32 end) arm_inv_cache_range(start, end); } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/arch/arm/arm/src/los_hw_exc.S b/arch/arm/arm/src/los_hw_exc.S old mode 100755 new mode 100644 diff --git a/arch/arm/arm/src/los_hw_tick.c b/arch/arm/arm/src/los_hw_tick.c index 20a84862beb618150c807b476eb20227288e27c6..2fc783c6c11d502a83e8bcd889eacef45067ce05 100644 --- a/arch/arm/arm/src/los_hw_tick.c +++ b/arch/arm/arm/src/los_hw_tick.c @@ -32,11 +32,6 @@ #include "los_sys_pri.h" #include "los_hwi.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ LITE_OS_SEC_TEXT_INIT UINT32 OsTickInit(UINT32 systemClock, UINT32 tickPerSecond) { @@ -79,8 +74,3 @@ LITE_OS_SEC_TEXT_MINOR VOID LOS_Mdelay(UINT32 msecs) HalDelayUs(msecs * 1000); /* 1000 : 1ms = 1000us */ } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/arch/arm/arm/src/los_hwi.c b/arch/arm/arm/src/los_hwi.c index 5bac58950c85137f560ca9e019956c78d70d4b65..5ad2f8367fcf9bd1da357cf9fe6a68a8e6afa8c2 100644 --- a/arch/arm/arm/src/los_hwi.c +++ b/arch/arm/arm/src/los_hwi.c @@ -37,11 +37,6 @@ #endif #include "los_sched_pri.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ /* spinlock for hwi module, only available on SMP mode */ LITE_OS_SEC_BSS SPIN_LOCK_INIT(g_hwiSpin); @@ -352,8 +347,3 @@ LITE_OS_SEC_TEXT_INIT UINT32 LOS_HwiDelete(HWI_HANDLE_T hwiNum, HwiIrqParam *irq return ret; } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/arch/arm/arm/src/startup/reset_vector_mp.S b/arch/arm/arm/src/startup/reset_vector_mp.S old mode 100755 new mode 100644 diff --git a/arch/arm/arm/src/startup/reset_vector_up.S b/arch/arm/arm/src/startup/reset_vector_up.S old mode 100755 new mode 100644 diff --git a/arch/arm/arm/src/strncpy_from_user.c b/arch/arm/arm/src/strncpy_from_user.c old mode 100755 new mode 100644 index 352b9310220038eb17433de9113aecba2b607942..70c98bc9867d6b315c21b883ddec2a92af00ed17 --- a/arch/arm/arm/src/strncpy_from_user.c +++ b/arch/arm/arm/src/strncpy_from_user.c @@ -33,11 +33,6 @@ #include "los_user_get.h" #include "los_vm_map.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ INT32 LOS_StrncpyFromUser(CHAR *dst, const CHAR *src, INT32 count) { @@ -67,8 +62,3 @@ INT32 LOS_StrncpyFromUser(CHAR *dst, const CHAR *src, INT32 count) return offset; } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/arch/arm/arm/src/strnlen_user.c b/arch/arm/arm/src/strnlen_user.c old mode 100755 new mode 100644 index 4da0bf4906704a2f32b3251e0ed2c17b51d32414..09730c1d64e09d2ed176ed838c752fbc1b6a5b93 --- a/arch/arm/arm/src/strnlen_user.c +++ b/arch/arm/arm/src/strnlen_user.c @@ -33,11 +33,6 @@ #include "los_user_get.h" #include "los_vm_map.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ INT32 LOS_StrnlenUser(const CHAR *src, INT32 count) { @@ -66,8 +61,3 @@ INT32 LOS_StrnlenUser(const CHAR *src, INT32 count) return count + 1; } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/arch/arm/arm/src/user_copy.c b/arch/arm/arm/src/user_copy.c old mode 100755 new mode 100644 index f1016f00807f302e38bf28493d62c91d9e4e8994..f4ecd91c3c19609612ea3a50094a29359f67d3a0 --- a/arch/arm/arm/src/user_copy.c +++ b/arch/arm/arm/src/user_copy.c @@ -35,11 +35,6 @@ #include "los_memory.h" #include "los_vm_map.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ size_t arch_copy_from_user(void *dst, const void *src, size_t len) { @@ -114,9 +109,4 @@ INT32 LOS_UserMemClear(unsigned char *buf, UINT32 len) return ret; } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/arch/arm/gic/Makefile b/arch/arm/gic/Makefile old mode 100755 new mode 100644 diff --git a/arch/arm/include/in_cksum.h b/arch/arm/include/in_cksum.h old mode 100755 new mode 100644 diff --git a/arch/arm/include/los_exc.h b/arch/arm/include/los_exc.h old mode 100755 new mode 100644 diff --git a/arch/arm/include/los_hw.h b/arch/arm/include/los_hw.h old mode 100755 new mode 100644 diff --git a/arch/arm/include/los_hwi.h b/arch/arm/include/los_hwi.h old mode 100755 new mode 100644 diff --git a/arch/arm/include/los_strncpy_from_user.h b/arch/arm/include/los_strncpy_from_user.h old mode 100755 new mode 100644 diff --git a/arch/arm/include/los_strnlen_user.h b/arch/arm/include/los_strnlen_user.h old mode 100755 new mode 100644 diff --git a/arch/arm/include/los_user_get.h b/arch/arm/include/los_user_get.h old mode 100755 new mode 100644 diff --git a/arch/arm/include/los_user_put.h b/arch/arm/include/los_user_put.h old mode 100755 new mode 100644 diff --git a/arch/arm/include/user_copy.h b/arch/arm/include/user_copy.h old mode 100755 new mode 100644 diff --git a/bsd/Kconfig b/bsd/Kconfig old mode 100755 new mode 100644 diff --git a/bsd/compat/linuxkpi/Makefile b/bsd/compat/linuxkpi/Makefile old mode 100755 new mode 100644 diff --git a/bsd/dev/usb/Kconfig b/bsd/dev/usb/Kconfig old mode 100755 new mode 100644 diff --git a/bsd/dev/usb/Makefile b/bsd/dev/usb/Makefile old mode 100755 new mode 100644 diff --git a/compat/posix/Kconfig b/compat/posix/Kconfig old mode 100755 new mode 100644 diff --git a/compat/posix/include/mqueue.h b/compat/posix/include/mqueue.h old mode 100755 new mode 100644 diff --git a/compat/posix/include/time_posix.h b/compat/posix/include/time_posix.h old mode 100755 new mode 100644 diff --git a/compat/posix/src/map_error.c b/compat/posix/src/map_error.c index 31435f7d8ff1ee75a88d17e76f775689d1decb12..791fc7874253644721f5adfef709bced903ed8d9 100644 --- a/compat/posix/src/map_error.c +++ b/compat/posix/src/map_error.c @@ -34,11 +34,6 @@ #include "los_sem.h" #include "los_task.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ int map_errno(UINT32 err) { @@ -115,8 +110,3 @@ int map_errno(UINT32 err) return errno; } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/compat/posix/src/misc.c b/compat/posix/src/misc.c old mode 100755 new mode 100644 index 3e623674e5699e037f7e6f805a4e4e291ae8f1e2..e740930f12e6a90809eea886f2baa46459f50695 --- a/compat/posix/src/misc.c +++ b/compat/posix/src/misc.c @@ -37,11 +37,6 @@ #include "mqueue.h" #include "semaphore.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ /* * Supply some suitable values for constants that may not be present @@ -145,8 +140,3 @@ pid_t getpid(void) return ((LosTaskCB *)(OsCurrTaskGet()))->taskID; } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ \ No newline at end of file diff --git a/compat/posix/src/mqueue.c b/compat/posix/src/mqueue.c old mode 100755 new mode 100644 index 588ae11293b57bcf62ca3c11d0be2b4b38fd84bc..85a924d7f4a79a3bb77688a3f24ba19db63cc03a --- a/compat/posix/src/mqueue.c +++ b/compat/posix/src/mqueue.c @@ -40,11 +40,6 @@ #include "fs_file.h" #include "user_copy.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #define FNONBLOCK O_NONBLOCK @@ -842,8 +837,3 @@ ssize_t mq_receive(mqd_t personal, char *msg_ptr, size_t msg_len, unsigned int * return mq_timedreceive(personal, msg_ptr, msg_len, msg_prio, NULL); } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/compat/posix/src/posix_memalign.c b/compat/posix/src/posix_memalign.c index 59e85702f9c8663653852c63762cc2e0fba56c07..5b93834e0df2f6c6c857515eb9e074a76213cdf7 100644 --- a/compat/posix/src/posix_memalign.c +++ b/compat/posix/src/posix_memalign.c @@ -32,11 +32,6 @@ #include "los_typedef.h" #include "los_memory.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ int posix_memalign(void **memAddr, size_t alignment, size_t size) { @@ -52,8 +47,3 @@ int posix_memalign(void **memAddr, size_t alignment, size_t size) return ENOERR; } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ \ No newline at end of file diff --git a/compat/posix/src/pthread.c b/compat/posix/src/pthread.c old mode 100755 new mode 100644 index 4fca2c13dd579fe78c77220ea6e5d82a86ff6e78..507a3eea18aaae27b42169a9a9f7f57c50597c6d --- a/compat/posix/src/pthread.c +++ b/compat/posix/src/pthread.c @@ -38,11 +38,6 @@ #include "los_process_pri.h" #include "los_sched_pri.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ /* * Array of pthread control structures. A pthread_t object is @@ -809,8 +804,3 @@ int pthread_getaffinity_np(pthread_t thread, size_t cpusetsize, cpu_set_t* cpuse } } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/compat/posix/src/pthread_attr.c b/compat/posix/src/pthread_attr.c index 736c898a5924dd706c076a303e3ad2e990ff1725..29627cd322fd0f38d193c6f1548c1a9b53641a1d 100644 --- a/compat/posix/src/pthread_attr.c +++ b/compat/posix/src/pthread_attr.c @@ -32,11 +32,6 @@ #include "pthread.h" #include "pprivate.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ int pthread_attr_init(pthread_attr_t *attr) { @@ -280,8 +275,3 @@ int pthread_attr_getaffinity_np(const pthread_attr_t* attr, size_t cpusetsize, c return ENOERR; } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/compat/posix/src/pthread_cond.c b/compat/posix/src/pthread_cond.c old mode 100755 new mode 100644 index 1b9e320341164f69c200ec3d081dff80ac9c79e9..425d6cc8653002e58efbaf035669f853068e6410 --- a/compat/posix/src/pthread_cond.c +++ b/compat/posix/src/pthread_cond.c @@ -36,11 +36,6 @@ #include "los_atomic.h" #include "los_event_pri.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #define BROADCAST_EVENT 1 #define COND_COUNTER_STEP 0x0004U @@ -351,8 +346,3 @@ int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex) return ret; } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ \ No newline at end of file diff --git a/compat/posix/src/pthread_mutex.c b/compat/posix/src/pthread_mutex.c old mode 100755 new mode 100644 index b4ab40150612a42c8326f69c63b056a0d7bc13f5..35c838bd2a0c3b5b812b7baa2ec09758c5c33208 --- a/compat/posix/src/pthread_mutex.c +++ b/compat/posix/src/pthread_mutex.c @@ -31,11 +31,6 @@ #include "pthread.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ int pthread_mutexattr_init(pthread_mutexattr_t *attr) { @@ -139,8 +134,3 @@ int pthread_mutex_unlock(pthread_mutex_t *mutex) return LOS_MuxUnlock(mutex); } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/compat/posix/src/sched.c b/compat/posix/src/sched.c index feb713d8f127f0443c3824e3a33233d61ee31b61..1c80780b846cac5ec2d412bff100d49dabab919d 100644 --- a/compat/posix/src/sched.c +++ b/compat/posix/src/sched.c @@ -35,11 +35,6 @@ #include "unistd.h" #include "los_task_pri.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ int sched_get_priority_min(int policy) { @@ -143,8 +138,3 @@ int __sched_cpucount(size_t set_size, const cpu_set_t* set) return count; } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/compat/posix/src/semaphore.c b/compat/posix/src/semaphore.c old mode 100755 new mode 100644 index 63039039c871ee59944a42bd20da7a110b0fb3b2..71b8f32befe32ccff2db4c37d9ce6aa896446d59 --- a/compat/posix/src/semaphore.c +++ b/compat/posix/src/semaphore.c @@ -34,11 +34,6 @@ #include "map_error.h" #include "time_posix.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ /* Initialize semaphore to value, shared is not supported in Huawei LiteOS. */ int sem_init(sem_t *sem, int shared, unsigned int value) @@ -197,8 +192,3 @@ int sem_unlink(const char *name) return -1; } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/compat/posix/src/time.c b/compat/posix/src/time.c old mode 100755 new mode 100644 index cf9c9a76b3ef0bfce899f564076a71457eb5f8c4..a45d2fcc823e6e9f2659b75133a6cb06e21118ba --- a/compat/posix/src/time.c +++ b/compat/posix/src/time.c @@ -50,11 +50,6 @@ #include "los_swtmr_pri.h" #include "los_sys_pri.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ /* * Do a time package defined return. This requires the error code @@ -987,8 +982,3 @@ VOID OsGetVdsoTime(VdsoDataPage *vdsoDataPage) } #endif -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/config.mk b/config.mk old mode 100755 new mode 100644 diff --git a/drivers/char/mem/src/mem.c b/drivers/char/mem/src/mem.c index 8f3b1549a2d2e09580b16d766b303800c237632c..07786cc8f23ea0452895e701a6c76ae39570384d 100644 --- a/drivers/char/mem/src/mem.c +++ b/drivers/char/mem/src/mem.c @@ -32,11 +32,6 @@ #include "fcntl.h" #include "linux/kernel.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ static int MemOpen(struct file *filep) { @@ -105,8 +100,3 @@ int DevMemRegister(void) return register_driver("/dev/mem", &g_memDevOps, 0666, 0); /* 0666: file mode */ } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/drivers/char/quickstart/src/quickstart.c b/drivers/char/quickstart/src/quickstart.c index 8b4e8a57a6a0e90f7eabe6fe9577dd9c9a90bcbc..7a920206d25a25492827f024217c42975e3e47be 100644 --- a/drivers/char/quickstart/src/quickstart.c +++ b/drivers/char/quickstart/src/quickstart.c @@ -39,11 +39,6 @@ #define QUICKSTART_UNREGISTER _IO(QUICKSTART_IOC_MAGIC, 1) #define QUICKSTART_NODE "/dev/quickstart" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ static int QuickstartOpen(struct file *filep) { @@ -110,8 +105,3 @@ int DevQuickStartRegister(void) return register_driver(QUICKSTART_NODE, &g_quickstartDevOps, 0666, 0); /* 0666: file mode */ } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/drivers/char/random/src/random.c b/drivers/char/random/src/random.c index ef12427addea4173dc416161d6369a2fe457bdd4..2271a64a6fbdb57968dcb2748b16528f94410eac 100644 --- a/drivers/char/random/src/random.c +++ b/drivers/char/random/src/random.c @@ -33,11 +33,6 @@ #include "fcntl.h" #include "linux/kernel.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ static unsigned long g_randomMax = 0x7FFFFFFF; @@ -121,8 +116,3 @@ int DevRandomRegister(void) return register_driver("/dev/random", &g_ranDevOps, 0666, 0); /* 0666: file mode */ } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/drivers/char/random/src/random_hw.c b/drivers/char/random/src/random_hw.c index fe412ee6fa414b2444037f61aaf3bca72caf73e7..f7c6780e1accc6f3850de6b9dc292458e572b3ee 100644 --- a/drivers/char/random/src/random_hw.c +++ b/drivers/char/random/src/random_hw.c @@ -120,8 +120,3 @@ int DevUrandomRegister(void) return -EPERM; } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/fs/fat/Kconfig b/fs/fat/Kconfig old mode 100755 new mode 100644 diff --git a/fs/fat/Makefile b/fs/fat/Makefile old mode 100755 new mode 100644 diff --git a/fs/fat/os_adapt/fat_shellcmd.c b/fs/fat/os_adapt/fat_shellcmd.c old mode 100755 new mode 100644 diff --git a/fs/fat/os_adapt/fatfs.c b/fs/fat/os_adapt/fatfs.c old mode 100755 new mode 100644 index a8aa10472152d79724863fa8c9cdcc77e9ef81fb..0ff14a06ce32b62194813fd85bcd1cd3171bc47b --- a/fs/fat/os_adapt/fatfs.c +++ b/fs/fat/os_adapt/fatfs.c @@ -56,11 +56,6 @@ #include #include -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ struct VnodeOps fatfs_vops; /* forward define */ struct file_operations_vfs fatfs_fops; @@ -2082,9 +2077,4 @@ struct file_operations_vfs fatfs_fops = { FSMAP_ENTRY(fat_fsmap, "vfat", fatfs_mops, FALSE, TRUE); -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ #endif /* LOSCFG_FS_FAT */ diff --git a/fs/fat/os_adapt/fatfs.h b/fs/fat/os_adapt/fatfs.h old mode 100755 new mode 100644 diff --git a/fs/fat/os_adapt/format.c b/fs/fat/os_adapt/format.c old mode 100755 new mode 100644 diff --git a/fs/fat/virpart/Makefile b/fs/fat/virpart/Makefile old mode 100755 new mode 100644 diff --git a/fs/fat/virpart/src/virpart.c b/fs/fat/virpart/src/virpart.c old mode 100755 new mode 100644 diff --git a/fs/fat/virpart/src/virpartff.c b/fs/fat/virpart/src/virpartff.c old mode 100755 new mode 100644 diff --git a/fs/include/vfs_config.h b/fs/include/vfs_config.h old mode 100755 new mode 100644 diff --git a/fs/jffs2/Kconfig b/fs/jffs2/Kconfig old mode 100755 new mode 100644 diff --git a/fs/jffs2/include/jffs2_hash.h b/fs/jffs2/include/jffs2_hash.h old mode 100755 new mode 100644 diff --git a/fs/jffs2/src/jffs2_hash.c b/fs/jffs2/src/jffs2_hash.c old mode 100755 new mode 100644 diff --git a/fs/jffs2/src/vfs_jffs2.c b/fs/jffs2/src/vfs_jffs2.c old mode 100755 new mode 100644 diff --git a/fs/proc/BUILD.gn b/fs/proc/BUILD.gn old mode 100755 new mode 100644 diff --git a/fs/proc/include/internal.h b/fs/proc/include/internal.h old mode 100755 new mode 100644 diff --git a/fs/proc/include/proc_file.h b/fs/proc/include/proc_file.h old mode 100755 new mode 100644 diff --git a/fs/proc/include/proc_fs.h b/fs/proc/include/proc_fs.h old mode 100755 new mode 100644 diff --git a/fs/proc/os_adapt/kernel_trace_proc.c b/fs/proc/os_adapt/kernel_trace_proc.c old mode 100755 new mode 100644 diff --git a/fs/proc/os_adapt/mounts_proc.c b/fs/proc/os_adapt/mounts_proc.c old mode 100755 new mode 100644 diff --git a/fs/proc/os_adapt/proc_init.c b/fs/proc/os_adapt/proc_init.c old mode 100755 new mode 100644 diff --git a/fs/proc/os_adapt/proc_vfs.c b/fs/proc/os_adapt/proc_vfs.c old mode 100755 new mode 100644 diff --git a/fs/proc/os_adapt/process_proc.c b/fs/proc/os_adapt/process_proc.c old mode 100755 new mode 100644 diff --git a/fs/proc/os_adapt/uptime_proc.c b/fs/proc/os_adapt/uptime_proc.c old mode 100755 new mode 100644 diff --git a/fs/proc/os_adapt/vmm_proc.c b/fs/proc/os_adapt/vmm_proc.c old mode 100755 new mode 100644 diff --git a/fs/proc/src/proc_file.c b/fs/proc/src/proc_file.c old mode 100755 new mode 100644 diff --git a/fs/vfs/bch/Makefile b/fs/vfs/bch/Makefile old mode 100755 new mode 100644 diff --git a/fs/vfs/disk/disk.c b/fs/vfs/disk/disk.c old mode 100755 new mode 100644 index e7dfe5bd01a64ab56da1558c9ba2c0267f3649a7..8389cf0289de5fb1418bb8caca817cb410231041 --- a/fs/vfs/disk/disk.c +++ b/fs/vfs/disk/disk.c @@ -42,11 +42,6 @@ #include "mmc/block.h" #endif -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ los_disk g_sysDisk[SYS_MAX_DISK]; los_part g_sysPart[SYS_MAX_PART]; @@ -1699,8 +1694,3 @@ INT32 EraseDiskByID(UINT32 diskID, size_t startSector, UINT32 sectors) return ret; } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/fs/vfs/include/driver/blockproxy.h b/fs/vfs/include/driver/blockproxy.h old mode 100755 new mode 100644 diff --git a/fs/vfs/include/driver/mtd_dev.h b/fs/vfs/include/driver/mtd_dev.h old mode 100755 new mode 100644 diff --git a/fs/vfs/include/driver/mtd_list.h b/fs/vfs/include/driver/mtd_list.h old mode 100755 new mode 100644 diff --git a/fs/vfs/include/multi_partition/mtd_partition.h b/fs/vfs/include/multi_partition/mtd_partition.h old mode 100755 new mode 100644 diff --git a/fs/vfs/include/operation/fs_file.h b/fs/vfs/include/operation/fs_file.h old mode 100755 new mode 100644 diff --git a/fs/vfs/multi_partition/src/mtd_partition.c b/fs/vfs/multi_partition/src/mtd_partition.c old mode 100755 new mode 100644 index e7b15559107577da8ac9cc957316d63ec411faf4..bbdb9a366d07099170bcece8907f460fc00423cd --- a/fs/vfs/multi_partition/src/mtd_partition.c +++ b/fs/vfs/multi_partition/src/mtd_partition.c @@ -43,11 +43,6 @@ #include "cfiflash.h" #endif -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #define DRIVER_NAME_ADD_SIZE 3 pthread_mutex_t g_mtdPartitionLock = PTHREAD_MUTEX_INITIALIZER; @@ -557,8 +552,3 @@ INT32 delete_mtd_partition(UINT32 partitionNum, const CHAR *type) return ENOERR; } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/fs/vfs/multi_partition/src/mtd_shellcmd.c b/fs/vfs/multi_partition/src/mtd_shellcmd.c old mode 100755 new mode 100644 diff --git a/fs/vfs/operation/fs_file.c b/fs/vfs/operation/fs_file.c old mode 100755 new mode 100644 diff --git a/fs/vfs/operation/fs_other.c b/fs/vfs/operation/fs_other.c index 3b81073dff6555d1c8941ffa6755b7f8303dbdd6..65196bb3770c669f98ae7f00a05d2b33e638ee44 100644 --- a/fs/vfs/operation/fs_other.c +++ b/fs/vfs/operation/fs_other.c @@ -45,11 +45,6 @@ #include "los_task_pri.h" #include "capability_api.h" #include "fs/vnode.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #define MAX_DIR_ENT 1024 int fstat(int fd, struct stat *buf) @@ -711,8 +706,3 @@ mode_t SysUmask(mode_t mask) return oldUmask; } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/fs/vfs/operation/fs_preadv.c b/fs/vfs/operation/fs_preadv.c old mode 100755 new mode 100644 diff --git a/fs/vfs/operation/fs_pwritev.c b/fs/vfs/operation/fs_pwritev.c old mode 100755 new mode 100644 diff --git a/fs/vfs/operation/fullpath.c b/fs/vfs/operation/fullpath.c old mode 100755 new mode 100644 index 23a7576d9f8cbf5524e2225e2182cf0be4d2ac5f..f71ce8e0eafb03249da1717d1168933013df8fb6 --- a/fs/vfs/operation/fullpath.c +++ b/fs/vfs/operation/fullpath.c @@ -42,11 +42,6 @@ #include "shell.h" #endif -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #ifdef LOSCFG_SHELL #define TEMP_PATH_MAX (PATH_MAX + SHOW_MAX_LEN) @@ -336,8 +331,3 @@ int vfs_normalize_pathat(int dirfd, const char *filename, char **pathname) return ret; } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/fs/vfs/path_cache.c b/fs/vfs/path_cache.c old mode 100755 new mode 100644 diff --git a/fs/vfs/vnode.c b/fs/vfs/vnode.c old mode 100755 new mode 100644 diff --git a/fs/zpfs/vfs_zpfs.c b/fs/zpfs/vfs_zpfs.c old mode 100755 new mode 100644 diff --git a/kernel/BUILD.gn b/kernel/BUILD.gn old mode 100755 new mode 100644 diff --git a/kernel/Kconfig b/kernel/Kconfig old mode 100755 new mode 100644 diff --git a/kernel/base/BUILD.gn b/kernel/base/BUILD.gn old mode 100755 new mode 100644 diff --git a/kernel/base/Makefile b/kernel/base/Makefile old mode 100755 new mode 100644 diff --git a/kernel/base/core/los_bitmap.c b/kernel/base/core/los_bitmap.c old mode 100755 new mode 100644 index 36ff3f47bd8451c4b7929452a604205894c33a87..4e8b860074cd71fe52c2ee04d46eaa6a7545574c --- a/kernel/base/core/los_bitmap.c +++ b/kernel/base/core/los_bitmap.c @@ -33,11 +33,6 @@ #include "los_printf.h" #include "los_toolchain.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #define OS_BITMAP_MASK 0x1FU #define OS_BITMAP_WORD_MASK ~0UL @@ -141,8 +136,3 @@ INT32 LOS_BitmapFfz(UINTPTR *bitmap, UINT32 numBits) return -1; } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/kernel/base/core/los_process.c b/kernel/base/core/los_process.c old mode 100755 new mode 100644 index b201094b6cb93ac2ebbd950323b30d64f8e12c5d..a8c8130f6db5e45c188b8c06401be3af94290cb0 --- a/kernel/base/core/los_process.c +++ b/kernel/base/core/los_process.c @@ -54,11 +54,6 @@ #include "los_vm_phys.h" #include "los_vm_syscall.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ LITE_OS_SEC_BSS LosProcessCB *g_processCBArray = NULL; LITE_OS_SEC_DATA_INIT STATIC LOS_DL_LIST g_freeProcess; @@ -1856,8 +1851,3 @@ LITE_OS_SEC_TEXT UINTPTR OsGetSigHandler(VOID) return OsCurrProcessGet()->sigHandler; } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif diff --git a/kernel/base/core/los_sortlink.c b/kernel/base/core/los_sortlink.c old mode 100755 new mode 100644 index d7b3fe333e743ad2500ad1f6122b729b4a4abfff..bca4e57023cf846630b660d960e09ae94db09c7e --- a/kernel/base/core/los_sortlink.c +++ b/kernel/base/core/los_sortlink.c @@ -36,11 +36,6 @@ #include "los_sched_pri.h" #include "los_mp.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif -#endif /* __cplusplus */ UINT32 OsSortLinkInit(SortLinkAttribute *sortLinkHeader) { @@ -252,8 +247,3 @@ UINT32 OsSortLinkGetNextExpireTime(const SortLinkAttribute *sortLinkHeader) return OsSortLinkGetTargetExpireTime(listSorted); } -#ifdef __cplusplus -#if __cplusplus -} -#endif -#endif /* __cplusplus */ diff --git a/kernel/base/core/los_swtmr.c b/kernel/base/core/los_swtmr.c old mode 100755 new mode 100644 index 74db4c998de4fe169bb87556633dd4ea47d21228..2f734f40489f1fbf7b4beaca2ffff673686089fb --- a/kernel/base/core/los_swtmr.c +++ b/kernel/base/core/los_swtmr.c @@ -36,11 +36,6 @@ #include "los_process_pri.h" #include "los_sched_pri.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #if (LOSCFG_BASE_CORE_SWTMR == YES) #if (LOSCFG_BASE_CORE_SWTMR_LIMIT <= 0) @@ -529,8 +524,3 @@ LITE_OS_SEC_TEXT UINT32 LOS_SwtmrDelete(UINT16 swtmrID) #endif /* (LOSCFG_BASE_CORE_SWTMR == YES) */ -#ifdef __cplusplus -#if __cplusplus -} -#endif -#endif diff --git a/kernel/base/core/los_sys.c b/kernel/base/core/los_sys.c old mode 100755 new mode 100644 index afee16d56cacbd79b3c7b3caea9e1e8ae7a16802..d6adf8504b8a29da93c9c1b552e35138bee8d7b9 --- a/kernel/base/core/los_sys.c +++ b/kernel/base/core/los_sys.c @@ -32,11 +32,6 @@ #include "los_sys_pri.h" #include "los_sched_pri.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #define OS_MAX_VALUE 0xFFFFFFFFUL @@ -75,8 +70,3 @@ LITE_OS_SEC_TEXT_MINOR UINT32 OsUS2Tick(UINT64 microsec) return (UINT32)ticks; } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/kernel/base/core/los_task.c b/kernel/base/core/los_task.c old mode 100755 new mode 100644 index a90da284a6c065bfc52ea1dac9a5b3d99ac136cf..d3d2c452dec100d22589e88aa40bce246ab55832 --- a/kernel/base/core/los_task.c +++ b/kernel/base/core/los_task.c @@ -62,11 +62,6 @@ #endif #include "los_vm_map.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #if (LOSCFG_BASE_CORE_TSK_LIMIT <= 0) #error "task maxnum cannot be zero" @@ -1695,8 +1690,3 @@ LITE_OS_SEC_TEXT UINT32 OsCreateResourceFreeTask(VOID) return ret; } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/kernel/base/core/los_tick.c b/kernel/base/core/los_tick.c old mode 100755 new mode 100644 index 23f1f5ec3ebe9c46da49292bbe9f46744c0bf956..c765cff7cd1d54c18efdc9ab051736dc24b3b3dc --- a/kernel/base/core/los_tick.c +++ b/kernel/base/core/los_tick.c @@ -36,11 +36,6 @@ #include "los_vdso.h" #endif -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ LITE_OS_SEC_DATA_INIT UINT32 g_sysClock; LITE_OS_SEC_DATA_INIT UINT32 g_tickPerSecond; @@ -69,8 +64,3 @@ LITE_OS_SEC_TEXT VOID OsTickHandler(VOID) OsSchedTick(); } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/kernel/base/include/los_event_pri.h b/kernel/base/include/los_event_pri.h old mode 100755 new mode 100644 diff --git a/kernel/base/include/los_futex_pri.h b/kernel/base/include/los_futex_pri.h old mode 100755 new mode 100644 diff --git a/kernel/base/include/los_memory_pri.h b/kernel/base/include/los_memory_pri.h old mode 100755 new mode 100644 diff --git a/kernel/base/include/los_mux_pri.h b/kernel/base/include/los_mux_pri.h old mode 100755 new mode 100644 diff --git a/kernel/base/include/los_oom.h b/kernel/base/include/los_oom.h old mode 100755 new mode 100644 diff --git a/kernel/base/include/los_percpu_pri.h b/kernel/base/include/los_percpu_pri.h old mode 100755 new mode 100644 diff --git a/kernel/base/include/los_process_pri.h b/kernel/base/include/los_process_pri.h old mode 100755 new mode 100644 diff --git a/kernel/base/include/los_rwlock_pri.h b/kernel/base/include/los_rwlock_pri.h old mode 100755 new mode 100644 diff --git a/kernel/base/include/los_sched_pri.h b/kernel/base/include/los_sched_pri.h old mode 100755 new mode 100644 diff --git a/kernel/base/include/los_sem_pri.h b/kernel/base/include/los_sem_pri.h old mode 100755 new mode 100644 diff --git a/kernel/base/include/los_signal.h b/kernel/base/include/los_signal.h old mode 100755 new mode 100644 diff --git a/kernel/base/include/los_sortlink_pri.h b/kernel/base/include/los_sortlink_pri.h old mode 100755 new mode 100644 diff --git a/kernel/base/include/los_stat_pri.h b/kernel/base/include/los_stat_pri.h old mode 100755 new mode 100644 diff --git a/kernel/base/include/los_sys_pri.h b/kernel/base/include/los_sys_pri.h old mode 100755 new mode 100644 diff --git a/kernel/base/include/los_task_pri.h b/kernel/base/include/los_task_pri.h old mode 100755 new mode 100644 diff --git a/kernel/base/include/los_vm_boot.h b/kernel/base/include/los_vm_boot.h old mode 100755 new mode 100644 diff --git a/kernel/base/include/los_vm_common.h b/kernel/base/include/los_vm_common.h old mode 100755 new mode 100644 diff --git a/kernel/base/include/los_vm_filemap.h b/kernel/base/include/los_vm_filemap.h old mode 100755 new mode 100644 diff --git a/kernel/base/include/los_vm_iomap.h b/kernel/base/include/los_vm_iomap.h old mode 100755 new mode 100644 diff --git a/kernel/base/include/los_vm_map.h b/kernel/base/include/los_vm_map.h old mode 100755 new mode 100644 diff --git a/kernel/base/include/los_vm_phys.h b/kernel/base/include/los_vm_phys.h old mode 100755 new mode 100644 diff --git a/kernel/base/ipc/los_event.c b/kernel/base/ipc/los_event.c old mode 100755 new mode 100644 index 6fb9f6d48e0b04ff774deed61f6d980bd23a37b4..9fe6142d94e55028c809dc3e3e5c2a53252f6c61 --- a/kernel/base/ipc/los_event.c +++ b/kernel/base/ipc/los_event.c @@ -39,11 +39,6 @@ #include "los_exc.h" #endif -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif -#endif /* __cplusplus */ LITE_OS_SEC_TEXT_INIT UINT32 LOS_EventInit(PEVENT_CB_S eventCB) { UINT32 intSave; @@ -341,8 +336,3 @@ OUT: } #endif -#ifdef __cplusplus -#if __cplusplus -} -#endif -#endif /* __cplusplus */ diff --git a/kernel/base/ipc/los_futex.c b/kernel/base/ipc/los_futex.c old mode 100755 new mode 100644 index f38cc63afc28fe19175ab82527746a095e0fc850..d98d493076f10c4c85fcb7374478ae3349703bc2 --- a/kernel/base/ipc/los_futex.c +++ b/kernel/base/ipc/los_futex.c @@ -39,11 +39,6 @@ #include "los_mux_pri.h" #include "user_copy.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif -#endif /* __cplusplus */ #ifdef LOSCFG_KERNEL_VM @@ -1007,8 +1002,3 @@ EXIT: } #endif -#ifdef __cplusplus -#if __cplusplus -} -#endif -#endif /* __cplusplus */ diff --git a/kernel/base/ipc/los_ipcdebug.c b/kernel/base/ipc/los_ipcdebug.c index 1017b094dbc4adaf45674ec29a534b35ff6e3fd8..b86c963f2af95ac23fb6dd12fd3455c1dcca77a4 100644 --- a/kernel/base/ipc/los_ipcdebug.c +++ b/kernel/base/ipc/los_ipcdebug.c @@ -31,11 +31,6 @@ #include "los_ipcdebug_pri.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif -#endif /* __cplusplus */ #if defined(LOSCFG_DEBUG_SEMAPHORE) || defined(LOSCFG_DEBUG_QUEUE) @@ -83,8 +78,3 @@ VOID OsArraySortByTime(UINT32 *sortArray, UINT32 start, UINT32 end, const IpcSor #endif -#ifdef __cplusplus -#if __cplusplus -} -#endif -#endif /* __cplusplus */ diff --git a/kernel/base/ipc/los_mux.c b/kernel/base/ipc/los_mux.c old mode 100755 new mode 100644 index f74f2726653a4601319263b23a03854798547d2f..7dc321af705f3f9e6b121bb5e7a3ad70ba03f3e5 --- a/kernel/base/ipc/los_mux.c +++ b/kernel/base/ipc/los_mux.c @@ -37,11 +37,6 @@ #include "los_exc.h" #include "los_sched_pri.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif -#endif /* __cplusplus */ #if (LOSCFG_BASE_IPC_MUX == YES) #define MUTEXATTR_TYPE_MASK 0x0FU @@ -567,8 +562,3 @@ LITE_OS_SEC_TEXT UINT32 LOS_MuxUnlock(LosMux *mutex) #endif /* (LOSCFG_BASE_IPC_MUX == YES) */ -#ifdef __cplusplus -#if __cplusplus -} -#endif -#endif /* __cplusplus */ diff --git a/kernel/base/ipc/los_queue.c b/kernel/base/ipc/los_queue.c old mode 100755 new mode 100644 index 51e2b789fe93be4adc43dbcfc1c275ea8e5eccbd..97e6e7040b6a7a6168696c8bcff9bd8af9ba7378 --- a/kernel/base/ipc/los_queue.c +++ b/kernel/base/ipc/los_queue.c @@ -37,11 +37,6 @@ #include "los_mp.h" #include "los_percpu_pri.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif -#endif /* __cplusplus */ #if (LOSCFG_BASE_IPC_QUEUE == YES) #if (LOSCFG_BASE_IPC_QUEUE_LIMIT <= 0) @@ -500,8 +495,3 @@ QUEUE_END: #endif /* (LOSCFG_BASE_IPC_QUEUE == YES) */ -#ifdef __cplusplus -#if __cplusplus -} -#endif -#endif /* __cplusplus */ diff --git a/kernel/base/ipc/los_queue_debug.c b/kernel/base/ipc/los_queue_debug.c index 8807ae759fc6b972358aaf444d860fd212934dcf..203521f92404a8de2339c8d923bc149d0c5eb84f 100644 --- a/kernel/base/ipc/los_queue_debug.c +++ b/kernel/base/ipc/los_queue_debug.c @@ -36,11 +36,6 @@ #include "shcmd.h" #endif /* LOSCFG_SHELL */ -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif -#endif /* __cplusplus */ #ifdef LOSCFG_DEBUG_QUEUE @@ -201,8 +196,3 @@ SHELLCMD_ENTRY(queue_shellcmd, CMD_TYPE_EX, "queue", 0, (CmdCallBackFunc)OsShell #endif /* LOSCFG_SHELL */ #endif /* LOSCFG_DEBUG_QUEUE */ -#ifdef __cplusplus -#if __cplusplus -} -#endif -#endif /* __cplusplus */ diff --git a/kernel/base/ipc/los_rwlock.c b/kernel/base/ipc/los_rwlock.c old mode 100755 new mode 100644 index 0cb06bda2c6b67ec455f1ffd79b269de630cbdbc..36b03189f03a5dec041286142cdb262c0f17c488 --- a/kernel/base/ipc/los_rwlock.c +++ b/kernel/base/ipc/los_rwlock.c @@ -37,11 +37,6 @@ #include "los_exc.h" #include "los_sched_pri.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif -#endif /* __cplusplus */ #ifdef LOSCFG_BASE_IPC_RWLOCK #define RWLOCK_COUNT_MASK 0x00FFFFFFU @@ -467,8 +462,3 @@ UINT32 LOS_RwlockUnLock(LosRwlock *rwlock) #endif /* LOSCFG_BASE_IPC_RWLOCK */ -#ifdef __cplusplus -#if __cplusplus -} -#endif -#endif /* __cplusplus */ diff --git a/kernel/base/ipc/los_sem.c b/kernel/base/ipc/los_sem.c old mode 100755 new mode 100644 index ef012423afa94eaff745b87ade515cf1b2b33bce..7f80a0aeb2875261ffb8c68c99b2a669faccf675 --- a/kernel/base/ipc/los_sem.c +++ b/kernel/base/ipc/los_sem.c @@ -39,11 +39,6 @@ #include "los_mp.h" #include "los_percpu_pri.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif -#endif /* __cplusplus */ #if (LOSCFG_BASE_IPC_SEM == YES) @@ -290,8 +285,3 @@ LITE_OS_SEC_TEXT UINT32 LOS_SemPost(UINT32 semHandle) } #endif /* (LOSCFG_BASE_IPC_SEM == YES) */ -#ifdef __cplusplus -#if __cplusplus -} -#endif -#endif /* __cplusplus */ diff --git a/kernel/base/ipc/los_sem_debug.c b/kernel/base/ipc/los_sem_debug.c old mode 100755 new mode 100644 index e78c829f6835dbb66e78e52342d50a5ddc0579d8..f6ef27283496a9480a79a3ec44746d339a9e283f --- a/kernel/base/ipc/los_sem_debug.c +++ b/kernel/base/ipc/los_sem_debug.c @@ -38,11 +38,6 @@ #include "shcmd.h" #endif /* LOSCFG_SHELL */ -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif -#endif /* __cplusplus */ #define OS_ALL_SEM_MASK 0xffffffff @@ -304,8 +299,3 @@ LITE_OS_SEC_TEXT_MINOR UINT32 OsShellCmdSemInfoGet(UINT32 argc, const CHAR **arg SHELLCMD_ENTRY(sem_shellcmd, CMD_TYPE_EX, "sem", 1, (CmdCallBackFunc)OsShellCmdSemInfoGet); #endif -#ifdef __cplusplus -#if __cplusplus -} -#endif -#endif /* __cplusplus */ diff --git a/kernel/base/ipc/los_signal.c b/kernel/base/ipc/los_signal.c old mode 100755 new mode 100644 index 6febe26ef6420d625c9cff6eda3e463b1af6dc86..f6ce9fd32cdab303c9bd4cd6bb02c7b095454f7f --- a/kernel/base/ipc/los_signal.c +++ b/kernel/base/ipc/los_signal.c @@ -39,11 +39,6 @@ #include "capability_api.h" #endif -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ int raise(int sig) { @@ -685,8 +680,3 @@ void OsRestorSignalContext(unsigned int *sp) SCHEDULER_UNLOCK(intSave); } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/kernel/base/mem/common/los_memstat.c b/kernel/base/mem/common/los_memstat.c old mode 100755 new mode 100644 index 957159ddeb7e777b0350c23ca0ae0a19b7683e50..91164b4c595cedabe6e567954568c79243550ad0 --- a/kernel/base/mem/common/los_memstat.c +++ b/kernel/base/mem/common/los_memstat.c @@ -32,11 +32,6 @@ #include "los_memstat_pri.h" #include "los_task_pri.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ LITE_OS_SEC_BSS_MINOR STATIC TskMemUsedInfo g_tskMemUsedInfo[LOSCFG_BASE_CORE_TSK_LIMIT]; @@ -119,8 +114,3 @@ LITE_OS_SEC_TEXT_MINOR UINT32 OsTaskSlabUsage(UINT32 taskID) } #endif -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ \ No newline at end of file diff --git a/kernel/base/mem/membox/los_membox.c b/kernel/base/mem/membox/los_membox.c index f8c2f0a096b59b12bd03b5485f77aa548eda6990..fff7e794ce191f0f57361a99d5c277f0203e2c67 100644 --- a/kernel/base/mem/membox/los_membox.c +++ b/kernel/base/mem/membox/los_membox.c @@ -33,11 +33,6 @@ #include "los_hwi.h" #include "los_spinlock.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #ifdef LOSCFG_AARCH64 #define OS_MEMBOX_MAGIC 0xa55a5aa5a55a5aa5 @@ -230,8 +225,3 @@ LITE_OS_SEC_TEXT_MINOR UINT32 LOS_MemboxStatisticsGet(const VOID *boxMem, UINT32 return LOS_OK; } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/kernel/base/mem/tlsf/los_memory.c b/kernel/base/mem/tlsf/los_memory.c old mode 100755 new mode 100644 index 1b2c66c21753f8e190b5802119cde532fe523f42..2f2c74cd6e6d4831141875188b2625dff9c1dfb8 --- a/kernel/base/mem/tlsf/los_memory.c +++ b/kernel/base/mem/tlsf/los_memory.c @@ -42,11 +42,6 @@ #include "los_trace.h" #endif -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ /* Used to cut non-essential functions. */ #define OS_MEM_FREE_BY_TASKID 0 @@ -1991,9 +1986,4 @@ BOOL OsMemIsHeapNode(const VOID *ptr) return FALSE; } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/kernel/base/misc/kill_shellcmd.c b/kernel/base/misc/kill_shellcmd.c old mode 100755 new mode 100644 diff --git a/kernel/base/misc/los_misc.c b/kernel/base/misc/los_misc.c index 1e76e62081b4f349b21d1c2426c13455d2fc63f6..05a083eef4e2eb00e9294d3f582a370aaff48477 100644 --- a/kernel/base/misc/los_misc.c +++ b/kernel/base/misc/los_misc.c @@ -31,11 +31,6 @@ #include "los_task_pri.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif -#endif /* __cplusplus */ LITE_OS_SEC_TEXT UINTPTR LOS_Align(UINTPTR addr, UINT32 boundary) { @@ -62,8 +57,3 @@ LITE_OS_SEC_TEXT_MINOR VOID LOS_Msleep(UINT32 msecs) (VOID)LOS_TaskDelay(interval); } -#ifdef __cplusplus -#if __cplusplus -} -#endif -#endif /* __cplusplus */ \ No newline at end of file diff --git a/kernel/base/misc/los_stackinfo.c b/kernel/base/misc/los_stackinfo.c old mode 100755 new mode 100644 diff --git a/kernel/base/misc/mempt_shellcmd.c b/kernel/base/misc/mempt_shellcmd.c old mode 100755 new mode 100644 index ee8bf15581579e6a12c3958becb4c30766b48fa4..50322068d55c974364243f2b3db8b0870b8900d3 --- a/kernel/base/misc/mempt_shellcmd.c +++ b/kernel/base/misc/mempt_shellcmd.c @@ -43,11 +43,6 @@ #include "los_vm_map.h" #include "los_vm_dump.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #define MEM_SIZE_1K 0x400 #define MEM_SIZE_1M 0x100000 @@ -279,8 +274,3 @@ SHELLCMD_ENTRY(free_shellcmd, CMD_TYPE_EX, "free", XARGS, (CmdCallBackFunc)OsShe SHELLCMD_ENTRY(uname_shellcmd, CMD_TYPE_EX, "uname", XARGS, (CmdCallBackFunc)OsShellCmdUname); #endif -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/kernel/base/misc/panic_shellcmd.c b/kernel/base/misc/panic_shellcmd.c old mode 100755 new mode 100644 index 248f24b639865a9f6f97c6eb3ac575ce032fcf70..0829a7e70964c9271db73ac91cbec905a149c081 --- a/kernel/base/misc/panic_shellcmd.c +++ b/kernel/base/misc/panic_shellcmd.c @@ -37,11 +37,6 @@ #include "los_swtmr_pri.h" #include "watchdog_if.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif -#endif /* __cplusplus */ #ifdef LOSCFG_SHELL_CMD_DEBUG STATIC BOOL systemExcReset = FALSE; @@ -126,8 +121,3 @@ SHELLCMD_ENTRY(panic_reset_shellcmd, CMD_TYPE_EX, "panicreset", 1, (CmdCallBackF #endif #endif -#ifdef __cplusplus -#if __cplusplus -} -#endif -#endif /* __cplusplus */ diff --git a/kernel/base/misc/swtmr_shellcmd.c b/kernel/base/misc/swtmr_shellcmd.c index cb7a3adfb16b5824fe02d8447a258851295ea7c5..582704ddd03b506b4bcad52cbda5037f064a67ec 100644 --- a/kernel/base/misc/swtmr_shellcmd.c +++ b/kernel/base/misc/swtmr_shellcmd.c @@ -36,11 +36,6 @@ #include "shcmd.h" #include "shell.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif -#endif /* __cplusplus */ #define SWTMR_STRLEN 12 @@ -139,9 +134,4 @@ LITE_OS_SEC_TEXT_MINOR UINT32 OsShellCmdSwtmrInfoGet(INT32 argc, const UINT8 **a SHELLCMD_ENTRY(swtmr_shellcmd, CMD_TYPE_EX, "swtmr", 1, (CmdCallBackFunc)OsShellCmdSwtmrInfoGet); -#ifdef __cplusplus -#if __cplusplus -} -#endif -#endif /* __cplusplus */ #endif /* LOSCFG_SHELL */ diff --git a/kernel/base/misc/sysinfo_shellcmd.c b/kernel/base/misc/sysinfo_shellcmd.c index 75cac70a405046e9b8b8f48652448bb7cba0f65d..b1b38f00073d139ad1e5a0cdcbef98a614b474ed 100644 --- a/kernel/base/misc/sysinfo_shellcmd.c +++ b/kernel/base/misc/sysinfo_shellcmd.c @@ -40,11 +40,6 @@ #include "shell.h" #endif -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif -#endif /* __cplusplus */ #define SYSINFO_ENABLED(x) (((x) == YES) ? "YES" : "NO") UINT32 OsShellCmdTaskCntGet(VOID) @@ -163,8 +158,3 @@ INT32 OsShellCmdSystemInfo(INT32 argc, const CHAR **argv) SHELLCMD_ENTRY(systeminfo_shellcmd, CMD_TYPE_EX, "systeminfo", 1, (CmdCallBackFunc)OsShellCmdSystemInfo); #endif /* LOSCFG_SHELL */ -#ifdef __cplusplus -#if __cplusplus -} -#endif -#endif /* __cplusplus */ diff --git a/kernel/base/misc/task_shellcmd.c b/kernel/base/misc/task_shellcmd.c old mode 100755 new mode 100644 index 20fddb77d2c195909a9725d1bc5c6aadc9e50000..7c918e1ced929f88d49f20a9f1d70191a38ca3be --- a/kernel/base/misc/task_shellcmd.c +++ b/kernel/base/misc/task_shellcmd.c @@ -53,11 +53,6 @@ #endif #include "los_sched_pri.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif -#endif /* __cplusplus */ #define OS_PROCESS_MEM_INFO 0x2U #define OS_PROCESS_INFO_LEN (g_processMaxNum * (sizeof(LosProcessCB))) @@ -609,8 +604,3 @@ TASK_HELP: SHELLCMD_ENTRY(task_shellcmd, CMD_TYPE_EX, "task", 1, (CmdCallBackFunc)OsShellCmdDumpTask); #endif -#ifdef __cplusplus -#if __cplusplus -} -#endif -#endif /* __cplusplus */ diff --git a/kernel/base/misc/vm_shellcmd.c b/kernel/base/misc/vm_shellcmd.c old mode 100755 new mode 100644 index 2bb82950dd915688e9a5da62d5e4a0c3c150d153..bb3edcaa63a2e012f1ddd0f0126bb6968d369f23 --- a/kernel/base/misc/vm_shellcmd.c +++ b/kernel/base/misc/vm_shellcmd.c @@ -44,11 +44,6 @@ #include "los_process_pri.h" #include "fs/path_cache.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #ifdef LOSCFG_KERNEL_VM @@ -264,8 +259,3 @@ SHELLCMD_ENTRY(pmm_shellcmd, CMD_TYPE_SHOW, "pmm", 0, (CmdCallBackFunc)OsShellCm #endif #endif -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/kernel/base/mp/los_lockdep.c b/kernel/base/mp/los_lockdep.c index 3f52964bed7cc57e3ecb011b5acb3b6c4b083562..2f2ac0b8a5c0ee7236d299fcc08e61bbc4653286 100644 --- a/kernel/base/mp/los_lockdep.c +++ b/kernel/base/mp/los_lockdep.c @@ -36,11 +36,6 @@ #include "los_atomic.h" #include "los_exc.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #if (LOSCFG_KERNEL_SMP_LOCKDEP == YES) @@ -344,8 +339,3 @@ VOID OsLockdepClearSpinlocks(VOID) #endif -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/kernel/base/mp/los_mp.c b/kernel/base/mp/los_mp.c index 9c3f7c96beb0a9807f92a6a0d1ecfd91e1d169fb..fc26d2c35927513f43cb86422af0257a12c71600 100644 --- a/kernel/base/mp/los_mp.c +++ b/kernel/base/mp/los_mp.c @@ -35,11 +35,6 @@ #include "los_sched_pri.h" #include "los_swtmr.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif -#endif /* __cplusplus */ #if (LOSCFG_KERNEL_SMP == YES) @@ -112,8 +107,3 @@ UINT32 OsMpInit(VOID) #endif -#ifdef __cplusplus -#if __cplusplus -} -#endif -#endif /* __cplusplus */ diff --git a/kernel/base/mp/los_percpu.c b/kernel/base/mp/los_percpu.c index 476c7c664c2b38ee6e89fe0f981751f30ae8ee87..c50e31e9c0f92c698a54c92059a0da5584a27cd6 100644 --- a/kernel/base/mp/los_percpu.c +++ b/kernel/base/mp/los_percpu.c @@ -31,16 +31,6 @@ #include "los_percpu_pri.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ Percpu g_percpu[LOSCFG_KERNEL_CORE_NUM]; -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/kernel/base/mp/los_spinlock.c b/kernel/base/mp/los_spinlock.c index 02a332ab22ab517561965a1bb3eefe800f76c274..385291ec239c1fc81c02b8f98d6b55ac50885aca 100644 --- a/kernel/base/mp/los_spinlock.c +++ b/kernel/base/mp/los_spinlock.c @@ -33,11 +33,6 @@ #if (LOSCFG_KERNEL_SMP == YES) #include "los_sched_pri.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ VOID LOS_SpinInit(SPIN_LOCK_S *lock) { @@ -108,8 +103,3 @@ VOID LOS_SpinUnlockRestore(SPIN_LOCK_S *lock, UINT32 intSave) } #endif -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/kernel/base/mp/los_stat.c b/kernel/base/mp/los_stat.c old mode 100755 new mode 100644 index 9f63716ecb21a701c43c75318c1afe9a2f2d5703..04e71f7d2f36d8e765f55d5de528c7df9440124e --- a/kernel/base/mp/los_stat.c +++ b/kernel/base/mp/los_stat.c @@ -31,11 +31,6 @@ #include "los_task_pri.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #if (LOSCFG_KERNEL_SCHED_STATISTICS == YES) #define HIGHTASKPRI 16 @@ -326,8 +321,3 @@ LITE_OS_SEC_TEXT_MINOR VOID OsShellMpStaticStop(VOID) #endif -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/kernel/base/om/los_err.c b/kernel/base/om/los_err.c old mode 100755 new mode 100644 index 5c455b8f901bbf1b3317e84905a42b90941099a1..6267a9d106423c0b91241ae83b40e1dbf9a8238a --- a/kernel/base/om/los_err.c +++ b/kernel/base/om/los_err.c @@ -31,11 +31,6 @@ #include "los_err.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ LITE_OS_SEC_BSS STATIC LOS_ERRORHANDLE_FUNC g_errHandleHook = NULL; @@ -54,8 +49,3 @@ LITE_OS_SEC_TEXT_INIT VOID LOS_SetErrHandleHook(LOS_ERRORHANDLE_FUNC fun) g_errHandleHook = fun; } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/kernel/base/sched/sched_sq/los_sched.c b/kernel/base/sched/sched_sq/los_sched.c old mode 100755 new mode 100644 index 6c7efabe23f6c82ff681394265554beb66418458..0e36722e7af5020f460b10a7f9099b707e51bdf0 --- a/kernel/base/sched/sched_sq/los_sched.c +++ b/kernel/base/sched/sched_sq/los_sched.c @@ -47,11 +47,6 @@ #include "los_stat_pri.h" #endif -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #define OS_32BIT_MAX 0xFFFFFFFFUL @@ -1137,8 +1132,3 @@ LOS_DL_LIST *OsSchedLockPendFindPos(const LosTaskCB *runTask, LOS_DL_LIST *lockL return node; } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/kernel/base/vm/los_vm_boot.c b/kernel/base/vm/los_vm_boot.c old mode 100755 new mode 100644 index 71460dd61335594fbc63242b873cc49b3326b11a..b178c80a850210ccde5adbffa344f8f4c73b5f1b --- a/kernel/base/vm/los_vm_boot.c +++ b/kernel/base/vm/los_vm_boot.c @@ -38,11 +38,6 @@ #include "los_vm_page.h" #include "los_arch_mmu.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ UINTPTR g_vmBootMemBase = (UINTPTR)&__bss_end; BOOL g_kHeapInited = FALSE; @@ -103,8 +98,3 @@ UINT32 OsSysMemInit(VOID) } #endif -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/kernel/base/vm/los_vm_dump.c b/kernel/base/vm/los_vm_dump.c old mode 100755 new mode 100644 index 612ee2b37e6a12d4f1c688089f9917002dd3e524..c05cc97aa0beecdd5fabf0e13f6df0d08f6cc577 --- a/kernel/base/vm/los_vm_dump.c +++ b/kernel/base/vm/los_vm_dump.c @@ -45,11 +45,6 @@ #include "los_vm_lock.h" #include "los_memory_pri.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #ifdef LOSCFG_KERNEL_VM @@ -553,8 +548,3 @@ VOID OsVmPhysUsedInfoGet(UINT32 *usedCount, UINT32 *totalCount) } #endif -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/kernel/base/vm/los_vm_fault.c b/kernel/base/vm/los_vm_fault.c old mode 100755 new mode 100644 index ff169c558f165179d8662a3510a86bba8ce6f566..d8f61b27181572fed1963c8bd6a75cd4b0a5c426 --- a/kernel/base/vm/los_vm_fault.c +++ b/kernel/base/vm/los_vm_fault.c @@ -45,11 +45,6 @@ #include "los_process_pri.h" #include "arm.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #ifdef LOSCFG_KERNEL_VM @@ -457,8 +452,3 @@ DONE: } #endif -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/kernel/base/vm/los_vm_filemap.c b/kernel/base/vm/los_vm_filemap.c index 653194b43d393fa2620d4325da0f2291ce3b26f0..860703027b386b2522912e9908834b817dded042 100644 --- a/kernel/base/vm/los_vm_filemap.c +++ b/kernel/base/vm/los_vm_filemap.c @@ -42,11 +42,6 @@ #include "los_process_pri.h" #include "los_vm_lock.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #ifdef LOSCFG_KERNEL_VM @@ -764,8 +759,3 @@ INT32 OsVfsFileMmap(struct file *filep, LosVmMapRegion *region) } #endif -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/kernel/base/vm/los_vm_iomap.c b/kernel/base/vm/los_vm_iomap.c index d63284aa496af32508cbf455e49985c0b39b7eb9..657d14c0322b62e331af03226d47fece38711735 100644 --- a/kernel/base/vm/los_vm_iomap.c +++ b/kernel/base/vm/los_vm_iomap.c @@ -37,11 +37,6 @@ #include "los_vm_lock.h" #include "los_memory.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ VOID *ioremap(PADDR_T paddr, unsigned long size) { @@ -218,8 +213,3 @@ DMA_ADDR_T LOS_DmaVaddrToPaddr(VOID *vaddr) return (DMA_ADDR_T)LOS_PaddrQuery(vaddr); } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/kernel/base/vm/los_vm_map.c b/kernel/base/vm/los_vm_map.c old mode 100755 new mode 100644 index f840c0cc25a6189ccd5ab6c99db216bc4544ad49..c802be1b39fa6bbb432933028103e355a79c3d52 --- a/kernel/base/vm/los_vm_map.c +++ b/kernel/base/vm/los_vm_map.c @@ -45,11 +45,6 @@ #include "los_memory_pri.h" #include "los_vm_boot.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #ifdef LOSCFG_KERNEL_VM @@ -1274,9 +1269,4 @@ VOID LOS_KernelFree(VOID *ptr) } } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/kernel/base/vm/los_vm_page.c b/kernel/base/vm/los_vm_page.c old mode 100755 new mode 100644 index 0945b831b31f17904d1934f903ba6b9d29780cc8..76d4d6628bb6923544a7928a69a876be3b29f09a --- a/kernel/base/vm/los_vm_page.c +++ b/kernel/base/vm/los_vm_page.c @@ -35,11 +35,6 @@ #include "los_vm_boot.h" #include "los_vm_filemap.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #ifdef LOSCFG_KERNEL_VM @@ -132,8 +127,3 @@ LosVmPage *LOS_VmPageGet(PADDR_T paddr) } #endif -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/kernel/base/vm/los_vm_phys.c b/kernel/base/vm/los_vm_phys.c old mode 100755 new mode 100644 index 3e2872cd2723b843a1a6a1d194b89cfe30394a5b..59ab9e4e21582bba43a6c756ba34061153084203 --- a/kernel/base/vm/los_vm_phys.c +++ b/kernel/base/vm/los_vm_phys.c @@ -36,11 +36,6 @@ #include "los_vm_dump.h" #include "los_process_pri.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #ifdef LOSCFG_KERNEL_VM @@ -639,8 +634,3 @@ VADDR_T *LOS_PaddrToKVaddr(PADDR_T paddr) } #endif -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/kernel/base/vm/los_vm_syscall.c b/kernel/base/vm/los_vm_syscall.c old mode 100755 new mode 100644 index 7910afc287dcb454206d075db083f24fc974fc2f..01890a7bc0d6b37a00c3865a210f52e3b4403ff8 --- a/kernel/base/vm/los_vm_syscall.c +++ b/kernel/base/vm/los_vm_syscall.c @@ -44,11 +44,6 @@ #include "los_vm_filemap.h" #include "los_process_pri.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #ifdef LOSCFG_KERNEL_VM @@ -498,8 +493,3 @@ VOID LOS_DumpMemRegion(VADDR_T vaddr) } #endif -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/kernel/base/vm/oom.c b/kernel/base/vm/oom.c old mode 100755 new mode 100644 index b9899fb25cb929b7ede0c5d54ea0907c453cd3ae..1c89662b145012499c9aef12b37eb8766b229a73 --- a/kernel/base/vm/oom.c +++ b/kernel/base/vm/oom.c @@ -44,11 +44,6 @@ #include "console.h" #endif -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #ifdef LOSCFG_KERNEL_VM @@ -252,8 +247,3 @@ LITE_OS_SEC_TEXT_MINOR UINT32 OomTaskInit(VOID) } #endif -#ifdef __cplusplus -#if __cplusplus -} -#endif -#endif diff --git a/kernel/base/vm/shm.c b/kernel/base/vm/shm.c old mode 100755 new mode 100644 index f5c5e3a98b023604cf5a0d5d7f0d167bcb6b2fdf..9de9d54ecbcaae5da29c72946f2ddb9bbf28b850 --- a/kernel/base/vm/shm.c +++ b/kernel/base/vm/shm.c @@ -50,11 +50,6 @@ #include "shell.h" #endif -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #ifdef LOSCFG_KERNEL_SHM @@ -858,8 +853,3 @@ SHELLCMD_ENTRY(shm_shellcmd, CMD_TYPE_SHOW, "shm", 2, (CmdCallBackFunc)OsShellCm #endif #endif -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif diff --git a/kernel/common/Kconfig b/kernel/common/Kconfig old mode 100755 new mode 100644 diff --git a/kernel/common/Makefile b/kernel/common/Makefile old mode 100755 new mode 100644 diff --git a/kernel/common/console.c b/kernel/common/console.c index 69b4dbc2077ae0efe530988b890a95583b5f915a..3c929b571643dd694b6647a1aa2e92455adac4c9 100644 --- a/kernel/common/console.c +++ b/kernel/common/console.c @@ -51,11 +51,6 @@ #include "fs/vfs_util.h" #include "user_copy.h" #include "fs/vnode.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #define EACH_CHAR 1 #define UART_IOC_MAGIC 'u' @@ -1620,8 +1615,3 @@ VOID OsWakeConsoleSendTask(VOID) } #endif -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/kernel/common/console.h b/kernel/common/console.h old mode 100755 new mode 100644 diff --git a/kernel/common/hwi_shell.c b/kernel/common/hwi_shell.c index 981375cb320c92d72f3dc95ada696835b0de4446..5b75550490aa6bf6bb4d21a99ff9b6aa342ce951 100644 --- a/kernel/common/hwi_shell.c +++ b/kernel/common/hwi_shell.c @@ -37,11 +37,6 @@ #include "los_hwi_pri.h" #include "shcmd.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #ifdef LOSCFG_CPUP_INCLUDE_IRQ STATIC CPUP_INFO_S hwiCpupAll[OS_HWI_MAX_NUM]; @@ -120,9 +115,4 @@ LITE_OS_SEC_TEXT_MINOR UINT32 OsShellCmdHwi(INT32 argc, const CHAR **argv) SHELLCMD_ENTRY(hwi_shellcmd, CMD_TYPE_EX, "hwi", 0, (CmdCallBackFunc)OsShellCmdHwi); -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ #endif /* LOSCFG_SHELL */ diff --git a/kernel/common/los_cir_buf.c b/kernel/common/los_cir_buf.c index 3bd7b951976a7b82f4184d9332906a56884544ed..f68547654d8181946ae7e44e038ea34e0363f485 100644 --- a/kernel/common/los_cir_buf.c +++ b/kernel/common/los_cir_buf.c @@ -31,11 +31,6 @@ #include "los_cir_buf_pri.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ UINT32 LOS_CirBufUsedSize(CirBuf *cirbufCB) { @@ -218,8 +213,3 @@ VOID LOS_CirBufDeinit(CirBuf *cirbufCB) (VOID)memset_s(cirbufCB, sizeof(CirBuf), 0, sizeof(CirBuf)); } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ \ No newline at end of file diff --git a/kernel/common/los_config.c b/kernel/common/los_config.c old mode 100755 new mode 100644 index 88a6990f6c9801287f90713f39136b1ba0a8d56f..f67921fcbd4f02fcae14b265d4a5f446f549daa7 --- a/kernel/common/los_config.c +++ b/kernel/common/los_config.c @@ -121,11 +121,6 @@ #include "los_quick_start_pri.h" #endif -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ STATIC SystemRebootFunc g_rebootHook = NULL; @@ -418,8 +413,3 @@ UINT32 OsSystemInit(VOID) return 0; } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/kernel/common/los_config.h b/kernel/common/los_config.h old mode 100755 new mode 100644 diff --git a/kernel/common/los_exc_interaction.c b/kernel/common/los_exc_interaction.c index 8a2825939ed9827c1ea0a951f6b1a1650afe82fb..66e904aedacbaeb06b26c88db6656beb4d6c2436 100644 --- a/kernel/common/los_exc_interaction.c +++ b/kernel/common/los_exc_interaction.c @@ -124,10 +124,5 @@ VOID OsExcInteractionTaskKeep(VOID) (VOID)LOS_TaskDelete(OsCurrTaskGet()->taskID); /* unreachable */ } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ #endif diff --git a/kernel/common/los_excinfo.c b/kernel/common/los_excinfo.c index 6a34fce13436fbb77c1ab27b85b30b9f0983cee9..422600a21e38827f0230b8c50a26f57b84100b37 100644 --- a/kernel/common/los_excinfo.c +++ b/kernel/common/los_excinfo.c @@ -35,11 +35,6 @@ #include "fs/fs.h" #endif -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #ifdef LOSCFG_SHELL_EXCINFO STATIC log_read_write_fn g_excInfoRW = NULL; /* the hook of read-writing exception information */ @@ -171,8 +166,3 @@ VOID OsRecordExcInfoTime(VOID) #endif -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/kernel/common/los_hilog.h b/kernel/common/los_hilog.h old mode 100755 new mode 100644 diff --git a/kernel/common/los_magickey.c b/kernel/common/los_magickey.c index 280870662cd54fb2fbc3696ff96f09c94ebdb401..adae57e8699a26e9d458b4e32be6b56837e41aad 100644 --- a/kernel/common/los_magickey.c +++ b/kernel/common/los_magickey.c @@ -32,11 +32,6 @@ #include "los_magickey.h" #include "los_task_pri.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #ifdef LOSCFG_ENABLE_MAGICKEY @@ -148,8 +143,3 @@ INT32 CheckMagicKey(CHAR key) #endif return 0; } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/kernel/common/los_printf.c b/kernel/common/los_printf.c old mode 100755 new mode 100644 index 401332861c704ffa59e4138f69b645bcc39799bf..567348ff9acafd11ee5fc0a5e415c23aaa7fce22 --- a/kernel/common/los_printf.c +++ b/kernel/common/los_printf.c @@ -47,11 +47,6 @@ #endif #include "los_exc_pri.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #define SIZEBUF 256 @@ -280,8 +275,3 @@ VOID LOS_LkPrint(INT32 level, const CHAR *func, INT32 line, const CHAR *fmt, ... } #endif -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/kernel/common/los_rootfs.c b/kernel/common/los_rootfs.c index ddf0b240b83d3a6cb6479c27b39634703036da33..911c5ba835bf06d26cb06d5e9153e70b9a66da6f 100644 --- a/kernel/common/los_rootfs.c +++ b/kernel/common/los_rootfs.c @@ -70,11 +70,6 @@ STATIC los_disk *g_emmcDisk = NULL; #endif -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #ifndef LOSCFG_SECURITY_BOOT STATIC INT32 g_alignSize = 0; diff --git a/kernel/common/los_rootfs.h b/kernel/common/los_rootfs.h old mode 100755 new mode 100644 diff --git a/kernel/common/los_seq_buf.c b/kernel/common/los_seq_buf.c old mode 100755 new mode 100644 diff --git a/kernel/common/los_seq_buf.h b/kernel/common/los_seq_buf.h old mode 100755 new mode 100644 diff --git a/kernel/common/patchfs/los_patchfs.c b/kernel/common/patchfs/los_patchfs.c old mode 100755 new mode 100644 diff --git a/kernel/common/virtual_serial.c b/kernel/common/virtual_serial.c index fda82408e2186d9e05ee428b8048f7b5081e3ce5..21a298af0980594a17588b27efa501962f0c9d17 100644 --- a/kernel/common/virtual_serial.c +++ b/kernel/common/virtual_serial.c @@ -40,11 +40,6 @@ #include "fs/path_cache.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ STATIC volatile UINT32 g_serialType = 0; STATIC struct file g_serialFilep; @@ -261,8 +256,3 @@ INT32 virtual_serial_deinit(VOID) return unregister_driver(SERIAL); } -#ifdef __cplusplus -#if __cplusplus -} -#endif -#endif diff --git a/kernel/extended/cppsupport/los_cppsupport.c b/kernel/extended/cppsupport/los_cppsupport.c old mode 100755 new mode 100644 index 7c17d995007b0311d73b380f96137e9666b6329e..bda498adfbb041cf65872a56367041f71f1e7e69 --- a/kernel/extended/cppsupport/los_cppsupport.c +++ b/kernel/extended/cppsupport/los_cppsupport.c @@ -32,11 +32,6 @@ #include "los_cppsupport.h" #include "los_printf.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ typedef VOID (*InitFunc)(VOID); @@ -53,8 +48,3 @@ LITE_OS_SEC_TEXT_MINOR INT32 LOS_CppSystemInit(UINTPTR initArrayStart, UINTPTR i return 0; } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/kernel/extended/cpup/cpup_shellcmd.c b/kernel/extended/cpup/cpup_shellcmd.c old mode 100755 new mode 100644 index cbff72cc70ab24d74270a33e563ef3ea0e1242ba..f504f4267723c05e91887a5e5dcf4c04c4bf0cd9 --- a/kernel/extended/cpup/cpup_shellcmd.c +++ b/kernel/extended/cpup/cpup_shellcmd.c @@ -37,11 +37,6 @@ #include "shcmd.h" #include "shell.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ VOID OsCmdCpupOperateOneParam(UINT32 mode) { @@ -141,9 +136,4 @@ LITE_OS_SEC_TEXT_MINOR UINT32 OsShellCmdCpup(INT32 argc, const CHAR **argv) } SHELLCMD_ENTRY(cpup_shellcmd, CMD_TYPE_EX, "cpup", XARGS, (CmdCallBackFunc)OsShellCmdCpup); -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ #endif /* LOSCFG_SHELL */ diff --git a/kernel/extended/cpup/los_cpup.c b/kernel/extended/cpup/los_cpup.c old mode 100755 new mode 100644 index 131e00d29721a90a89f5e3a6099614b7ab0b8410..0c6446cf5baa5ab314312e03d9c7346e14255c4d --- a/kernel/extended/cpup/los_cpup.c +++ b/kernel/extended/cpup/los_cpup.c @@ -34,11 +34,6 @@ #include "los_base.h" #include "los_swtmr.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #ifdef LOSCFG_KERNEL_CPUP @@ -576,8 +571,3 @@ LITE_OS_SEC_TEXT_MINOR UINT32 LOS_GetAllIrqCpuUsage(UINT16 mode, CPUP_INFO_S *cp #endif #endif /* LOSCFG_KERNEL_CPUP */ -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/kernel/extended/dynload/include/los_elf_auxvec_pri.h b/kernel/extended/dynload/include/los_elf_auxvec_pri.h old mode 100755 new mode 100644 diff --git a/kernel/extended/dynload/include/los_exec_elf.h b/kernel/extended/dynload/include/los_exec_elf.h old mode 100755 new mode 100644 diff --git a/kernel/extended/dynload/include/los_ld_elf_pri.h b/kernel/extended/dynload/include/los_ld_elf_pri.h old mode 100755 new mode 100644 diff --git a/kernel/extended/dynload/include/los_load_elf.h b/kernel/extended/dynload/include/los_load_elf.h old mode 100755 new mode 100644 diff --git a/kernel/extended/dynload/src/los_exec_elf.c b/kernel/extended/dynload/src/los_exec_elf.c old mode 100755 new mode 100644 diff --git a/kernel/extended/dynload/src/los_load_elf.c b/kernel/extended/dynload/src/los_load_elf.c old mode 100755 new mode 100644 diff --git a/kernel/extended/include/los_cpup_pri.h b/kernel/extended/include/los_cpup_pri.h old mode 100755 new mode 100644 diff --git a/kernel/extended/include/los_trace_pri.h b/kernel/extended/include/los_trace_pri.h old mode 100755 new mode 100644 diff --git a/kernel/extended/liteipc/Makefile b/kernel/extended/liteipc/Makefile old mode 100755 new mode 100644 diff --git a/kernel/extended/liteipc/hm_liteipc.h b/kernel/extended/liteipc/hm_liteipc.h old mode 100755 new mode 100644 diff --git a/kernel/extended/trace/Makefile b/kernel/extended/trace/Makefile old mode 100755 new mode 100644 diff --git a/kernel/extended/trace/los_trace.c b/kernel/extended/trace/los_trace.c index 74c2f6634bb71942046ce45d933356dd57285f99..678025c4ed29bb7120849949ecacb630173dc926 100644 --- a/kernel/extended/trace/los_trace.c +++ b/kernel/extended/trace/los_trace.c @@ -42,11 +42,6 @@ #include "stdlib.h" #endif -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #ifndef LOSCFG_KERNEL_TRACE VOID LOS_TraceInit(VOID) @@ -514,8 +509,3 @@ SHELLCMD_ENTRY(trace_shellcmd, CMD_TYPE_EX, "trace", 1, (CmdCallBackFunc)OsShell #endif -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/kernel/extended/trace/los_trace_frame.c b/kernel/extended/trace/los_trace_frame.c old mode 100755 new mode 100644 index 0f8306b887621bd4d8c5a1c637268d2fbea15ceb..6fe2f77261ebae0ae823546c6f2790bd96b41ebf --- a/kernel/extended/trace/los_trace_frame.c +++ b/kernel/extended/trace/los_trace_frame.c @@ -30,11 +30,6 @@ */ #include "los_trace_frame.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #ifdef LOSCFG_KERNEL_TRACE @@ -125,8 +120,3 @@ INT32 OsMemInfoTrace(UINT8 *inputBuffer, UINT32 bufLen, va_list ap) } #endif -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/kernel/extended/trace/los_trace_frame.h b/kernel/extended/trace/los_trace_frame.h old mode 100755 new mode 100644 diff --git a/kernel/extended/vdso/include/los_vdso.h b/kernel/extended/vdso/include/los_vdso.h old mode 100755 new mode 100644 diff --git a/kernel/extended/vdso/include/los_vdso_datapage.h b/kernel/extended/vdso/include/los_vdso_datapage.h old mode 100755 new mode 100644 diff --git a/kernel/extended/vdso/include/los_vdso_pri.h b/kernel/extended/vdso/include/los_vdso_pri.h old mode 100755 new mode 100644 diff --git a/kernel/extended/vdso/src/los_vdso.c b/kernel/extended/vdso/src/los_vdso.c old mode 100755 new mode 100644 diff --git a/kernel/extended/vdso/usr/Makefile b/kernel/extended/vdso/usr/Makefile old mode 100755 new mode 100644 diff --git a/kernel/extended/vdso/usr/los_vdso.ld b/kernel/extended/vdso/usr/los_vdso.ld old mode 100755 new mode 100644 diff --git a/kernel/extended/vdso/usr/los_vdso_sys.c b/kernel/extended/vdso/usr/los_vdso_sys.c old mode 100755 new mode 100644 diff --git a/kernel/include/los_base.h b/kernel/include/los_base.h old mode 100755 new mode 100644 diff --git a/kernel/include/los_bitmap.h b/kernel/include/los_bitmap.h old mode 100755 new mode 100644 diff --git a/kernel/include/los_cppsupport.h b/kernel/include/los_cppsupport.h old mode 100755 new mode 100644 diff --git a/kernel/include/los_err.h b/kernel/include/los_err.h old mode 100755 new mode 100644 diff --git a/kernel/include/los_list.h b/kernel/include/los_list.h old mode 100755 new mode 100644 diff --git a/kernel/include/los_lockdep.h b/kernel/include/los_lockdep.h old mode 100755 new mode 100644 diff --git a/kernel/include/los_memory.h b/kernel/include/los_memory.h old mode 100755 new mode 100644 diff --git a/kernel/include/los_mux.h b/kernel/include/los_mux.h old mode 100755 new mode 100644 diff --git a/kernel/include/los_process.h b/kernel/include/los_process.h old mode 100755 new mode 100644 diff --git a/kernel/include/los_rwlock.h b/kernel/include/los_rwlock.h old mode 100755 new mode 100644 diff --git a/kernel/include/los_spinlock.h b/kernel/include/los_spinlock.h old mode 100755 new mode 100644 diff --git a/kernel/include/los_swtmr.h b/kernel/include/los_swtmr.h old mode 100755 new mode 100644 diff --git a/kernel/include/los_tables.h b/kernel/include/los_tables.h old mode 100755 new mode 100644 diff --git a/kernel/include/los_task.h b/kernel/include/los_task.h old mode 100755 new mode 100644 diff --git a/kernel/include/los_trace.h b/kernel/include/los_trace.h old mode 100755 new mode 100644 diff --git a/kernel/include/los_typedef.h b/kernel/include/los_typedef.h old mode 100755 new mode 100644 diff --git a/kernel/user/Makefile b/kernel/user/Makefile old mode 100755 new mode 100644 diff --git a/kernel/user/include/los_user_init.h b/kernel/user/include/los_user_init.h old mode 100755 new mode 100644 diff --git a/kernel/user/src/los_user_init.c b/kernel/user/src/los_user_init.c old mode 100755 new mode 100644 diff --git a/kernel_test.sources b/kernel_test.sources old mode 100755 new mode 100644 diff --git a/lib/Kconfig b/lib/Kconfig old mode 100755 new mode 100644 diff --git a/lib/libc/Makefile b/lib/libc/Makefile old mode 100755 new mode 100644 diff --git a/lib/libscrew/src/los_crc32.c b/lib/libscrew/src/los_crc32.c index ad6ea030cb464f314365e89861fd638e84b8bfdd..6bc6e66e4b124b276c217b9dea62ac1ae08e650a 100644 --- a/lib/libscrew/src/los_crc32.c +++ b/lib/libscrew/src/los_crc32.c @@ -31,11 +31,6 @@ #include "los_crc32.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #define COUNT1 val = crc32_tab[(val ^ (*src++)) & 0xff] ^ (val >> 8) #define COUNT2 COUNT1; COUNT1 @@ -75,8 +70,3 @@ UINT32 LOS_Crc32Accumulate(UINT32 val, UINT8 *src, INT32 len) return val; } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/lib/libscrew/src/los_rbtree.c b/lib/libscrew/src/los_rbtree.c old mode 100755 new mode 100644 index bcd02dda6787325bcf4cd91da7891785668b73f1..348b1b1d51febb2287539bd59a025a4ce7fae5b4 --- a/lib/libscrew/src/los_rbtree.c +++ b/lib/libscrew/src/los_rbtree.c @@ -37,11 +37,6 @@ #include "los_rbtree.h" #include "los_memory.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ STATIC VOID OsRbLeftRotateNode(LosRbTree *pstTree, LosRbNode *pstX); STATIC VOID OsRbRightRotateNode(LosRbTree *pstTree, LosRbNode *pstY); @@ -764,9 +759,4 @@ ULONG_T LOS_RbAddNode(LosRbTree *pstTree, LosRbNode *pstNew) return TRUE; } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/lib/libsec/Makefile b/lib/libsec/Makefile old mode 100755 new mode 100644 diff --git a/net/lwip-2.1/enhancement/include/lwip/api_shell.h b/net/lwip-2.1/enhancement/include/lwip/api_shell.h old mode 100755 new mode 100644 diff --git a/net/lwip-2.1/porting/src/sockets.c b/net/lwip-2.1/porting/src/sockets.c old mode 100755 new mode 100644 diff --git a/net/telnet/include/telnet_dev.h b/net/telnet/include/telnet_dev.h old mode 100755 new mode 100644 diff --git a/net/telnet/include/telnet_loop.h b/net/telnet/include/telnet_loop.h old mode 100755 new mode 100644 diff --git a/net/telnet/src/telnet_dev.c b/net/telnet/src/telnet_dev.c index baaf4c5ccc2183e3ca056b83804e36746d633a1e..85004063f22071ca649213c0322ab6e7b25f1aff 100644 --- a/net/telnet/src/telnet_dev.c +++ b/net/telnet/src/telnet_dev.c @@ -48,11 +48,6 @@ #include "telnet_pri.h" #include "fs/vnode.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ /* event: there are more commands left in the FIFO to run */ #define TELNET_EVENT_MORE_CMD 0x01 @@ -412,8 +407,3 @@ INT32 TelnetDevDeinit(VOID) } #endif -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/net/telnet/src/telnet_loop.c b/net/telnet/src/telnet_loop.c index 87747b18ebf0b83dc727802a4fbf44b217463b3f..f68ed91b78cc504b0b90ba57f59e8eba355d2f05 100644 --- a/net/telnet/src/telnet_loop.c +++ b/net/telnet/src/telnet_loop.c @@ -53,11 +53,6 @@ #include "telnet_pri.h" #include "telnet_dev.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ /* TELNET commands in RFC854 */ #define TELNET_SB 250 /* Indicates that what follows is subnegotiation of the indicated option */ @@ -587,8 +582,3 @@ SHELLCMD_ENTRY(telnet_shellcmd, CMD_TYPE_EX, "telnet", 1, (CmdCallBackFunc)Telne #endif /* LOSCFG_SHELL_CMD_DEBUG */ #endif -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/platform/Kconfig b/platform/Kconfig old mode 100755 new mode 100644 diff --git a/platform/Makefile b/platform/Makefile old mode 100755 new mode 100644 diff --git a/platform/bsp.mk b/platform/bsp.mk old mode 100755 new mode 100644 diff --git a/security/Makefile b/security/Makefile old mode 100755 new mode 100644 diff --git a/security/cap/Makefile b/security/cap/Makefile old mode 100755 new mode 100644 diff --git a/security/cap/capability.c b/security/cap/capability.c old mode 100755 new mode 100644 diff --git a/security/cap/capability_api.h b/security/cap/capability_api.h old mode 100755 new mode 100644 diff --git a/security/cap/capability_type.h b/security/cap/capability_type.h old mode 100755 new mode 100644 diff --git a/security/vid/vid.c b/security/vid/vid.c old mode 100755 new mode 100644 diff --git a/security/vid/vid_api.h b/security/vid/vid_api.h old mode 100755 new mode 100644 diff --git a/security/vid/vid_type.h b/security/vid/vid_type.h old mode 100755 new mode 100644 diff --git a/shell/BUILD.gn b/shell/BUILD.gn old mode 100755 new mode 100644 diff --git a/shell/Makefile b/shell/Makefile old mode 100755 new mode 100644 diff --git a/shell/full/include/dmesg.h b/shell/full/include/dmesg.h old mode 100755 new mode 100644 diff --git a/shell/full/include/shcmd.h b/shell/full/include/shcmd.h old mode 100755 new mode 100644 diff --git a/shell/full/include/shmsg.h b/shell/full/include/shmsg.h old mode 100755 new mode 100644 diff --git a/shell/full/include/show.h b/shell/full/include/show.h old mode 100755 new mode 100644 diff --git a/shell/full/src/base/shcmd.c b/shell/full/src/base/shcmd.c old mode 100755 new mode 100644 index 39b7ad14298b424143dfc382fd7e132e708d7cf7..a7480ebaa95598cfd983aace27ac3f149f5cbb14 --- a/shell/full/src/base/shcmd.c +++ b/shell/full/src/base/shcmd.c @@ -40,11 +40,6 @@ #include "los_memory.h" #include "los_typedef.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #define SHELL_INIT_MAGIC_FLAG 0xABABABAB #define CTRL_C 0x03 /* 0x03: ctrl+c ASCII */ @@ -869,8 +864,3 @@ LITE_OS_SEC_TEXT_MINOR UINT32 osCmdReg(CmdType cmdType, const CHAR *cmdKey, UINT return OsCmdItemCreate(cmdType, cmdKey, paraNum, cmdProc); } -#ifdef __cplusplus -#if __cplusplus -} -#endif -#endif diff --git a/shell/full/src/base/shcmdparse.c b/shell/full/src/base/shcmdparse.c old mode 100755 new mode 100644 index b7a71854286820525ebbe9ceaddb48147fd74856..974f0ac95befc65ec30a4a82354211c49ee30dfc --- a/shell/full/src/base/shcmdparse.c +++ b/shell/full/src/base/shcmdparse.c @@ -32,11 +32,6 @@ #include "shcmd.h" #include "los_memory.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ /* * Filter out double quote or single-quoted strings at both ends @@ -158,8 +153,3 @@ LITE_OS_SEC_TEXT_MINOR UINT32 OsCmdParse(CHAR *cmdStr, CmdParsed *cmdParsed) return OsCmdTokenSplit(cmdStr, ' ', cmdParsed); } -#ifdef __cplusplus -#if __cplusplus -} -#endif -#endif \ No newline at end of file diff --git a/shell/full/src/base/shell_lk.c b/shell/full/src/base/shell_lk.c old mode 100755 new mode 100644 index c7630443d42422ad033719b30924d15f84065b1f..9e2474b847a51dc3e6e8daf109f8abb50ec4634b --- a/shell/full/src/base/shell_lk.c +++ b/shell/full/src/base/shell_lk.c @@ -41,11 +41,6 @@ #include "securec.h" #ifdef LOSCFG_SHELL_LK -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ typedef enum { MODULE0 = 0, @@ -228,9 +223,4 @@ VOID OsLkLoggerInit(const CHAR *str) SHELLCMD_ENTRY(log_shellcmd, CMD_TYPE_EX, "log", 1, (CmdCallBackFunc)CmdLog); #endif -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ #endif diff --git a/shell/full/src/base/shmsg.c b/shell/full/src/base/shmsg.c old mode 100755 new mode 100644 index 6ffe776d5e1a9477241b88645867495b985976be..559561b9214240f00db91597d4c34809e4086581 --- a/shell/full/src/base/shmsg.c +++ b/shell/full/src/base/shmsg.c @@ -46,11 +46,6 @@ #include "console.h" #endif -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ CHAR *ShellGetInputBuf(ShellCB *shellCB) { @@ -465,8 +460,3 @@ LITE_OS_SEC_TEXT_MINOR UINT32 ShellEntryInit(ShellCB *shellCB) return ret; } -#ifdef __cplusplus -#if __cplusplus -} -#endif -#endif diff --git a/shell/full/src/base/show.c b/shell/full/src/base/show.c old mode 100755 new mode 100644 index 178778b9fd16d73245e183184f5e2d64661a2118..fd11aed300c0029dba760a2bc5a47ef04d9356b2 --- a/shell/full/src/base/show.c +++ b/shell/full/src/base/show.c @@ -34,11 +34,6 @@ #include "shcmd.h" #include "console.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ STATIC BOOL g_shellSourceFlag = FALSE; @@ -178,8 +173,3 @@ CHAR *OsShellGetWorkingDirtectory(VOID) return shellCB->shellWorkingDirectory; } -#ifdef __cplusplus -#if __cplusplus -} -#endif -#endif diff --git a/shell/full/src/cmds/dmesg.c b/shell/full/src/cmds/dmesg.c index fa195c1615818dbae2d096be299911c5dfee14ac..8342c676e734e58279c0d9d977db537d4d5870f4 100644 --- a/shell/full/src/cmds/dmesg.c +++ b/shell/full/src/cmds/dmesg.c @@ -60,11 +60,6 @@ Case B: #include "stdlib.h" #include "los_task.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ #define BUF_MAX_INDEX (g_logBufSize - 1) @@ -772,9 +767,4 @@ ERR_OUT: SHELLCMD_ENTRY(dmesg_shellcmd, CMD_TYPE_STD, "dmesg", XARGS, (CmdCallBackFunc)OsShellCmdDmesg); -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ #endif diff --git a/shell/full/src/cmds/excinfo_shell.c b/shell/full/src/cmds/excinfo_shell.c old mode 100755 new mode 100644 index 06a484cede2a2ecb408d79b37d680ed9fae26121..85f3959c0884f0e6bd11b716657330d6a0687992 --- a/shell/full/src/cmds/excinfo_shell.c +++ b/shell/full/src/cmds/excinfo_shell.c @@ -34,11 +34,6 @@ #ifdef LOSCFG_SHELL_EXCINFO #include "los_excinfo_pri.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ INT32 osShellCmdReadExcInfo(INT32 argc, CHAR **argv) { @@ -63,9 +58,4 @@ INT32 osShellCmdReadExcInfo(INT32 argc, CHAR **argv) return LOS_OK; } SHELLCMD_ENTRY(readExcInfo_shellcmd, CMD_TYPE_EX, "excInfo", 0, (CmdCallBackFunc)osShellCmdReadExcInfo); -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ #endif diff --git a/shell/full/src/cmds/watch_shell.c b/shell/full/src/cmds/watch_shell.c old mode 100755 new mode 100644 diff --git a/syscall/Makefile b/syscall/Makefile old mode 100755 new mode 100644 diff --git a/syscall/ipc_syscall.c b/syscall/ipc_syscall.c old mode 100755 new mode 100644 diff --git a/syscall/misc_syscall.c b/syscall/misc_syscall.c old mode 100755 new mode 100644 index a61620b3bad723704ad8367007ab7e064adac8b4..29b571d94806959240c0abc144c64dafc341013b --- a/syscall/misc_syscall.c +++ b/syscall/misc_syscall.c @@ -46,11 +46,6 @@ #endif #include "user_copy.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ int SysUname(struct utsname *name) { @@ -198,8 +193,3 @@ int SysGetrusage(int what, struct rusage *ru) return 0; } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/syscall/net_syscall.c b/syscall/net_syscall.c old mode 100755 new mode 100644 diff --git a/syscall/process_syscall.c b/syscall/process_syscall.c old mode 100755 new mode 100644 index b304de55f89db70f9c5aeab740abc80359ae7fa0..b13c6568ae1321470be8a3e28cf81cd171bd63e2 --- a/syscall/process_syscall.c +++ b/syscall/process_syscall.c @@ -42,11 +42,6 @@ #include "capability_api.h" #endif -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ static int OsPermissionToCheck(unsigned int pid, unsigned int who) { @@ -1108,8 +1103,3 @@ int SysSchedSetAffinity(int id, const unsigned short cpuset, int flag) return LOS_OK; } -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/syscall/syscall_lookup.h b/syscall/syscall_lookup.h old mode 100755 new mode 100644 diff --git a/syscall/time_syscall.c b/syscall/time_syscall.c old mode 100755 new mode 100644 diff --git a/syscall/vm_syscall.c b/syscall/vm_syscall.c old mode 100755 new mode 100644 index c1344ea1a7818645873dc4b99985391a88389755..3e7194e67b5ef843f01754c8e01c5ad3c71e697d --- a/syscall/vm_syscall.c +++ b/syscall/vm_syscall.c @@ -36,11 +36,6 @@ #include "los_vm_syscall.h" #include "fs_file.h" -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ void *SysMmap(void *addr, size_t size, int prot, int flags, int fd, size_t offset) { @@ -120,8 +115,3 @@ int SysShmDt(const void *shmaddr) } #endif -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ diff --git a/tools/build/config/debug/hispark_aries.config b/tools/build/config/debug/hispark_aries.config old mode 100755 new mode 100644 diff --git a/tools/build/config/debug/hispark_aries_clang.config b/tools/build/config/debug/hispark_aries_clang.config old mode 100755 new mode 100644 diff --git a/tools/build/config/debug/hispark_taurus.config b/tools/build/config/debug/hispark_taurus.config old mode 100755 new mode 100644 diff --git a/tools/build/config/debug/hispark_taurus_clang.config b/tools/build/config/debug/hispark_taurus_clang.config old mode 100755 new mode 100644 diff --git a/tools/build/config/debug/hispark_taurus_clang_tee.config b/tools/build/config/debug/hispark_taurus_clang_tee.config old mode 100755 new mode 100644 diff --git a/tools/build/config/debug/ipcamera_hi3516dv300_liteos.config b/tools/build/config/debug/ipcamera_hi3516dv300_liteos.config old mode 100755 new mode 100644 diff --git a/tools/build/config/debug/ipcamera_hi3516dv300_liteos_clang.config b/tools/build/config/debug/ipcamera_hi3516dv300_liteos_clang.config old mode 100755 new mode 100644 diff --git a/tools/build/config/debug/ipcamera_hi3516dv300_liteos_clang_tee.config b/tools/build/config/debug/ipcamera_hi3516dv300_liteos_clang_tee.config old mode 100755 new mode 100644 diff --git a/tools/build/config/debug/ipcamera_hi3518ev300_liteos.config b/tools/build/config/debug/ipcamera_hi3518ev300_liteos.config old mode 100755 new mode 100644 diff --git a/tools/build/config/debug/ipcamera_hi3518ev300_liteos_clang.config b/tools/build/config/debug/ipcamera_hi3518ev300_liteos_clang.config old mode 100755 new mode 100644 diff --git a/tools/build/config/hispark_aries_clang_release.config b/tools/build/config/hispark_aries_clang_release.config old mode 100755 new mode 100644 diff --git a/tools/build/config/hispark_aries_debug_shell.config b/tools/build/config/hispark_aries_debug_shell.config old mode 100755 new mode 100644 diff --git a/tools/build/config/hispark_aries_release.config b/tools/build/config/hispark_aries_release.config old mode 100755 new mode 100644 diff --git a/tools/build/config/hispark_taurus_clang_release.config b/tools/build/config/hispark_taurus_clang_release.config old mode 100755 new mode 100644 diff --git a/tools/build/config/hispark_taurus_clang_release_tee.config b/tools/build/config/hispark_taurus_clang_release_tee.config old mode 100755 new mode 100644 diff --git a/tools/build/config/hispark_taurus_debug_shell.config b/tools/build/config/hispark_taurus_debug_shell.config old mode 100755 new mode 100644 diff --git a/tools/build/config/hispark_taurus_debug_shell_tee.config b/tools/build/config/hispark_taurus_debug_shell_tee.config old mode 100755 new mode 100644 diff --git a/tools/build/config/hispark_taurus_release.config b/tools/build/config/hispark_taurus_release.config old mode 100755 new mode 100644 diff --git a/tools/build/config/hispark_taurus_release_tee.config b/tools/build/config/hispark_taurus_release_tee.config old mode 100755 new mode 100644 diff --git a/tools/build/config/ipcamera_hi3516dv300_liteos_clang_release.config b/tools/build/config/ipcamera_hi3516dv300_liteos_clang_release.config old mode 100755 new mode 100644 diff --git a/tools/build/config/ipcamera_hi3516dv300_liteos_clang_release_tee.config b/tools/build/config/ipcamera_hi3516dv300_liteos_clang_release_tee.config old mode 100755 new mode 100644 diff --git a/tools/build/config/ipcamera_hi3516dv300_liteos_debug_shell.config b/tools/build/config/ipcamera_hi3516dv300_liteos_debug_shell.config old mode 100755 new mode 100644 diff --git a/tools/build/config/ipcamera_hi3516dv300_liteos_debug_shell_tee.config b/tools/build/config/ipcamera_hi3516dv300_liteos_debug_shell_tee.config old mode 100755 new mode 100644 diff --git a/tools/build/config/ipcamera_hi3516dv300_liteos_release.config b/tools/build/config/ipcamera_hi3516dv300_liteos_release.config old mode 100755 new mode 100644 diff --git a/tools/build/config/ipcamera_hi3516dv300_liteos_release_tee.config b/tools/build/config/ipcamera_hi3516dv300_liteos_release_tee.config old mode 100755 new mode 100644 diff --git a/tools/build/config/ipcamera_hi3518ev300_liteos_clang_release.config b/tools/build/config/ipcamera_hi3518ev300_liteos_clang_release.config old mode 100755 new mode 100644 diff --git a/tools/build/config/ipcamera_hi3518ev300_liteos_debug_shell.config b/tools/build/config/ipcamera_hi3518ev300_liteos_debug_shell.config old mode 100755 new mode 100644 diff --git a/tools/build/config/ipcamera_hi3518ev300_liteos_release.config b/tools/build/config/ipcamera_hi3518ev300_liteos_release.config old mode 100755 new mode 100644 diff --git a/tools/build/config/qemu_arm_virt_debug_shell.config b/tools/build/config/qemu_arm_virt_debug_shell.config old mode 100755 new mode 100644 diff --git a/tools/build/liteos.ld b/tools/build/liteos.ld old mode 100755 new mode 100644 diff --git a/tools/build/liteos_llvm.ld b/tools/build/liteos_llvm.ld old mode 100755 new mode 100644 diff --git a/tools/build/mk/bepbuildtime.conf b/tools/build/mk/bepbuildtime.conf old mode 100755 new mode 100644 diff --git a/tools/build/mk/dynload.mk b/tools/build/mk/dynload.mk old mode 100755 new mode 100644 diff --git a/tools/build/mk/liteos_tables_ldflags.mk b/tools/build/mk/liteos_tables_ldflags.mk old mode 100755 new mode 100644 diff --git a/tools/build/mk/module.mk b/tools/build/mk/module.mk old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/cygz.dll b/tools/fsimage/win-x86/cygz.dll old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/doc_loadbios.exe b/tools/fsimage/win-x86/doc_loadbios.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/docfdisk.exe b/tools/fsimage/win-x86/docfdisk.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/flash_erase.exe b/tools/fsimage/win-x86/flash_erase.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/flash_lock.exe b/tools/fsimage/win-x86/flash_lock.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/flash_otp_dump.exe b/tools/fsimage/win-x86/flash_otp_dump.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/flash_otp_info.exe b/tools/fsimage/win-x86/flash_otp_info.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/flash_otp_lock.exe b/tools/fsimage/win-x86/flash_otp_lock.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/flash_otp_write.exe b/tools/fsimage/win-x86/flash_otp_write.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/flash_unlock.exe b/tools/fsimage/win-x86/flash_unlock.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/flashcp.exe b/tools/fsimage/win-x86/flashcp.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/ftl_check.exe b/tools/fsimage/win-x86/ftl_check.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/ftl_format.exe b/tools/fsimage/win-x86/ftl_format.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/jffs2dump.exe b/tools/fsimage/win-x86/jffs2dump.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/jffs2reader.exe b/tools/fsimage/win-x86/jffs2reader.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/lsmtd.exe b/tools/fsimage/win-x86/lsmtd.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/mkfs.jffs2.exe b/tools/fsimage/win-x86/mkfs.jffs2.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/mtd_debug.exe b/tools/fsimage/win-x86/mtd_debug.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/mtdinfo.exe b/tools/fsimage/win-x86/mtdinfo.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/mtdpart.exe b/tools/fsimage/win-x86/mtdpart.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/nanddump.exe b/tools/fsimage/win-x86/nanddump.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/nandtest.exe b/tools/fsimage/win-x86/nandtest.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/nandwrite.exe b/tools/fsimage/win-x86/nandwrite.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/nftl_format.exe b/tools/fsimage/win-x86/nftl_format.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/nftldump.exe b/tools/fsimage/win-x86/nftldump.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/recv_image.exe b/tools/fsimage/win-x86/recv_image.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/rfddump.exe b/tools/fsimage/win-x86/rfddump.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/rfdformat.exe b/tools/fsimage/win-x86/rfdformat.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/serve_image.exe b/tools/fsimage/win-x86/serve_image.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/sumtool.exe b/tools/fsimage/win-x86/sumtool.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/ubiattach.exe b/tools/fsimage/win-x86/ubiattach.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/ubiblock.exe b/tools/fsimage/win-x86/ubiblock.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/ubicrc32.exe b/tools/fsimage/win-x86/ubicrc32.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/ubidetach.exe b/tools/fsimage/win-x86/ubidetach.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/ubiformat.exe b/tools/fsimage/win-x86/ubiformat.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/ubimkvol.exe b/tools/fsimage/win-x86/ubimkvol.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/ubinfo.exe b/tools/fsimage/win-x86/ubinfo.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/ubinize.exe b/tools/fsimage/win-x86/ubinize.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/ubirename.exe b/tools/fsimage/win-x86/ubirename.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/ubirmvol.exe b/tools/fsimage/win-x86/ubirmvol.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/ubirsvol.exe b/tools/fsimage/win-x86/ubirsvol.exe old mode 100755 new mode 100644 diff --git a/tools/fsimage/win-x86/ubiupdatevol.exe b/tools/fsimage/win-x86/ubiupdatevol.exe old mode 100755 new mode 100644