blob: a2b84e62afc2ceb70c4b090163472d0061b4b7a6 (
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
35
36
37
38
39
40
|
/*
* system call not available stub
* based on libc's stubs.c
*
* Copyright (C) 2009 Analog Devices Inc.
*
* Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
*/
#include <errno.h>
#include <sys/syscall.h>
#ifdef __UCLIBC_HAS_STUBS__
static int rt_enosys_stub(void) __attribute_used__;
static int rt_enosys_stub(void)
{
__set_errno(ENOSYS);
return -1;
}
#define make_stub(stub) \
link_warning(stub, #stub ": this function is not implemented") \
strong_alias(rt_enosys_stub, stub)
#ifndef __NR_mq_timedreceive
make_stub(mq_receive)
# ifdef __UCLIBC_HAS_ADVANCED_REALTIME__
make_stub(mq_timedreceive)
# endif
#endif
#ifndef __NR_mq_timedsend
make_stub(mq_send)
# ifdef __UCLIBC_HAS_ADVANCED_REALTIME__
make_stub(mq_timedsend)
# endif
#endif
#endif
|