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
Sat Jan 31 06:22:30 1970 kern.notice kernel: [ 0.000000] Linux version 4.4.14 (build@7e42c4b42298) (gcc version 5.3.0 (OpenWrt GCC 5.3.0 v1.1.0) ) #3 SMP Tue Feb 14 20:33:07 UTC 2017 | |
Sat Jan 31 06:22:30 1970 kern.info kernel: [ 0.000000] SoC Type: IMG Pistachio SoC (B0) | |
Sat Jan 31 06:22:30 1970 kern.info kernel: [ 0.000000] bootconsole [early0] enabled | |
Sat Jan 31 06:22:30 1970 kern.info kernel: [ 0.000000] CPU0 revision is: 0001a120 (MIPS interAptiv (multi)) | |
Sat Jan 31 06:22:30 1970 kern.info kernel: [ 0.000000] FPU revision is: 0173a000 | |
Sat Jan 31 06:22:30 1970 kern.info kernel: [ 0.000000] MIPS: machine is IMG marduk - Creator Ci40 with ca8210 | |
Sat Jan 31 06:22:30 1970 kern.info kernel: [ 0.000000] Determined physical RAM map: | |
Sat Jan 31 06:22:30 1970 kern.info kernel: [ 0.000000] memory: 10000000 @ 00000000 (usable) | |
Sat Jan 31 06:22:30 1970 kern.info kernel: [ 0.000000] Initrd not found or empty - disabling initrd | |
Sat Jan 31 06:22:30 1970 kern.info kernel: [ 0.000000] Zone ran |
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
#ifndef _DELEGATE_H_ | |
#define _DELEGATE_H_ | |
/** | |
* non specialized template declaration for delegate | |
*/ | |
template <typename T> | |
class delegate; | |
/** |
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
#ifndef DELEGATE_HPP_INCLUDED | |
#define DELEGATE_HPP_INCLUDED | |
#include <functional> | |
#include <vector> | |
// general case | |
template<typename R, typename... Args> | |
class delegate | |
{ |
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
/****************************************************************************** | |
* $Id: $ | |
* $Name: $ | |
* | |
* Author: Pete Goodliffe | |
* | |
* ---------------------------------------------------------------------------- | |
* Copyright 2002 Pete Goodliffe All rights reserved. | |
* | |
* ---------------------------------------------------------------------------- |
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
class Test | |
{ | |
private: | |
struct _constructor_tag { explicit _constructor_tag() = default; }; | |
public: | |
Test(_constructor_tag) {} | |
static unique_ptr<Test> factory() | |
{ |
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
#include <stdio.h> | |
#include <sys/ioctl.h> | |
#include "termios_dbg.h" | |
#define CHECK_BIT(var, pos) ((var) & (1<<(pos))) | |
void ptermios_iflag(struct termios *tty) | |
{ | |
printf("c_iflag=0x%x\n", tty->c_iflag); |
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
#include <stdio.h> | |
#include <sys/ioctl.h> | |
#include "termios_dbg.h" | |
#define CHECK_BIT(var, pos) ((var) & (1<<(pos))) | |
void ptermios_iflag(struct termios *tty) | |
{ | |
printf("c_iflag=0x%x\n", tty->c_iflag); |
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
#include <functional> | |
#include <iostream> | |
namespace { | |
std::function<void(int)> shutdown_handler; | |
void signal_handler(int signal) { shutdown_handler(signal); } | |
} // namespace | |
int main(int argc, char *argv[]) { | |
std::signal(SIGINT, signal_handler); |
NewerOlder