12/03/12 16:45:59.05 .net
>>252
> state_t型っていうのがどこで定義されているのか良くわからなかったのですが、
2.1のことは知らねえけど手元じゃ
/*
* We really need a recursive typedef...
* The following at least guarantees that the return type of (*state_t)()
* is sufficiently wide to hold a function pointer.
*/
typedef long (*state_func_t)(void);
typedef state_func_t (*state_t)(void);
と定義されてる
> この辺って4.4BSDの設計と実装って本を買うと解説してありますか?
そんなところソースレベルで詳しく解説なんてしてない。
シングルユーザーモードの場合は/bin/shを呼び出すためにforkして、
stdin, stdout, stderrを/dev/consoleに接続するぐらいのことしか書いて
ねえはず。