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)
{
 
Ïà¹ØÎĵµ£º
Boss˵£¬Òª¿´OpenGL£¬¿´ÁË¿ìÒ»¸öÔ£¬×ÜËã³öÁ˸öÏñÑùµÄ¶«Î÷£¬ÓÃCдÁ˸ö3DÃÔ¹¬£¬
ËäȻֻÓÐ350ÐÐ
´úÂ룬²»¹ý±ßѧ±ßд£¬×ã×ãдÁËÒ»ÖÜʱ¼ä£¬»¹ÊÇСÓгɾ͸е쬻î»î»î£¡
&n ......
1) ÎļþÃüÃûµÄ¹æÔò²»Í¬
WindowsϵͳÏÂÎļþÃû²»Çø·Ö´óСд£¬ÎļþÃûÖв»Äܰüº¬[/£¬\£¬<£¬>£¬|£¬”£¬:£¬*£¬?]µÈ×Ö·û¡£UnixϵͳÏÂÎļþÃûÇø·Ö´óСд£¬ÎļþÃûÖпÉÒÔʹÓÃתÒå·û[\]À´´¦ÀíÌØÊâ×Ö·û[\£¬<£¬>£¬|£¬”£¬:£¬*£¬?]£¬Î¨Ò»²»ÔÊÐíµÄÊDZíʾ·¾¶µÄ×Ö·û[/]¡£
2) Îı¾ÎļþµÄ»»ÐÐ ......
Æô¶¯94,95µÄnfs·þÎñ
·½·¨Ò»:µ½/etc/init.d/ÖÐÔËÐÐ ./nfs start
µ½/etc/rc.d/rc3.d²ì¿´¿ØÖÆÌ¨·þÎñ(K×Öĸ¿ªÍ·µÄ»°ÎªÎ´Æô¶¯,SΪÆô¶¯,Ö±½Ó¸ÄÃû×ÖÒ²¿ÉÒÔ½«·þÎñÆô¶¯)
·½·¨¶þ:´òÃüÁîsetup,½«System serviceÖеÄnfs´ò¹´,È»ºóÍ˳ö ......
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 ......
ARP (Address Resolution Protocol) ÊÇÓÃÀ´°ÑIPµØÖ·×ª»¯³É»úÆ÷µÄÍø¿¨ÎïÀíµØÖ·£¨Ó²¼þµØÖ·£©¡£µ±Ò»Ì¨»úÆ÷ÒªÏòÁíÍâһ̨ÎïÀíÉÏÏàÁ¬µÄ»úÆ÷·¢ËÍIP°üµÄʱºò£¬ËüÒªÏȼì²éÒ»ÏÂ×Ô¼ºµÄARP»º´æ£¬ÊÔͼÕÒµ½¶Ô·½µÄÓ²¼þµØÖ·£¬Èç¹ûÕÒ²»µ½µÄ»°£¬°ÑÒª·¢Ë͵ÄIP°ü·ÅÈëµÈ´ý¶ÓÁÐÖУ¬½Ó×Å·¢³öÒ»¸öARPÇëÇ󡣵ȵ½ÊÕµ½ARPÓ¦´ðµÄʱºò£¬¹¹ÔìºÃÔÀ´ÕýÔڵȴ ......