mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-30 00:00:15 +01:00
Merge branch 'devel' of github.com:RWTH-OS/HermitCore into devel
This commit is contained in:
commit
4fab5bb188
3 changed files with 14 additions and 12 deletions
|
@ -93,9 +93,10 @@ script:
|
|||
- cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=true ..
|
||||
- CC=$COMPILERC CXX=$COMPILERCXX make -j1 package
|
||||
- cd $TRAVIS_BUILD_DIR
|
||||
- if [ -n "$RUNCLANGTIDY" ]; then git ls-files "*.c" |grep tools/ | xargs -P 1 -I{} clang-tidy -p build/tools-prefix/src/tools-build/compile_commands.json -header-filter="^((?\!build).)*$" {}; fi
|
||||
- if [ -n "$RUNCLANGTIDY" ]; then git ls-files "*.c" |grep arch/x86/loader/ | xargs -P 1 -I{} clang-tidy -p build/arch_x86_loader-prefix/src/arch_x86_loader-build/compile_commands.json -header-filter="^((?\!build).)*$" {}; fi
|
||||
- ./tests.sh
|
||||
|
||||
|
||||
notifications:
|
||||
slack: hermitcore:UtcfeEXkbpx3WyIDK2Wm2beS
|
||||
|
||||
|
|
|
@ -98,6 +98,7 @@ function(build_external NAME PATH DEPENDS)
|
|||
-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}
|
||||
-DLOCAL_PREFIX_BASE_DIR=${LOCAL_PREFIX_BASE_DIR}
|
||||
-DCMAKE_INSTALL_MESSAGE=NEVER
|
||||
-DCMAKE_EXPORT_COMPILE_COMMANDS=true
|
||||
--no-warn-unused-cli
|
||||
${DO_PROFILING}
|
||||
${CMD_VARS}
|
||||
|
|
|
@ -27,25 +27,24 @@
|
|||
|
||||
#define _GNU_SOURCE
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <linux/tcp.h>
|
||||
#include <net/if.h>
|
||||
#include <netinet/in.h>
|
||||
#include <sched.h>
|
||||
#include <signal.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/inotify.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <net/if.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "proxy.h"
|
||||
|
||||
|
@ -242,7 +241,7 @@ static int is_hermit_available(void)
|
|||
}
|
||||
|
||||
if (!file)
|
||||
return 0;
|
||||
goto err;
|
||||
|
||||
//PROXY_DEBUG("Open log file\n");
|
||||
|
||||
|
@ -255,9 +254,10 @@ static int is_hermit_available(void)
|
|||
}
|
||||
|
||||
fclose(file);
|
||||
free(line);
|
||||
|
||||
return ret;
|
||||
err:
|
||||
free(line);
|
||||
return ret;
|
||||
}
|
||||
|
||||
// wait until HermitCore is sucessfully booted
|
||||
|
|
Loading…
Add table
Reference in a new issue