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

linux ƽ̨µÝ¹é¶ÁÈ¡¶ÁÈ¡ËùÓÐÎļþ¼ÐºÍÎļþÃû³Æ

 #include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<sys/stat.h>
#include<fcntl.h>
#include<sys/types.h>
#include<dirent.h>
#define MAX 1024
char path[100];
char *strmin(char *des,const char *min)
{
 int i=strlen(des);
 int j=strlen(min);
 if(i>=j)
 {
  strncpy(des+i-j,"\0",1);
 }
 return des;
}
void print(char *path,char *tmpname)
{
 struct stat buf;
 if(stat(path,&buf)<0)
 {
  printf("stat error!\n");
  return;
 }
 struct dirent *filename;
 if(S_ISDIR(buf.st_mode))
 {
  
  
  DIR *dp;
  
  dp=opendir(path);
  while(1)
  {
   filename=readdir(dp);
   if(filename == NULL)
   {
    strmin(path,tmpname);
    closedir(dp);
    return ;
   }
   else
   {
    if(strcmp(filename->d_name,".")==0 ||strcmp(filename->d_name,"..")==0)
    continue;
    printf("%s\n",filename->d_name);
    strcat(path,"/");
    strcat(path,filename->d_name);
    print(path,filename->d_name);
    strmin(path,"/");
   }
  }
 }
 else
 {
  int fd;
  fd=open(path,O_RDWR);
  char buf[MAX];
  int size;
  
  while(1)
  {
   size=read(fd,buf,MAX); 
   if(size==0)
   {
    close(fd);
    break;
   }
  }
 
  strmin(path,tmpname);
 
  
 }
}
int


Ïà¹ØÎĵµ£º

ʵս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Îļþ²éÕÒÃüÁîfind,xargsÏêÊö

תÌùµØÖ·£ºhttp://www.linuxsir.org/main/?q=node/137
×ܽ᣺
zhy2111314
À´×Ô£º
LinuxSir.Org
ÕûÀí£º
±±ÄÏÄϱ±
ͻ񻣼
±¾ÎÄÊÇfind ÃüÁîµÄÏêϸ˵Ã÷£¬¿É¹óµÄÊÇÕë¶Ô²ÎÊý¾ÙÁ˺ܶàµÄʵÀý£¬´óÁ¿µÄÀýÖ¤£¬ÈóõѧÕ߸üΪÈÝÒ×Àí½â£»±¾ÎÄÊÇzhyflyÐÖÌùÔÚÂÛ̳ÖУ»ÎÒ¶Ô±¾ÎĽøÐÐÁËÔÙ´ÎÕûÀí£¬Îª·½±ã´ó¼ÒÔĶÁ£»
Ŀ¼
°æȨÉùÃ÷
Ç° ......

LinuxÍø¹Ü±Ê¼Ç£¨£±£µ£©£ºÓëLinuxÏà¹ØµÄ½Ó¿Ú²âÊÔ

  ΪÁËÍ»³ö½²½âµÄ·½±ãÐÔ£¬ÎÒ°ÑÒÔÇ°¹¤×÷ÖÐÕä²ØµÄһЩʵÑé¹ý³Ì¹±Ï׸ø´ó¼Ò¡££¨Î´¾­ÔÊÐí£¬ÇëÎðתÔØ£© Ò»£®ÊµÑéÄ¿µÄ 1. Á˽âLinux²Ù×÷ϵͳµÄÆô¶¯ÓëµÇ¼·½·¨ 2. ÕÆÎÕ³£ÓÃRed Hat LinuxÃüÁîµÄʹÓ÷½·¨£¬ÕÆÎÕͼÐÎÓû§½çÃæϵĻù±¾²Ù×÷ 3. Á˽âLinuxÃüÁîÖвÎÊýÑ¡ÏîµÄÓ÷¨ºÍ×÷Óà 4. ÊìϤ²Ù×÷ϵͳµÄÃüÁî½Ó¿Ú¡¢Í¼ÐÎ ......

linuxÏÂddnsʵÏÖ¶¯Ì¬dnsʵÏÖÓòÃû½âÎö(תÔر¸Íü)

ºÇºÇÒ»Ö±Ò»À´ÔÚWINDOWSÏÂÓл¨Éú¿ÇµÈÖÚ¶àµÄDDNSÈí¼þʵÏÖ¶¯Ì¬ÓòÃû½âÎö¡£µ«¶¼ÊÇÔÚWINDOWSϵġ£
½ñÌìÕÒµ½ÁËÒ»¸ö½ðÍòά¹«Ë¾ÌṩµÄÃâ·ÑDDNS·þÎñ¡£Ö÷ÒªÊÇÌṩÓÐLINUXϵݲװ¿Í»§¶Ë 
°²×°·½·¨£ºµÃµ½½ðÍòάgnhostlinux¶¯Ì¬ÓòÃûLinux/UnixÏ¿ͻ§¶ËÈí¼þ
wget http://www.gnway.com/download/gnhostlinux1.2.6.tgz 
......

linux¶¨Ê±Æ÷

 
¼ò½é
ÕâƪÎÄÕÂÖ÷Òª¼Ç¼ÎÒÔÚÊÔͼ½â¾öÈçºÎ¾¡¿ÉÄܾ«È·µØÔÚij¸öÌض¨µÄʱ¼ä¼ä¸ôÖ´ÐÐijÏî¾ßÌåÈÎÎñʱµÄ˼·Àú³Ì£¬²¢ÔÚºóÆÚ¶ÔÏà¹ØµÄAPI½øÐеĹéÄɺÍ×ܽᣬÒÔ±¸²Î¿¼¡£
ÎÊÌâÒý³ö
ºÜ¶àʱºò£¬ÎÒÃÇ»áÓÐÀàËƓÿ¸ô¶à³¤Ê±¼äÖ´ÐÐijÏîÈÎÎñ
”µÄÐèÇó£¬Õ§¿´Õâ¸öÎÊÌâ²¢²»Äѽâ¾ö£¬ÊµÔò²¢²»ÈÝÒ×£¬ÓкܶàÒþº¬Ìõ¼þÐèÒª¿¼ÂÇ£¬Ö ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ