mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-30 00:00:11 +01:00
remove obsolete rmshm and rmsem tools
Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
This commit is contained in:
parent
09c1e01f6f
commit
b81e4d9b74
3 changed files with 0 additions and 50 deletions
|
@ -5,16 +5,6 @@
|
|||
# @license Apache 2.0
|
||||
###################################################################################
|
||||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL Linux)
|
||||
add_executable(rmshm rmshm.cpp)
|
||||
target_link_libraries(rmshm PUBLIC Threads::Threads rt)
|
||||
|
||||
add_executable(rmsem rmsem.cpp)
|
||||
target_link_libraries(rmsem PUBLIC Threads::Threads rt)
|
||||
|
||||
list(APPEND TOOLS rmsem rmshm)
|
||||
endif()
|
||||
|
||||
install(
|
||||
TARGETS ${TOOLS}
|
||||
COMPONENT tools
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
/** Delete semaphores.
|
||||
*
|
||||
* @author Steffen Vogel <post@steffenvogel.de>
|
||||
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
|
||||
* @license Apache 2.0
|
||||
*********************************************************************************/
|
||||
|
||||
#include <semaphore.h>
|
||||
#include <iostream>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
for (int i = 1; i < argc; i++) {
|
||||
int ret = sem_unlink(argv[i]);
|
||||
if (ret)
|
||||
std::cerr << "Failed to unlink: " << argv[i] << std::endl;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
/** Delete shared memory regions.
|
||||
*
|
||||
* @author Steffen Vogel <post@steffenvogel.de>
|
||||
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
|
||||
* @license Apache 2.0
|
||||
*********************************************************************************/
|
||||
|
||||
#include <sys/mman.h>
|
||||
#include <iostream>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
for (int i = 1; i < argc; i++) {
|
||||
int ret = shm_unlink(argv[i]);
|
||||
if (ret)
|
||||
std::cerr << "Failed to unlink: " << argv[i] << std::endl;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Reference in a new issue