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

linux c mkdir´´½¨µÝ¹éĿ¼

#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#define err(msg) perror(msg)
static void mkdirs(const char *dir)
{
        char tmp[1024];
        char *p;
        if (strlen(dir) == 0 || dir == NULL) {
                printf("strlen(dir) is 0 or dir is NULL.\n");
                return;
        }
        memset(tmp, 0, sizeof(tmp));
        strncpy(tmp, dir, strlen(dir));
        if (tmp[0] == '/' && tmp[1]== '/')
                p = strchr(tmp + 2, '/');
        else
                p = strchr(tmp, '/');
        if (p) {
                *p = '\0';
                mkdir(tmp,0777);
  chdir(tmp);
        } else {
                mkdir(tmp,0777);
                chdir(tmp);
                return;
        }
        mkdirs(p + 1);
}
int main(void)
{
       


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨ËÄ£© L2CAP²ã±à³Ì

£¨L2CAPЭÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPЭÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼­Á¬½Ó¿ØÖƺÍÊÊÅäЭÒé (L2CAP) ΪÉϲãЭÒéÌá¹©ÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àЭÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãЭÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......

Moto LinuxÓ¦Óÿª·¢£¨ËÄ£©£ºA1200¹Ù·½SDK

½ñÌìÖÕÓÚÄõ½moto¹Ù·½SDK£¬ÊÇfor A1200µÄ£¬°üÀ¨toolchianºÍEZX¿â¼°Í·Îļþ£¬¸ÃSDKÒ²ÊÊÓÃÓÚmoto E6. °´ÕÕ°²×°Ö¸µ¼Îĵµ°²×°ºÃSDK²¢Ö´Ðнű¾ÉèÖúû·¾³±äÁ¿ºó£¬Ê×ÏÈÊÇbuildÒ»¸ö×î¼òµ¥µÄsample³ÌÐòhello£¬ÒÔÑéÖ¤SDKÊÇ·ñ°²×°ÕýÈ·¡£ÔËÐÐqmakeÈ´³öÏÖÈçÏ´íÎó£º
~/workspace/devtools/moto-sdk/sample/gui/hello$ qmake hello.pro&n ......

Ô¬ÀÏ̸linuxµÄ10Äê·¢Õ¹

 ±¾ÊÀ¼ÍµÚÒ»¸öÊ®Ä꣬¼´½«¹ýÈ¥¡£»Ø¹ËÒÔÍù£¬²ÅÄÜ¿´ÇåÏÖÔÚ£¬ÎÒÓм¸¾ä»°ÒªËµ¡£
      ¼ÇµÃ£¬ÔÚÊ®Äê֮ǰ£¬ÈËÃÇÖ»ÄÜÍæÍæÃÀ¹úºìñµÄ Linux ×ÀÃæ£¨ÌرðÊÇ 6.2 °æ±¾£©£¬ÕûÌì sudo £¨¼´ Super User do £©£¬ÈÎÆ¾¼¤Çé·ºÀÄ¡£µ½ÁË 2001 Äê 1 Ô£¬ Linux 2.4 Õýʽ·¢²¼£¬Ê×´ÎÖ§³Ö USB ºÍÀ¶ÑÀ¼¼Êõ£¬ÒÔ¼° ext ......

Linux tty/pty/pts ¸ÅÄîÇø±ð

tty0£­6ÊÇlinux±¾µØÖÕ¶Ë£¬pts/xÊÇÔ¶³ÌµÇ½ÐèÒªµÄÖÕ¶Ë£¬±ÈÈçijÈËÒªtelnetµ½ÄãµÄ»ú×Ó£¬¾ÍÐèÒªÄãµÄϵͳÓÐpts/x¡£ 
»ù±¾¸ÅÄ
¡¡
¡¡1. tty(ÖÕ¶ËÉ豸µÄͳ³Æ):
¡¡¡¡ttyÒ»´ÊÔ´ÓÚTeletypes£¬»òÕßteletypewriters£¬Ô­À´Ö¸µÄÊǵ紫´ò×Ö»ú£¬ÊÇͨ¹ý´®ÐÐÏßÓôòÓ¡»ú¼üÅÌͨ¹ýÔĶÁºÍ·¢ËÍÐÅÏ¢µÄ¶«Î÷£¬ºóÀ´Õâ¶«Î÷±»¼üÅÌÓëÏÔʾÆ÷È¡´ú ......

4.1. Introduction to Linux Routing


4.1. Introduction to Linux Routing
The design of IP routing allows for very simple route definitions for small networks, while not hindering the flexibility of routing in complex environments. A key concept in IP routing is the ability to define what addresses are locally reachable as oppose ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ