Welcome to mirror list, hosted at ThFree Co, Russian Federation.

pal_errno.cpp « System.Private.CoreLib.Native « Native « src - github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e7e7bb6baa3906e27f3c01116d7430b7605ea03e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#include <stdint.h>
#include <errno.h>

extern "C" int32_t CoreLibNative_GetLastErrNo()
{
    return errno;
}

extern "C" void CoreLibNative_SetLastErrNo(int32_t error)
{
    errno = error;
}