<commit_before>/*
 * system call not available stub
 *
 * Copyright (C) 2009 Analog Devices Inc.
 *
 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 */

/* Please keep the list sorted alphabetically, in ascending order
 * of the stub name!  */

#include <errno.h>
#include <bits/wordsize.h>
#include <sys/syscall.h>

#ifdef __UCLIBC_HAS_STUBS__

__attribute_used__ static int enosys_stub(void)
{
	__set_errno(ENOSYS);
	return -1;
}

__attribute_used__ static int ret_enosys_stub(void)
{
	return ENOSYS;
}

#define make_stub(stub) \
	link_warning(stub, #stub ": this function is not implemented") \
	strong_alias(enosys_stub, stub)

#define make_ret_stub(stub) \
	link_warning(stub, #stub ": this function is not implemented") \
	strong_alias(ret_enosys_stub, stub)

#ifndef __ARCH_USE_MMU__
# undef __NR_fork
#endif

#ifdef __arm__
# define __NR_fadvise64_64 __NR_arm_fadvise64_64
# define __NR_fadvise64 __NR_arm_fadvise64_64
#endif

#ifdef __mips__
# define __NR_fadvise64_64 __NR_fadvise64
#endif

#ifdef __xtensa__
# define __NR_fadvise64 __NR_fadvise64_64
#endif

#ifndef __UCLIBC_HAS_LFS__
# undef __NR_readahead
# undef __NR_sync_file_range
# undef __NR_splice
#endif

#if !defined __NR_accept && !defined __NR_socketcall && defined __UCLIBC_HAS_SOCKET__
make_stub(accept)
#endif

#if !defined __NR_accept4 && !defined __NR_socketcall && defined __UCLIBC_HAS_SOCKET__ && defined __UCLIBC_LINUX_SPECIFIC__
make_stub(accept4)
#endif

#if !defined __NR_arch_prctl && defined __UCLIBC_LINUX_SPECIFIC__<commit_msg>arm: disable ioperm/iopl stubs<commit_after>/*
 * system call not available stub
 *
 * Copyright (C) 2009 Analog Devices Inc.
 *
 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 */

/* Please keep the list sorted alphabetically, in ascending order
 * of the stub name!  */

#include <errno.h>
#include <bits/wordsize.h>
#include <sys/syscall.h>

#ifdef __UCLIBC_HAS_STUBS__

__attribute_used__ static int enosys_stub(void)
{
	__set_errno(ENOSYS);
	return -1;
}

__attribute_used__ static int ret_enosys_stub(void)
{
	return ENOSYS;
}

#define make_stub(stub) \
	link_warning(stub, #stub ": this function is not implemented") \
	strong_alias(enosys_stub, stub)

#define make_ret_stub(stub) \
	link_warning(stub, #stub ": this function is not implemented") \
	strong_alias(ret_enosys_stub, stub)

#ifndef __ARCH_USE_MMU__
# undef __NR_fork
#endif

#ifdef __arm__
# define __NR_fadvise64_64 __NR_arm_fadvise64_64
# define __NR_fadvise64 __NR_arm_fadvise64_64
/* ARM always provides funcs w/out syscalls; disable the stubs */
# define __NR_ioperm 0
# define __NR_iopl 0
#endif

#ifdef __mips__
# define __NR_fadvise64_64 __NR_fadvise64
#endif

#ifdef __xtensa__
# define __NR_fadvise64 __NR_fadvise64_64
#endif

#ifndef __UCLIBC_HAS_LFS__
# undef __NR_readahead
# undef __NR_sync_file_range
# undef __NR_splice
#endif

#if !defined __NR_accept && !defined __NR_socketcall && defined __UCLIBC_HAS_SOCKET__
make_stub(accept)
#endif

#if !defined __NR_accept4 && !defined __NR_socketcall && defined __UCLIBC_HAS_SOCKET__ && defined __UCLIBC_LINUX_SPECIFIC__
make_stub(accept4)
#endif

#if !defined __NR_arch_prctl && defined __UCLIBC_LINUX_SPECIFIC__
{'fraction_non_alphanumeric': 0.08341114223467165, 'fraction_numerical': 0.022408963585434174, 'mean_word_length': 5.882226980728052, 'pattern_counts': {'":': 4, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7370561', 'n_tokens_mistral': 1302, 'n_tokens_neox': 1250, 'n_words': 297}