summaryrefslogtreecommitdiff
path: root/libgcompat/misc.c
blob: aee490f140f98c61d7eb7a926f8023ce587194b4 (plain) (blame)
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
#include <stdlib.h>        /* abort, at_quick_exit */
#include <sys/stat.h>      /* dev_t */
#include <sys/sysmacros.h> /* major, makedev, minor */

/**
 * Terminate a function in case of buffer overflow.
 *
 * LSB 5.0: LSB-Core-generic/baselib---chk-fail-1.html
 */
void __chk_fail(void)
{
	abort();
}

int __cxa_at_quick_exit(void (*func)(void), void *__dso_handle)
{
	return at_quick_exit(func);
}

unsigned int gnu_dev_major(dev_t dev)
{
	return major(dev);
}

dev_t gnu_dev_makedev(unsigned int maj, unsigned int min)
{
	return makedev(maj, min);
}

unsigned int gnu_dev_minor(dev_t dev)
{
	return minor(dev);
}