$ sudo apt install python-dpkt
あるいは
$ sudo pip install dpkt
などで、dpktがインストールできる
Pythonのコード
$ sudo apt install python-dpkt
あるいは
$ sudo pip install dpkt
などで、dpktがインストールできる
Pythonのコード
| #!/bin/bash -eu | |
| repeats=5 | |
| output_file='/dev/null' | |
| run_tests() { | |
| tmpfile=$(tempfile) | |
| logfile=$(tempfile) | |
| # -------------------------------------------------------------------------- | |
| # Bencehmark loop | |
| # -------------------------------------------------------------------------- |
| #include <stdio.h> | |
| #include <stdarg.h> | |
| void a(int x) { | |
| printf("a-x: %p\n", &x); | |
| } | |
| void b(double x) { | |
| printf("b-x: %p\n", &x); | |
| const char* p = (const char*) &x; |
| #!/bin/bash | |
| PREFIX=/home/sora/install | |
| TARGET_TRIPLET=x86_64-w64-mingw32 | |
| BINUTILS_TARGETS=x86_64-w64-mingw32,i686-w64-mingw32 | |
| HOST_TRIPLET=x86_64-pc-linux-gnu | |
| main(){ | |
| operation="${1:-upgrade}" | |
| case "$operation" in |
| <?php | |
| //define('GENTOO_MIRROR', 'http://ftp.jaist.ac.jp/pub/Linux/Gentoo/'); | |
| define('MIRROR_HOST', 'ftp.jaist.ac.jp'); | |
| define('MIRROR_PORT', 80); | |
| define('MIRROR_DIR', '/pub/Linux/Gentoo/distfiles'); | |
| define('DISTFILES', '/usr/portage/distfiles'); | |
| function main(){ |