From 7e73c929a236b55bd474f414b14194cd950cdc9f Mon Sep 17 00:00:00 2001 From: Caoruihong Date: Mon, 19 Apr 2021 18:09:37 +0800 Subject: [PATCH] remove __cplusplus guards in .c files Change-Id: I052d930d54e63179b17b77f02c107a015f3cfc3f --- BUILD.gn | 0 Kconfig | 0 apps/Makefile | 0 apps/config.mk | 0 apps/init/Makefile | 0 apps/init/src/init.c | 0 apps/module.mk | 0 apps/shell/Makefile | 0 apps/shell/builtin/cd.c | 10 ---------- apps/shell/include/shcmd.h | 0 apps/shell/include/shell.h | 0 apps/shell/include/shmsg.h | 0 apps/shell/include/show.h | 0 apps/shell/src/main.c | 10 ---------- apps/shell/src/shcmd.c | 10 ---------- apps/shell/src/shcmdparse.c | 10 ---------- apps/shell/src/shmsg.c | 10 ---------- arch/Kconfig | 0 arch/arm/arm/Makefile | 0 arch/arm/arm/include/arm.h | 0 arch/arm/arm/include/arm_user_copy.h | 0 arch/arm/arm/include/arm_user_get.h | 0 arch/arm/arm/include/arm_user_put.h | 0 arch/arm/arm/include/los_hw_cpu.h | 0 arch/arm/arm/include/los_mmu_descriptor_v6.h | 0 arch/arm/arm/src/hw_user_get.S | 0 arch/arm/arm/src/hw_user_put.S | 0 arch/arm/arm/src/include/asm.h | 0 arch/arm/arm/src/include/los_hw_pri.h | 0 arch/arm/arm/src/los_arch_mmu.c | 10 ---------- arch/arm/arm/src/los_asid.c | 10 ---------- arch/arm/arm/src/los_dispatch.S | 0 arch/arm/arm/src/los_exc.c | 10 ---------- arch/arm/arm/src/los_hw.c | 10 ---------- arch/arm/arm/src/los_hw_exc.S | 0 arch/arm/arm/src/los_hw_tick.c | 10 ---------- arch/arm/arm/src/los_hwi.c | 10 ---------- arch/arm/arm/src/startup/reset_vector_mp.S | 0 arch/arm/arm/src/startup/reset_vector_up.S | 0 arch/arm/arm/src/strncpy_from_user.c | 10 ---------- arch/arm/arm/src/strnlen_user.c | 10 ---------- arch/arm/arm/src/user_copy.c | 10 ---------- arch/arm/gic/Makefile | 0 arch/arm/include/in_cksum.h | 0 arch/arm/include/los_exc.h | 0 arch/arm/include/los_hw.h | 0 arch/arm/include/los_hwi.h | 0 arch/arm/include/los_strncpy_from_user.h | 0 arch/arm/include/los_strnlen_user.h | 0 arch/arm/include/los_user_get.h | 0 arch/arm/include/los_user_put.h | 0 arch/arm/include/user_copy.h | 0 bsd/Kconfig | 0 bsd/compat/linuxkpi/Makefile | 0 bsd/dev/usb/Kconfig | 0 bsd/dev/usb/Makefile | 0 compat/posix/Kconfig | 0 compat/posix/include/mqueue.h | 0 compat/posix/include/time_posix.h | 0 compat/posix/src/map_error.c | 10 ---------- compat/posix/src/misc.c | 10 ---------- compat/posix/src/mqueue.c | 10 ---------- compat/posix/src/posix_memalign.c | 10 ---------- compat/posix/src/pthread.c | 10 ---------- compat/posix/src/pthread_attr.c | 10 ---------- compat/posix/src/pthread_cond.c | 10 ---------- compat/posix/src/pthread_mutex.c | 10 ---------- compat/posix/src/sched.c | 10 ---------- compat/posix/src/semaphore.c | 10 ---------- compat/posix/src/time.c | 10 ---------- config.mk | 0 drivers/char/mem/src/mem.c | 10 ---------- drivers/char/quickstart/src/quickstart.c | 10 ---------- drivers/char/random/src/random.c | 10 ---------- drivers/char/random/src/random_hw.c | 5 ----- fs/fat/Kconfig | 0 fs/fat/Makefile | 0 fs/fat/os_adapt/fat_shellcmd.c | 0 fs/fat/os_adapt/fatfs.c | 10 ---------- fs/fat/os_adapt/fatfs.h | 0 fs/fat/os_adapt/format.c | 0 fs/fat/virpart/Makefile | 0 fs/fat/virpart/src/virpart.c | 0 fs/fat/virpart/src/virpartff.c | 0 fs/include/vfs_config.h | 0 fs/jffs2/Kconfig | 0 fs/jffs2/include/jffs2_hash.h | 0 fs/jffs2/src/jffs2_hash.c | 0 fs/jffs2/src/vfs_jffs2.c | 0 fs/proc/BUILD.gn | 0 fs/proc/include/internal.h | 0 fs/proc/include/proc_file.h | 0 fs/proc/include/proc_fs.h | 0 fs/proc/os_adapt/kernel_trace_proc.c | 0 fs/proc/os_adapt/mounts_proc.c | 0 fs/proc/os_adapt/proc_init.c | 0 fs/proc/os_adapt/proc_vfs.c | 0 fs/proc/os_adapt/process_proc.c | 0 fs/proc/os_adapt/uptime_proc.c | 0 fs/proc/os_adapt/vmm_proc.c | 0 fs/proc/src/proc_file.c | 0 fs/vfs/bch/Makefile | 0 fs/vfs/disk/disk.c | 10 ---------- fs/vfs/include/driver/blockproxy.h | 0 fs/vfs/include/driver/mtd_dev.h | 0 fs/vfs/include/driver/mtd_list.h | 0 fs/vfs/include/multi_partition/mtd_partition.h | 0 fs/vfs/include/operation/fs_file.h | 0 fs/vfs/multi_partition/src/mtd_partition.c | 10 ---------- fs/vfs/multi_partition/src/mtd_shellcmd.c | 0 fs/vfs/operation/fs_file.c | 0 fs/vfs/operation/fs_other.c | 10 ---------- fs/vfs/operation/fs_preadv.c | 0 fs/vfs/operation/fs_pwritev.c | 0 fs/vfs/operation/fullpath.c | 10 ---------- fs/vfs/path_cache.c | 0 fs/vfs/vnode.c | 0 fs/zpfs/vfs_zpfs.c | 0 kernel/BUILD.gn | 0 kernel/Kconfig | 0 kernel/base/BUILD.gn | 0 kernel/base/Makefile | 0 kernel/base/core/los_bitmap.c | 10 ---------- kernel/base/core/los_process.c | 10 ---------- kernel/base/core/los_sortlink.c | 10 ---------- kernel/base/core/los_swtmr.c | 10 ---------- kernel/base/core/los_sys.c | 10 ---------- kernel/base/core/los_task.c | 10 ---------- kernel/base/core/los_tick.c | 10 ---------- kernel/base/include/los_event_pri.h | 0 kernel/base/include/los_futex_pri.h | 0 kernel/base/include/los_memory_pri.h | 0 kernel/base/include/los_mux_pri.h | 0 kernel/base/include/los_oom.h | 0 kernel/base/include/los_percpu_pri.h | 0 kernel/base/include/los_process_pri.h | 0 kernel/base/include/los_rwlock_pri.h | 0 kernel/base/include/los_sched_pri.h | 0 kernel/base/include/los_sem_pri.h | 0 kernel/base/include/los_signal.h | 0 kernel/base/include/los_sortlink_pri.h | 0 kernel/base/include/los_stat_pri.h | 0 kernel/base/include/los_sys_pri.h | 0 kernel/base/include/los_task_pri.h | 0 kernel/base/include/los_vm_boot.h | 0 kernel/base/include/los_vm_common.h | 0 kernel/base/include/los_vm_filemap.h | 0 kernel/base/include/los_vm_iomap.h | 0 kernel/base/include/los_vm_map.h | 0 kernel/base/include/los_vm_phys.h | 0 kernel/base/ipc/los_event.c | 10 ---------- kernel/base/ipc/los_futex.c | 10 ---------- kernel/base/ipc/los_ipcdebug.c | 10 ---------- kernel/base/ipc/los_mux.c | 10 ---------- kernel/base/ipc/los_queue.c | 10 ---------- kernel/base/ipc/los_queue_debug.c | 10 ---------- kernel/base/ipc/los_rwlock.c | 10 ---------- kernel/base/ipc/los_sem.c | 10 ---------- kernel/base/ipc/los_sem_debug.c | 10 ---------- kernel/base/ipc/los_signal.c | 10 ---------- kernel/base/mem/common/los_memstat.c | 10 ---------- kernel/base/mem/membox/los_membox.c | 10 ---------- kernel/base/mem/tlsf/los_memory.c | 10 ---------- kernel/base/misc/kill_shellcmd.c | 0 kernel/base/misc/los_misc.c | 10 ---------- kernel/base/misc/los_stackinfo.c | 0 kernel/base/misc/mempt_shellcmd.c | 10 ---------- kernel/base/misc/panic_shellcmd.c | 10 ---------- kernel/base/misc/swtmr_shellcmd.c | 10 ---------- kernel/base/misc/sysinfo_shellcmd.c | 10 ---------- kernel/base/misc/task_shellcmd.c | 10 ---------- kernel/base/misc/vm_shellcmd.c | 10 ---------- kernel/base/mp/los_lockdep.c | 10 ---------- kernel/base/mp/los_mp.c | 10 ---------- kernel/base/mp/los_percpu.c | 10 ---------- kernel/base/mp/los_spinlock.c | 10 ---------- kernel/base/mp/los_stat.c | 10 ---------- kernel/base/om/los_err.c | 10 ---------- kernel/base/sched/sched_sq/los_sched.c | 10 ---------- kernel/base/vm/los_vm_boot.c | 10 ---------- kernel/base/vm/los_vm_dump.c | 10 ---------- kernel/base/vm/los_vm_fault.c | 10 ---------- kernel/base/vm/los_vm_filemap.c | 10 ---------- kernel/base/vm/los_vm_iomap.c | 10 ---------- kernel/base/vm/los_vm_map.c | 10 ---------- kernel/base/vm/los_vm_page.c | 10 ---------- kernel/base/vm/los_vm_phys.c | 10 ---------- kernel/base/vm/los_vm_syscall.c | 10 ---------- kernel/base/vm/oom.c | 10 ---------- kernel/base/vm/shm.c | 10 ---------- kernel/common/Kconfig | 0 kernel/common/Makefile | 0 kernel/common/console.c | 10 ---------- kernel/common/console.h | 0 kernel/common/hwi_shell.c | 10 ---------- kernel/common/los_cir_buf.c | 10 ---------- kernel/common/los_config.c | 10 ---------- kernel/common/los_config.h | 0 kernel/common/los_exc_interaction.c | 5 ----- kernel/common/los_excinfo.c | 10 ---------- kernel/common/los_hilog.h | 0 kernel/common/los_magickey.c | 10 ---------- kernel/common/los_printf.c | 10 ---------- kernel/common/los_rootfs.c | 5 ----- kernel/common/los_rootfs.h | 0 kernel/common/los_seq_buf.c | 0 kernel/common/los_seq_buf.h | 0 kernel/common/patchfs/los_patchfs.c | 0 kernel/common/virtual_serial.c | 10 ---------- kernel/extended/cppsupport/los_cppsupport.c | 10 ---------- kernel/extended/cpup/cpup_shellcmd.c | 10 ---------- kernel/extended/cpup/los_cpup.c | 10 ---------- .../extended/dynload/include/los_elf_auxvec_pri.h | 0 kernel/extended/dynload/include/los_exec_elf.h | 0 kernel/extended/dynload/include/los_ld_elf_pri.h | 0 kernel/extended/dynload/include/los_load_elf.h | 0 kernel/extended/dynload/src/los_exec_elf.c | 0 kernel/extended/dynload/src/los_load_elf.c | 0 kernel/extended/include/los_cpup_pri.h | 0 kernel/extended/include/los_trace_pri.h | 0 kernel/extended/liteipc/Makefile | 0 kernel/extended/liteipc/hm_liteipc.h | 0 kernel/extended/trace/Makefile | 0 kernel/extended/trace/los_trace.c | 10 ---------- kernel/extended/trace/los_trace_frame.c | 10 ---------- kernel/extended/trace/los_trace_frame.h | 0 kernel/extended/vdso/include/los_vdso.h | 0 kernel/extended/vdso/include/los_vdso_datapage.h | 0 kernel/extended/vdso/include/los_vdso_pri.h | 0 kernel/extended/vdso/src/los_vdso.c | 0 kernel/extended/vdso/usr/Makefile | 0 kernel/extended/vdso/usr/los_vdso.ld | 0 kernel/extended/vdso/usr/los_vdso_sys.c | 0 kernel/include/los_base.h | 0 kernel/include/los_bitmap.h | 0 kernel/include/los_cppsupport.h | 0 kernel/include/los_err.h | 0 kernel/include/los_list.h | 0 kernel/include/los_lockdep.h | 0 kernel/include/los_memory.h | 0 kernel/include/los_mux.h | 0 kernel/include/los_process.h | 0 kernel/include/los_rwlock.h | 0 kernel/include/los_spinlock.h | 0 kernel/include/los_swtmr.h | 0 kernel/include/los_tables.h | 0 kernel/include/los_task.h | 0 kernel/include/los_trace.h | 0 kernel/include/los_typedef.h | 0 kernel/user/Makefile | 0 kernel/user/include/los_user_init.h | 0 kernel/user/src/los_user_init.c | 0 kernel_test.sources | 0 lib/Kconfig | 0 lib/libc/Makefile | 0 lib/libscrew/src/los_crc32.c | 10 ---------- lib/libscrew/src/los_rbtree.c | 10 ---------- lib/libsec/Makefile | 0 net/lwip-2.1/enhancement/include/lwip/api_shell.h | 0 net/lwip-2.1/porting/src/sockets.c | 0 net/telnet/include/telnet_dev.h | 0 net/telnet/include/telnet_loop.h | 0 net/telnet/src/telnet_dev.c | 10 ---------- net/telnet/src/telnet_loop.c | 10 ---------- platform/Kconfig | 0 platform/Makefile | 0 platform/bsp.mk | 0 security/Makefile | 0 security/cap/Makefile | 0 security/cap/capability.c | 0 security/cap/capability_api.h | 0 security/cap/capability_type.h | 0 security/vid/vid.c | 0 security/vid/vid_api.h | 0 security/vid/vid_type.h | 0 shell/BUILD.gn | 0 shell/Makefile | 0 shell/full/include/dmesg.h | 0 shell/full/include/shcmd.h | 0 shell/full/include/shmsg.h | 0 shell/full/include/show.h | 0 shell/full/src/base/shcmd.c | 10 ---------- shell/full/src/base/shcmdparse.c | 10 ---------- shell/full/src/base/shell_lk.c | 10 ---------- shell/full/src/base/shmsg.c | 10 ---------- shell/full/src/base/show.c | 10 ---------- shell/full/src/cmds/dmesg.c | 10 ---------- shell/full/src/cmds/excinfo_shell.c | 10 ---------- shell/full/src/cmds/watch_shell.c | 0 syscall/Makefile | 0 syscall/ipc_syscall.c | 0 syscall/misc_syscall.c | 10 ---------- syscall/net_syscall.c | 0 syscall/process_syscall.c | 10 ---------- syscall/syscall_lookup.h | 0 syscall/time_syscall.c | 0 syscall/vm_syscall.c | 10 ---------- tools/build/config/debug/hispark_aries.config | 0 tools/build/config/debug/hispark_aries_clang.config | 0 tools/build/config/debug/hispark_taurus.config | 0 .../build/config/debug/hispark_taurus_clang.config | 0 .../config/debug/hispark_taurus_clang_tee.config | 0 .../config/debug/ipcamera_hi3516dv300_liteos.config | 0 .../debug/ipcamera_hi3516dv300_liteos_clang.config | 0 .../ipcamera_hi3516dv300_liteos_clang_tee.config | 0 .../config/debug/ipcamera_hi3518ev300_liteos.config | 0 .../debug/ipcamera_hi3518ev300_liteos_clang.config | 0 .../build/config/hispark_aries_clang_release.config | 0 tools/build/config/hispark_aries_debug_shell.config | 0 tools/build/config/hispark_aries_release.config | 0 .../config/hispark_taurus_clang_release.config | 0 .../config/hispark_taurus_clang_release_tee.config | 0 .../build/config/hispark_taurus_debug_shell.config | 0 .../config/hispark_taurus_debug_shell_tee.config | 0 tools/build/config/hispark_taurus_release.config | 0 .../build/config/hispark_taurus_release_tee.config | 0 ...ipcamera_hi3516dv300_liteos_clang_release.config | 0 ...mera_hi3516dv300_liteos_clang_release_tee.config | 0 .../ipcamera_hi3516dv300_liteos_debug_shell.config | 0 ...camera_hi3516dv300_liteos_debug_shell_tee.config | 0 .../ipcamera_hi3516dv300_liteos_release.config | 0 .../ipcamera_hi3516dv300_liteos_release_tee.config | 0 ...ipcamera_hi3518ev300_liteos_clang_release.config | 0 .../ipcamera_hi3518ev300_liteos_debug_shell.config | 0 .../ipcamera_hi3518ev300_liteos_release.config | 0 tools/build/config/qemu_arm_virt_debug_shell.config | 0 tools/build/liteos.ld | 0 tools/build/liteos_llvm.ld | 0 tools/build/mk/bepbuildtime.conf | 0 tools/build/mk/dynload.mk | 0 tools/build/mk/liteos_tables_ldflags.mk | 0 tools/build/mk/module.mk | 0 tools/fsimage/win-x86/cygz.dll | Bin tools/fsimage/win-x86/doc_loadbios.exe | Bin tools/fsimage/win-x86/docfdisk.exe | Bin tools/fsimage/win-x86/flash_erase.exe | Bin tools/fsimage/win-x86/flash_lock.exe | Bin tools/fsimage/win-x86/flash_otp_dump.exe | Bin tools/fsimage/win-x86/flash_otp_info.exe | Bin tools/fsimage/win-x86/flash_otp_lock.exe | Bin tools/fsimage/win-x86/flash_otp_write.exe | Bin tools/fsimage/win-x86/flash_unlock.exe | Bin tools/fsimage/win-x86/flashcp.exe | Bin tools/fsimage/win-x86/ftl_check.exe | Bin tools/fsimage/win-x86/ftl_format.exe | Bin tools/fsimage/win-x86/jffs2dump.exe | Bin tools/fsimage/win-x86/jffs2reader.exe | Bin tools/fsimage/win-x86/lsmtd.exe | Bin tools/fsimage/win-x86/mkfs.jffs2.exe | Bin tools/fsimage/win-x86/mtd_debug.exe | Bin tools/fsimage/win-x86/mtdinfo.exe | Bin tools/fsimage/win-x86/mtdpart.exe | Bin tools/fsimage/win-x86/nanddump.exe | Bin tools/fsimage/win-x86/nandtest.exe | Bin tools/fsimage/win-x86/nandwrite.exe | Bin tools/fsimage/win-x86/nftl_format.exe | Bin tools/fsimage/win-x86/nftldump.exe | Bin tools/fsimage/win-x86/recv_image.exe | Bin tools/fsimage/win-x86/rfddump.exe | Bin tools/fsimage/win-x86/rfdformat.exe | Bin tools/fsimage/win-x86/serve_image.exe | Bin tools/fsimage/win-x86/sumtool.exe | Bin tools/fsimage/win-x86/ubiattach.exe | Bin tools/fsimage/win-x86/ubiblock.exe | Bin tools/fsimage/win-x86/ubicrc32.exe | Bin tools/fsimage/win-x86/ubidetach.exe | Bin tools/fsimage/win-x86/ubiformat.exe | Bin tools/fsimage/win-x86/ubimkvol.exe | Bin tools/fsimage/win-x86/ubinfo.exe | Bin tools/fsimage/win-x86/ubinize.exe | Bin tools/fsimage/win-x86/ubirename.exe | Bin tools/fsimage/win-x86/ubirmvol.exe | Bin tools/fsimage/win-x86/ubirsvol.exe | Bin tools/fsimage/win-x86/ubiupdatevol.exe | Bin 374 files changed, 1065 deletions(-) mode change 100755 => 100644 BUILD.gn mode change 100755 => 100644 Kconfig mode change 100755 => 100644 apps/Makefile mode change 100755 => 100644 apps/config.mk mode change 100755 => 100644 apps/init/Makefile mode change 100755 => 100644 apps/init/src/init.c mode change 100755 => 100644 apps/module.mk mode change 100755 => 100644 apps/shell/Makefile mode change 100755 => 100644 apps/shell/builtin/cd.c mode change 100755 => 100644 apps/shell/include/shcmd.h mode change 100755 => 100644 apps/shell/include/shell.h mode change 100755 => 100644 apps/shell/include/shmsg.h mode change 100755 => 100644 apps/shell/include/show.h mode change 100755 => 100644 apps/shell/src/main.c mode change 100755 => 100644 apps/shell/src/shcmd.c mode change 100755 => 100644 apps/shell/src/shcmdparse.c mode change 100755 => 100644 apps/shell/src/shmsg.c mode change 100755 => 100644 arch/Kconfig mode change 100755 => 100644 arch/arm/arm/Makefile mode change 100755 => 100644 arch/arm/arm/include/arm.h mode change 100755 => 100644 arch/arm/arm/include/arm_user_copy.h mode change 100755 => 100644 arch/arm/arm/include/arm_user_get.h mode change 100755 => 100644 arch/arm/arm/include/arm_user_put.h mode change 100755 => 100644 arch/arm/arm/include/los_hw_cpu.h mode change 100755 => 100644 arch/arm/arm/include/los_mmu_descriptor_v6.h mode change 100755 => 100644 arch/arm/arm/src/hw_user_get.S mode change 100755 => 100644 arch/arm/arm/src/hw_user_put.S mode change 100755 => 100644 arch/arm/arm/src/include/asm.h mode change 100755 => 100644 arch/arm/arm/src/include/los_hw_pri.h mode change 100755 => 100644 arch/arm/arm/src/los_arch_mmu.c mode change 100755 => 100644 arch/arm/arm/src/los_dispatch.S mode change 100755 => 100644 arch/arm/arm/src/los_exc.c mode change 100755 => 100644 arch/arm/arm/src/los_hw.c mode change 100755 => 100644 arch/arm/arm/src/los_hw_exc.S mode change 100755 => 100644 arch/arm/arm/src/startup/reset_vector_mp.S mode change 100755 => 100644 arch/arm/arm/src/startup/reset_vector_up.S mode change 100755 => 100644 arch/arm/arm/src/strncpy_from_user.c mode change 100755 => 100644 arch/arm/arm/src/strnlen_user.c mode change 100755 => 100644 arch/arm/arm/src/user_copy.c mode change 100755 => 100644 arch/arm/gic/Makefile mode change 100755 => 100644 arch/arm/include/in_cksum.h mode change 100755 => 100644 arch/arm/include/los_exc.h mode change 100755 => 100644 arch/arm/include/los_hw.h mode change 100755 => 100644 arch/arm/include/los_hwi.h mode change 100755 => 100644 arch/arm/include/los_strncpy_from_user.h mode change 100755 => 100644 arch/arm/include/los_strnlen_user.h mode change 100755 => 100644 arch/arm/include/los_user_get.h mode change 100755 => 100644 arch/arm/include/los_user_put.h mode change 100755 => 100644 arch/arm/include/user_copy.h mode change 100755 => 100644 bsd/Kconfig mode change 100755 => 100644 bsd/compat/linuxkpi/Makefile mode change 100755 => 100644 bsd/dev/usb/Kconfig mode change 100755 => 100644 bsd/dev/usb/Makefile mode change 100755 => 100644 compat/posix/Kconfig mode change 100755 => 100644 compat/posix/include/mqueue.h mode change 100755 => 100644 compat/posix/include/time_posix.h mode change 100755 => 100644 compat/posix/src/misc.c mode change 100755 => 100644 compat/posix/src/mqueue.c mode change 100755 => 100644 compat/posix/src/pthread.c mode change 100755 => 100644 compat/posix/src/pthread_cond.c mode change 100755 => 100644 compat/posix/src/pthread_mutex.c mode change 100755 => 100644 compat/posix/src/semaphore.c mode change 100755 => 100644 compat/posix/src/time.c mode change 100755 => 100644 config.mk mode change 100755 => 100644 fs/fat/Kconfig mode change 100755 => 100644 fs/fat/Makefile mode change 100755 => 100644 fs/fat/os_adapt/fat_shellcmd.c mode change 100755 => 100644 fs/fat/os_adapt/fatfs.c mode change 100755 => 100644 fs/fat/os_adapt/fatfs.h mode change 100755 => 100644 fs/fat/os_adapt/format.c mode change 100755 => 100644 fs/fat/virpart/Makefile mode change 100755 => 100644 fs/fat/virpart/src/virpart.c mode change 100755 => 100644 fs/fat/virpart/src/virpartff.c mode change 100755 => 100644 fs/include/vfs_config.h mode change 100755 => 100644 fs/jffs2/Kconfig mode change 100755 => 100644 fs/jffs2/include/jffs2_hash.h mode change 100755 => 100644 fs/jffs2/src/jffs2_hash.c mode change 100755 => 100644 fs/jffs2/src/vfs_jffs2.c mode change 100755 => 100644 fs/proc/BUILD.gn mode change 100755 => 100644 fs/proc/include/internal.h mode change 100755 => 100644 fs/proc/include/proc_file.h mode change 100755 => 100644 fs/proc/include/proc_fs.h mode change 100755 => 100644 fs/proc/os_adapt/kernel_trace_proc.c mode change 100755 => 100644 fs/proc/os_adapt/mounts_proc.c mode change 100755 => 100644 fs/proc/os_adapt/proc_init.c mode change 100755 => 100644 fs/proc/os_adapt/proc_vfs.c mode change 100755 => 100644 fs/proc/os_adapt/process_proc.c mode change 100755 => 100644 fs/proc/os_adapt/uptime_proc.c mode change 100755 => 100644 fs/proc/os_adapt/vmm_proc.c mode change 100755 => 100644 fs/proc/src/proc_file.c mode change 100755 => 100644 fs/vfs/bch/Makefile mode change 100755 => 100644 fs/vfs/disk/disk.c mode change 100755 => 100644 fs/vfs/include/driver/blockproxy.h mode change 100755 => 100644 fs/vfs/include/driver/mtd_dev.h mode change 100755 => 100644 fs/vfs/include/driver/mtd_list.h mode change 100755 => 100644 fs/vfs/include/multi_partition/mtd_partition.h mode change 100755 => 100644 fs/vfs/include/operation/fs_file.h mode change 100755 => 100644 fs/vfs/multi_partition/src/mtd_partition.c mode change 100755 => 100644 fs/vfs/multi_partition/src/mtd_shellcmd.c mode change 100755 => 100644 fs/vfs/operation/fs_file.c mode change 100755 => 100644 fs/vfs/operation/fs_preadv.c mode change 100755 => 100644 fs/vfs/operation/fs_pwritev.c mode change 100755 => 100644 fs/vfs/operation/fullpath.c mode change 100755 => 100644 fs/vfs/path_cache.c mode change 100755 => 100644 fs/vfs/vnode.c mode change 100755 => 100644 fs/zpfs/vfs_zpfs.c mode change 100755 => 100644 kernel/BUILD.gn mode change 100755 => 100644 kernel/Kconfig mode change 100755 => 100644 kernel/base/BUILD.gn mode change 100755 => 100644 kernel/base/Makefile mode change 100755 => 100644 kernel/base/core/los_bitmap.c mode change 100755 => 100644 kernel/base/core/los_process.c mode change 100755 => 100644 kernel/base/core/los_sortlink.c mode change 100755 => 100644 kernel/base/core/los_swtmr.c mode change 100755 => 100644 kernel/base/core/los_sys.c mode change 100755 => 100644 kernel/base/core/los_task.c mode change 100755 => 100644 kernel/base/core/los_tick.c mode change 100755 => 100644 kernel/base/include/los_event_pri.h mode change 100755 => 100644 kernel/base/include/los_futex_pri.h mode change 100755 => 100644 kernel/base/include/los_memory_pri.h mode change 100755 => 100644 kernel/base/include/los_mux_pri.h mode change 100755 => 100644 kernel/base/include/los_oom.h mode change 100755 => 100644 kernel/base/include/los_percpu_pri.h mode change 100755 => 100644 kernel/base/include/los_process_pri.h mode change 100755 => 100644 kernel/base/include/los_rwlock_pri.h mode change 100755 => 100644 kernel/base/include/los_sched_pri.h mode change 100755 => 100644 kernel/base/include/los_sem_pri.h mode change 100755 => 100644 kernel/base/include/los_signal.h mode change 100755 => 100644 kernel/base/include/los_sortlink_pri.h mode change 100755 => 100644 kernel/base/include/los_stat_pri.h mode change 100755 => 100644 kernel/base/include/los_sys_pri.h mode change 100755 => 100644 kernel/base/include/los_task_pri.h mode change 100755 => 100644 kernel/base/include/los_vm_boot.h mode change 100755 => 100644 kernel/base/include/los_vm_common.h mode change 100755 => 100644 kernel/base/include/los_vm_filemap.h mode change 100755 => 100644 kernel/base/include/los_vm_iomap.h mode change 100755 => 100644 kernel/base/include/los_vm_map.h mode change 100755 => 100644 kernel/base/include/los_vm_phys.h mode change 100755 => 100644 kernel/base/ipc/los_event.c mode change 100755 => 100644 kernel/base/ipc/los_futex.c mode change 100755 => 100644 kernel/base/ipc/los_mux.c mode change 100755 => 100644 kernel/base/ipc/los_queue.c mode change 100755 => 100644 kernel/base/ipc/los_rwlock.c mode change 100755 => 100644 kernel/base/ipc/los_sem.c mode change 100755 => 100644 kernel/base/ipc/los_sem_debug.c mode change 100755 => 100644 kernel/base/ipc/los_signal.c mode change 100755 => 100644 kernel/base/mem/common/los_memstat.c mode change 100755 => 100644 kernel/base/mem/tlsf/los_memory.c mode change 100755 => 100644 kernel/base/misc/kill_shellcmd.c mode change 100755 => 100644 kernel/base/misc/los_stackinfo.c mode change 100755 => 100644 kernel/base/misc/mempt_shellcmd.c mode change 100755 => 100644 kernel/base/misc/panic_shellcmd.c mode change 100755 => 100644 kernel/base/misc/task_shellcmd.c mode change 100755 => 100644 kernel/base/misc/vm_shellcmd.c mode change 100755 => 100644 kernel/base/mp/los_stat.c mode change 100755 => 100644 kernel/base/om/los_err.c mode change 100755 => 100644 kernel/base/sched/sched_sq/los_sched.c mode change 100755 => 100644 kernel/base/vm/los_vm_boot.c mode change 100755 => 100644 kernel/base/vm/los_vm_dump.c mode change 100755 => 100644 kernel/base/vm/los_vm_fault.c mode change 100755 => 100644 kernel/base/vm/los_vm_map.c mode change 100755 => 100644 kernel/base/vm/los_vm_page.c mode change 100755 => 100644 kernel/base/vm/los_vm_phys.c mode change 100755 => 100644 kernel/base/vm/los_vm_syscall.c mode change 100755 => 100644 kernel/base/vm/oom.c mode change 100755 => 100644 kernel/base/vm/shm.c mode change 100755 => 100644 kernel/common/Kconfig mode change 100755 => 100644 kernel/common/Makefile mode change 100755 => 100644 kernel/common/console.h mode change 100755 => 100644 kernel/common/los_config.c mode change 100755 => 100644 kernel/common/los_config.h mode change 100755 => 100644 kernel/common/los_hilog.h mode change 100755 => 100644 kernel/common/los_printf.c mode change 100755 => 100644 kernel/common/los_rootfs.h mode change 100755 => 100644 kernel/common/los_seq_buf.c mode change 100755 => 100644 kernel/common/los_seq_buf.h mode change 100755 => 100644 kernel/common/patchfs/los_patchfs.c mode change 100755 => 100644 kernel/extended/cppsupport/los_cppsupport.c mode change 100755 => 100644 kernel/extended/cpup/cpup_shellcmd.c mode change 100755 => 100644 kernel/extended/cpup/los_cpup.c mode change 100755 => 100644 kernel/extended/dynload/include/los_elf_auxvec_pri.h mode change 100755 => 100644 kernel/extended/dynload/include/los_exec_elf.h mode change 100755 => 100644 kernel/extended/dynload/include/los_ld_elf_pri.h mode change 100755 => 100644 kernel/extended/dynload/include/los_load_elf.h mode change 100755 => 100644 kernel/extended/dynload/src/los_exec_elf.c mode change 100755 => 100644 kernel/extended/dynload/src/los_load_elf.c mode change 100755 => 100644 kernel/extended/include/los_cpup_pri.h mode change 100755 => 100644 kernel/extended/include/los_trace_pri.h mode change 100755 => 100644 kernel/extended/liteipc/Makefile mode change 100755 => 100644 kernel/extended/liteipc/hm_liteipc.h mode change 100755 => 100644 kernel/extended/trace/Makefile mode change 100755 => 100644 kernel/extended/trace/los_trace_frame.c mode change 100755 => 100644 kernel/extended/trace/los_trace_frame.h mode change 100755 => 100644 kernel/extended/vdso/include/los_vdso.h mode change 100755 => 100644 kernel/extended/vdso/include/los_vdso_datapage.h mode change 100755 => 100644 kernel/extended/vdso/include/los_vdso_pri.h mode change 100755 => 100644 kernel/extended/vdso/src/los_vdso.c mode change 100755 => 100644 kernel/extended/vdso/usr/Makefile mode change 100755 => 100644 kernel/extended/vdso/usr/los_vdso.ld mode change 100755 => 100644 kernel/extended/vdso/usr/los_vdso_sys.c mode change 100755 => 100644 kernel/include/los_base.h mode change 100755 => 100644 kernel/include/los_bitmap.h mode change 100755 => 100644 kernel/include/los_cppsupport.h mode change 100755 => 100644 kernel/include/los_err.h mode change 100755 => 100644 kernel/include/los_list.h mode change 100755 => 100644 kernel/include/los_lockdep.h mode change 100755 => 100644 kernel/include/los_memory.h mode change 100755 => 100644 kernel/include/los_mux.h mode change 100755 => 100644 kernel/include/los_process.h mode change 100755 => 100644 kernel/include/los_rwlock.h mode change 100755 => 100644 kernel/include/los_spinlock.h mode change 100755 => 100644 kernel/include/los_swtmr.h mode change 100755 => 100644 kernel/include/los_tables.h mode change 100755 => 100644 kernel/include/los_task.h mode change 100755 => 100644 kernel/include/los_trace.h mode change 100755 => 100644 kernel/include/los_typedef.h mode change 100755 => 100644 kernel/user/Makefile mode change 100755 => 100644 kernel/user/include/los_user_init.h mode change 100755 => 100644 kernel/user/src/los_user_init.c mode change 100755 => 100644 kernel_test.sources mode change 100755 => 100644 lib/Kconfig mode change 100755 => 100644 lib/libc/Makefile mode change 100755 => 100644 lib/libscrew/src/los_rbtree.c mode change 100755 => 100644 lib/libsec/Makefile mode change 100755 => 100644 net/lwip-2.1/enhancement/include/lwip/api_shell.h mode change 100755 => 100644 net/lwip-2.1/porting/src/sockets.c mode change 100755 => 100644 net/telnet/include/telnet_dev.h mode change 100755 => 100644 net/telnet/include/telnet_loop.h mode change 100755 => 100644 platform/Kconfig mode change 100755 => 100644 platform/Makefile mode change 100755 => 100644 platform/bsp.mk mode change 100755 => 100644 security/Makefile mode change 100755 => 100644 security/cap/Makefile mode change 100755 => 100644 security/cap/capability.c mode change 100755 => 100644 security/cap/capability_api.h mode change 100755 => 100644 security/cap/capability_type.h mode change 100755 => 100644 security/vid/vid.c mode change 100755 => 100644 security/vid/vid_api.h mode change 100755 => 100644 security/vid/vid_type.h mode change 100755 => 100644 shell/BUILD.gn mode change 100755 => 100644 shell/Makefile mode change 100755 => 100644 shell/full/include/dmesg.h mode change 100755 => 100644 shell/full/include/shcmd.h mode change 100755 => 100644 shell/full/include/shmsg.h mode change 100755 => 100644 shell/full/include/show.h mode change 100755 => 100644 shell/full/src/base/shcmd.c mode change 100755 => 100644 shell/full/src/base/shcmdparse.c mode change 100755 => 100644 shell/full/src/base/shell_lk.c mode change 100755 => 100644 shell/full/src/base/shmsg.c mode change 100755 => 100644 shell/full/src/base/show.c mode change 100755 => 100644 shell/full/src/cmds/excinfo_shell.c mode change 100755 => 100644 shell/full/src/cmds/watch_shell.c mode change 100755 => 100644 syscall/Makefile mode change 100755 => 100644 syscall/ipc_syscall.c mode change 100755 => 100644 syscall/misc_syscall.c mode change 100755 => 100644 syscall/net_syscall.c mode change 100755 => 100644 syscall/process_syscall.c mode change 100755 => 100644 syscall/syscall_lookup.h mode change 100755 => 100644 syscall/time_syscall.c mode change 100755 => 100644 syscall/vm_syscall.c mode change 100755 => 100644 tools/build/config/debug/hispark_aries.config mode change 100755 => 100644 tools/build/config/debug/hispark_aries_clang.config mode change 100755 => 100644 tools/build/config/debug/hispark_taurus.config mode change 100755 => 100644 tools/build/config/debug/hispark_taurus_clang.config mode change 100755 => 100644 tools/build/config/debug/hispark_taurus_clang_tee.config mode change 100755 => 100644 tools/build/config/debug/ipcamera_hi3516dv300_liteos.config mode change 100755 => 100644 tools/build/config/debug/ipcamera_hi3516dv300_liteos_clang.config mode change 100755 => 100644 tools/build/config/debug/ipcamera_hi3516dv300_liteos_clang_tee.config mode change 100755 => 100644 tools/build/config/debug/ipcamera_hi3518ev300_liteos.config mode change 100755 => 100644 tools/build/config/debug/ipcamera_hi3518ev300_liteos_clang.config mode change 100755 => 100644 tools/build/config/hispark_aries_clang_release.config mode change 100755 => 100644 tools/build/config/hispark_aries_debug_shell.config mode change 100755 => 100644 tools/build/config/hispark_aries_release.config mode change 100755 => 100644 tools/build/config/hispark_taurus_clang_release.config mode change 100755 => 100644 tools/build/config/hispark_taurus_clang_release_tee.config mode change 100755 => 100644 tools/build/config/hispark_taurus_debug_shell.config mode change 100755 => 100644 tools/build/config/hispark_taurus_debug_shell_tee.config mode change 100755 => 100644 tools/build/config/hispark_taurus_release.config mode change 100755 => 100644 tools/build/config/hispark_taurus_release_tee.config mode change 100755 => 100644 tools/build/config/ipcamera_hi3516dv300_liteos_clang_release.config mode change 100755 => 100644 tools/build/config/ipcamera_hi3516dv300_liteos_clang_release_tee.config mode change 100755 => 100644 tools/build/config/ipcamera_hi3516dv300_liteos_debug_shell.config mode change 100755 => 100644 tools/build/config/ipcamera_hi3516dv300_liteos_debug_shell_tee.config mode change 100755 => 100644 tools/build/config/ipcamera_hi3516dv300_liteos_release.config mode change 100755 => 100644 tools/build/config/ipcamera_hi3516dv300_liteos_release_tee.config mode change 100755 => 100644 tools/build/config/ipcamera_hi3518ev300_liteos_clang_release.config mode change 100755 => 100644 tools/build/config/ipcamera_hi3518ev300_liteos_debug_shell.config mode change 100755 => 100644 tools/build/config/ipcamera_hi3518ev300_liteos_release.config mode change 100755 => 100644 tools/build/config/qemu_arm_virt_debug_shell.config mode change 100755 => 100644 tools/build/liteos.ld mode change 100755 => 100644 tools/build/liteos_llvm.ld mode change 100755 => 100644 tools/build/mk/bepbuildtime.conf mode change 100755 => 100644 tools/build/mk/dynload.mk mode change 100755 => 100644 tools/build/mk/liteos_tables_ldflags.mk mode change 100755 => 100644 tools/build/mk/module.mk mode change 100755 => 100644 tools/fsimage/win-x86/cygz.dll mode change 100755 => 100644 tools/fsimage/win-x86/doc_loadbios.exe mode change 100755 => 100644 tools/fsimage/win-x86/docfdisk.exe mode change 100755 => 100644 tools/fsimage/win-x86/flash_erase.exe mode change 100755 => 100644 tools/fsimage/win-x86/flash_lock.exe mode change 100755 => 100644 tools/fsimage/win-x86/flash_otp_dump.exe mode change 100755 => 100644 tools/fsimage/win-x86/flash_otp_info.exe mode change 100755 => 100644 tools/fsimage/win-x86/flash_otp_lock.exe mode change 100755 => 100644 tools/fsimage/win-x86/flash_otp_write.exe mode change 100755 => 100644 tools/fsimage/win-x86/flash_unlock.exe mode change 100755 => 100644 tools/fsimage/win-x86/flashcp.exe mode change 100755 => 100644 tools/fsimage/win-x86/ftl_check.exe mode change 100755 => 100644 tools/fsimage/win-x86/ftl_format.exe mode change 100755 => 100644 tools/fsimage/win-x86/jffs2dump.exe mode change 100755 => 100644 tools/fsimage/win-x86/jffs2reader.exe mode change 100755 => 100644 tools/fsimage/win-x86/lsmtd.exe mode change 100755 => 100644 tools/fsimage/win-x86/mkfs.jffs2.exe mode change 100755 => 100644 tools/fsimage/win-x86/mtd_debug.exe mode change 100755 => 100644 tools/fsimage/win-x86/mtdinfo.exe mode change 100755 => 100644 tools/fsimage/win-x86/mtdpart.exe mode change 100755 => 100644 tools/fsimage/win-x86/nanddump.exe mode change 100755 => 100644 tools/fsimage/win-x86/nandtest.exe mode change 100755 => 100644 tools/fsimage/win-x86/nandwrite.exe mode change 100755 => 100644 tools/fsimage/win-x86/nftl_format.exe mode change 100755 => 100644 tools/fsimage/win-x86/nftldump.exe mode change 100755 => 100644 tools/fsimage/win-x86/recv_image.exe mode change 100755 => 100644 tools/fsimage/win-x86/rfddump.exe mode change 100755 => 100644 tools/fsimage/win-x86/rfdformat.exe mode change 100755 => 100644 tools/fsimage/win-x86/serve_image.exe mode change 100755 => 100644 tools/fsimage/win-x86/sumtool.exe mode change 100755 => 100644 tools/fsimage/win-x86/ubiattach.exe mode change 100755 => 100644 tools/fsimage/win-x86/ubiblock.exe mode change 100755 => 100644 tools/fsimage/win-x86/ubicrc32.exe mode change 100755 => 100644 tools/fsimage/win-x86/ubidetach.exe mode change 100755 => 100644 tools/fsimage/win-x86/ubiformat.exe mode change 100755 => 100644 tools/fsimage/win-x86/ubimkvol.exe mode change 100755 => 100644 tools/fsimage/win-x86/ubinfo.exe mode change 100755 => 100644 tools/fsimage/win-x86/ubinize.exe mode change 100755 => 100644 tools/fsimage/win-x86/ubirename.exe mode change 100755 => 100644 tools/fsimage/win-x86/ubirmvol.exe mode change 100755 => 100644 tools/fsimage/win-x86/ubirsvol.exe mode change 100755 => 100644 tools/fsimage/win-x86/ubiupdatevol.exe 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 e2bc58f4..9992f45f --- 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 ef57ca00..a5e553a9 --- 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 5d04431a..d14d1b98 --- 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 97891747..269b4193 --- 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 b39aa724..a7276526 --- 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 bf906837..39ef435f --- 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 5be31c09..30fd6331 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 46468548..f86c9f6b --- 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 800bf1b9..675b3a3b --- 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 20a84862..2fc783c6 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 5bac5895..5ad2f836 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 352b9310..70c98bc9 --- 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 4da0bf49..09730c1d --- 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 f1016f00..f4ecd91c --- 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 31435f7d..791fc787 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 3e623674..e740930f --- 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 588ae112..85a924d7 --- 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 59e85702..5b93834e 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 4fca2c13..507a3eea --- 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 736c898a..29627cd3 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 1b9e3203..425d6cc8 --- 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 b4ab4015..35c838bd --- 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 feb713d8..1c80780b 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 63039039..71b8f32b --- 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 cf9c9a76..a45d2fcc --- 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 8f3b1549..07786cc8 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 8b4e8a57..7a920206 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 ef12427a..2271a64a 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 fe412ee6..f7c6780e 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 a8aa1047..0ff14a06 --- 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 e7dfe5bd..8389cf02 --- 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 e7b15559..bbdb9a36 --- 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 3b81073d..65196bb3 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 23a7576d..f71ce8e0 --- 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 36ff3f47..4e8b8600 --- 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 b201094b..a8c8130f --- 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 d7b3fe33..bca4e570 --- 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 74db4c99..2f734f40 --- 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 afee16d5..d6adf850 --- 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 a90da284..d3d2c452 --- 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 23f1f5ec..c765cff7 --- 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 6fb9f6d4..9fe6142d --- 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 f38cc63a..d98d4930 --- 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 1017b094..b86c963f 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 f74f2726..7dc321af --- 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 51e2b789..97e6e704 --- 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 8807ae75..203521f9 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 0cb06bda..36b03189 --- 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 ef012423..7f80a0ae --- 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 e78c829f..f6ef2728 --- 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 6febe26e..f6ce9fd3 --- 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 957159dd..91164b4c --- 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 f8c2f0a0..fff7e794 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 1b2c66c2..2f2c74cd --- 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 1e76e620..05a083ee 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 ee8bf155..50322068 --- 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 248f24b6..0829a7e7 --- 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 cb7a3adf..582704dd 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 75cac70a..b1b38f00 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 20fddb77..7c918e1c --- 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 2bb82950..bb3edcaa --- 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 3f52964b..2f2ac0b8 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 9c3f7c96..fc26d2c3 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 476c7c66..c50e31e9 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 02a332ab..385291ec 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 9f63716e..04e71f7d --- 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 5c455b8f..6267a9d1 --- 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 6c7efabe..0e36722e --- 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 71460dd6..b178c80a --- 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 612ee2b3..c05cc97a --- 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 ff169c55..d8f61b27 --- 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 653194b4..86070302 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 d63284aa..657d14c0 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 f840c0cc..c802be1b --- 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 0945b831..76d4d662 --- 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 3e2872cd..59ab9e4e --- 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 7910afc2..01890a7b --- 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 b9899fb2..1c89662b --- 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 f5c5e3a9..9de9d54e --- 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 69b4dbc2..3c929b57 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 981375cb..5b755504 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 3bd7b951..f6854765 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 88a6990f..f67921fc --- 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 8a282593..66e904ae 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 6a34fce1..422600a2 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 28087066..adae57e8 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 40133286..567348ff --- 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 ddf0b240..911c5ba8 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 fda82408..21a298af 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 7c17d995..bda498ad --- 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 cbff72cc..f504f426 --- 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 131e00d2..0c6446cf --- 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 74c2f663..678025c4 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 0f8306b8..6fe2f772 --- 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 ad6ea030..6bc6e66e 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 bcd02dda..348b1b1d --- 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 baaf4c5c..85004063 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 87747b18..f68ed91b 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 39b7ad14..a7480eba --- 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 b7a71854..974f0ac9 --- 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 c7630443..9e2474b8 --- 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 6ffe776d..559561b9 --- 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 178778b9..fd11aed3 --- 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 fa195c16..8342c676 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 06a484ce..85f3959c --- 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 a61620b3..29b571d9 --- 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 b304de55..b13c6568 --- 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 c1344ea1..3e7194e6 --- 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