2 * system call not available stub
4 * Copyright (C) 2009 Analog Devices Inc.
6 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
10 #include <sys/syscall.h>
12 #ifdef __UCLIBC_HAS_STUBS__
14 static int enosys_stub(void)
20 #define make_stub(stub) \
21 link_warning(stub, #stub ": this function is not implemented") \
22 strong_alias(enosys_stub, stub)
24 #ifndef __ARCH_USE_MMU__
28 #ifndef __UCLIBC_HAS_LFS__
29 # undef __NR_fadvise64
30 # undef __NR_fadvise64_64
31 # undef __NR_sync_file_range
46 #ifndef __NR_create_module
47 make_stub(create_module)
50 #ifndef __NR_delete_module
51 make_stub(delete_module)
54 #ifndef __NR_epoll_create
55 make_stub(epoll_create)
58 #ifndef __NR_epoll_ctl
62 #ifndef __NR_epoll_wait
66 #ifndef __NR_fdatasync
70 #ifndef __NR_flistxattr
78 #ifndef __NR_fgetxattr
82 #ifndef __NR_fremovexattr
83 make_stub(fremovexattr)
86 #ifndef __NR_fsetxattr
90 #ifndef __NR_get_kernel_syms
91 make_stub(get_kernel_syms)
94 #if !defined(__NR_getpgrp) && (defined(__NR_getpgid) && (defined(__NR_getpid) || defined(__NR_getxpid)))
102 #ifndef __NR_init_module
103 make_stub(init_module)
106 #ifndef __NR_lgetxattr
110 #ifndef __NR_listxattr
114 #ifndef __NR_llistxattr
115 make_stub(llistxattr)
118 #ifndef __NR_lremovexattr
119 make_stub(lremovexattr)
122 #ifndef __NR_lsetxattr
126 #ifndef __NR_pivot_root
127 make_stub(pivot_root)
130 #ifndef __NR_query_module
131 make_stub(query_module)
134 #ifndef __NR_removexattr
135 make_stub(removexattr)
138 #ifndef __NR_sched_getaffinity
139 make_stub(sched_getaffinity)
142 #ifndef __NR_sched_setaffinity
143 make_stub(sched_setaffinity)
146 #ifndef __NR_setxattr
150 #if !defined(__NR_signalfd4) && !defined(__NR_signalfd)
154 #ifndef __NR_rt_sigtimedwait
155 make_stub(sigtimedwait)
156 make_stub(sigwaitinfo)
163 #ifndef __NR_sync_file_range
164 make_stub(sync_file_range)
167 #if !defined(__NR_umount) && !defined(__NR_umount2)
175 #ifndef __NR_utimensat
178 # ifndef __NR_lutimes
183 #ifndef __NR_vmsplice