Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Linux 0.11 ϵͳµ÷ÓÃÔ­Àí


    Ò»¡¢¸ÅÊö
    ÏµÍ³µ÷ÓÃÊÇÒ»¸öÈíÖжϣ¬ÖжϺÅÊÇ0x80£¬ËüÊÇÉϲãÓ¦ÓóÌÐòÓëLinuxϵͳÄں˽øÐн»»¥Í¨ÐŵÄΨһ½Ó¿Ú¡£Í¨¹ýint 0x80£¬¾Í¿ÉʹÓÃÄÚºË×ÊÔ´¡£²»¹ý£¬Í¨³£Ó¦ÓóÌÐò¶¼ÊÇʹÓþßÓбê×¼½Ó¿Ú¶¨ÒåµÄCº¯Êý¿â¼ä½ÓµÄʹÓÃÄں˵Äϵͳµ÷Ó㬼´Ó¦ÓóÌÐòµ÷ÓÃCº¯Êý¿âÖеĺ¯Êý£¬Cº¯Êý¿âÖÐÔÙͨ¹ýint 0x80½øÐÐϵͳµ÷Óá£
    ËùÒÔ£¬ÏµÍ³µ÷Óùý³ÌÊÇÕâÑùµÄ£º
    Ó¦ÓóÌÐòµ÷ÓÃlibcÖеĺ¯Êý£­>libcÖеĺ¯ÊýÒýÓÃϵͳµ÷Óú꣭>ϵͳµ÷ÓúêÖÐʹÓÃint 0x80Íê³Éϵͳµ÷Óò¢·µ»Ø¡£
    ¶þ¡¢Ïà¹ØµÄÊý¾Ý½á¹¹
     ÔÚ˵¾ßÌåµÄµ÷Óùý³Ì֮ǰ£¬ÕâÀïÏÈҪ˵¼¸¸öÊý¾Ý½á¹¹¡£
    1£©ÏµÍ³µ÷Óú¯Êý±í
    ÏµÍ³µ÷Óú¯Êý±ísys_call_tableÊÇÔÚsys.hÖж¨ÒåµÄ£¬ËüÊÇÒ»¸öº¯ÊýÖ¸ÕëÊý×飬ÿ¸öÔªËØÊÇÒ»¸öº¯ÊýÖ¸Õ룬ËüµÄÖµÊǸ÷¸öϵͳÌṩµÄ¹©Éϲãµ÷ÓõÄϵͳº¯ÊýµÄÈë¿ÚµØÖ·¡£Ò²¾ÍÊÇ˵ͨ¹ýÕâ¸ö±í¾Í¿ÉÒÔµ÷Óø÷¸öϵͳº¯Êý¡£
    2£©º¯ÊýÖ¸ÕëÆ«Òƺê
    ÕâÊÇһϵÁк꣬ËüÃǵĶ¨ÒåÔÚunistd.hÖУ¬»ù±¾ÐÎʽΪ££define _NR_name value£¬nameΪϵͳº¯ÊýÃû×Ö£¬valueÊÇÒ»¸öÕûÊýÖµ£¬ÊÇnameËù¶ÔÓ¦µÄϵͳº¯ÊýÖ¸ÕëÔÚsys_call_tableÖеÄÆ«ÒÆÁ¿¡£
    3£©ÏµÍ³µ÷Óúê
    ÏµÍ³µ÷Óúê_syscalln(type,name)ÔÚÄں˵Äunistd.hÎļþÖж¨ÒåµÄ£¬¶ÔËüÕ¹¿ª¾ÍÊÇ£º
                        type name£¨²ÎÊýÁÐ±í£©
                        {
                              µ÷Óùý³Ì£»
                        }£»
    ÆäÖУ¬nΪ²ÎÊý¸öÊý£¬typeΪº¯Êý·µ»ØÖµÀàÐÍ£¬nameΪËùÒªµ÷ÓõÄϵͳº¯ÊýµÄÃû×Ö¡£ÔÚunistd.hÖ


Ïà¹ØÎĵµ£º

linuxÅäÖÃÍøÂçÁ¬½Ó

linuxÍøÂçÁ¬½ÓÅäÖÃͨ¹ýÃüÁîifconfigÀ´Íê³É£¬Ò²¾ÍÊÇinterface configuration¡£
£¡£¡ÓÑÇéÌáÐÑ£ºÏÂÃæÓõÄÃüÁîÓÐЩÐèÒªrootȨÏÞ
²é¿´ÍøÂçÁ¬½Ó
    ifconfig
    eth0      Link encap:ÒÔÌ«Íø  Ó²¼þµØÖ· 00:e0:61:02:af:ba 
    &n ......

Linuxϵͳµ÷ÓÃÁбí

±¾ÎÄÁгöÁ˴󲿷ֳ£¼ûµÄLinuxϵͳµ÷Ó㬲¢¸½ÓмòÒªÖÐÎÄ˵Ã÷¡£ ÒÔÏÂÊÇLinuxϵͳµ÷ÓõÄÒ»¸öÁÐ±í£¬°üº¬Á˴󲿷ֳ£ÓÃϵͳµ÷ÓúÍÓÉϵͳµ÷ÓÃÅÉÉú³öµÄµÄº¯Êý¡£Õâ¿ÉÄÜÊÇÄãÔÚ»¥ÁªÍøÉÏËùÄÜ¿´µ½µÄΨһһƪÖÐÎÄ×¢Ê͵ÄLinuxϵͳµ÷ÓÃÁÐ±í£¬¼´Ê¹ÊǼòµ¥µÄ×ÖĸÐòÓ¢ÎÄÁÐ±í£¬ÄÜ×öµ½ÕâôÍêÈ«Ò²ÊǺܺ±¼ûµÄ¡£ °´ÕÕ¹ßÀý£¬Õâ¸öÁбíÒÔman pagesµÚ2½ ......

linux redhat4+oracle10g

ÔÚÐéÄâ»úRed Hat Enterprise Linux 4 update 4Öа²×°oracle 10.2.0.1
1)²é¿´ÏµÍ³ÄÚ´æ
[root@linux4 ~]# grep MemTotal /proc/meminfo
2)²é¿´½»»»Çø´óС
[root@linux4 ~]# grep SwapTotal /proc/meminfo
3)
²é¿´/tmpĿ¼´óС
[root@linux4 ~]# df -m /tmp
4)²é¿´²Ù×÷ϵͳ°æ±¾
[root@linux4 ~]# cat /etc/issue
5)¼ ......

LinuxÇý¶¯³ÌÐòÈëÃÅ—Hello World


LinuxÇý¶¯³ÌÐòÈëÃÅ—Hello World
À´Ô´:
ChinaUnix²©¿Í ¡¡ÈÕÆÚ£º
2009.11.19 21:17¡¡(¹²ÓÐ0
ÌõÆÀÂÛ) ÎÒÒªÆÀÂÛ
 
1¡¢ÒýÑÔ
    ¼ÇµÃÔÚѧϰVC++ºÍCÓïÑÔµÄʱºò£¬Ò»¿ªÊ¼¶¼»áÒÔÒ»¸öHELLO
WORLDµÄÀý×Ó×÷ΪÑÝʾ£¬½«Ñ§ÕßÖð½¥ÒýÈëµîÌã¬Õâ¸ö¼¸ºõ³ÉÁ˼ÆËã»ú±à³ÌÓïÑÔѧϰ±Ø¾­µÄÒ»¸öÈëÃÅ֮·¡£
  ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ