地方エンジニアの学習日記

興味ある技術の雑なメモだったりを書いてくブログ。たまに日記とガジェット紹介。

2019-05-06から1日間の記事一覧

【k8s】masterで動いてるpod

k8s

etcd クラスタ内のさまざまなデータを保存している一貫性のある高可用性のKVS kube-apiserver クラスタに対する全ての操作を司るAPIサーバー 認証や認可の処理なども行う kube-scheduler PodのNodeへの割り当てを行うスケジューラー Podを配置するNodeの選択…

【C】pread(2)/pwrite(2)

C

指定したオフセットでファイルディスクリプターを読み書きするpread(2)/pwrite(2)を使ったサンプルコード #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <sys/stat.h> #include <sys/types.h> #include <assert.h> int main(int argc, char **argv) { char c; int fd, ret; fd = open("test.txt", O_R</assert.h></sys/types.h></sys/stat.h></fcntl.h></unistd.h></stdio.h>…

【C】pread(2)/pwrite(2)

C

指定したオフセットでファイルディスクリプターを読み書きするpread(2)/pwrite(2)を使ったサンプルコード #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <sys/stat.h> #include <sys/types.h> #include <assert.h> int main(int argc, char **argv) { char c; int fd, ret; fd = open("test.txt", O_R</assert.h></sys/types.h></sys/stat.h></fcntl.h></unistd.h></stdio.h>…