<commit_before>#include "unistd.h"
#include "systemcall.h"

extern "C"
{

ssize_t write(int fildes, const void* buf, size_t nbyte)
{
    /// @todo implement

    // systemCall3(SYSTEM_CALL_WRITE,
    //             fildes,
    //             reinterpret_cast<uint32_t>(buf),
    //             nbyte);
    systemCall3(10, 10, 52, 12345);

    return -1;
}

} // extern "C"<commit_msg>Calling write() system call<commit_after>#include "unistd.h"
#include "systemcall.h"

extern "C"
{

ssize_t write(int fildes, const void* buf, size_t nbyte)
{
    systemCall3(SYSTEM_CALL_WRITE,
                fildes,
                reinterpret_cast<uint32_t>(buf),
                nbyte);

    /// @todo return code from system call
    return -1;
}

} // extern "C"
{'fraction_non_alphanumeric': 0.13297872340425532, 'fraction_numerical': 0.026595744680851064, 'mean_word_length': 2.25974025974026, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5185203', 'n_tokens_mistral': 291, 'n_tokens_neox': 271, 'n_words': 58}