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

Linux³ÌÐòÉè¼Æ——ÓÃgetopt´¦ÀíÃüÁîÐвÎÊý

LinuxϺܶà³ÌÐòÉõÖÁÄÇЩ¾ßÓÐͼÐÎÓû§½çÃ棨graphical user interface£¬GUI£©µÄ³ÌÐò£¬¶¼ÄܽÓÊܺʹ¦ÀíÃüÁîÐÐÑ¡Ïî¡£¶ÔÓÚijЩ³ÌÐò£¬ÕâÊÇÓëÓû§½øÐн»»¥µÄÖ÷ÒªÊֶΡ£¾ßÓпɿ¿µÄ¸´ÔÓÃüÁîÐвÎÊý´¦Àí»úÖÆ£¬»áʹµÃÄúµÄÓ¦ÓóÌÐò¸üºÃ¡¢¸üÓÐÓá£getopt()ÊÇÒ»¸öרÃÅÉè¼ÆÀ´¼õÇáÃüÁîÐд¦Àí¸ºµ£µÄ¿âº¯Êý¡£
1¡¢ÃüÁîÐвÎÊý
ÃüÁîÐгÌÐòÉè¼ÆµÄÊ×ÒªÈÎÎñÊǽâÎöÃüÁîÐвÎÊý£¬GUIÅɵijÌÐòÔ±ºÜÉÙ¹ØÐÄÕâ¸ö¡£ÕâÀ¶Ô²ÎÊý²ÉÓÃÁËÒ»ÖֱȽÏͨË׵Ķ¨Ò壺ÃüÁîÐÐÉϳýÃüÁîÃûÖ®ÍâµÄ×Ö·û´®¡£²ÎÊýÓɶàÏî¹¹³É£¬ÏîÓëÏîÖ®¼äÓÿհ׷û±Ë´Ë¸ô¿ª¡£
²ÎÊý½øÒ»²½·ÖΪѡÏîºÍ²Ù×÷Êý¡£Ñ¡ÏîÓÃÓÚÐ޸ijÌÐòµÄĬÈÏÐÐΪ»òΪ³ÌÐòÌṩÐÅÏ¢£¬±È½ÏÀϵÄÔ¼¶¨ÊÇÒԶ̻®Ïß¿ªÍ·¡£Ñ¡Ïîºó¿ÉÒÔ¸úËæһЩ²ÎÊý£¬³ÆΪѡÏî²ÎÊý¡£Ê£ÏµľÍÊDzÙ×÷ÊýÁË¡£
2¡¢POSIXÔ¼¶¨
POSIX±íʾ¿ÉÒÆÖ²²Ù×÷ϵͳ½Ó¿Ú£º Portable Operating System Interface£¬µçÆøºÍµç×Ó¹¤³ÌʦЭ»á£¨Institute of Electrical and Electronics Engineers£¬IEEE£©×î³õ¿ª·¢ POSIX ±ê×¼£¬ÊÇΪÁËÌá¸ß UNIX »·¾³ÏÂÓ¦ÓóÌÐòµÄ¿ÉÒÆÖ²ÐÔ¡£È»¶ø£¬POSIX ²¢²»¾ÖÏÞÓÚ UNIX¡£Ðí¶àÆäËüµÄ²Ù×÷ϵͳ£¬ÀýÈç DEC OpenVMS ºÍ Microsoft Windows NT£¬¶¼Ö§³Ö POSIX ±ê×¼¡£
ÏÂÃæÊÇPOSIX±ê×¼ÖйØÓÚ³ÌÐòÃû¡¢²ÎÊýµÄÔ¼¶¨£º
³ÌÐòÃû²»ÒËÉÙÓÚ2¸ö×Ö·ûÇÒ²»¶àÓÚ9¸ö×Ö·û£»
³ÌÐòÃûÓ¦Ö»°üº¬Ð¡Ð´×ÖĸºÍ°¢À­²®Êý×Ö£»
Ñ¡ÏîÃûÓ¦¸ÃÊǵ¥×Ö·û»îµ¥Êý×Ö£¬ÇÒÒԶ̺á‘-‘Ϊǰ綴£»
¶à¸ö²»ÐèҪѡÏî²ÎÊýµÄÑ¡Ï¿ÉÒԺϲ¢¡££¨Æ©È磺foo -a -b -c ---->foo -abc£©
Ñ¡ÏîÓëÆä²ÎÊýÖ®¼äÓÿհ׷û¸ô¿ª£»
Ñ¡Ïî²ÎÊý²»¿ÉÑ¡¡£
ÈôÑ¡Ïî²ÎÊýÓжàÖµ£¬Òª½«Æ䲢Ϊһ¸ö×Ö´®´«½øÀ´¡£Æ©È磺myprog -u "arnold,joe,jane"¡£ÕâÖÖÇé¿öÏ£¬ÐèÒª×Ô¼º½â¾öÕâЩ²ÎÊýµÄ·ÖÀëÎÊÌâ¡£
Ñ¡ÏîÓ¦¸ÃÔÚ²Ù×÷Êý³öÏÖ֮ǰ³öÏÖ¡£
ÌØÊâ²ÎÊý‘--'Ö¸Ã÷ËùÓвÎÊý¶¼½áÊøÁË£¬ÆäºóÈκβÎÊý¶¼ÈÏΪÊDzÙ×÷Êý¡£
Ñ¡ÏîÈçºÎÅÅÁÐûÓÐʲô¹Øϵ£¬µ«¶Ô»¥ÏàÅųâµÄÑ¡ÏÈç¹ûÒ»¸öÑ¡ÏîµÄ²Ù×÷½á¹û¸²¸ÇÆäËûÑ¡ÏîµÄ²Ù×÷½á¹ûʱ£¬×îºóÒ»¸öÑ¡ÏîÆð×÷Óã»Èç¹ûÑ¡ÏîÖظ´£¬Ôò˳Ðò´¦Àí¡£
ÔÊÐí²Ù×÷ÊýµÄ˳ÐòÓ°Ïì³ÌÐòÐÐΪ£¬µ«ÐèÒª×÷ÎĵµËµÃ÷¡£
¶Áдָ¶¨ÎļþµÄ³ÌÐòÓ¦¸Ã½«µ¥¸ö²ÎÊý'-'×÷ΪÓÐÒâÒåµÄ±ê×¼ÊäÈë»òÊä³öÀ´¶Ô´ý¡£
3¡¢GNU³¤Ñ¡Ïî
GNU¹ÄÀø³ÌÐòԱʹÓÃ--help¡¢--verboseµÈÐÎʽµÄ³¤Ñ¡Ïî¡£ÕâЩѡÏî²»½ö²»ÓëPOSIXÔ¼¶¨³åÍ»£¬¶øÇÒÈÝÒ×¼ÇÒ䣬ÁíÍâÒ²ÌṩÁËÔÚËùÓÐGNU¹¤¾ßÖ®¼ä±£³ÖÒ»ÖÂÐԵĻú»á¡£GNU³¤Ñ¡ÏîÓÐ×Ô¼ºµÄÔ¼¶¨£º
¶ÔÓÚÒѾ­×ñÑ­POSIXÔ¼¶¨µÄGNU³ÌÐò£¬Ã¿¸ö¶ÌÑ


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨Èý£© HCI²ã±à³Ì

1. HCI²ãЭÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI)  ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈЭÒé ......

ʵսLinux Bluetooth±à³Ì (Æß) SDPЭÒé

Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖЭÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀЭÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......

LinuxÉ豸ģÐÍÖ®input×ÓϵͳÏê½â

Ò»£ºÇ°ÑÔ
×î½üÔÚÑо¿androidµÄsensor driver£¬Ö÷ÒªÊÇE-compass£¬ÆäÖÐÓõ½ÁËLinux input×Óϵͳ.ÔÚÍøÉÏÒ²¿´Á˺ܶàÕâ·½ÃæµÄ×ÊÁÏ£¬¸Ð¾õ»¹ÊÇÕâƪ·ÖÎöµÄ±È½ÏϸÖÂ͸³¹£¬Òò´ËתÔØÒ»ÏÂÒÔ±ã×Ô¼ºÑ§Ï°£¬Í¬Ê±ºÍ´ó¼Ò·ÖÏí£¡
£¨Õâƪ²©¿ÍÖ÷ÒªÊÇÒÔ¼üÅÌÇý¶¯ÎªÀýµÄ£¬²»¹ý½²½âµÄÊÇLinux Input Subsystem£¬¿ÉÒÔ×ÐϸµÄÑо¿Ò»Ï£¡£©
¼üÅÌÇý¶¯½«¼ì ......

linuxÏ°²×°mysql °¢ Ìì µÄ

×î½üÏëÔÚ·þÎñÆ÷ÉÏÊÔÊÔMySQL5.1µÄ·ÖÇø£¬ÓÚÊǾÍÏë×Å×°¸öMySQL5.1£¬¾­¹ýÍ´¿àµÄÒ»¶Î¾­Àúºó£¬ÖÕÓÚÕÒ¸öÏÂÃæ×°¸öºÜºÃµÄ½Ì³Ì£¬ÌûÉÏÀ´±¸Íü¡£
1¡¢MySQLÃâ°²×°°æ/¶þ½øÖÆ°æÈí¼þ£¬²»ÓñàÒ룬ÏÂÔصØÖ·£º
     http://dev.mysql.com/downloads/
     Îļþ¸ñʽ£ºMYSQL-VERSION-OS.tar.gz
2¡ ......

linuxÄÚºËÖÐÖжϲ»ÄÜ˯ÃßµÄÔ­Òò[zt]

ÏÈ°ÑÖжϴ¦ÀíÁ÷³Ì¸ø³öÀ´
1.½øÈëÖжϴ¦Àí³ÌÐò--->2.±£´æ¹Ø¼üÉÏÏÂÎÄ---->3.¿ªÖжϣ¨stiÖ¸Á--->4.½øÈëÖжϴ¦Àí³ÌÐòµÄhandler--->5.¹ØÖжϣ¨cliÖ¸Á---->6.дEOI¼Ä´æÆ÷£¨±íʾÖжϴ¦ÀíÍê³É£©---->7.¿ªÖжϡ£
Ó²Öжϣº
¶ÔÓ¦ÓÚÉÏͼµÄ1¡¢2¡¢3²½Ö裬ÔÚÕ⼸¸ö²½ÖèÖУ¬ËùÓÐÖжÏÊDZ»ÆÁ±ÎµÄ£¬Èç¹ûÔÚÕâ¸öʱºò˯ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ