コード例 #1
0
ファイル: default_eval_path.c プロジェクト: AndroidMarv/rtems
void rtems_filesystem_default_eval_path(
  rtems_filesystem_eval_path_context_t *ctx
)
{
  ctx->pathlen = 0;
  rtems_filesystem_location_detach(&ctx->currentloc);
}
コード例 #2
0
ファイル: sup_fs_eval_path.c プロジェクト: 0871087123/rtems
void rtems_filesystem_eval_path_error(
  rtems_filesystem_eval_path_context_t *ctx,
  int eno
)
{
  ctx->path = NULL;
  ctx->pathlen = 0;
  ctx->token = NULL;
  ctx->tokenlen = 0;

  if (!rtems_filesystem_location_is_null(&ctx->currentloc)) {
    if (eno != 0) {
      errno = eno;
    }

    rtems_filesystem_location_detach(&ctx->currentloc);
  }
}