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

errno.c « support - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9794fec59a0a29a48ee1c14f1702f931191e5f6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * <errno.h> wrapper functions.
 */

/* to get XPG's strerror_r declaration */
#undef _GNU_SOURCE
#undef _XOPEN_SOURCE
#define _XOPEN_SOURCE 600

#include <errno.h>
#include <string.h>
#include "mph.h"
#include <stdio.h>

G_BEGIN_DECLS

void
Mono_Posix_Syscall_SetLastError (int error_number)
{
	errno = error_number;
}

gint32
Mono_Posix_Syscall_strerror_r (int errnum, char *buf, mph_size_t n)
{
	mph_return_if_size_t_overflow (n);
	return strerror_r (errnum, buf, (size_t) n);
}

G_END_DECLS

/*
 * vim: noexpandtab
 */