This file contains hidden or 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
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)); |
This file contains hidden or 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
pragma solidity ^0.4.0; | |
contract C { | |
uint storedData; | |
function set(uint x) public { | |
storedData = x; | |
} | |
function get() public constant returns (uint) { |
This file contains hidden or 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
package main | |
import ( | |
"fmt" | |
"math" | |
"os" | |
"strconv" | |
"time" | |
"github.com/fogleman/fauxgl" |
OlderNewer