<commit_before>/* $chaos: boot.c,v 1.8 2002/12/02 20:38:50 per Exp $ */
/* Abstract: Boot program (somewhat like init in Unix systems). */
/* Author: <NAME> <<EMAIL>> */

/* Copyright 2002 chaos development. */
/* Use freely under the terms listed in the file LICENSE. */

#include <storm/storm.h>
#include <kernel/kernel.h>

void _start (void) NORETURN;
int main (int argc UNUSED, char **argv UNUSED);

char *test = "spam spam spam!";

void _start (void)
{
    main (0, NULL);
    // syscall_exit (0);
    while (TRUE);
}

/* Main function. */
int main (int argc UNUSED, char **argv UNUSED)
{
    size_t services = 1;
    service_t service_list;
    service_lookup_t service_lookup = 
        {
            "kernel", NULL, NULL, NULL, KERNEL_PROTOCOL_MAJOR_VERSION,
            KERNEL_PROTOCOL_MINOR_VERSION
        };
    service_connection_id_t connection_id;

    if (system_call_service_lookup (&service_lookup, &services, &service_list) != STORM_RETURN_SUCCESS)
    {
        return -1;<commit_msg>Added one missing component when filling up a service_lookup_t structure.<commit_after>/* $chaos: boot.c,v 1.9 2002/12/02 20:53:13 per Exp $ */
/* Abstract: Boot program (somewhat like init in Unix systems). */
/* Author: <NAME> <<EMAIL>> */

/* Copyright 2002 chaos development. */
/* Use freely under the terms listed in the file LICENSE. */

#include <storm/storm.h>
#include <kernel/kernel.h>

void _start (void) NORETURN;
int main (int argc UNUSED, char **argv UNUSED);

char *test = "spam spam spam!";

void _start (void)
{
    main (0, NULL);
    // syscall_exit (0);
    while (TRUE);
}

/* Main function. */
int main (int argc UNUSED, char **argv UNUSED)
{
    size_t services = 1;
    service_t service_list;
    service_lookup_t service_lookup = 
        {
            "kernel", NULL, NULL, NULL, NULL,
            KERNEL_PROTOCOL_MAJOR_VERSION,
            KERNEL_PROTOCOL_MINOR_VERSION
        };
    service_connection_id_t connection_id;

    if (system_call_service_lookup (&service_lookup, &services, &service_list) != STORM_RETURN_SUCCESS)
    {
        return -1;
{'fraction_non_alphanumeric': 0.12272291466922339, 'fraction_numerical': 0.023010546500479387, 'mean_word_length': 3.1573705179282867, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '1508309', 'n_tokens_mistral': 734, 'n_tokens_neox': 678, 'n_words': 205}