This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2015/08/20-16:10:36.847511] xio_tcp_datapath.c:1753 [ERROR] - partial completion of request due to missing, response buffer | |
[2015/08/20-16:10:36.847559] xio_tcp_datapath.c:1812 [ERROR] - xio_tcp_send_msg failed | |
[2015/08/20-16:10:36.847580] xio_nexus.c:2200 [ERROR] - transport send failed err:1247689306 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 2.8) | |
SET(DynamoRIO_DIR "/home/mitake/dynamorio/exports/cmake") | |
find_package(DynamoRIO) | |
add_library(sample SHARED sample.c) | |
configure_DynamoRIO_client(sample) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
import sys, re | |
def conf_file(path): | |
f = open(path, 'r') | |
res = [] | |
for line in f.readlines(): | |
line = line.replace('vprintf', 'sd_printf') | |
line = line.replace('eprintf', 'sd_eprintf') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% usage: | |
% $ swipl -o party-accounting -c party-accounting.pl | |
% $ ./party-accounting | |
% ?- main. | |
:- use_module(library('clp/bounds')). | |
party_accounting(Nr_manager, Manager_yen, Nr_principle, Principle_yen, Nr_director, Director_yen, Nr_hira, Hira_yen, Total_yen) :- | |
Manager_yen in 0..Total_yen, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// g++ evhttp-multh-thread-httpd.cpp -levent | |
#include <event.h> | |
#include <evhttp.h> | |
#include <pthread.h> | |
#include <errno.h> | |
#include <string.h> | |
#include <fcntl.h> | |
#include <sys/socket.h> | |
#include <sys/types.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#define BUF_NUM 32 | |
#define BUF_LEN 16 | |
static char *format(int val) | |
{ | |
static char buf[BUF_NUM][BUF_LEN]; | |
static int buf_i; |
NewerOlder