java6ean 发表于 2013-1-15 18:55:45

莱昂氏Unix源码

一般下载到的版本,都是如下带行号的,不方便用阅读,附件是去掉行号的版本
去掉行号的命令:
$perl -pi -e "s/^\d+://" *


1500: #
1501: #include "../param.h"
1502: #include "../user.h"
1503: #include "../systm.h"
1504: #include "../proc.h"
1505: #include "../text.h"
1506: #include "../inode.h"
1507: #include "../seg.h"
1508:
1509: #define CLOCK10177546
1510: #define CLOCK20172540
1511: /*
1512:* Icode is the octal bootstrap
1513:* program executed in user mode
1514:* to bring up the system.
1515:*/
1516: int   icode[]
1517: {
1518:         0104413,      /* sys exec; init; initp */
1519:         0000014,
1520:         0000010,
1521:         0000777,      /* br . */
1522:         0000014,      /* initp: init; 0 */
1523:         0000000,
1524:         0062457,      /* init: </etc/init\0> */
1525:         0061564,
1526:         0064457,
1527:         0064556,
1528:         0000164,
1529: };
1530: /* ---------------------------       */
页: [1]
查看完整版本: 莱昂氏Unix源码