qnx

Find a file that was created within five days of another file in shell

て烟熏妆下的殇ゞ 提交于 2019-11-29 05:10:41
i'm still pretty new to scripting so stick with me and if you have any questions please feel free to ask. Okay, so: I have a file let's say file.txt file.txt exists in a directory /this/is/the/directory/file.txt In a separate directory .log files exist that tell me what happens when file.txt was created. fuubar.log, fuu.log, bar.log, this.log, that.log, some.log, other.log ...there is an unknown number of these logs. I need to gather all the log files that occurred +-5 days of the file.txt file being created. For example: file.txt was created on 7 July 2013 (don't pay any attention to date

CMake cannot find GoogleTest required library in Ubuntu

橙三吉。 提交于 2019-11-28 21:27:24
Similar issue here . This is my CMakeLists.txt: cmake_minimum_required(VERSION 2.6) # Locate GTest find_package(GTest REQUIRED) include_directories(${GTEST_INCLUDE_DIRS}) # Add test cpp file add_executable(foo foo.cpp) # Link test executable against gtest & gtest_main target_link_libraries(foo ${GTEST_LIBRARIES} ${GTEST_MAIN_LIBRARIES} pthread) And my foo.cpp: #include <gtest/gtest.h> TEST(sample_test_case, sample_test) { EXPECT_EQ(1, 1); } int main(int argc, char **argv) { testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); } Now, all works fine when using the g++ compiler. However,

CMake cannot find GoogleTest required library in Ubuntu

白昼怎懂夜的黑 提交于 2019-11-27 13:50:52
问题 Similar issue here. This is my CMakeLists.txt: cmake_minimum_required(VERSION 2.6) # Locate GTest find_package(GTest REQUIRED) include_directories(${GTEST_INCLUDE_DIRS}) # Add test cpp file add_executable(foo foo.cpp) # Link test executable against gtest & gtest_main target_link_libraries(foo ${GTEST_LIBRARIES} ${GTEST_MAIN_LIBRARIES} pthread) And my foo.cpp: #include <gtest/gtest.h> TEST(sample_test_case, sample_test) { EXPECT_EQ(1, 1); } int main(int argc, char **argv) { testing:

Python on an Real-Time Operation System (RTOS)

心不动则不痛 提交于 2019-11-27 13:13:10
问题 I am planning to implement a small-scale data acquisition system on an RTOS platform. (Either on a QNX or an RT-Linux system.) As far as I know, these jobs are performed using C / C++ to get the most out of the system. However I am curious to know and want to learn some experienced people's opinions before I blindly jump into the coding action whether it would be feasible and wiser to write everything in Python (from low-level instrument interfacing through a shiny graphical user interface).

gcc - how to create a mapfile of the object file

一个人想着一个人 提交于 2019-11-27 07:44:23
问题 I have a .map file called a.out.map that was created from a .cpp / .obj file but I don't remember how. I've included a snippet: .plt 0x0000380c 0x848 *(.plt) .plt 0x0000380c 0x848 C:/QNX650/target/qnx6/armle-v7/lib/crti.o .text 0x00004054 0x5448 0x00004054 _btext = . *(.text .stub .text.* .gnu.linkonce.t.*) .text 0x00004054 0x0 C:/QNX650/target/qnx6/armle-v7/lib/crti.o .text 0x00004054 0xf4 C:/QNX650/host/win32/x86/usr/lib/gcc/arm-unknown-nto-qnx6.5.0eabi/4.4.2/pic//crtbegin.o .text

QNX IPC机制

放肆的年华 提交于 2019-11-25 22:22:04
文章目录 QNX微内核介绍 IPC进程间通信 Channels and connections Synchronous message passing Message copying Pulses 优先级继承与消息 Message-passing API Robust implementations with Send/Receive/Reply Events Signals POSIX message queues Shared Memory Typed memory Pipes and FIFOs QNX微内核介绍 IPC进程间通信 IPC在QNX Neutrino (微内核) 从一个嵌入式实时系统向一个全面的POSIX系统转变起着至关重要的作用 在QNX中,消息传递是IPC的主要形式,也提供了其他的形式,除非有特殊的说明,否则这些形式也都是基于本地消息传递而实现的。QNX Neutrino提供以下形式的IPC: Channels and connections IPC中消息传递时基于CS架构实现的,最简单的,制定对方进程号,要发送的一方,将消息加一个头,告诉内核把该消息发送给 pid 12345就行了,其实QNX4的时候时这么做的. 但是 如果服务器有两个线程,分别进行不同的服务, 你或者可以把消息发送给 pid 12345 tid3 就可以 如果某一服务,由一组线程进行