<commit_before>/* vi: set sw=4 ts=4: */
/*
 * umount() for uClibc
 *
 * Copyright (C) 2000-2004 by <NAME> <<EMAIL>>
 *
 * GNU Library General Public License (LGPL) version 2 or later.
 */

#include "syscalls.h"

#ifdef __NR_umount	/* Some newer archs only have umount2 */
#include <sys/mount.h>
_syscall1(int, umount, const char *, specialfile);

#elif defined __NR_umount2
/* No umount syscall, but umount2 is available....  Try to
 * emulate umount() using umount2() */

#define __NR___syscall_umount2 __NR_umount2
static inline _syscall2(int, umount2, const char *, special_file, int, flags);

int umount(const char *special_file)
{
	return (__syscall_umount2(special_file, 0));
}

#else
int umount(const char *special_file)
{
	__set_errno(ENOSYS);
	return -1;
}
#endif<commit_msg>fix typo in umount2() emulation of umount()<commit_after>/* vi: set sw=4 ts=4: */
/*
 * umount() for uClibc
 *
 * Copyright (C) 2000-2004 by <NAME> <<EMAIL>>
 *
 * GNU Library General Public License (LGPL) version 2 or later.
 */

#include "syscalls.h"


/* arch provides umount() syscall */
#ifdef __NR_umount

#include <sys/mount.h>
_syscall1(int, umount, const char *, specialfile);


/* arch provides umount2() syscall */
#elif defined __NR_umount2

#define __NR___syscall_umount2 __NR_umount2
static inline _syscall2(int, __syscall_umount2, const char *, special_file, int, flags);

int umount(const char *special_file)
{
	return (__syscall_umount2(special_file, 0));
}


/* arch doesn't provide any umount syscall !? */
#else

int umount(const char *special_file)
{
	__set_errno(ENOSYS);
	return -1;
}

#endif
{'fraction_non_alphanumeric': 0.13195747342088807, 'fraction_numerical': 0.028142589118198873, 'mean_word_length': 4.673758865248227, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '909803', 'n_tokens_mistral': 630, 'n_tokens_neox': 577, 'n_words': 170}