<commit_before>/**
 * @file
 * @brief
 *
 * @author  <NAME>
 * @date    25.06.2012
 */

#ifndef COMPAT_POSIX_POSIX_ERRNO_H_
#define COMPAT_POSIX_POSIX_ERRNO_H_

#include <kernel/task/resource/errno.h>

#define errno (*task_self_resource_errno())

#define SET_ERRNO(e) \
	({ errno = e; -1; /* to let 'return SET_ERRNO(...)' */ })

#endif /* COMPAT_POSIX_POSIX_ERRNO_H_ */<commit_msg>Change SET_ERRNO to be inline function<commit_after>/**
 * @file
 * @brief
 *
 * @author  <NAME>
 * @date    25.06.2012
 */

#ifndef COMPAT_POSIX_POSIX_ERRNO_H_
#define COMPAT_POSIX_POSIX_ERRNO_H_

#include <kernel/task/resource/errno.h>
#include <compiler.h>

#define errno (*task_self_resource_errno())

static inline int SET_ERRNO(int err) {
	errno = err;
	return -1;
}

#endif /* COMPAT_POSIX_POSIX_ERRNO_H_ */
{'fraction_non_alphanumeric': 0.14698492462311558, 'fraction_numerical': 0.022613065326633167, 'mean_word_length': 4.421768707482993, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '2123967', 'n_tokens_mistral': 352, 'n_tokens_neox': 326, 'n_words': 61}