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

LinuxÖеÄÑÓʱº¯Êý¼°»ñȡϵͳʱ¼äº¯Êý

Ó¦Óò㣺
   #include <unistd.h>
 
   1¡¢unsigned int sleep(unsigned int seconds); Ã뼶
   2¡¢int usleep(useconds_t usec);              ΢Ã뼶£º1/10^-6 
 
   #define _POSIX_C_SOURCE 199309
   #include <a(const struct timespec *req, struct timespec *rem);
       struct timespec {
                  time_t tv_sec;        /* seconds */
                  long   tv_nsec;       /* nanoseconds */
              };
       // The value of the nanoseconds field must be in the range 0 to 999999999.
 
 Äں˲㣺
   include <linux/delay.h>
   1¡¢void ndelay(unsigned long nsecs);         ÄÉÃ뼶£º1/10^-10
   2¡¢void udelay(unsigned long usecs);         ΢Ã뼶: 1/10^-6
   3¡¢void mdelay(unsigned long msecs);         ºÁÃ뼶£º1/10^-3
 
 
linuxÏ»ñȡʱ¼äµÄÈô¸Éº¯Êý(z)
 
 
asctime£¨½«Ê±¼äºÍÈÕÆÚÒÔ×Ö·û´®¸ñʽ±íʾ£©
 
Ïà¹Øº¯Êý
time£¬ctime£¬gmtime£¬localtime
±íÍ·Îļþ
#include<time.h>
¶¨Ò庯Êý
char * asctime(const struct tm * timeptr);
º¯Êý˵Ã÷
asctime()½«²ÎÊýtimeptrËùÖ¸µÄtm½á¹¹ÖеÄÐÅϢת»»³ÉÕæʵÊÀ½çËùʹÓõÄʱ¼äÈÕÆÚ±íʾ·½·¨£¬È»ºó½«½á¹ûÒÔ×Ö·û´®ÐÎ̬·µ»Ø¡£´Ëº¯ÊýÒѾ­ÓÉʱÇøת»»³Éµ±µØʱ¼ä£¬×Ö·û´®¸ñʽΪ:“Wed Jun 30 21:49:08 1993\n”
·µ»ØÖµ
ÈôÔÙµ÷ÓÃÏà¹ØµÄʱ¼äÈÕÆÚº¯Êý£¬´Ë×Ö·û´®¿ÉÄܻᱻÆÆ»µ¡£´Ëº¯ÊýÓëctime²»Í¬´¦ÔÚÓÚ´«ÈëµÄ²ÎÊýÊDz»Í¬µÄ½á¹¹¡£
¸½¼Ó˵Ã÷
·µ»ØÒ»×Ö


Ïà¹ØÎĵµ£º

ʵս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ÃüÁîÏê½â

linuxµÄÃüÁîÏê½â
cat cd 
chmod chown 
cp cut 
Ãû³Æ£ºcat 
ʹÓÃȨÏÞ£ºËùÓÐʹÓÃÕß 
ʹÓ÷½Ê½£ºcat [-abeensttuv] [--help] [--version] filename 
˵Ã÷£º°Ñµµ°¸´®Á¬½Óºó´«µ½»ù±¾Êä³ö£¨Ó©Ä»»ò¼Ó > filename µ½ÁíÒ»¸öµµ°¸£©  ......

linux»·¾³±äÁ¿²Ù×÷


ÔÚlinuxϵͳÏ£¬Èç¹ûÄãÏÂÔز¢°²×°ÁËÓ¦ÓóÌÐò£¬ºÜÓпÉÄÜÔÚ¼üÈëËüµÄÃû³Æʱ³öÏÖ“command not found”µÄÌáʾÄÚÈÝ¡£Èç¹ûÿ´Î¶¼µ½°²×°Ä¿±êÎļþ¼ÐÄÚ£¬ÕÒµ½¿ÉÖ´ÐÐÎļþÀ´½øÐвÙ×÷¾ÍÌ«·±ËöÁË¡£ÕâÉæ¼°µ½»·¾³±äÁ¿PATHµÄÉèÖÃÎÊÌ⣬¶øPATHµÄÉèÖÃÒ²ÊÇÔÚlinux϶¨ÖÆ»·¾³±äÁ¿µÄÒ»¸ö×é³É²¿·Ö¡£±¾ÎÄ»ùÓÚRedHat 9.0£¬Ïêϸ½²½âÁË»·¾ ......

linuxÉ豸Îļþϵͳsysfs½éÉÜ

      linuxÏÂÓÐרÃŵÄÎļþϵͳÓÃÀ´¶ÔÉ豸½øÐйÜÀí£¬devfsºÍsysfs¾ÍÊÇÆäÖÐÁ½ÖÖ¡£
1£¬devfs£ºdevfsÊÇÔÚ2.4Äں˾ͳöÏÖÁË£¬ËüÊÇÓÃÀ´½â¾ölinuxÖÐÉ豸¹ÜÀí»ìÂÒµÄÎÊÌ⣬linuxÄں˿ª·¢ÈËÔ±¿ª·¢ÁËdevfs¡£
2£¬sysfs£ºÊÇLinux ÄÚºËÖÐÉè¼Æ½ÏеÄÒ»ÖÖÐéÄâµÄ»ùÓÚÄÚ´æµÄÎļþϵͳ£¬ËüµÄ×÷ÓÃÓëproc ÓÐЩÀàËÆ£¬µ« ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ