129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
}
while (pathLen >= 2 && memcmp(pathFinal, "./", 2) == 0) {
pathFinal += 2;
pathLen -= 2;
}
XVFS_DEBUG_PRINTF("... relative path: \"%s\"", pathFinal);
XVFS_DEBUG_LEAVE;
return(pathFinal);
}
static int xvfs_errorToErrno(int xvfs_error) {
if (xvfs_error >= 0) {
|
>
>
>
>
>
|
|
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
|
}
while (pathLen >= 2 && memcmp(pathFinal, "./", 2) == 0) {
pathFinal += 2;
pathLen -= 2;
}
while (pathLen >= 1 && pathFinal[0] == '/') {
pathFinal += 1;
pathLen -= 1;
}
XVFS_DEBUG_PRINTF("... relative path: \"%s\" (pathLen = %i)", pathFinal, pathLen);
XVFS_DEBUG_LEAVE;
return(pathFinal);
}
static int xvfs_errorToErrno(int xvfs_error) {
if (xvfs_error >= 0) {
|