提交 7ba0bfa8 编写于 作者: O openharmony_ci 提交者: Gitee

!157 删除无用的__cplusplus,移除不必要的文件x权限

Merge pull request !157 from Caoruihong/cplusplus
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
...@@ -37,11 +37,6 @@ ...@@ -37,11 +37,6 @@
#include "shcmd.h" #include "shcmd.h"
#include "sherr.h" #include "sherr.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
int Chdir(const char *tgtDir) int Chdir(const char *tgtDir)
{ {
...@@ -59,8 +54,3 @@ int Chdir(const char *tgtDir) ...@@ -59,8 +54,3 @@ int Chdir(const char *tgtDir)
return ret; return ret;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
...@@ -36,11 +36,6 @@ ...@@ -36,11 +36,6 @@
#include "securec.h" #include "securec.h"
#include "unistd.h" #include "unistd.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
ShellCB *g_shellCB = NULL; ShellCB *g_shellCB = NULL;
...@@ -139,8 +134,3 @@ ERR_OUT1: ...@@ -139,8 +134,3 @@ ERR_OUT1:
return ret; return ret;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif
...@@ -36,11 +36,6 @@ ...@@ -36,11 +36,6 @@
#include "dirent.h" #include "dirent.h"
#include "securec.h" #include "securec.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#define SHELL_INIT_MAGIC_FLAG 0xABABABAB #define SHELL_INIT_MAGIC_FLAG 0xABABABAB
#define CTRL_C 0x03 /* 0x03: ctrl+c ASCII */ #define CTRL_C 0x03 /* 0x03: ctrl+c ASCII */
...@@ -599,8 +594,3 @@ unsigned int OsCmdExec(CmdParsed *cmdParsed, char *cmdStr) ...@@ -599,8 +594,3 @@ unsigned int OsCmdExec(CmdParsed *cmdParsed, char *cmdStr)
return ret; return ret;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif
...@@ -32,11 +32,6 @@ ...@@ -32,11 +32,6 @@
#include "shcmd.h" #include "shcmd.h"
#include "sherr.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 * Filter out double quote or single-quoted strings at both ends
...@@ -157,8 +152,3 @@ unsigned int OsCmdParse(char *cmdStr, CmdParsed *cmdParsed) ...@@ -157,8 +152,3 @@ unsigned int OsCmdParse(char *cmdStr, CmdParsed *cmdParsed)
return OsCmdTokenSplit(cmdStr, ' ', cmdParsed); return OsCmdTokenSplit(cmdStr, ' ', cmdParsed);
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif
...@@ -42,11 +42,6 @@ ...@@ -42,11 +42,6 @@
#include "shell_pri.h" #include "shell_pri.h"
#include "shcmd.h" #include "shcmd.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
char *GetCmdline(ShellCB *shellCB) char *GetCmdline(ShellCB *shellCB)
...@@ -640,8 +635,3 @@ int ShellEntryInit(ShellCB *shellCB) ...@@ -640,8 +635,3 @@ int ShellEntryInit(ShellCB *shellCB)
return ret; return ret;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
...@@ -45,11 +45,6 @@ ...@@ -45,11 +45,6 @@
#include "los_vm_boot.h" #include "los_vm_boot.h"
#include "los_mmu_descriptor_v6.h" #include "los_mmu_descriptor_v6.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifdef LOSCFG_KERNEL_MMU #ifdef LOSCFG_KERNEL_MMU
...@@ -973,9 +968,4 @@ VOID OsInitMappingStartUp(VOID) ...@@ -973,9 +968,4 @@ VOID OsInitMappingStartUp(VOID)
} }
#endif #endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -39,11 +39,6 @@ ...@@ -39,11 +39,6 @@
#include "los_spinlock.h" #include "los_spinlock.h"
#include "los_mmu_descriptor_v6.h" #include "los_mmu_descriptor_v6.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifdef LOSCFG_KERNEL_VM #ifdef LOSCFG_KERNEL_VM
...@@ -76,8 +71,3 @@ VOID OsFreeAsid(UINT32 asid) ...@@ -76,8 +71,3 @@ VOID OsFreeAsid(UINT32 asid)
} }
#endif #endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
文件模式从 100755 更改为 100644
...@@ -66,11 +66,6 @@ ...@@ -66,11 +66,6 @@
#include "console.h" #include "console.h"
#endif #endif
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#define INVALID_CPUID 0xFFFF #define INVALID_CPUID 0xFFFF
#define OS_EXC_VMM_NO_REGION 0x0U #define OS_EXC_VMM_NO_REGION 0x0U
...@@ -1191,8 +1186,3 @@ VOID LOS_RecordLR(UINTPTR *LR, UINT32 LRSize, UINT32 recordCount, UINT32 jumpCou ...@@ -1191,8 +1186,3 @@ VOID LOS_RecordLR(UINTPTR *LR, UINT32 LRSize, UINT32 recordCount, UINT32 jumpCou
} }
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -32,11 +32,6 @@ ...@@ -32,11 +32,6 @@
#include "los_hw_pri.h" #include "los_hw_pri.h"
#include "los_task_pri.h" #include "los_task_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
/* support cpu vendors */ /* support cpu vendors */
CpuVendor g_cpuTable[] = { CpuVendor g_cpuTable[] = {
...@@ -177,8 +172,3 @@ VOID DCacheInvRange(UINT32 start, UINT32 end) ...@@ -177,8 +172,3 @@ VOID DCacheInvRange(UINT32 start, UINT32 end)
arm_inv_cache_range(start, end); arm_inv_cache_range(start, end);
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
文件模式从 100755 更改为 100644
...@@ -32,11 +32,6 @@ ...@@ -32,11 +32,6 @@
#include "los_sys_pri.h" #include "los_sys_pri.h"
#include "los_hwi.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) 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) ...@@ -79,8 +74,3 @@ LITE_OS_SEC_TEXT_MINOR VOID LOS_Mdelay(UINT32 msecs)
HalDelayUs(msecs * 1000); /* 1000 : 1ms = 1000us */ HalDelayUs(msecs * 1000); /* 1000 : 1ms = 1000us */
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -37,11 +37,6 @@ ...@@ -37,11 +37,6 @@
#endif #endif
#include "los_sched_pri.h" #include "los_sched_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
/* spinlock for hwi module, only available on SMP mode */ /* spinlock for hwi module, only available on SMP mode */
LITE_OS_SEC_BSS SPIN_LOCK_INIT(g_hwiSpin); 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 ...@@ -352,8 +347,3 @@ LITE_OS_SEC_TEXT_INIT UINT32 LOS_HwiDelete(HWI_HANDLE_T hwiNum, HwiIrqParam *irq
return ret; return ret;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
...@@ -33,11 +33,6 @@ ...@@ -33,11 +33,6 @@
#include "los_user_get.h" #include "los_user_get.h"
#include "los_vm_map.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) INT32 LOS_StrncpyFromUser(CHAR *dst, const CHAR *src, INT32 count)
{ {
...@@ -67,8 +62,3 @@ 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; return offset;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -33,11 +33,6 @@ ...@@ -33,11 +33,6 @@
#include "los_user_get.h" #include "los_user_get.h"
#include "los_vm_map.h" #include "los_vm_map.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
INT32 LOS_StrnlenUser(const CHAR *src, INT32 count) INT32 LOS_StrnlenUser(const CHAR *src, INT32 count)
{ {
...@@ -66,8 +61,3 @@ INT32 LOS_StrnlenUser(const CHAR *src, INT32 count) ...@@ -66,8 +61,3 @@ INT32 LOS_StrnlenUser(const CHAR *src, INT32 count)
return count + 1; return count + 1;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -35,11 +35,6 @@ ...@@ -35,11 +35,6 @@
#include "los_memory.h" #include "los_memory.h"
#include "los_vm_map.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) 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) ...@@ -114,9 +109,4 @@ INT32 LOS_UserMemClear(unsigned char *buf, UINT32 len)
return ret; return ret;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
...@@ -34,11 +34,6 @@ ...@@ -34,11 +34,6 @@
#include "los_sem.h" #include "los_sem.h"
#include "los_task.h" #include "los_task.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
int map_errno(UINT32 err) int map_errno(UINT32 err)
{ {
...@@ -115,8 +110,3 @@ int map_errno(UINT32 err) ...@@ -115,8 +110,3 @@ int map_errno(UINT32 err)
return errno; return errno;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -37,11 +37,6 @@ ...@@ -37,11 +37,6 @@
#include "mqueue.h" #include "mqueue.h"
#include "semaphore.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 * Supply some suitable values for constants that may not be present
...@@ -145,8 +140,3 @@ pid_t getpid(void) ...@@ -145,8 +140,3 @@ pid_t getpid(void)
return ((LosTaskCB *)(OsCurrTaskGet()))->taskID; return ((LosTaskCB *)(OsCurrTaskGet()))->taskID;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
\ No newline at end of file
...@@ -40,11 +40,6 @@ ...@@ -40,11 +40,6 @@
#include "fs_file.h" #include "fs_file.h"
#include "user_copy.h" #include "user_copy.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#define FNONBLOCK O_NONBLOCK #define FNONBLOCK O_NONBLOCK
...@@ -842,8 +837,3 @@ ssize_t mq_receive(mqd_t personal, char *msg_ptr, size_t msg_len, unsigned int * ...@@ -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); return mq_timedreceive(personal, msg_ptr, msg_len, msg_prio, NULL);
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -32,11 +32,6 @@ ...@@ -32,11 +32,6 @@
#include "los_typedef.h" #include "los_typedef.h"
#include "los_memory.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) 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) ...@@ -52,8 +47,3 @@ int posix_memalign(void **memAddr, size_t alignment, size_t size)
return ENOERR; return ENOERR;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
\ No newline at end of file
...@@ -38,11 +38,6 @@ ...@@ -38,11 +38,6 @@
#include "los_process_pri.h" #include "los_process_pri.h"
#include "los_sched_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 * 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 ...@@ -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 */
...@@ -32,11 +32,6 @@ ...@@ -32,11 +32,6 @@
#include "pthread.h" #include "pthread.h"
#include "pprivate.h" #include "pprivate.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
int pthread_attr_init(pthread_attr_t *attr) 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 ...@@ -280,8 +275,3 @@ int pthread_attr_getaffinity_np(const pthread_attr_t* attr, size_t cpusetsize, c
return ENOERR; return ENOERR;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -36,11 +36,6 @@ ...@@ -36,11 +36,6 @@
#include "los_atomic.h" #include "los_atomic.h"
#include "los_event_pri.h" #include "los_event_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#define BROADCAST_EVENT 1 #define BROADCAST_EVENT 1
#define COND_COUNTER_STEP 0x0004U #define COND_COUNTER_STEP 0x0004U
...@@ -351,8 +346,3 @@ int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex) ...@@ -351,8 +346,3 @@ int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex)
return ret; return ret;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
\ No newline at end of file
...@@ -31,11 +31,6 @@ ...@@ -31,11 +31,6 @@
#include "pthread.h" #include "pthread.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
int pthread_mutexattr_init(pthread_mutexattr_t *attr) int pthread_mutexattr_init(pthread_mutexattr_t *attr)
{ {
...@@ -139,8 +134,3 @@ int pthread_mutex_unlock(pthread_mutex_t *mutex) ...@@ -139,8 +134,3 @@ int pthread_mutex_unlock(pthread_mutex_t *mutex)
return LOS_MuxUnlock(mutex); return LOS_MuxUnlock(mutex);
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -35,11 +35,6 @@ ...@@ -35,11 +35,6 @@
#include "unistd.h" #include "unistd.h"
#include "los_task_pri.h" #include "los_task_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
int sched_get_priority_min(int policy) int sched_get_priority_min(int policy)
{ {
...@@ -143,8 +138,3 @@ int __sched_cpucount(size_t set_size, const cpu_set_t* set) ...@@ -143,8 +138,3 @@ int __sched_cpucount(size_t set_size, const cpu_set_t* set)
return count; return count;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -34,11 +34,6 @@ ...@@ -34,11 +34,6 @@
#include "map_error.h" #include "map_error.h"
#include "time_posix.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. */ /* Initialize semaphore to value, shared is not supported in Huawei LiteOS. */
int sem_init(sem_t *sem, int shared, unsigned int value) int sem_init(sem_t *sem, int shared, unsigned int value)
...@@ -197,8 +192,3 @@ int sem_unlink(const char *name) ...@@ -197,8 +192,3 @@ int sem_unlink(const char *name)
return -1; return -1;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -50,11 +50,6 @@ ...@@ -50,11 +50,6 @@
#include "los_swtmr_pri.h" #include "los_swtmr_pri.h"
#include "los_sys_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 * Do a time package defined return. This requires the error code
...@@ -991,8 +986,3 @@ VOID OsGetVdsoTime(VdsoDataPage *vdsoDataPage) ...@@ -991,8 +986,3 @@ VOID OsGetVdsoTime(VdsoDataPage *vdsoDataPage)
} }
#endif #endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
文件模式从 100755 更改为 100644
...@@ -32,11 +32,6 @@ ...@@ -32,11 +32,6 @@
#include "fcntl.h" #include "fcntl.h"
#include "linux/kernel.h" #include "linux/kernel.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
static int MemOpen(struct file *filep) static int MemOpen(struct file *filep)
{ {
...@@ -105,8 +100,3 @@ int DevMemRegister(void) ...@@ -105,8 +100,3 @@ int DevMemRegister(void)
return register_driver("/dev/mem", &g_memDevOps, 0666, 0); /* 0666: file mode */ return register_driver("/dev/mem", &g_memDevOps, 0666, 0); /* 0666: file mode */
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -39,11 +39,6 @@ ...@@ -39,11 +39,6 @@
#define QUICKSTART_UNREGISTER _IO(QUICKSTART_IOC_MAGIC, 1) #define QUICKSTART_UNREGISTER _IO(QUICKSTART_IOC_MAGIC, 1)
#define QUICKSTART_NODE "/dev/quickstart" #define QUICKSTART_NODE "/dev/quickstart"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
static int QuickstartOpen(struct file *filep) static int QuickstartOpen(struct file *filep)
{ {
...@@ -110,8 +105,3 @@ int DevQuickStartRegister(void) ...@@ -110,8 +105,3 @@ int DevQuickStartRegister(void)
return register_driver(QUICKSTART_NODE, &g_quickstartDevOps, 0666, 0); /* 0666: file mode */ return register_driver(QUICKSTART_NODE, &g_quickstartDevOps, 0666, 0); /* 0666: file mode */
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -33,11 +33,6 @@ ...@@ -33,11 +33,6 @@
#include "fcntl.h" #include "fcntl.h"
#include "linux/kernel.h" #include "linux/kernel.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
static unsigned long g_randomMax = 0x7FFFFFFF; static unsigned long g_randomMax = 0x7FFFFFFF;
...@@ -121,8 +116,3 @@ int DevRandomRegister(void) ...@@ -121,8 +116,3 @@ int DevRandomRegister(void)
return register_driver("/dev/random", &g_ranDevOps, 0666, 0); /* 0666: file mode */ return register_driver("/dev/random", &g_ranDevOps, 0666, 0); /* 0666: file mode */
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -120,8 +120,3 @@ int DevUrandomRegister(void) ...@@ -120,8 +120,3 @@ int DevUrandomRegister(void)
return -EPERM; return -EPERM;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
...@@ -56,11 +56,6 @@ ...@@ -56,11 +56,6 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
struct VnodeOps fatfs_vops; /* forward define */ struct VnodeOps fatfs_vops; /* forward define */
struct file_operations_vfs fatfs_fops; struct file_operations_vfs fatfs_fops;
...@@ -2082,9 +2077,4 @@ 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); FSMAP_ENTRY(fat_fsmap, "vfat", fatfs_mops, FALSE, TRUE);
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
#endif /* LOSCFG_FS_FAT */ #endif /* LOSCFG_FS_FAT */
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
...@@ -42,11 +42,6 @@ ...@@ -42,11 +42,6 @@
#include "mmc/block.h" #include "mmc/block.h"
#endif #endif
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
los_disk g_sysDisk[SYS_MAX_DISK]; los_disk g_sysDisk[SYS_MAX_DISK];
los_part g_sysPart[SYS_MAX_PART]; los_part g_sysPart[SYS_MAX_PART];
...@@ -1699,8 +1694,3 @@ INT32 EraseDiskByID(UINT32 diskID, size_t startSector, UINT32 sectors) ...@@ -1699,8 +1694,3 @@ INT32 EraseDiskByID(UINT32 diskID, size_t startSector, UINT32 sectors)
return ret; return ret;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
...@@ -43,11 +43,6 @@ ...@@ -43,11 +43,6 @@
#include "cfiflash.h" #include "cfiflash.h"
#endif #endif
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#define DRIVER_NAME_ADD_SIZE 3 #define DRIVER_NAME_ADD_SIZE 3
pthread_mutex_t g_mtdPartitionLock = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t g_mtdPartitionLock = PTHREAD_MUTEX_INITIALIZER;
...@@ -557,8 +552,3 @@ INT32 delete_mtd_partition(UINT32 partitionNum, const CHAR *type) ...@@ -557,8 +552,3 @@ INT32 delete_mtd_partition(UINT32 partitionNum, const CHAR *type)
return ENOERR; return ENOERR;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
...@@ -45,11 +45,6 @@ ...@@ -45,11 +45,6 @@
#include "los_task_pri.h" #include "los_task_pri.h"
#include "capability_api.h" #include "capability_api.h"
#include "fs/vnode.h" #include "fs/vnode.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#define MAX_DIR_ENT 1024 #define MAX_DIR_ENT 1024
int fstat(int fd, struct stat *buf) int fstat(int fd, struct stat *buf)
...@@ -711,8 +706,3 @@ mode_t SysUmask(mode_t mask) ...@@ -711,8 +706,3 @@ mode_t SysUmask(mode_t mask)
return oldUmask; return oldUmask;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
...@@ -42,11 +42,6 @@ ...@@ -42,11 +42,6 @@
#include "shell.h" #include "shell.h"
#endif #endif
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifdef LOSCFG_SHELL #ifdef LOSCFG_SHELL
#define TEMP_PATH_MAX (PATH_MAX + SHOW_MAX_LEN) #define TEMP_PATH_MAX (PATH_MAX + SHOW_MAX_LEN)
...@@ -336,8 +331,3 @@ int vfs_normalize_pathat(int dirfd, const char *filename, char **pathname) ...@@ -336,8 +331,3 @@ int vfs_normalize_pathat(int dirfd, const char *filename, char **pathname)
return ret; return ret;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
...@@ -33,11 +33,6 @@ ...@@ -33,11 +33,6 @@
#include "los_printf.h" #include "los_printf.h"
#include "los_toolchain.h" #include "los_toolchain.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#define OS_BITMAP_MASK 0x1FU #define OS_BITMAP_MASK 0x1FU
#define OS_BITMAP_WORD_MASK ~0UL #define OS_BITMAP_WORD_MASK ~0UL
...@@ -141,8 +136,3 @@ INT32 LOS_BitmapFfz(UINTPTR *bitmap, UINT32 numBits) ...@@ -141,8 +136,3 @@ INT32 LOS_BitmapFfz(UINTPTR *bitmap, UINT32 numBits)
return -1; return -1;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -54,11 +54,6 @@ ...@@ -54,11 +54,6 @@
#include "los_vm_phys.h" #include "los_vm_phys.h"
#include "los_vm_syscall.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_BSS LosProcessCB *g_processCBArray = NULL;
LITE_OS_SEC_DATA_INIT STATIC LOS_DL_LIST g_freeProcess; LITE_OS_SEC_DATA_INIT STATIC LOS_DL_LIST g_freeProcess;
...@@ -1856,8 +1851,3 @@ LITE_OS_SEC_TEXT UINTPTR OsGetSigHandler(VOID) ...@@ -1856,8 +1851,3 @@ LITE_OS_SEC_TEXT UINTPTR OsGetSigHandler(VOID)
return OsCurrProcessGet()->sigHandler; return OsCurrProcessGet()->sigHandler;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif
...@@ -36,11 +36,6 @@ ...@@ -36,11 +36,6 @@
#include "los_sched_pri.h" #include "los_sched_pri.h"
#include "los_mp.h" #include "los_mp.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
UINT32 OsSortLinkInit(SortLinkAttribute *sortLinkHeader) UINT32 OsSortLinkInit(SortLinkAttribute *sortLinkHeader)
{ {
...@@ -252,8 +247,3 @@ UINT32 OsSortLinkGetNextExpireTime(const SortLinkAttribute *sortLinkHeader) ...@@ -252,8 +247,3 @@ UINT32 OsSortLinkGetNextExpireTime(const SortLinkAttribute *sortLinkHeader)
return OsSortLinkGetTargetExpireTime(listSorted); return OsSortLinkGetTargetExpireTime(listSorted);
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */
...@@ -36,11 +36,6 @@ ...@@ -36,11 +36,6 @@
#include "los_process_pri.h" #include "los_process_pri.h"
#include "los_sched_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 == YES)
#if (LOSCFG_BASE_CORE_SWTMR_LIMIT <= 0) #if (LOSCFG_BASE_CORE_SWTMR_LIMIT <= 0)
...@@ -529,8 +524,3 @@ LITE_OS_SEC_TEXT UINT32 LOS_SwtmrDelete(UINT16 swtmrID) ...@@ -529,8 +524,3 @@ LITE_OS_SEC_TEXT UINT32 LOS_SwtmrDelete(UINT16 swtmrID)
#endif /* (LOSCFG_BASE_CORE_SWTMR == YES) */ #endif /* (LOSCFG_BASE_CORE_SWTMR == YES) */
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif
...@@ -32,11 +32,6 @@ ...@@ -32,11 +32,6 @@
#include "los_sys_pri.h" #include "los_sys_pri.h"
#include "los_sched_pri.h" #include "los_sched_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#define OS_MAX_VALUE 0xFFFFFFFFUL #define OS_MAX_VALUE 0xFFFFFFFFUL
...@@ -75,8 +70,3 @@ LITE_OS_SEC_TEXT_MINOR UINT32 OsUS2Tick(UINT64 microsec) ...@@ -75,8 +70,3 @@ LITE_OS_SEC_TEXT_MINOR UINT32 OsUS2Tick(UINT64 microsec)
return (UINT32)ticks; return (UINT32)ticks;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -62,11 +62,6 @@ ...@@ -62,11 +62,6 @@
#endif #endif
#include "los_vm_map.h" #include "los_vm_map.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#if (LOSCFG_BASE_CORE_TSK_LIMIT <= 0) #if (LOSCFG_BASE_CORE_TSK_LIMIT <= 0)
#error "task maxnum cannot be zero" #error "task maxnum cannot be zero"
...@@ -1695,8 +1690,3 @@ LITE_OS_SEC_TEXT UINT32 OsCreateResourceFreeTask(VOID) ...@@ -1695,8 +1690,3 @@ LITE_OS_SEC_TEXT UINT32 OsCreateResourceFreeTask(VOID)
return ret; return ret;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -36,11 +36,6 @@ ...@@ -36,11 +36,6 @@
#include "los_vdso.h" #include "los_vdso.h"
#endif #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_sysClock;
LITE_OS_SEC_DATA_INIT UINT32 g_tickPerSecond; LITE_OS_SEC_DATA_INIT UINT32 g_tickPerSecond;
...@@ -69,8 +64,3 @@ LITE_OS_SEC_TEXT VOID OsTickHandler(VOID) ...@@ -69,8 +64,3 @@ LITE_OS_SEC_TEXT VOID OsTickHandler(VOID)
OsSchedTick(); OsSchedTick();
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
...@@ -39,11 +39,6 @@ ...@@ -39,11 +39,6 @@
#include "los_exc.h" #include "los_exc.h"
#endif #endif
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
LITE_OS_SEC_TEXT_INIT UINT32 LOS_EventInit(PEVENT_CB_S eventCB) LITE_OS_SEC_TEXT_INIT UINT32 LOS_EventInit(PEVENT_CB_S eventCB)
{ {
UINT32 intSave; UINT32 intSave;
...@@ -341,8 +336,3 @@ OUT: ...@@ -341,8 +336,3 @@ OUT:
} }
#endif #endif
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */
...@@ -39,11 +39,6 @@ ...@@ -39,11 +39,6 @@
#include "los_mux_pri.h" #include "los_mux_pri.h"
#include "user_copy.h" #include "user_copy.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
#ifdef LOSCFG_KERNEL_VM #ifdef LOSCFG_KERNEL_VM
...@@ -1007,8 +1002,3 @@ EXIT: ...@@ -1007,8 +1002,3 @@ EXIT:
} }
#endif #endif
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */
...@@ -31,11 +31,6 @@ ...@@ -31,11 +31,6 @@
#include "los_ipcdebug_pri.h" #include "los_ipcdebug_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
#if defined(LOSCFG_DEBUG_SEMAPHORE) || defined(LOSCFG_DEBUG_QUEUE) #if defined(LOSCFG_DEBUG_SEMAPHORE) || defined(LOSCFG_DEBUG_QUEUE)
...@@ -83,8 +78,3 @@ VOID OsArraySortByTime(UINT32 *sortArray, UINT32 start, UINT32 end, const IpcSor ...@@ -83,8 +78,3 @@ VOID OsArraySortByTime(UINT32 *sortArray, UINT32 start, UINT32 end, const IpcSor
#endif #endif
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */
...@@ -37,11 +37,6 @@ ...@@ -37,11 +37,6 @@
#include "los_exc.h" #include "los_exc.h"
#include "los_sched_pri.h" #include "los_sched_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
#if (LOSCFG_BASE_IPC_MUX == YES) #if (LOSCFG_BASE_IPC_MUX == YES)
#define MUTEXATTR_TYPE_MASK 0x0FU #define MUTEXATTR_TYPE_MASK 0x0FU
...@@ -567,8 +562,3 @@ LITE_OS_SEC_TEXT UINT32 LOS_MuxUnlock(LosMux *mutex) ...@@ -567,8 +562,3 @@ LITE_OS_SEC_TEXT UINT32 LOS_MuxUnlock(LosMux *mutex)
#endif /* (LOSCFG_BASE_IPC_MUX == YES) */ #endif /* (LOSCFG_BASE_IPC_MUX == YES) */
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */
...@@ -37,11 +37,6 @@ ...@@ -37,11 +37,6 @@
#include "los_mp.h" #include "los_mp.h"
#include "los_percpu_pri.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 == YES)
#if (LOSCFG_BASE_IPC_QUEUE_LIMIT <= 0) #if (LOSCFG_BASE_IPC_QUEUE_LIMIT <= 0)
...@@ -500,8 +495,3 @@ QUEUE_END: ...@@ -500,8 +495,3 @@ QUEUE_END:
#endif /* (LOSCFG_BASE_IPC_QUEUE == YES) */ #endif /* (LOSCFG_BASE_IPC_QUEUE == YES) */
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */
...@@ -36,11 +36,6 @@ ...@@ -36,11 +36,6 @@
#include "shcmd.h" #include "shcmd.h"
#endif /* LOSCFG_SHELL */ #endif /* LOSCFG_SHELL */
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
#ifdef LOSCFG_DEBUG_QUEUE #ifdef LOSCFG_DEBUG_QUEUE
...@@ -201,8 +196,3 @@ SHELLCMD_ENTRY(queue_shellcmd, CMD_TYPE_EX, "queue", 0, (CmdCallBackFunc)OsShell ...@@ -201,8 +196,3 @@ SHELLCMD_ENTRY(queue_shellcmd, CMD_TYPE_EX, "queue", 0, (CmdCallBackFunc)OsShell
#endif /* LOSCFG_SHELL */ #endif /* LOSCFG_SHELL */
#endif /* LOSCFG_DEBUG_QUEUE */ #endif /* LOSCFG_DEBUG_QUEUE */
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */
...@@ -37,11 +37,6 @@ ...@@ -37,11 +37,6 @@
#include "los_exc.h" #include "los_exc.h"
#include "los_sched_pri.h" #include "los_sched_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
#ifdef LOSCFG_BASE_IPC_RWLOCK #ifdef LOSCFG_BASE_IPC_RWLOCK
#define RWLOCK_COUNT_MASK 0x00FFFFFFU #define RWLOCK_COUNT_MASK 0x00FFFFFFU
...@@ -467,8 +462,3 @@ UINT32 LOS_RwlockUnLock(LosRwlock *rwlock) ...@@ -467,8 +462,3 @@ UINT32 LOS_RwlockUnLock(LosRwlock *rwlock)
#endif /* LOSCFG_BASE_IPC_RWLOCK */ #endif /* LOSCFG_BASE_IPC_RWLOCK */
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */
...@@ -39,11 +39,6 @@ ...@@ -39,11 +39,6 @@
#include "los_mp.h" #include "los_mp.h"
#include "los_percpu_pri.h" #include "los_percpu_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
#if (LOSCFG_BASE_IPC_SEM == YES) #if (LOSCFG_BASE_IPC_SEM == YES)
...@@ -290,8 +285,3 @@ LITE_OS_SEC_TEXT UINT32 LOS_SemPost(UINT32 semHandle) ...@@ -290,8 +285,3 @@ LITE_OS_SEC_TEXT UINT32 LOS_SemPost(UINT32 semHandle)
} }
#endif /* (LOSCFG_BASE_IPC_SEM == YES) */ #endif /* (LOSCFG_BASE_IPC_SEM == YES) */
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */
...@@ -38,11 +38,6 @@ ...@@ -38,11 +38,6 @@
#include "shcmd.h" #include "shcmd.h"
#endif /* LOSCFG_SHELL */ #endif /* LOSCFG_SHELL */
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
#define OS_ALL_SEM_MASK 0xffffffff #define OS_ALL_SEM_MASK 0xffffffff
...@@ -304,8 +299,3 @@ LITE_OS_SEC_TEXT_MINOR UINT32 OsShellCmdSemInfoGet(UINT32 argc, const CHAR **arg ...@@ -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); SHELLCMD_ENTRY(sem_shellcmd, CMD_TYPE_EX, "sem", 1, (CmdCallBackFunc)OsShellCmdSemInfoGet);
#endif #endif
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */
...@@ -39,11 +39,6 @@ ...@@ -39,11 +39,6 @@
#include "capability_api.h" #include "capability_api.h"
#endif #endif
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
int raise(int sig) int raise(int sig)
{ {
...@@ -685,8 +680,3 @@ void OsRestorSignalContext(unsigned int *sp) ...@@ -685,8 +680,3 @@ void OsRestorSignalContext(unsigned int *sp)
SCHEDULER_UNLOCK(intSave); SCHEDULER_UNLOCK(intSave);
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -32,11 +32,6 @@ ...@@ -32,11 +32,6 @@
#include "los_memstat_pri.h" #include "los_memstat_pri.h"
#include "los_task_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]; 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) ...@@ -119,8 +114,3 @@ LITE_OS_SEC_TEXT_MINOR UINT32 OsTaskSlabUsage(UINT32 taskID)
} }
#endif #endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
\ No newline at end of file
...@@ -33,11 +33,6 @@ ...@@ -33,11 +33,6 @@
#include "los_hwi.h" #include "los_hwi.h"
#include "los_spinlock.h" #include "los_spinlock.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifdef LOSCFG_AARCH64 #ifdef LOSCFG_AARCH64
#define OS_MEMBOX_MAGIC 0xa55a5aa5a55a5aa5 #define OS_MEMBOX_MAGIC 0xa55a5aa5a55a5aa5
...@@ -230,8 +225,3 @@ LITE_OS_SEC_TEXT_MINOR UINT32 LOS_MemboxStatisticsGet(const VOID *boxMem, UINT32 ...@@ -230,8 +225,3 @@ LITE_OS_SEC_TEXT_MINOR UINT32 LOS_MemboxStatisticsGet(const VOID *boxMem, UINT32
return LOS_OK; return LOS_OK;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -42,11 +42,6 @@ ...@@ -42,11 +42,6 @@
#include "los_trace.h" #include "los_trace.h"
#endif #endif
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
/* Used to cut non-essential functions. */ /* Used to cut non-essential functions. */
#define OS_MEM_FREE_BY_TASKID 0 #define OS_MEM_FREE_BY_TASKID 0
...@@ -1993,9 +1988,4 @@ BOOL OsMemIsHeapNode(const VOID *ptr) ...@@ -1993,9 +1988,4 @@ BOOL OsMemIsHeapNode(const VOID *ptr)
return FALSE; return FALSE;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
文件模式从 100755 更改为 100644
...@@ -31,11 +31,6 @@ ...@@ -31,11 +31,6 @@
#include "los_task_pri.h" #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) 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) ...@@ -62,8 +57,3 @@ LITE_OS_SEC_TEXT_MINOR VOID LOS_Msleep(UINT32 msecs)
(VOID)LOS_TaskDelay(interval); (VOID)LOS_TaskDelay(interval);
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */
\ No newline at end of file
文件模式从 100755 更改为 100644
...@@ -43,11 +43,6 @@ ...@@ -43,11 +43,6 @@
#include "los_vm_map.h" #include "los_vm_map.h"
#include "los_vm_dump.h" #include "los_vm_dump.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#define MEM_SIZE_1K 0x400 #define MEM_SIZE_1K 0x400
#define MEM_SIZE_1M 0x100000 #define MEM_SIZE_1M 0x100000
...@@ -279,8 +274,3 @@ SHELLCMD_ENTRY(free_shellcmd, CMD_TYPE_EX, "free", XARGS, (CmdCallBackFunc)OsShe ...@@ -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); SHELLCMD_ENTRY(uname_shellcmd, CMD_TYPE_EX, "uname", XARGS, (CmdCallBackFunc)OsShellCmdUname);
#endif #endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -37,11 +37,6 @@ ...@@ -37,11 +37,6 @@
#include "los_swtmr_pri.h" #include "los_swtmr_pri.h"
#include "watchdog_if.h" #include "watchdog_if.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
#ifdef LOSCFG_SHELL_CMD_DEBUG #ifdef LOSCFG_SHELL_CMD_DEBUG
STATIC BOOL systemExcReset = FALSE; STATIC BOOL systemExcReset = FALSE;
...@@ -126,8 +121,3 @@ SHELLCMD_ENTRY(panic_reset_shellcmd, CMD_TYPE_EX, "panicreset", 1, (CmdCallBackF ...@@ -126,8 +121,3 @@ SHELLCMD_ENTRY(panic_reset_shellcmd, CMD_TYPE_EX, "panicreset", 1, (CmdCallBackF
#endif #endif
#endif #endif
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */
...@@ -36,11 +36,6 @@ ...@@ -36,11 +36,6 @@
#include "shcmd.h" #include "shcmd.h"
#include "shell.h" #include "shell.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
#define SWTMR_STRLEN 12 #define SWTMR_STRLEN 12
...@@ -139,9 +134,4 @@ LITE_OS_SEC_TEXT_MINOR UINT32 OsShellCmdSwtmrInfoGet(INT32 argc, const UINT8 **a ...@@ -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); SHELLCMD_ENTRY(swtmr_shellcmd, CMD_TYPE_EX, "swtmr", 1, (CmdCallBackFunc)OsShellCmdSwtmrInfoGet);
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */
#endif /* LOSCFG_SHELL */ #endif /* LOSCFG_SHELL */
...@@ -40,11 +40,6 @@ ...@@ -40,11 +40,6 @@
#include "shell.h" #include "shell.h"
#endif #endif
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
#define SYSINFO_ENABLED(x) (((x) == YES) ? "YES" : "NO") #define SYSINFO_ENABLED(x) (((x) == YES) ? "YES" : "NO")
UINT32 OsShellCmdTaskCntGet(VOID) UINT32 OsShellCmdTaskCntGet(VOID)
...@@ -163,8 +158,3 @@ INT32 OsShellCmdSystemInfo(INT32 argc, const CHAR **argv) ...@@ -163,8 +158,3 @@ INT32 OsShellCmdSystemInfo(INT32 argc, const CHAR **argv)
SHELLCMD_ENTRY(systeminfo_shellcmd, CMD_TYPE_EX, "systeminfo", 1, (CmdCallBackFunc)OsShellCmdSystemInfo); SHELLCMD_ENTRY(systeminfo_shellcmd, CMD_TYPE_EX, "systeminfo", 1, (CmdCallBackFunc)OsShellCmdSystemInfo);
#endif /* LOSCFG_SHELL */ #endif /* LOSCFG_SHELL */
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */
...@@ -53,11 +53,6 @@ ...@@ -53,11 +53,6 @@
#endif #endif
#include "los_sched_pri.h" #include "los_sched_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
#define OS_PROCESS_MEM_INFO 0x2U #define OS_PROCESS_MEM_INFO 0x2U
#define OS_PROCESS_INFO_LEN (g_processMaxNum * (sizeof(LosProcessCB))) #define OS_PROCESS_INFO_LEN (g_processMaxNum * (sizeof(LosProcessCB)))
...@@ -609,8 +604,3 @@ TASK_HELP: ...@@ -609,8 +604,3 @@ TASK_HELP:
SHELLCMD_ENTRY(task_shellcmd, CMD_TYPE_EX, "task", 1, (CmdCallBackFunc)OsShellCmdDumpTask); SHELLCMD_ENTRY(task_shellcmd, CMD_TYPE_EX, "task", 1, (CmdCallBackFunc)OsShellCmdDumpTask);
#endif #endif
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */
...@@ -44,11 +44,6 @@ ...@@ -44,11 +44,6 @@
#include "los_process_pri.h" #include "los_process_pri.h"
#include "fs/path_cache.h" #include "fs/path_cache.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifdef LOSCFG_KERNEL_VM #ifdef LOSCFG_KERNEL_VM
...@@ -264,8 +259,3 @@ SHELLCMD_ENTRY(pmm_shellcmd, CMD_TYPE_SHOW, "pmm", 0, (CmdCallBackFunc)OsShellCm ...@@ -264,8 +259,3 @@ SHELLCMD_ENTRY(pmm_shellcmd, CMD_TYPE_SHOW, "pmm", 0, (CmdCallBackFunc)OsShellCm
#endif #endif
#endif #endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -36,11 +36,6 @@ ...@@ -36,11 +36,6 @@
#include "los_atomic.h" #include "los_atomic.h"
#include "los_exc.h" #include "los_exc.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#if (LOSCFG_KERNEL_SMP_LOCKDEP == YES) #if (LOSCFG_KERNEL_SMP_LOCKDEP == YES)
...@@ -344,8 +339,3 @@ VOID OsLockdepClearSpinlocks(VOID) ...@@ -344,8 +339,3 @@ VOID OsLockdepClearSpinlocks(VOID)
#endif #endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -35,11 +35,6 @@ ...@@ -35,11 +35,6 @@
#include "los_sched_pri.h" #include "los_sched_pri.h"
#include "los_swtmr.h" #include "los_swtmr.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
#if (LOSCFG_KERNEL_SMP == YES) #if (LOSCFG_KERNEL_SMP == YES)
...@@ -112,8 +107,3 @@ UINT32 OsMpInit(VOID) ...@@ -112,8 +107,3 @@ UINT32 OsMpInit(VOID)
#endif #endif
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */
...@@ -31,16 +31,6 @@ ...@@ -31,16 +31,6 @@
#include "los_percpu_pri.h" #include "los_percpu_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
Percpu g_percpu[LOSCFG_KERNEL_CORE_NUM]; Percpu g_percpu[LOSCFG_KERNEL_CORE_NUM];
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -33,11 +33,6 @@ ...@@ -33,11 +33,6 @@
#if (LOSCFG_KERNEL_SMP == YES) #if (LOSCFG_KERNEL_SMP == YES)
#include "los_sched_pri.h" #include "los_sched_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
VOID LOS_SpinInit(SPIN_LOCK_S *lock) VOID LOS_SpinInit(SPIN_LOCK_S *lock)
{ {
...@@ -108,8 +103,3 @@ VOID LOS_SpinUnlockRestore(SPIN_LOCK_S *lock, UINT32 intSave) ...@@ -108,8 +103,3 @@ VOID LOS_SpinUnlockRestore(SPIN_LOCK_S *lock, UINT32 intSave)
} }
#endif #endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -31,11 +31,6 @@ ...@@ -31,11 +31,6 @@
#include "los_task_pri.h" #include "los_task_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#if (LOSCFG_KERNEL_SCHED_STATISTICS == YES) #if (LOSCFG_KERNEL_SCHED_STATISTICS == YES)
#define HIGHTASKPRI 16 #define HIGHTASKPRI 16
...@@ -326,8 +321,3 @@ LITE_OS_SEC_TEXT_MINOR VOID OsShellMpStaticStop(VOID) ...@@ -326,8 +321,3 @@ LITE_OS_SEC_TEXT_MINOR VOID OsShellMpStaticStop(VOID)
#endif #endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -31,11 +31,6 @@ ...@@ -31,11 +31,6 @@
#include "los_err.h" #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; 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) ...@@ -54,8 +49,3 @@ LITE_OS_SEC_TEXT_INIT VOID LOS_SetErrHandleHook(LOS_ERRORHANDLE_FUNC fun)
g_errHandleHook = fun; g_errHandleHook = fun;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -47,11 +47,6 @@ ...@@ -47,11 +47,6 @@
#include "los_stat_pri.h" #include "los_stat_pri.h"
#endif #endif
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#define OS_32BIT_MAX 0xFFFFFFFFUL #define OS_32BIT_MAX 0xFFFFFFFFUL
...@@ -1137,8 +1132,3 @@ LOS_DL_LIST *OsSchedLockPendFindPos(const LosTaskCB *runTask, LOS_DL_LIST *lockL ...@@ -1137,8 +1132,3 @@ LOS_DL_LIST *OsSchedLockPendFindPos(const LosTaskCB *runTask, LOS_DL_LIST *lockL
return node; return node;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -38,11 +38,6 @@ ...@@ -38,11 +38,6 @@
#include "los_vm_page.h" #include "los_vm_page.h"
#include "los_arch_mmu.h" #include "los_arch_mmu.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
UINTPTR g_vmBootMemBase = (UINTPTR)&__bss_end; UINTPTR g_vmBootMemBase = (UINTPTR)&__bss_end;
BOOL g_kHeapInited = FALSE; BOOL g_kHeapInited = FALSE;
...@@ -103,8 +98,3 @@ UINT32 OsSysMemInit(VOID) ...@@ -103,8 +98,3 @@ UINT32 OsSysMemInit(VOID)
} }
#endif #endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -45,11 +45,6 @@ ...@@ -45,11 +45,6 @@
#include "los_vm_lock.h" #include "los_vm_lock.h"
#include "los_memory_pri.h" #include "los_memory_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifdef LOSCFG_KERNEL_VM #ifdef LOSCFG_KERNEL_VM
...@@ -553,8 +548,3 @@ VOID OsVmPhysUsedInfoGet(UINT32 *usedCount, UINT32 *totalCount) ...@@ -553,8 +548,3 @@ VOID OsVmPhysUsedInfoGet(UINT32 *usedCount, UINT32 *totalCount)
} }
#endif #endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -45,11 +45,6 @@ ...@@ -45,11 +45,6 @@
#include "los_process_pri.h" #include "los_process_pri.h"
#include "arm.h" #include "arm.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifdef LOSCFG_KERNEL_VM #ifdef LOSCFG_KERNEL_VM
...@@ -457,8 +452,3 @@ DONE: ...@@ -457,8 +452,3 @@ DONE:
} }
#endif #endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -42,11 +42,6 @@ ...@@ -42,11 +42,6 @@
#include "los_process_pri.h" #include "los_process_pri.h"
#include "los_vm_lock.h" #include "los_vm_lock.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifdef LOSCFG_KERNEL_VM #ifdef LOSCFG_KERNEL_VM
...@@ -764,8 +759,3 @@ INT32 OsVfsFileMmap(struct file *filep, LosVmMapRegion *region) ...@@ -764,8 +759,3 @@ INT32 OsVfsFileMmap(struct file *filep, LosVmMapRegion *region)
} }
#endif #endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -37,11 +37,6 @@ ...@@ -37,11 +37,6 @@
#include "los_vm_lock.h" #include "los_vm_lock.h"
#include "los_memory.h" #include "los_memory.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
VOID *LOS_DmaMemAlloc(DMA_ADDR_T *dmaAddr, size_t size, size_t align, enum DmaMemType type) VOID *LOS_DmaMemAlloc(DMA_ADDR_T *dmaAddr, size_t size, size_t align, enum DmaMemType type)
{ {
...@@ -110,8 +105,3 @@ DMA_ADDR_T LOS_DmaVaddrToPaddr(VOID *vaddr) ...@@ -110,8 +105,3 @@ DMA_ADDR_T LOS_DmaVaddrToPaddr(VOID *vaddr)
return (DMA_ADDR_T)LOS_PaddrQuery(vaddr); return (DMA_ADDR_T)LOS_PaddrQuery(vaddr);
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -45,11 +45,6 @@ ...@@ -45,11 +45,6 @@
#include "los_memory_pri.h" #include "los_memory_pri.h"
#include "los_vm_boot.h" #include "los_vm_boot.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifdef LOSCFG_KERNEL_VM #ifdef LOSCFG_KERNEL_VM
...@@ -1286,9 +1281,4 @@ VOID LOS_KernelFree(VOID *ptr) ...@@ -1286,9 +1281,4 @@ VOID LOS_KernelFree(VOID *ptr)
} }
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -35,11 +35,6 @@ ...@@ -35,11 +35,6 @@
#include "los_vm_boot.h" #include "los_vm_boot.h"
#include "los_vm_filemap.h" #include "los_vm_filemap.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifdef LOSCFG_KERNEL_VM #ifdef LOSCFG_KERNEL_VM
...@@ -132,8 +127,3 @@ LosVmPage *LOS_VmPageGet(PADDR_T paddr) ...@@ -132,8 +127,3 @@ LosVmPage *LOS_VmPageGet(PADDR_T paddr)
} }
#endif #endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -36,11 +36,6 @@ ...@@ -36,11 +36,6 @@
#include "los_vm_dump.h" #include "los_vm_dump.h"
#include "los_process_pri.h" #include "los_process_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifdef LOSCFG_KERNEL_VM #ifdef LOSCFG_KERNEL_VM
...@@ -639,8 +634,3 @@ VADDR_T *LOS_PaddrToKVaddr(PADDR_T paddr) ...@@ -639,8 +634,3 @@ VADDR_T *LOS_PaddrToKVaddr(PADDR_T paddr)
} }
#endif #endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -44,11 +44,6 @@ ...@@ -44,11 +44,6 @@
#include "los_vm_filemap.h" #include "los_vm_filemap.h"
#include "los_process_pri.h" #include "los_process_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifdef LOSCFG_KERNEL_VM #ifdef LOSCFG_KERNEL_VM
...@@ -498,8 +493,3 @@ VOID LOS_DumpMemRegion(VADDR_T vaddr) ...@@ -498,8 +493,3 @@ VOID LOS_DumpMemRegion(VADDR_T vaddr)
} }
#endif #endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -44,11 +44,6 @@ ...@@ -44,11 +44,6 @@
#include "console.h" #include "console.h"
#endif #endif
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifdef LOSCFG_KERNEL_VM #ifdef LOSCFG_KERNEL_VM
...@@ -252,8 +247,3 @@ LITE_OS_SEC_TEXT_MINOR UINT32 OomTaskInit(VOID) ...@@ -252,8 +247,3 @@ LITE_OS_SEC_TEXT_MINOR UINT32 OomTaskInit(VOID)
} }
#endif #endif
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif
...@@ -50,11 +50,6 @@ ...@@ -50,11 +50,6 @@
#include "shell.h" #include "shell.h"
#endif #endif
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifdef LOSCFG_KERNEL_SHM #ifdef LOSCFG_KERNEL_SHM
...@@ -858,8 +853,3 @@ SHELLCMD_ENTRY(shm_shellcmd, CMD_TYPE_SHOW, "shm", 2, (CmdCallBackFunc)OsShellCm ...@@ -858,8 +853,3 @@ SHELLCMD_ENTRY(shm_shellcmd, CMD_TYPE_SHOW, "shm", 2, (CmdCallBackFunc)OsShellCm
#endif #endif
#endif #endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
...@@ -51,11 +51,6 @@ ...@@ -51,11 +51,6 @@
#include "fs/vfs_util.h" #include "fs/vfs_util.h"
#include "user_copy.h" #include "user_copy.h"
#include "fs/vnode.h" #include "fs/vnode.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#define EACH_CHAR 1 #define EACH_CHAR 1
#define UART_IOC_MAGIC 'u' #define UART_IOC_MAGIC 'u'
...@@ -1620,8 +1615,3 @@ VOID OsWakeConsoleSendTask(VOID) ...@@ -1620,8 +1615,3 @@ VOID OsWakeConsoleSendTask(VOID)
} }
#endif #endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
文件模式从 100755 更改为 100644
...@@ -37,11 +37,6 @@ ...@@ -37,11 +37,6 @@
#include "los_hwi_pri.h" #include "los_hwi_pri.h"
#include "shcmd.h" #include "shcmd.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifdef LOSCFG_CPUP_INCLUDE_IRQ #ifdef LOSCFG_CPUP_INCLUDE_IRQ
STATIC CPUP_INFO_S hwiCpupAll[OS_HWI_MAX_NUM]; 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) ...@@ -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); SHELLCMD_ENTRY(hwi_shellcmd, CMD_TYPE_EX, "hwi", 0, (CmdCallBackFunc)OsShellCmdHwi);
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
#endif /* LOSCFG_SHELL */ #endif /* LOSCFG_SHELL */
...@@ -31,11 +31,6 @@ ...@@ -31,11 +31,6 @@
#include "los_cir_buf_pri.h" #include "los_cir_buf_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
UINT32 LOS_CirBufUsedSize(CirBuf *cirbufCB) UINT32 LOS_CirBufUsedSize(CirBuf *cirbufCB)
{ {
...@@ -218,8 +213,3 @@ VOID LOS_CirBufDeinit(CirBuf *cirbufCB) ...@@ -218,8 +213,3 @@ VOID LOS_CirBufDeinit(CirBuf *cirbufCB)
(VOID)memset_s(cirbufCB, sizeof(CirBuf), 0, sizeof(CirBuf)); (VOID)memset_s(cirbufCB, sizeof(CirBuf), 0, sizeof(CirBuf));
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
\ No newline at end of file
...@@ -121,11 +121,6 @@ ...@@ -121,11 +121,6 @@
#include "los_quick_start_pri.h" #include "los_quick_start_pri.h"
#endif #endif
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
STATIC SystemRebootFunc g_rebootHook = NULL; STATIC SystemRebootFunc g_rebootHook = NULL;
...@@ -418,8 +413,3 @@ UINT32 OsSystemInit(VOID) ...@@ -418,8 +413,3 @@ UINT32 OsSystemInit(VOID)
return 0; return 0;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
文件模式从 100755 更改为 100644
...@@ -124,10 +124,5 @@ VOID OsExcInteractionTaskKeep(VOID) ...@@ -124,10 +124,5 @@ VOID OsExcInteractionTaskKeep(VOID)
(VOID)LOS_TaskDelete(OsCurrTaskGet()->taskID); (VOID)LOS_TaskDelete(OsCurrTaskGet()->taskID);
/* unreachable */ /* unreachable */
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
#endif #endif
...@@ -35,11 +35,6 @@ ...@@ -35,11 +35,6 @@
#include "fs/fs.h" #include "fs/fs.h"
#endif #endif
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifdef LOSCFG_SHELL_EXCINFO #ifdef LOSCFG_SHELL_EXCINFO
STATIC log_read_write_fn g_excInfoRW = NULL; /* the hook of read-writing exception information */ STATIC log_read_write_fn g_excInfoRW = NULL; /* the hook of read-writing exception information */
...@@ -171,8 +166,3 @@ VOID OsRecordExcInfoTime(VOID) ...@@ -171,8 +166,3 @@ VOID OsRecordExcInfoTime(VOID)
#endif #endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
文件模式从 100755 更改为 100644
...@@ -32,11 +32,6 @@ ...@@ -32,11 +32,6 @@
#include "los_magickey.h" #include "los_magickey.h"
#include "los_task_pri.h" #include "los_task_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifdef LOSCFG_ENABLE_MAGICKEY #ifdef LOSCFG_ENABLE_MAGICKEY
...@@ -148,8 +143,3 @@ INT32 CheckMagicKey(CHAR key) ...@@ -148,8 +143,3 @@ INT32 CheckMagicKey(CHAR key)
#endif #endif
return 0; return 0;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -47,11 +47,6 @@ ...@@ -47,11 +47,6 @@
#endif #endif
#include "los_exc_pri.h" #include "los_exc_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#define SIZEBUF 256 #define SIZEBUF 256
...@@ -280,8 +275,3 @@ VOID LOS_LkPrint(INT32 level, const CHAR *func, INT32 line, const CHAR *fmt, ... ...@@ -280,8 +275,3 @@ VOID LOS_LkPrint(INT32 level, const CHAR *func, INT32 line, const CHAR *fmt, ...
} }
#endif #endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -70,11 +70,6 @@ ...@@ -70,11 +70,6 @@
STATIC los_disk *g_emmcDisk = NULL; STATIC los_disk *g_emmcDisk = NULL;
#endif #endif
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifndef LOSCFG_SECURITY_BOOT #ifndef LOSCFG_SECURITY_BOOT
STATIC INT32 g_alignSize = 0; STATIC INT32 g_alignSize = 0;
......
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
...@@ -40,11 +40,6 @@ ...@@ -40,11 +40,6 @@
#include "fs/path_cache.h" #include "fs/path_cache.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
STATIC volatile UINT32 g_serialType = 0; STATIC volatile UINT32 g_serialType = 0;
STATIC struct file g_serialFilep; STATIC struct file g_serialFilep;
...@@ -261,8 +256,3 @@ INT32 virtual_serial_deinit(VOID) ...@@ -261,8 +256,3 @@ INT32 virtual_serial_deinit(VOID)
return unregister_driver(SERIAL); return unregister_driver(SERIAL);
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif
...@@ -32,11 +32,6 @@ ...@@ -32,11 +32,6 @@
#include "los_cppsupport.h" #include "los_cppsupport.h"
#include "los_printf.h" #include "los_printf.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
typedef VOID (*InitFunc)(VOID); typedef VOID (*InitFunc)(VOID);
...@@ -53,8 +48,3 @@ LITE_OS_SEC_TEXT_MINOR INT32 LOS_CppSystemInit(UINTPTR initArrayStart, UINTPTR i ...@@ -53,8 +48,3 @@ LITE_OS_SEC_TEXT_MINOR INT32 LOS_CppSystemInit(UINTPTR initArrayStart, UINTPTR i
return 0; return 0;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -37,11 +37,6 @@ ...@@ -37,11 +37,6 @@
#include "shcmd.h" #include "shcmd.h"
#include "shell.h" #include "shell.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
VOID OsCmdCpupOperateOneParam(UINT32 mode) VOID OsCmdCpupOperateOneParam(UINT32 mode)
{ {
...@@ -141,9 +136,4 @@ LITE_OS_SEC_TEXT_MINOR UINT32 OsShellCmdCpup(INT32 argc, const CHAR **argv) ...@@ -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); SHELLCMD_ENTRY(cpup_shellcmd, CMD_TYPE_EX, "cpup", XARGS, (CmdCallBackFunc)OsShellCmdCpup);
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
#endif /* LOSCFG_SHELL */ #endif /* LOSCFG_SHELL */
...@@ -34,11 +34,6 @@ ...@@ -34,11 +34,6 @@
#include "los_base.h" #include "los_base.h"
#include "los_swtmr.h" #include "los_swtmr.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifdef LOSCFG_KERNEL_CPUP #ifdef LOSCFG_KERNEL_CPUP
...@@ -576,8 +571,3 @@ LITE_OS_SEC_TEXT_MINOR UINT32 LOS_GetAllIrqCpuUsage(UINT16 mode, CPUP_INFO_S *cp ...@@ -576,8 +571,3 @@ LITE_OS_SEC_TEXT_MINOR UINT32 LOS_GetAllIrqCpuUsage(UINT16 mode, CPUP_INFO_S *cp
#endif #endif
#endif /* LOSCFG_KERNEL_CPUP */ #endif /* LOSCFG_KERNEL_CPUP */
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
...@@ -42,11 +42,6 @@ ...@@ -42,11 +42,6 @@
#include "stdlib.h" #include "stdlib.h"
#endif #endif
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifndef LOSCFG_KERNEL_TRACE #ifndef LOSCFG_KERNEL_TRACE
VOID LOS_TraceInit(VOID) VOID LOS_TraceInit(VOID)
...@@ -514,8 +509,3 @@ SHELLCMD_ENTRY(trace_shellcmd, CMD_TYPE_EX, "trace", 1, (CmdCallBackFunc)OsShell ...@@ -514,8 +509,3 @@ SHELLCMD_ENTRY(trace_shellcmd, CMD_TYPE_EX, "trace", 1, (CmdCallBackFunc)OsShell
#endif #endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -30,11 +30,6 @@ ...@@ -30,11 +30,6 @@
*/ */
#include "los_trace_frame.h" #include "los_trace_frame.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#ifdef LOSCFG_KERNEL_TRACE #ifdef LOSCFG_KERNEL_TRACE
...@@ -125,8 +120,3 @@ INT32 OsMemInfoTrace(UINT8 *inputBuffer, UINT32 bufLen, va_list ap) ...@@ -125,8 +120,3 @@ INT32 OsMemInfoTrace(UINT8 *inputBuffer, UINT32 bufLen, va_list ap)
} }
#endif #endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
...@@ -31,11 +31,6 @@ ...@@ -31,11 +31,6 @@
#include "los_crc32.h" #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 COUNT1 val = crc32_tab[(val ^ (*src++)) & 0xff] ^ (val >> 8)
#define COUNT2 COUNT1; COUNT1 #define COUNT2 COUNT1; COUNT1
...@@ -75,8 +70,3 @@ UINT32 LOS_Crc32Accumulate(UINT32 val, UINT8 *src, INT32 len) ...@@ -75,8 +70,3 @@ UINT32 LOS_Crc32Accumulate(UINT32 val, UINT8 *src, INT32 len)
return val; return val;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -37,11 +37,6 @@ ...@@ -37,11 +37,6 @@
#include "los_rbtree.h" #include "los_rbtree.h"
#include "los_memory.h" #include "los_memory.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
STATIC VOID OsRbLeftRotateNode(LosRbTree *pstTree, LosRbNode *pstX); STATIC VOID OsRbLeftRotateNode(LosRbTree *pstTree, LosRbNode *pstX);
STATIC VOID OsRbRightRotateNode(LosRbTree *pstTree, LosRbNode *pstY); STATIC VOID OsRbRightRotateNode(LosRbTree *pstTree, LosRbNode *pstY);
...@@ -764,9 +759,4 @@ ULONG_T LOS_RbAddNode(LosRbTree *pstTree, LosRbNode *pstNew) ...@@ -764,9 +759,4 @@ ULONG_T LOS_RbAddNode(LosRbTree *pstTree, LosRbNode *pstNew)
return TRUE; return TRUE;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
...@@ -48,11 +48,6 @@ ...@@ -48,11 +48,6 @@
#include "telnet_pri.h" #include "telnet_pri.h"
#include "fs/vnode.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 */ /* event: there are more commands left in the FIFO to run */
#define TELNET_EVENT_MORE_CMD 0x01 #define TELNET_EVENT_MORE_CMD 0x01
...@@ -412,8 +407,3 @@ INT32 TelnetDevDeinit(VOID) ...@@ -412,8 +407,3 @@ INT32 TelnetDevDeinit(VOID)
} }
#endif #endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
...@@ -53,11 +53,6 @@ ...@@ -53,11 +53,6 @@
#include "telnet_pri.h" #include "telnet_pri.h"
#include "telnet_dev.h" #include "telnet_dev.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
/* TELNET commands in RFC854 */ /* TELNET commands in RFC854 */
#define TELNET_SB 250 /* Indicates that what follows is subnegotiation of the indicated option */ #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 ...@@ -587,8 +582,3 @@ SHELLCMD_ENTRY(telnet_shellcmd, CMD_TYPE_EX, "telnet", 1, (CmdCallBackFunc)Telne
#endif /* LOSCFG_SHELL_CMD_DEBUG */ #endif /* LOSCFG_SHELL_CMD_DEBUG */
#endif #endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
...@@ -40,11 +40,6 @@ ...@@ -40,11 +40,6 @@
#include "los_memory.h" #include "los_memory.h"
#include "los_typedef.h" #include "los_typedef.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#define SHELL_INIT_MAGIC_FLAG 0xABABABAB #define SHELL_INIT_MAGIC_FLAG 0xABABABAB
#define CTRL_C 0x03 /* 0x03: ctrl+c ASCII */ #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 ...@@ -869,8 +864,3 @@ LITE_OS_SEC_TEXT_MINOR UINT32 osCmdReg(CmdType cmdType, const CHAR *cmdKey, UINT
return OsCmdItemCreate(cmdType, cmdKey, paraNum, cmdProc); return OsCmdItemCreate(cmdType, cmdKey, paraNum, cmdProc);
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif
...@@ -32,11 +32,6 @@ ...@@ -32,11 +32,6 @@
#include "shcmd.h" #include "shcmd.h"
#include "los_memory.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 * 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) ...@@ -158,8 +153,3 @@ LITE_OS_SEC_TEXT_MINOR UINT32 OsCmdParse(CHAR *cmdStr, CmdParsed *cmdParsed)
return OsCmdTokenSplit(cmdStr, ' ', cmdParsed); return OsCmdTokenSplit(cmdStr, ' ', cmdParsed);
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif
\ No newline at end of file
...@@ -41,11 +41,6 @@ ...@@ -41,11 +41,6 @@
#include "securec.h" #include "securec.h"
#ifdef LOSCFG_SHELL_LK #ifdef LOSCFG_SHELL_LK
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
typedef enum { typedef enum {
MODULE0 = 0, MODULE0 = 0,
...@@ -228,9 +223,4 @@ VOID OsLkLoggerInit(const CHAR *str) ...@@ -228,9 +223,4 @@ VOID OsLkLoggerInit(const CHAR *str)
SHELLCMD_ENTRY(log_shellcmd, CMD_TYPE_EX, "log", 1, (CmdCallBackFunc)CmdLog); SHELLCMD_ENTRY(log_shellcmd, CMD_TYPE_EX, "log", 1, (CmdCallBackFunc)CmdLog);
#endif #endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
#endif #endif
...@@ -46,11 +46,6 @@ ...@@ -46,11 +46,6 @@
#include "console.h" #include "console.h"
#endif #endif
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
CHAR *ShellGetInputBuf(ShellCB *shellCB) CHAR *ShellGetInputBuf(ShellCB *shellCB)
{ {
...@@ -465,8 +460,3 @@ LITE_OS_SEC_TEXT_MINOR UINT32 ShellEntryInit(ShellCB *shellCB) ...@@ -465,8 +460,3 @@ LITE_OS_SEC_TEXT_MINOR UINT32 ShellEntryInit(ShellCB *shellCB)
return ret; return ret;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif
...@@ -34,11 +34,6 @@ ...@@ -34,11 +34,6 @@
#include "shcmd.h" #include "shcmd.h"
#include "console.h" #include "console.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
STATIC BOOL g_shellSourceFlag = FALSE; STATIC BOOL g_shellSourceFlag = FALSE;
...@@ -178,8 +173,3 @@ CHAR *OsShellGetWorkingDirtectory(VOID) ...@@ -178,8 +173,3 @@ CHAR *OsShellGetWorkingDirtectory(VOID)
return shellCB->shellWorkingDirectory; return shellCB->shellWorkingDirectory;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif
...@@ -60,11 +60,6 @@ Case B: ...@@ -60,11 +60,6 @@ Case B:
#include "stdlib.h" #include "stdlib.h"
#include "los_task.h" #include "los_task.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#define BUF_MAX_INDEX (g_logBufSize - 1) #define BUF_MAX_INDEX (g_logBufSize - 1)
...@@ -772,9 +767,4 @@ ERR_OUT: ...@@ -772,9 +767,4 @@ ERR_OUT:
SHELLCMD_ENTRY(dmesg_shellcmd, CMD_TYPE_STD, "dmesg", XARGS, (CmdCallBackFunc)OsShellCmdDmesg); SHELLCMD_ENTRY(dmesg_shellcmd, CMD_TYPE_STD, "dmesg", XARGS, (CmdCallBackFunc)OsShellCmdDmesg);
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
#endif #endif
...@@ -34,11 +34,6 @@ ...@@ -34,11 +34,6 @@
#ifdef LOSCFG_SHELL_EXCINFO #ifdef LOSCFG_SHELL_EXCINFO
#include "los_excinfo_pri.h" #include "los_excinfo_pri.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
INT32 osShellCmdReadExcInfo(INT32 argc, CHAR **argv) INT32 osShellCmdReadExcInfo(INT32 argc, CHAR **argv)
{ {
...@@ -63,9 +58,4 @@ INT32 osShellCmdReadExcInfo(INT32 argc, CHAR **argv) ...@@ -63,9 +58,4 @@ INT32 osShellCmdReadExcInfo(INT32 argc, CHAR **argv)
return LOS_OK; return LOS_OK;
} }
SHELLCMD_ENTRY(readExcInfo_shellcmd, CMD_TYPE_EX, "excInfo", 0, (CmdCallBackFunc)osShellCmdReadExcInfo); SHELLCMD_ENTRY(readExcInfo_shellcmd, CMD_TYPE_EX, "excInfo", 0, (CmdCallBackFunc)osShellCmdReadExcInfo);
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
#endif #endif
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
...@@ -46,11 +46,6 @@ ...@@ -46,11 +46,6 @@
#endif #endif
#include "user_copy.h" #include "user_copy.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
int SysUname(struct utsname *name) int SysUname(struct utsname *name)
{ {
...@@ -198,8 +193,3 @@ int SysGetrusage(int what, struct rusage *ru) ...@@ -198,8 +193,3 @@ int SysGetrusage(int what, struct rusage *ru)
return 0; return 0;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
文件模式从 100755 更改为 100644
...@@ -42,11 +42,6 @@ ...@@ -42,11 +42,6 @@
#include "capability_api.h" #include "capability_api.h"
#endif #endif
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
static int OsPermissionToCheck(unsigned int pid, unsigned int who) static int OsPermissionToCheck(unsigned int pid, unsigned int who)
{ {
...@@ -1108,8 +1103,3 @@ int SysSchedSetAffinity(int id, const unsigned short cpuset, int flag) ...@@ -1108,8 +1103,3 @@ int SysSchedSetAffinity(int id, const unsigned short cpuset, int flag)
return LOS_OK; return LOS_OK;
} }
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
...@@ -36,11 +36,6 @@ ...@@ -36,11 +36,6 @@
#include "los_vm_syscall.h" #include "los_vm_syscall.h"
#include "fs_file.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) 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) ...@@ -120,8 +115,3 @@ int SysShmDt(const void *shmaddr)
} }
#endif #endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册