rem: static int mkdir_p(const char *path, mode_t mode)
add: mkdir_p(const char *path, mode_t mode)
context: static int mkdir_p(const char *path, mode_t mode){	char buffer[B_PATH_NAME_LENGTH+1];	int slash = 0;	int plen = 0;	char *p;	struct stat st;//return 0;	if (!path || ((plen=strlen(path)) > B_PATH_NAME_LENGTH))		return EINVAL;	memset(buffer, 0, B_PATH_NAME_LENGTH+1);	errno = 0;	while (1) {		slash++;		if (slash > plen)			return errno;		p = strchr(&path[slash], '/');		if (!p)			slash = plen;		else if (slash != p - path)			slash = p - path;		else			continue;		strncpy(buffer, path, slash);//printf("path[0:%d] = %s\n", slash, buffer);		if (stat(buffer, &st) < 0) {//perror("stat");			errno = 0;			if (mkdir(buffer, mode) < 0) {//perror("mkdir");				return errno;			}		}	}	return 0;	}