ん?大場バージョンしか知らない?困るねえそれは、九重ゆみこさんです
よって漢字が思い出せないぞ。
いやあ、世の中、軽自動車とバスの優劣を比べるのが知性あかしなのかあ。
作家の想像力を奪ってくれるなあ。
私はハッカよりもミントのほうが好きだなあ。前田のクラッカーよりも
ココナッツサブレが好きだったなあ。あれを牛乳にいれてべろべろになった
のを食べるのがね。
で、ミントの皆さん。じゃないや、tar xvfz と ./configure と make
su make install の繰り返しの皆様。Hello World も遠い、そう思っている
皆様。
しかし、せっかくLinuxに来たのですから、本丸に行ってみなくちゃいけませ
んよ。「ソースなんて読めないよー」なんて、いけませんよ。
なにも本文を真面目に解読することはないんですよ。面白がるだけなんだから。
レッツゴーMAX(笑い)。
どうせなら、やっぱ/kernel/sys.cでしょう。
/*
* linux/kernel/sys.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*/
おーベイビー、親方のサインがあるぜ。秀樹感激って感じじゃありませんか!
生身の人間が書いたんだからねえ、なにかこう「らしい」ところもあるんで
しょうよ。コピーライトがあるのも注目。「フリー」の意味をしばし考えてと。
#include <linux/config.h>
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/times.h>
#include <linux/utsname.h>
#include <linux/param.h>
#include <linux/resource.h>
#include <linux/signal.h>
#include <linux/string.h>
#include <linux/ptrace.h>
#include <linux/stat.h>
#include <linux/mman.h>
#include <linux/mm.h>
#include <linux/fcntl.h>
#include <linux/acct.h>
#include <linux/tty.h>
#if defined(CONFIG_APM) && defined(CONFIG_APM_POWER_OFF)
#include <linux/apm_bios.h>
#endif
#include <asm/segment.h>
#include <asm/io.h>
いやあ、並んだねえ。stdio.hしか関係ない私には目えまわりそう。
Linux三十三間堂と呼んでおきましょう。
/*
* this indicates whether you can reboot with ctrl-alt-del: the default is yes
*/
int C_A_D = 1;
お?最初に例の三つのキーで再起動するってやつが出て来てる。?こりゃあ、リブート
だけが人生な皆さんへの思いやりなのかな?リブートのないコンピュータが寂しいと
いう。C_A_Dというのは分かりやすいね、この場合。
/*
* Why do these exist? Binary compatibility with some other standard?
* If so, maybe they should be moved into the appropriate arch
* directory.
*/
旦那、んなこと言われても、困るじゃん。こういう独言言いながらやってるのかしら。
/*
* Reboot system call: for obvious reasons only root may call it,
* and even root needs to set up some magic numbers in the registers
* so that some mistake won't make this reboot the whole machine.
* You can also set the meaning of the ctrl-alt-del-key here.
*
* reboot doesn't sync: do that yourself before calling this.
*/
asmlinkage int sys_reboot(int magic, int magic_too, int flag)
{
if (!suser())
return -EPERM;
if (magic != 0xfee1dead || magic_too != 672274793)
return -EINVAL;
if (flag == 0x01234567) {
#ifdef CONFIG_SCSI_GDTH
gdth_halt();
#endif
hard_reset_now();
} else if (flag == 0x89ABCDEF)
C_A_D = 1;
else if (!flag)
C_A_D = 0;
else if (flag == 0xCDEF0123) {
printk(KERN_EMERG "System halted\n");
sys_kill(-1, SIGKILL);
いや、でもね旦那、ルートのみがリブートできるのは何故かというのは、
リブートだけが人生な皆様には必ずしも明白じゃないんでしてね。
おお、最初に出て来たC_A_Dが出て来てますぜ。もしも〜ならばくらいは読める。
それでいいじゃないですか。全然読まなかった昨日よりも。
んで、ずずずいーと下がって行くと…。
/*
* This needs some heavy checking ...
* I just haven't the stomach for it. I also don't fully
* understand sessions/pgrp etc. Let somebody who does explain it.
*
* OK, I think I have the protection semantics right.... this is really
* only important on a multi-user system anyway, to make sure one user
* can't send a signal to a process owned by another. -TYT, 12/12/91
*
* Auch. Had to add the 'did_exec' flag to conform completely to POSIX.
* LBT 04.03.94
*/
なんだ、旦那は梅干しと鰻の蒲焼きでも食ったのか?誰か説明してよって、正直だね
いやはや、知ったか振りで全世界に恥を放送しているひとは見習わなくっちゃいけません。
んで、この -TYTって誰なんですか?通の人は知ってるのかな?私も知りたいねえ、
このキザな言い回しの人。「この印籠が見えぬか」の英訳はこれが使えるのかしら?
私も英語力ないから。
んで、「おっとー」ってPOSIX用になにかした人、LBTってのも誰なんだか。
さあ、ここじゃあこんなもんだね。え?これでおしまいかって?いいじゃないですか。
コメントも立派なソースでしょう!
「趣味:Linuxのソースを読むこと」
をー、かっこいいー!!!
「俺はもっとおもしれーLinuxコメントさん知ってるぞー」
という貴方、我に続け!貴方も今日から「コメントさん」
------------------------
skonishi _at_ dd.iij4u.or.jp
小西慎一
http://www.dd.iij4u.or.jp/~skonishi
『ユンカース・カム・ヒア』上映計画
http://www2s.biglobe.ne.jp/~c-sphere
-------------------------------------
Follow-Ups:
- [fol] Re: コメントさーんTaketoshi Sano
- [fol] Re: コメントさーんTom Kumagai
- [fol] Re: コメントさーんOKUNO Shigekazu
- Prev by Date: [fol] Re: なぜ、LinuxとWindows を比べるの?
- Next by Date: [fol] Re: [Q]RS-232C接続/slattach?
- Previous by thread: [fol] Re: download
- Next by thread: [fol] Re: コメントさーん
- Indexes:[Main][Thread]