$ sudo ./check_smartctl_health
ok: all devices healthy (20 total)
$ echo $?
0
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
dave - m1book darwin ~/dev/sm64 (git:master) $ gmake VERSION=us -j1 | |
==== Build Options ==== | |
Version: us | |
Microcode: f3d_old | |
Target: sm64.us | |
Compare ROM: yes | |
Build Matching: yes | |
======================= | |
Building general tools... | |
Building sm64tools... |
$ ./bash-background
forked sleep in the background as pid 42335
program is running
waiting for pid 42335...
sleep exited with code 0
program has exited
$ ./list-disks
sd43 PBK6S6DX /dev/rdsk/c11t5000CCA03BB55F69d0s0
sd44 PBK3YTZX /dev/rdsk/c11t5000CCA03BB04E0Dd0s0
sd45 PBHNTVDX /dev/rdsk/c11t5000CCA03B5E30DDd0s0
sd46 PBK6DUKX /dev/rdsk/c11t5000CCA03BB4C385d0s0
sd47 PBK67YGX /dev/rdsk/c11t5000CCA03BB47A55d0s0
sd48 PBHP4V9X /dev/rdsk/c11t5000CCA03B5ED5FDd0s0
sd49 PBHMRA6X /dev/rdsk/c11t5000CCA03B5C3981d0s0
sd50 PBK3K0PX /dev/rdsk/c11t5000CCA03BAF8E19d0s0
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 <err.h> | |
#include <fcntl.h> | |
#include <pthread.h> | |
#include <stdbool.h> | |
#include <stdio.h> | |
#include <unistd.h> | |
#include <sys/epoll.h> | |
#include <sys/eventfd.h> | |
void write_to_event_fd(int event_fd) { |
See the block comment in eventfd-test.c
for more information:
cc eventfd-test.c -lpthread -o eventfd-test
./eventfd-test
Example output on hardware virtalized Linux:
$ ./eventfd-test
iterations: 5
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
[package] | |
name = "tokio-test" | |
version = "0.1.0" | |
edition = "2021" | |
[dependencies] | |
tokio = { version = "1.17.0", features = ["full"] } |
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
dave - jackett linux ~ $ strace -f ./rustup-init | |
execve("./rustup-init", ["./rustup-init"], 0x7fffffeff208 /* 47 vars */) = 0 | |
brk(NULL) = 0x1000 | |
uname({sysname="Linux", nodename="jackett.rapture.com", ...}) = 0 | |
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) | |
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) | |
openat(AT_FDCWD, "/usr/lib64/tls/x86_64/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) | |
stat("/usr/lib64/tls/x86_64", 0x7fffffefe2f0) = -1 ENOENT (No such file or directory) | |
openat(AT_FDCWD, "/usr/lib64/tls/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) | |
stat("/usr/lib64/tls", 0x7fffffefe2f0) = -1 ENOENT (No such file or directory) |
NewerOlder