remove old experiments
This commit is contained in:
parent
e936810b39
commit
301358425f
@ -1,23 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
nontapmsg() {
|
||||
echo $*
|
||||
}
|
||||
|
||||
if [ $# -eq 0 ] ; then
|
||||
SRC="*.c"
|
||||
else
|
||||
SRC="$*"
|
||||
fi
|
||||
|
||||
for i in $SRC
|
||||
do
|
||||
BIN=$(echo ${i} | sed "s/.c$/.bin/")
|
||||
if [ ! -f ${BIN} ] || [ $(stat -c "%X" ${BIN}) -lt $(stat -c "%X" ${i}) ]
|
||||
then
|
||||
nontapmsg "compiling ${BIN}"
|
||||
# gcc $BIN.c ./lib/*.o -o $BIN -I../src -I ./lib/ -L../ -L./lib/ -lipc -Wall -g -Wextra
|
||||
gcc -Wall -g -Wextra "${i}" -o "${BIN}" -I../src -L../ ../src/ipc.h -lipc
|
||||
touch "${BIN}"
|
||||
fi
|
||||
done
|
@ -1,27 +0,0 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <arpa/inet.h>
|
||||
|
||||
#include "../src/ipc.h"
|
||||
|
||||
int main(int argc, char * argv[])
|
||||
{
|
||||
SECURE_BUFFER_DECLARATION (char, buffer, 4096);
|
||||
uint32_t msize = 0;
|
||||
char *message = "coucou";
|
||||
|
||||
if (argc == 2) {
|
||||
message = argv[1];
|
||||
}
|
||||
|
||||
msize = ipc_message_raw_serialize (buffer, 2, 42, message, strlen(message));
|
||||
write (1, buffer, msize);
|
||||
fflush (stdout);
|
||||
|
||||
// to wait for a response
|
||||
sleep (1);
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
#!/usr/bin/perl -w
|
||||
use v5.14;
|
||||
|
||||
while(<>) {
|
||||
chomp;
|
||||
my @wl = split "_\+";
|
||||
my @wl2 = map { ucfirst lc } @wl;
|
||||
say join "", @wl2;
|
||||
}
|
Reference in New Issue
Block a user