<commit_before>#ifndef __CR_LOCK_H__
#define __CR_LOCK_H__

#include <linux/futex.h>
#include <sys/time.h>
#include <limits.h>
#include <errno.h>

#include "asm/types.h"
#include "asm/atomic.h"
#include "bug.h"

#ifdef CR_NOGLIBC
# include "syscall.h"
#else
# include <sys/syscall.h>
static inline long sys_futex(void *addr1, int op, int val1,
                            struct timespec *timeout, void *addr2, int val3)
{
       int rc = syscall(SYS_futex, addr1, op, val1, timeout, addr2, val3);
       if (rc == -1) rc = -errno;
       return rc;
}
#endif

typedef struct {
	atomic_t raw;
} futex_t;<commit_msg>lock: include unistd.h for syscall function declaration<commit_after>#ifndef __CR_LOCK_H__
#define __CR_LOCK_H__

#include <linux/futex.h>
#include <sys/time.h>
#include <limits.h>
#include <errno.h>

#include "asm/types.h"
#include "asm/atomic.h"
#include "bug.h"

#ifdef CR_NOGLIBC
# include "syscall.h"
#else
# include <unistd.h>
# include <sys/syscall.h>
static inline long sys_futex(void *addr1, int op, int val1,
                            struct timespec *timeout, void *addr2, int val3)
{
       int rc = syscall(SYS_futex, addr1, op, val1, timeout, addr2, val3);
       if (rc == -1) rc = -errno;
       return rc;
}
#endif

typedef struct {
	atomic_t raw;
} futex_t;
{'fraction_non_alphanumeric': 0.13477924089852827, 'fraction_numerical': 0.013942680092951201, 'mean_word_length': 3.3945578231292517, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, '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': '2086477', 'n_tokens_mistral': 520, 'n_tokens_neox': 500, 'n_words': 133}