You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
在移植linux代码的时候errno为正数,目前文件系统出错后errno为负数。
不确定以后rtt是否会向其他系统靠齐,我只好写成这样了:
if (fd < 0)
{
int eno = rt_get_errno();
if (eno == ENOENT || eno == -ENOENT)
{
if (!secure_mkdirs(path))
{
goto fail;
}
}
}
The text was updated successfully, but these errors were encountered:
在移植linux代码的时候errno为正数,目前文件系统出错后errno为负数。
不确定以后rtt是否会向其他系统靠齐,我只好写成这样了:
if (fd < 0)
{
int eno = rt_get_errno();
if (eno == ENOENT || eno == -ENOENT)
{
if (!secure_mkdirs(path))
{
goto fail;
}
}
}
The text was updated successfully, but these errors were encountered: