Skip to content

Instantly share code, notes, and snippets.

int netns_switch(char *name)
{
char net_path[PATH_MAX];
int netns;
snprintf(net_path, sizeof(net_path), "%s/%s", NETNS_RUN_DIR, name);
netns = open(net_path, O_RDONLY | O_CLOEXEC);
if (netns < 0) {
fprintf(stderr, "Cannot open network namespace \"%s\": %s\n",
name, strerror(errno));
pragma solidity ^0.4.0;
contract C {
uint storedData;
function set(uint x) public {
storedData = x;
}
function get() public constant returns (uint) {
package main
import (
"fmt"
"math"
"os"
"strconv"
"time"
"github.com/fogleman/fauxgl"