repo_full_name stringlengths 6 93 | repo_url stringlengths 25 112 | repo_api_url stringclasses 28
values | owner stringclasses 28
values | repo_name stringclasses 28
values | description stringclasses 28
values | stars int64 617 98.8k | forks int64 31 355 ⌀ | watchers int64 990 999 ⌀ | license stringclasses 2
values | default_branch stringclasses 2
values | repo_created_at timestamp[s]date 2012-07-24 23:12:50 2025-06-16 08:07:28 ⌀ | repo_updated_at timestamp[s]date 2026-02-23 15:23:15 2026-05-03 18:52:12 ⌀ | repo_topics listlengths 0 13 ⌀ | repo_languages unknown | is_fork bool 1
class | open_issues int64 3 104 ⌀ | file_path stringlengths 3 208 | file_name stringclasses 509
values | file_extension stringclasses 1
value | file_size_bytes int64 101 84k ⌀ | file_url stringclasses 627
values | file_raw_url stringclasses 627
values | file_sha stringclasses 624
values | language stringclasses 8
values | parsed_at stringdate 2026-05-04 01:12:36 2026-05-04 19:41:55 | text stringlengths 100 102k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
openssl/openssl | https://github.com/openssl/openssl | null | null | null | null | 30,090 | null | null | apache-2.0 | null | null | null | null | null | null | null | apps/include/log.h | null | null | null | null | null | null | C | 2026-05-04T19:40:09.726030 | /*
* Copyright 1995-2022 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/l... |
openssl/openssl | https://github.com/openssl/openssl | null | null | null | null | 30,090 | null | null | apache-2.0 | null | null | null | null | null | null | null | apps/include/names.h | null | null | null | null | null | null | C | 2026-05-04T19:40:10.106931 | /*
* Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/licens... |
openssl/openssl | https://github.com/openssl/openssl | null | null | null | null | 30,090 | null | null | apache-2.0 | null | null | null | null | null | null | null | apps/include/opt.h | null | null | null | null | null | null | C | 2026-05-04T19:40:10.160450 | /*
* Copyright 2018-2025 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/l... |
openssl/openssl | https://github.com/openssl/openssl | null | null | null | null | 30,090 | null | null | apache-2.0 | null | null | null | null | null | null | null | apps/include/platform.h | null | null | null | null | null | null | C | 2026-05-04T19:40:10.216460 | /*
* Copyright 2019-2024 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/l... |
openssl/openssl | https://github.com/openssl/openssl | null | null | null | null | 30,090 | null | null | apache-2.0 | null | null | null | null | null | null | null | apps/include/s_apps.h | null | null | null | null | null | null | C | 2026-05-04T19:40:10.273512 | /*
* Copyright 1995-2023 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/l... |
openssl/openssl | https://github.com/openssl/openssl | null | null | null | null | 30,090 | null | null | apache-2.0 | null | null | null | null | null | null | null | apps/kdf.c | null | null | null | null | null | null | C | 2026-05-04T19:40:10.302660 | /*
* Copyright 2019-2026 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/l... |
openssl/openssl | https://github.com/openssl/openssl | null | null | null | null | 30,090 | null | null | apache-2.0 | null | null | null | null | null | null | null | apps/include/vms_term_sock.h | null | null | null | null | null | null | C | 2026-05-04T19:40:10.319067 | /*
* Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
* Copyright 2016 VMS Software, Inc. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source d... |
openssl/openssl | https://github.com/openssl/openssl | null | null | null | null | 30,090 | null | null | apache-2.0 | null | null | null | null | null | null | null | apps/lib/app_libctx.c | null | null | null | null | null | null | C | 2026-05-04T19:40:10.345776 | /*
* Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/l... |
openssl/openssl | https://github.com/openssl/openssl | null | null | null | null | 30,090 | null | null | apache-2.0 | null | null | null | null | null | null | null | apps/info.c | null | null | null | null | null | null | C | 2026-05-04T19:40:10.347173 | /*
* Copyright 2019-2024 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/l... |
openssl/openssl | https://github.com/openssl/openssl | null | null | null | null | 30,090 | null | null | apache-2.0 | null | null | null | null | null | null | null | apps/lib/app_provider.c | null | null | null | null | null | null | C | 2026-05-04T19:40:10.373941 | /*
* Copyright 2020-2025 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/l... |
openssl/openssl | https://github.com/openssl/openssl | null | null | null | null | 30,090 | null | null | apache-2.0 | null | null | null | null | null | null | null | apps/lib/app_params.c | null | null | null | null | null | null | C | 2026-05-04T19:40:10.381364 | /*
* Copyright 2019-2026 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/l... |
openssl/openssl | https://github.com/openssl/openssl | null | null | null | null | 30,090 | null | null | apache-2.0 | null | null | null | null | null | null | null | apps/lib/app_rand.c | null | null | null | null | null | null | C | 2026-05-04T19:40:10.748613 | /*
* Copyright 1995-2026 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/l... |
openssl/openssl | https://github.com/openssl/openssl | null | null | null | null | 30,090 | null | null | apache-2.0 | null | null | null | null | null | null | null | apps/lib/app_x509.c | null | null | null | null | null | null | C | 2026-05-04T19:40:10.791342 | /*
* Copyright 2020-2026 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/l... |
openssl/openssl | https://github.com/openssl/openssl | null | null | null | null | 30,090 | null | null | apache-2.0 | null | null | null | null | null | null | null | apps/lib/apps_opt_printf.c | null | null | null | null | null | null | C | 2026-05-04T19:40:10.816070 | /*
* Copyright 2022 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/licens... |
openssl/openssl | https://github.com/openssl/openssl | null | null | null | null | 30,090 | null | null | apache-2.0 | null | null | null | null | null | null | null | apps/lib/apps_ui.c | null | null | null | null | null | null | C | 2026-05-04T19:40:10.928551 | /*
* Copyright 1995-2026 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/l... |
openssl/openssl | https://github.com/openssl/openssl | null | null | null | null | 30,090 | null | null | apache-2.0 | null | null | null | null | null | null | null | apps/lib/columns.c | null | null | null | null | null | null | C | 2026-05-04T19:40:10.948590 | /*
* Copyright 2017-2025 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/l... |
openssl/openssl | https://github.com/openssl/openssl | null | null | null | null | 30,090 | null | null | apache-2.0 | null | null | null | null | null | null | null | apps/lib/cmp_mock_srv.c | null | null | null | null | null | null | C | 2026-05-04T19:40:10.949337 | /*
* Copyright 2018-2026 The OpenSSL Project Authors. All Rights Reserved.
* Copyright Siemens AG 2018-2020
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or atf
... |
openssl/openssl | https://github.com/openssl/openssl | null | null | null | null | 30,090 | null | null | apache-2.0 | null | null | null | null | null | null | null | apps/lib/fmt.c | null | null | null | null | null | null | C | 2026-05-04T19:40:10.989286 | /*
* Copyright 2018-2020 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/l... |
openssl/openssl | https://github.com/openssl/openssl | null | null | null | null | 30,090 | null | null | apache-2.0 | null | null | null | null | null | null | null | apps/lib/names.c | null | null | null | null | null | null | C | 2026-05-04T19:40:11.002351 | /*
* Copyright 2019-2026 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/l... |
openssl/openssl | https://github.com/openssl/openssl | null | null | null | null | 30,090 | null | null | apache-2.0 | null | null | null | null | null | null | null | apps/lib/http_server.c | null | null | null | null | null | null | C | 2026-05-04T19:40:11.003009 | /*
* Copyright 1995-2024 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/l... |
openssl/openssl | https://github.com/openssl/openssl | null | null | null | null | 30,090 | null | null | apache-2.0 | null | null | null | null | null | null | null | apps/lib/log.c | null | null | null | null | null | null | C | 2026-05-04T19:40:11.037142 | /*
* Copyright 2020-2026 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/l... |
ValdikSS/GoodbyeDPI | https://github.com/ValdikSS/GoodbyeDPI | null | null | null | null | 28,228 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/blackwhitelist.c | null | null | null | null | null | null | C | 2026-05-04T19:40:13.461516 | /*
* Blacklist for GoodbyeDPI HTTP DPI circumvention tricks
*
* This is a simple domain hash table.
* Domain records are added from a text file, where every
* domain is separated with a new line.
*/
#include <windows.h>
#include <stdio.h>
#include "goodbyedpi.h"
#include "utils/uthash.h"
#include "utils/getline.h... |
ValdikSS/GoodbyeDPI | https://github.com/ValdikSS/GoodbyeDPI | null | null | null | null | 28,228 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/service.c | null | null | null | null | null | null | C | 2026-05-04T19:40:13.483931 | #include <windows.h>
#include <stdio.h>
#include "goodbyedpi.h"
#include "service.h"
#define SERVICE_NAME "GoodbyeDPI"
static SERVICE_STATUS ServiceStatus;
static SERVICE_STATUS_HANDLE hStatus;
static int service_argc = 0;
static char **service_argv = NULL;
int service_register(int argc, char *argv[])
{
int i, r... |
ValdikSS/GoodbyeDPI | https://github.com/ValdikSS/GoodbyeDPI | null | null | null | null | 28,228 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/fakepackets.c | null | null | null | null | null | null | C | 2026-05-04T19:40:13.521466 | #include <stdio.h>
#define _CRT_RAND_S
#include <stdlib.h>
#include <stdbool.h>
#include <ctype.h>
#include <unistd.h>
#include <in6addr.h>
#include <ws2tcpip.h>
#include "windivert.h"
#include "goodbyedpi.h"
struct fake_t {
const unsigned char* data;
size_t size;
};
static struct fake_t *fakes[30] = {0};
int... |
ValdikSS/GoodbyeDPI | https://github.com/ValdikSS/GoodbyeDPI | null | null | null | null | 28,228 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/goodbyedpi.h | null | null | null | null | null | null | C | 2026-05-04T19:40:13.531124 | #define HOST_MAXLEN 253
#define MAX_PACKET_SIZE 9016
#ifndef DEBUG
#define debug(...) do {} while (0)
#else
#define debug(...) printf(__VA_ARGS__)
#endif
int main(int argc, char *argv[]);
void deinit_all();
|
ValdikSS/GoodbyeDPI | https://github.com/ValdikSS/GoodbyeDPI | null | null | null | null | 28,228 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/dnsredir.h | null | null | null | null | null | null | C | 2026-05-04T19:40:13.532558 | #ifndef _DNSREDIR_H
#define _DNSREDIR_H
#include <stdint.h>
typedef struct conntrack_info {
uint8_t is_ipv6;
uint32_t srcip[4];
uint16_t srcport;
uint32_t dstip[4];
uint16_t dstport;
} conntrack_info_t;
inline static void ipv4_copy_addr(uint32_t dst[4], const uint32_t src[4]) {
dst[0] = src[0... |
ValdikSS/GoodbyeDPI | https://github.com/ValdikSS/GoodbyeDPI | null | null | null | null | 28,228 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/blackwhitelist.h | null | null | null | null | null | null | C | 2026-05-04T19:40:13.549865 | int blackwhitelist_load_list(const char *filename);
int blackwhitelist_check_hostname(const char *host_addr, size_t host_len);
|
ValdikSS/GoodbyeDPI | https://github.com/ValdikSS/GoodbyeDPI | null | null | null | null | 28,228 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/fakepackets.h | null | null | null | null | null | null | C | 2026-05-04T19:40:13.550848 | extern int fakes_count;
extern int fakes_resend;
int send_fake_http_request(const HANDLE w_filter,
const PWINDIVERT_ADDRESS addr,
const char *pkt,
const UINT packetLen,
const BOOL is_i... |
ValdikSS/GoodbyeDPI | https://github.com/ValdikSS/GoodbyeDPI | null | null | null | null | 28,228 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/dnsredir.c | null | null | null | null | null | null | C | 2026-05-04T19:40:13.552833 | /*
* DNS UDP Connection Tracker for GoodbyeDPI
*
* This is a simple connection tracker for DNS UDP data.
* It's not a proper one. The caveats as follows:
* * Uses only source IP address and port as a hash key;
* * One-shot only. Removes conntrack record as soon as gets the reply;
* * Does not properly p... |
ValdikSS/GoodbyeDPI | https://github.com/ValdikSS/GoodbyeDPI | null | null | null | null | 28,228 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/service.h | null | null | null | null | null | null | C | 2026-05-04T19:40:13.563487 | int service_register();
void service_main(int argc, char *argv[]);
void service_controlhandler(DWORD request);
|
ValdikSS/GoodbyeDPI | https://github.com/ValdikSS/GoodbyeDPI | null | null | null | null | 28,228 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/goodbyedpi.c | null | null | null | null | null | null | C | 2026-05-04T19:40:13.582821 | /*
* GoodbyeDPI — Passive DPI blocker and Active DPI circumvention utility.
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <ctype.h>
#include <signal.h>
#include <unistd.h>
#include <string.h>
#include <getopt.h>
#include <in6addr.h>
#include <ws2tcpip.h>
#include "windivert.h"
#include "goo... |
ValdikSS/GoodbyeDPI | https://github.com/ValdikSS/GoodbyeDPI | null | null | null | null | 28,228 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/utils/getline.h | null | null | null | null | null | null | C | 2026-05-04T19:40:14.455902 | #if !HAVE_GETDELIM
ssize_t getdelim(char **, size_t *, int, FILE *);
#endif
#if !HAVE_GETLINE
ssize_t getline(char **, size_t *, FILE *);
#endif
|
ValdikSS/GoodbyeDPI | https://github.com/ValdikSS/GoodbyeDPI | null | null | null | null | 28,228 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/utils/getline.c | null | null | null | null | null | null | C | 2026-05-04T19:40:14.478543 | /* $NetBSD: getdelim.c,v 1.2 2015/12/25 20:12:46 joerg Exp $ */
/* NetBSD-src: getline.c,v 1.2 2014/09/16 17:23:50 christos Exp */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by Christos Zoulas.
*
* Re... |
ValdikSS/GoodbyeDPI | https://github.com/ValdikSS/GoodbyeDPI | null | null | null | null | 28,228 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/utils/repl_str.c | null | null | null | null | null | null | C | 2026-05-04T19:40:14.541749 | #include <string.h>
#include <stdlib.h>
#include <stddef.h>
#if (__STDC_VERSION__ >= 199901L)
#include <stdint.h>
#endif
char *repl_str(const char *str, const char *from, const char *to) {
/* Adjust each of the below values to suit your needs. */
/* Increment positions cache size initially by this number. */
siz... |
ValdikSS/GoodbyeDPI | https://github.com/ValdikSS/GoodbyeDPI | null | null | null | null | 28,228 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/ttltrack.c | null | null | null | null | null | null | C | 2026-05-04T19:40:14.581764 | /**
* TCP (TTL) Connection Tracker for GoodbyeDPI
*
* Monitors SYN/ACK only, to extract the TTL value of the remote server.
*
*/
#include <windows.h>
#include <time.h>
#include <stdio.h>
#include <math.h>
#include "goodbyedpi.h"
#include "ttltrack.h"
#include "utils/uthash.h"
/* key ('4' for IPv4 or '6' for IPv... |
ValdikSS/GoodbyeDPI | https://github.com/ValdikSS/GoodbyeDPI | null | null | null | null | 28,228 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/utils/uthash.h | null | null | null | null | null | null | C | 2026-05-04T19:40:14.770747 | /*
Copyright (c) 2003-2021, Troy D. Hanson http://troydhanson.github.io/uthash/
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
... |
ValdikSS/GoodbyeDPI | https://github.com/ValdikSS/GoodbyeDPI | null | null | null | null | 28,228 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/ttltrack.h | null | null | null | null | null | null | C | 2026-05-04T19:40:14.824785 | #ifndef _TTLTRACK_H
#define _TTLTRACK_H
#include <stdint.h>
#include "dnsredir.h"
typedef struct tcp_conntrack_info {
uint8_t is_ipv6;
uint8_t ttl;
uint32_t srcip[4];
uint16_t srcport;
uint32_t dstip[4];
uint16_t dstport;
} tcp_conntrack_info_t;
int tcp_handle_incoming(uint32_t srcip[4], uin... |
ggreer/the_silver_searcher | https://github.com/ggreer/the_silver_searcher | null | null | null | null | 27,084 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/decompress.h | null | null | null | null | null | null | C | 2026-05-04T19:40:18.212225 | #ifndef DECOMPRESS_H
#define DECOMPRESS_H
#include <stdio.h>
#include "config.h"
#include "log.h"
#include "options.h"
typedef enum {
AG_NO_COMPRESSION,
AG_GZIP,
AG_COMPRESS,
AG_ZIP,
AG_XZ,
} ag_compression_type;
ag_compression_type is_zipped(const void *buf, const int buf_len);
void *decompres... |
ggreer/the_silver_searcher | https://github.com/ggreer/the_silver_searcher | null | null | null | null | 27,084 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/lang.h | null | null | null | null | null | null | C | 2026-05-04T19:40:18.213446 | #ifndef LANG_H
#define LANG_H
#define MAX_EXTENSIONS 12
#define SINGLE_EXT_LEN 20
typedef struct {
const char *name;
const char *extensions[MAX_EXTENSIONS];
} lang_spec_t;
extern lang_spec_t langs[];
/**
Return the language count.
*/
size_t get_lang_count(void);
/**
Convert a NULL-terminated array of lan... |
ggreer/the_silver_searcher | https://github.com/ggreer/the_silver_searcher | null | null | null | null | 27,084 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/ignore.h | null | null | null | null | null | null | C | 2026-05-04T19:40:18.214956 | #ifndef IGNORE_H
#define IGNORE_H
#include <dirent.h>
#include <sys/types.h>
struct ignores {
char **extensions; /* File extensions to ignore */
size_t extensions_len;
char **names; /* Non-regex ignore lines. Sorted so we can binary search them. */
size_t names_len;
char **slash_names; /* Same bu... |
ggreer/the_silver_searcher | https://github.com/ggreer/the_silver_searcher | null | null | null | null | 27,084 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/decompress.c | null | null | null | null | null | null | C | 2026-05-04T19:40:18.216258 | #include <string.h>
#include <unistd.h>
#include "decompress.h"
#ifdef HAVE_LZMA_H
#include <lzma.h>
/* http://tukaani.org/xz/xz-file-format.txt */
const uint8_t XZ_HEADER_MAGIC[6] = { 0xFD, '7', 'z', 'X', 'Z', 0x00 };
const uint8_t LZMA_HEADER_SOMETIMES[3] = { 0x5D, 0x00, 0x00 };
#endif
#ifdef HAVE_ZLIB_H
#defin... |
ggreer/the_silver_searcher | https://github.com/ggreer/the_silver_searcher | null | null | null | null | 27,084 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/ignore.c | null | null | null | null | null | null | C | 2026-05-04T19:40:18.217457 | #include <ctype.h>
#include <dirent.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include "ignore.h"
#include "log.h"
#include "options.h"
#include "scandir.h"
#include "util.h"
#ifdef _WIN32
#include <shlwapi.h>
#define fnmatch(x, y, z) (!PathMatchSpec(y, x)... |
ggreer/the_silver_searcher | https://github.com/ggreer/the_silver_searcher | null | null | null | null | 27,084 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/main.c | null | null | null | null | null | null | C | 2026-05-04T19:40:18.218923 | #include <ctype.h>
#include <pcre.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <sys/time.h>
#include <unistd.h>
#ifdef _WIN32
#include <windows.h>
#endif
#include "config.h"
#ifdef HAVE_SYS_CPUSET_H
#include <sys/cpuset.h>
#endif
#ifdef HAVE_PTHREAD_H
#include <pthread.h>
#endif
#if define... |
ggreer/the_silver_searcher | https://github.com/ggreer/the_silver_searcher | null | null | null | null | 27,084 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/options.c | null | null | null | null | null | null | C | 2026-05-04T19:40:18.220279 | #include <errno.h>
#include <limits.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/param.h>
#include <sys/stat.h>
#include <unistd.h>
#include "config.h"
#include "ignore.h"
#include "lang.h"
#include "log.h"
#include "options.h"
#include "print.h"
#include "util.h"
co... |
ggreer/the_silver_searcher | https://github.com/ggreer/the_silver_searcher | null | null | null | null | 27,084 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/log.c | null | null | null | null | null | null | C | 2026-05-04T19:40:18.853909 | #include <stdarg.h>
#include <stdio.h>
#include "log.h"
#include "util.h"
pthread_mutex_t print_mtx = PTHREAD_MUTEX_INITIALIZER;
static enum log_level log_threshold = LOG_LEVEL_ERR;
void set_log_level(enum log_level threshold) {
log_threshold = threshold;
}
void log_debug(const char *fmt, ...) {
va_list arg... |
ggreer/the_silver_searcher | https://github.com/ggreer/the_silver_searcher | null | null | null | null | 27,084 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/log.h | null | null | null | null | null | null | C | 2026-05-04T19:40:19.023690 | #ifndef LOG_H
#define LOG_H
#include <stdarg.h>
#include "config.h"
#ifdef HAVE_PTHREAD_H
#include <pthread.h>
#endif
extern pthread_mutex_t print_mtx;
enum log_level {
LOG_LEVEL_DEBUG = 10,
LOG_LEVEL_MSG = 20,
LOG_LEVEL_WARN = 30,
LOG_LEVEL_ERR = 40,
LOG_LEVEL_NONE = 100
};
void set_log_level... |
ggreer/the_silver_searcher | https://github.com/ggreer/the_silver_searcher | null | null | null | null | 27,084 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/print.c | null | null | null | null | null | null | C | 2026-05-04T19:40:19.842477 | #include <limits.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ignore.h"
#include "log.h"
#include "options.h"
#include "print.h"
#include "search.h"
#include "util.h"
#ifdef _WIN32
#define fprintf(...) fprintf_w32(__VA_ARGS__)
#endif
int first_file_match = 1;
const char... |
ggreer/the_silver_searcher | https://github.com/ggreer/the_silver_searcher | null | null | null | null | 27,084 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/scandir.h | null | null | null | null | null | null | C | 2026-05-04T19:40:19.843740 | #ifndef SCANDIR_H
#define SCANDIR_H
#include "ignore.h"
typedef struct {
const ignores *ig;
const char *base_path;
size_t base_path_len;
const char *path_start;
} scandir_baton_t;
typedef int (*filter_fp)(const char *path, const struct dirent *, void *);
int ag_scandir(const char *dirname,
... |
ggreer/the_silver_searcher | https://github.com/ggreer/the_silver_searcher | null | null | null | null | 27,084 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/scandir.c | null | null | null | null | null | null | C | 2026-05-04T19:40:19.851438 | #include <dirent.h>
#include <stdlib.h>
#include "scandir.h"
#include "util.h"
int ag_scandir(const char *dirname,
struct dirent ***namelist,
filter_fp filter,
void *baton) {
DIR *dirp = NULL;
struct dirent **names = NULL;
struct dirent *entry, *d;
int name... |
ggreer/the_silver_searcher | https://github.com/ggreer/the_silver_searcher | null | null | null | null | 27,084 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/print_w32.c | null | null | null | null | null | null | C | 2026-05-04T19:40:19.852801 | #ifdef _WIN32
#include "print.h"
#include <io.h>
#include <stdarg.h>
#include <stdio.h>
#include <windows.h>
#ifndef FOREGROUND_MASK
#define FOREGROUND_MASK (FOREGROUND_RED | FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_INTENSITY)
#endif
#ifndef BACKGROUND_MASK
#define BACKGROUND_MASK (BACKGROUND_RED | BACKGROUND_... |
ggreer/the_silver_searcher | https://github.com/ggreer/the_silver_searcher | null | null | null | null | 27,084 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/options.h | null | null | null | null | null | null | C | 2026-05-04T19:40:19.874278 | #ifndef OPTIONS_H
#define OPTIONS_H
#include <getopt.h>
#include <sys/stat.h>
#include <pcre.h>
#define DEFAULT_AFTER_LEN 2
#define DEFAULT_BEFORE_LEN 2
#define DEFAULT_CONTEXT_LEN 2
#define DEFAULT_MAX_SEARCH_DEPTH 25
enum case_behavior {
CASE_DEFAULT, /* Changes to CASE_SMART at the end of option parsing */
... |
ggreer/the_silver_searcher | https://github.com/ggreer/the_silver_searcher | null | null | null | null | 27,084 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/print.h | null | null | null | null | null | null | C | 2026-05-04T19:40:19.874973 | #ifndef PRINT_H
#define PRINT_H
#include "util.h"
void print_init_context(void);
void print_cleanup_context(void);
void print_context_append(const char *line, size_t len);
void print_trailing_context(const char *path, const char *buf, size_t n);
void print_path(const char *path, const char sep);
void print_path_count... |
ggreer/the_silver_searcher | https://github.com/ggreer/the_silver_searcher | null | null | null | null | 27,084 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/search.c | null | null | null | null | null | null | C | 2026-05-04T19:40:19.904478 | #include "search.h"
#include "print.h"
#include "scandir.h"
size_t alpha_skip_lookup[256];
size_t *find_skip_lookup;
uint8_t h_table[H_SIZE] __attribute__((aligned(64)));
work_queue_t *work_queue = NULL;
work_queue_t *work_queue_tail = NULL;
int done_adding_files = 0;
pthread_cond_t files_ready = PTHREAD_COND_INITIAL... |
ggreer/the_silver_searcher | https://github.com/ggreer/the_silver_searcher | null | null | null | null | 27,084 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/util.c | null | null | null | null | null | null | C | 2026-05-04T19:40:20.506327 | #include <ctype.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include "config.h"
#include "util.h"
#ifdef _WIN32
#include <windows.h>
#define flockfile(x)
#define funlockfile(x)
#define getc_unlocked(x) getc(x)
#endif
#define CHECK_AND_RETURN(ptr) ... |
ggreer/the_silver_searcher | https://github.com/ggreer/the_silver_searcher | null | null | null | null | 27,084 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/util.h | null | null | null | null | null | null | C | 2026-05-04T19:40:20.521219 | #ifndef UTIL_H
#define UTIL_H
#include <dirent.h>
#include <pcre.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <sys/time.h>
#include "config.h"
#include "log.h"
#include "options.h"
extern FILE *out_fd;
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
#define H_SIZE... |
ggreer/the_silver_searcher | https://github.com/ggreer/the_silver_searcher | null | null | null | null | 27,084 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/zfile.c | null | null | null | null | null | null | C | 2026-05-04T19:40:20.521840 | #ifdef __FreeBSD__
#include <sys/endian.h>
#endif
#include <sys/types.h>
#ifdef __CYGWIN__
typedef _off64_t off64_t;
#endif
#include <assert.h>
#include <errno.h>
#include <inttypes.h>
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "co... |
ggreer/the_silver_searcher | https://github.com/ggreer/the_silver_searcher | null | null | null | null | 27,084 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/search.h | null | null | null | null | null | null | C | 2026-05-04T19:40:20.571186 | #ifndef SEARCH_H
#define SEARCH_H
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <pcre.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef _WIN32
#include <windows.h>
#else
#include <sys/mman.h>
#endif
#include <sys/stat.h>
#include <unistd.h>
#include "config.... |
ggreer/the_silver_searcher | https://github.com/ggreer/the_silver_searcher | null | null | null | null | 27,084 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/lang.c | null | null | null | null | null | null | C | 2026-05-04T19:40:22.772249 | #include <stdlib.h>
#include <string.h>
#include "lang.h"
#include "util.h"
lang_spec_t langs[] = {
{ "actionscript", { "as", "mxml" } },
{ "ada", { "ada", "adb", "ads" } },
{ "asciidoc", { "adoc", "ad", "asc", "asciidoc" } },
{ "apl", { "apl" } },
{ "asm", { "asm", "s" } },
{ "asp", { "asp", ... |
ggreer/the_silver_searcher | https://github.com/ggreer/the_silver_searcher | null | null | null | null | 27,084 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/uthash.h | null | null | null | null | null | null | C | 2026-05-04T19:40:25.083488 | /*
Copyright (c) 2003-2014, Troy D. Hanson http://troydhanson.github.com/uthash/
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/core/api.h | null | null | null | null | null | null | C | 2026-05-04T19:40:27.632800 | #ifndef API_H
#define API_H
//posix
void call_open();
void call_close();
void call_read();
void call_write();
void call_sbrk();
void call_ioctl();
void call_exit();
void call_execv();
void call_symlink();
void call_getdents();
void call_wait();
void call_dup2();
void call_fork();
void call_chdir();
void call_mmap();
... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/config.h | null | null | null | null | null | null | C | 2026-05-04T19:40:27.633948 | #ifndef CONFIG_H
#define CONFIG_H
#define KERNEL_NAME "devos" /* kernel name */
#define KERNEL_VERSION "1" /* kernel version */
#define KERNEL_DATE __DATE__
#define KERNEL_TIME __TIME__
#define KERNEL_LICENCE "Apache License" /* license */
#define KERNEL_COMPUTERNAME "test-pc" /* default name for the machine */
... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/arch/x86/x86.h | null | null | null | null | null | null | C | 2026-05-04T19:40:27.645034 | #ifndef __X86__
#define __X86__
#include <runtime/types.h>
#define IDTSIZE 0xFF /* nombre max. de descripteurs dans la table */
#define GDTSIZE 0xFF /* nombre max. de descripteurs dans la table */
#define IDTBASE 0x00000000 /* addr. physique ou doit resider la IDT */
#define GDTBASE 0x00000800 /* addr. physique ... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/arch/x86/archprocess.h | null | null | null | null | null | null | C | 2026-05-04T19:40:27.647072 | #ifndef APROC_H
#define APROC_H
#include <runtime/types.h>
extern "C" {
#define KERNELMODE 0
#define USERMODE 1
/** info processor structure for a process */
struct process_st {
int pid;
struct {
u32 eax, ecx, edx, ebx;
u32 esp, ebp, esi, edi;
u32 eip, eflags;
u32 cs:16, ss:16, ds:16, es:16, fs:1... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/arch/x86/io.h | null | null | null | null | null | null | C | 2026-05-04T19:40:27.648635 |
#ifndef IO_H
#define IO_H
#include <runtime/types.h>
#define RAMSCREEN 0xB8000 /* debut de la memoire video */
#define SIZESCREEN 0xFA0 /* 4000, nombres d'octets d'une page texte */
#define SCREENLIM 0xB8FA0
/** Input/output class **/
class Io
{
public:
Io();
Io(u32 flag);
/** standart io color **/
... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/core/api/dev/ioctl.h | null | null | null | null | null | null | C | 2026-05-04T19:40:27.649144 | #ifndef __API_IOCTL__
#define __API_IOCTL__
#define DEV_GET_TYPE 0x01 /* Renvoie le type de peripherique */
#define DEV_GET_STATE 0x02 /* renvoie l'etat du peripherique */
#define DEV_GET_FORMAT 0x03 /* renvoie le format du peripherique */
//Type de peripherique :
#define DEV_TYPE_TTY 0x01
#define DEV_T... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/core/api/dev/clock.h | null | null | null | null | null | null | C | 2026-05-04T19:40:27.652383 | #ifndef __API_CLOCK__
#define __API_CLOCK__
typedef unsigned int clock_d;
struct clock_info{
clock_d h;
clock_d m;
clock_d s;
clock_d day;
clock_d month;
clock_d year;
};
#define API_CLOCK_GET_INFO 0x6122
#endif
|
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/arch/x86/architecture.h | null | null | null | null | null | null | C | 2026-05-04T19:40:27.654711 | #ifndef ARCH_H
#define ARCH_H
#include <runtime/types.h>
#include <process.h>
/** Processor architecture class **/
class Architecture
{
public:
/** architecture class functions **/
void init(); /* start the processor interface */
void reboot(); /* reboot the computer */
void shutdown(); /* shutdown the... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/arch/x86/vmm.h | null | null | null | null | null | null | C | 2026-05-04T19:40:27.656437 | #ifndef VMM_H
#define VMM_H
#include <runtime/types.h>
#include <runtime/list.h>
#include <runtime/alloc.h>
#include <x86.h>
extern "C" {
struct page {
char *v_addr;
char *p_addr;
list_head list;
};
struct page_directory {
page *base;
list_head pt;
};
struct vm_area {
char *vm_start;
char *vm_end; ... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/core/api/dev/fb.h | null | null | null | null | null | null | C | 2026-05-04T19:40:27.657622 | #ifndef __API_FB__
#define __API_FB__
struct fb_info{
unsigned int w; //largeur
unsigned int h; //hauteur
char bpp; //bit per pixel
char state; //etat de la carte
unsigned int* vmem; //video memory
};
enum{
FB_NOT_ACTIVE=0,
FB_ACTIVE=1,
};
#define API_FB_IS_AVAILABLE 0x801
#define ... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/core/api/dev/tty.h | null | null | null | null | null | null | C | 2026-05-04T19:40:28.346388 | #ifndef __API_TTY__
#define __API_TTY__
#include <api/dev/keyboard.h>
#define TTY_NAME_LEN 16
//tty info
struct tty_info_static{
char name[TTY_NAME_LEN];
char state;
char type;
unsigned int flags;
};
struct tty_info_moving{
unsigned int x;
unsigned int y;
unsigned int attrf;
unsigne... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/core/api/kernel/syscall.h | null | null | null | null | null | null | C | 2026-05-04T19:40:28.347030 |
#ifndef _OS_SYSCALL_H_
#define _OS_SYSCALL_H_
int syscall0( int number );
int syscall1( int number, unsigned int p1 );
int syscall2( int number, unsigned int p1, unsigned int p2 );
int syscall3( int number, unsigned int p1, unsigned int p2, unsigned int p3 );
int syscall4( int number, unsigned int p1, unsigned int p... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/core/api/dev/ipc.h | null | null | null | null | null | null | C | 2026-05-04T19:40:28.349503 | #ifndef __API_IPC__
#define __API_IPC__
#define STDIPC_FILENO 3
#define SIGIPC SIGUSR1
//iotcl
#define API_TTY_SWITCH_SCREEN 0xff52
#endif
|
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/core/elf_loader.h | null | null | null | null | null | null | C | 2026-05-04T19:40:28.362207 | #ifndef ELF_H
#define ELF_H
#include <runtime/types.h>
#include <process.h>
/*
* ELF HEADER
*/
typedef struct {
unsigned char e_ident[16]; /* ELF identification */
u16 e_type; /* 2 (exec file) */
u16 e_machine; /* 3 (intel architecture) */
u32 e_version; /* 1 */
u32 e_entry; /* starting point */
u32 e_pho... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/core/api/dev/keyboard.h | null | null | null | null | null | null | C | 2026-05-04T19:40:28.366251 | #ifndef __API_KEYBOARD__
#define __API_KEYBOARD__
//keyboard
enum {
KEY_TAB = 7,
KEY_BACKSPACE = 8,
KEY_ENTER = 10,
KEY_ESCAPE = 27,
KEY_F1 = 255,
KEY_F2 = 254,
KEY_F3 = 253,
KEY_F4 = 252,
KEY_F5 = 251,
KEY_F6 = 250,
KEY_F7 = 249,
KEY_F8 = 248,
KEY... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/core/api/kernel/syscall_table.h | null | null | null | null | null | null | C | 2026-05-04T19:40:28.389818 |
#ifndef _OS_SYSCALL_TABLE_H_
#define _OS_SYSCALL_TABLE_H_
#define NOT_DEFINED 0
enum {
SYS_rewinddir =NOT_DEFINED,
SYS_sbrk =45, // (count)
SYS_fork =NOT_DEFINED,
SYS_write =4, // (fd,buffer,count)
SYS_read =3, // (fd,buffer,count)
SYS_open =5, // (filename,flag)
SYS_close =6, // (fd)... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/core/boot.h | null | null | null | null | null | null | C | 2026-05-04T19:40:28.390391 | #ifndef __MY_BOOT__
#define __MY_BOOT__
#include <runtime/types.h>
struct multiboot_info {
u32 flags;
u32 low_mem;
u32 high_mem;
u32 boot_device;
u32 cmdline;
u32 mods_count;
u32 mods_addr;
struct {
u32 num;
u32 size;
u32 addr;
u32 shndx;
} elf_sec;
unsigned long mmap_length;
un... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/core/api/dev/proc.h | null | null | null | null | null | null | C | 2026-05-04T19:40:28.406268 | #ifndef __API_PROC__
#define __API_PROC__
struct proc_info{
char name[32];
unsigned int pid;
unsigned int tid;
unsigned char state;
unsigned int vmem;
unsigned int pmem;
};
enum{
PROC_STATE_RUN=0,
PROC_STATE_ZOMBIE=1,
PROC_STATE_THREAD=2,
};
#define API_PROC_GET_PID 0x5200
#defin... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/core/device.h | null | null | null | null | null | null | C | 2026-05-04T19:40:28.442318 | #ifndef DEVICE_H
#define DEVICE_H
#include <core/file.h>
#include <runtime/list.h>
class Device : public File
{
public:
Device(char* n);
~Device();
virtual u32 open(u32 flag);
virtual u32 close();
virtual u32 read(u8* buffer,u32 size);
virtual u32 write(u8* buffer,u32 size);
virtual u32 ioctl(... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/core/env.h | null | null | null | null | null | null | C | 2026-05-04T19:40:28.443629 | #ifndef ENV_H
#define ENV_H
#include <core/file.h>
#include <runtime/list.h>
class Variable : public File
{
public:
Variable(char* n,char* v);
~Variable();
u32 open(u32 flag);
u32 close();
u32 read(u32 pos,u8* buffer,u32 size);
u32 write(u32 pos,u8* buffer,u32 size);
u32 ioctl(u32 id,u8* buffe... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/core/keyboard.h | null | null | null | null | null | null | C | 2026-05-04T19:40:28.991118 |
#ifndef __KBD__
#define __KBD__
#include <api/dev/tty.h>
char kbdmap_default[] = {
KEY_ESCAPE, KEY_ESCAPE, KEY_ESCAPE, KEY_ESCAPE, /* esc (0x01) */
'1', '!', '1', '1',
'2', '@', '2', '2',
'3', '#', '3', '3',
'4', '$', '4', '4',
'5', '%', '5', '5',
'6', ':', '6', '6',
'7', '&', '7', '7',
'8', '*',... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/core/file.h | null | null | null | null | null | null | C | 2026-05-04T19:40:29.007338 |
#ifndef FILE_H
#define FILE_H
#include <runtime/types.h>
enum{
TYPE_FILE,
TYPE_DIRECTORY,
TYPE_DEVICE,
TYPE_PROCESS,
TYPE_LINK
};
class File
{
public:
File(char* n,u8 t);
~File();
virtual u32 open(u32 flag);
virtual u32 close();
virtual u32 read(u32 pos,u8* buffer,u32 size);
virtual u32 wr... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/core/kernel.h | null | null | null | null | null | null | C | 2026-05-04T19:40:29.008487 |
#ifndef KERNEL_H
#define KERNEL_H
#include <runtime/alloc.h>
#include <runtime/libc.h>
#include <runtime/string.h>
#include <core/file.h>
#include <core/filesystem.h>
#include <core/elf_loader.h>
#include <core/syscalls.h>
#include <core/env.h>
#include <core/user.h>
#include <core/modulelink.h>
#include <core/devi... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/core/modulelink.h | null | null | null | null | null | null | C | 2026-05-04T19:40:29.016180 |
#ifndef MODLINK_H
#define MODLINK_H
#include <core/file.h>
#include <runtime/list.h>
class ModLink : public File
{
public:
ModLink(char* n);
~ModLink();
u32 open(u32 flag);
u32 close();
u32 read(u8* buffer,u32 size);
u32 write(u8* buffer,u32 size);
u32 ioctl(u32 id,u8* buffer);
u32 remove(... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/core/filesystem.h | null | null | null | null | null | null | C | 2026-05-04T19:40:29.016704 |
#ifndef FILESYSTEM_H
#define FILESYSTEM_H
#include <runtime/types.h>
#include <core/file.h>
class Filesystem
{
public:
Filesystem();
~Filesystem();
void init();
void mknod(char* module,char* name,u32 flag);
File* path(char* p);
File* path_parent(char* p,char *fname);
u32 link(char* fname... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/core/os.h | null | null | null | null | null | null | C | 2026-05-04T19:40:29.032405 | #ifndef OS_H
#define OS_H
#include <config.h>
#include <kernel.h>
typedef File* (*device_driver) (char* name,u32 flag,File* dev);
struct module_class{
int module_type;
char* module_name;
char* class_name;
device_driver drive;
};
/*
* Module Macro
*/
#define MODULE_DEVICE 0
#define MODULE_FILESYST... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/core/process.h | null | null | null | null | null | null | C | 2026-05-04T19:40:29.062819 |
#ifndef PROC_H
#define PROC_H
#include <core/file.h>
#include <runtime/list.h>
#include <archprocess.h> /* definition de process_st */
#include <core/signal.h>
#include <runtime/buffer.h>
#include <api/dev/proc.h>
#define ZOMBIE PROC_STATE_ZOMBIE
#define CHILD PROC_STATE_RUN
struct openfile
{
u32 mode; /* Mo... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/core/socket.h | null | null | null | null | null | null | C | 2026-05-04T19:40:29.103704 |
#ifndef SOCKET_H
#define SOCKET_H
#include <core/file.h>
#include <runtime/list.h>
class Socket : public File
{
public:
Socket(char* n);
~Socket();
u32 open(u32 flag);
u32 close();
u32 read(u8* buffer,u32 size);
u32 write(u8* buffer,u32 size);
u32 ioctl(u32 id,u8* buffer);
u32 remove();
... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/core/signal.h | null | null | null | null | null | null | C | 2026-05-04T19:40:29.119478 |
#ifndef SIGNAL_H
#define SIGNAL_H
#include <runtime/types.h>
#include <process.h>
#define SIGHUP 1 /* Hangup (POSIX). */
#define SIGINT 2 /* Interrupt (ANSI). */
#define SIGQUIT 3 /* Quit (POSIX). */
#define SIGILL 4 /* Illegal instruction (ANSI). */
#define SIGTRAP 5 ... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/core/syscalls.h | null | null | null | null | null | null | C | 2026-05-04T19:40:29.128956 |
#ifndef SYSCALL_H
#define SYSCALL_H
#include <core/file.h>
#include <runtime/list.h>
#define NB_SYSCALLS 100
typedef void (*syscall_handler)(void);
class Syscalls
{
public:
void init();
void add(u32 num,syscall_handler h);
void call(u32 num);
protected:
syscall_handler calls[NB_SYSCALLS];
};
ext... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/core/system.h | null | null | null | null | null | null | C | 2026-05-04T19:40:29.603084 |
#ifndef SYSTEM_H
#define SYSTEM_H
#include <runtime/types.h>
#include <core/env.h>
#include <core/user.h>
class System
{
public:
System();
~System();
void init();
char* getvar(char* name);
void addUserToList(User* us);
User* getUser(char* nae);
int login(User* us,char* pass);
u32 i... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/core/user.h | null | null | null | null | null | null | C | 2026-05-04T19:40:29.645517 |
#ifndef USER_H
#define USER_H
#include <core/file.h>
#include <runtime/list.h>
enum {
USER_ROOT, //root
USER_NORM //utilisateur normal
};
class User : public File
{
public:
User(char* n);
~User();
u32 open(u32 flag);
u32 close();
u32 read(u8* buffer,u32 size);
u32 write(u8* buffer,u32 size);
... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/modules/bochsvbe.h | null | null | null | null | null | null | C | 2026-05-04T19:40:29.677620 |
#ifndef __BOCHS_VBE__
#define __BOCHS_VBE__
#include <runtime/types.h>
#include <core/device.h>
#include <io.h>
#include <api/dev/ioctl.h>
#include <api/dev/fb.h>
#define VBE_DISPI_ENABLED (0x01)
#define VBE_DISPI_DISABLED (0x00)
#define VBE_DISPI_INDEX_ENABLE (4)
#define VBE_DISPI_ID4 (0xB0C4)
#de... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/modules/ext2.h | null | null | null | null | null | null | C | 2026-05-04T19:40:29.697649 |
#ifndef __EXT2__
#define __EXT2__
#include <runtime/types.h>
#include <core/file.h>
#include <io.h>
/*
* Ext2 specification
*/
struct ext2_super_block {
u32 s_inodes_count; /* Total number of inodes */
u32 s_blocks_count; /* Total number of blocks */
u32 s_r_blocks_count; /* Total number of blocks... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/modules/dospartition.h | null | null | null | null | null | null | C | 2026-05-04T19:40:29.699021 |
#ifndef __DOS_PARTITION__
#define __DOS_PARTITION__
#include <runtime/types.h>
#include <core/file.h>
#include <io.h>
#define DOS_PART_1 0x01BE
#define DOS_PART_2 0x01CE
#define DOS_PART_3 0x01DE
#define DOS_PART_4 0x01EE
struct dos_partition {
u8 bootable; /* 0 = no, 0x80 = bootable */
u8 s_head... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/modules/clock_x86.h | null | null | null | null | null | null | C | 2026-05-04T19:40:29.716276 |
#ifndef __CLOCK__
#define __CLOCK__
#include <runtime/types.h>
#include <core/device.h>
#include <io.h>
#include <api/dev/clock.h>
class Clock_x86 : public Device
{
public:
Clock_x86(char* n);
~Clock_x86();
u32 open(u32 flag);
u32 close();
u32 read(u32 pos,u8* buffer,u32 size)... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/modules/ide.h | null | null | null | null | null | null | C | 2026-05-04T19:40:29.717431 |
#ifndef __IDE__
#define __IDE__
#include <runtime/types.h>
#include <core/device.h>
#include <io.h>
class Ide : public Device
{
public:
Ide(char* n);
~Ide();
u32 open(u32 flag);
u32 close();
u32 read(u32 pos,u8* buffer,u32 size);
u32 write(u32 pos,u8* buffer,u32 size);
u32... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/modules/keys.h | null | null | null | null | null | null | C | 2026-05-04T19:40:29.746643 |
#ifndef __KEYS__
#define __KEYS__
#include <runtime/types.h>
#include <core/device.h>
#include <io.h>
#include <api/dev/keyboard.h>
class Keyboard : public Device
{
public:
Keyboard(char* n);
~Keyboard();
u32 open(u32 flag);
u32 close();
u32 read(u32 pos,u8* buffer,u32 size);
... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/modules/module.h | null | null | null | null | null | null | C | 2026-05-04T19:40:29.788593 |
#ifndef __MODULE__
#define __MODULE__
#include <runtime/types.h>
#include <core/file.h>
#include <io.h>
#define NO_FLAG 0
class Module
{
public:
Module();
~Module();
void initLink();
void init();
File* createDevice(char* name,char* module,u32 flag);
File* mount(char* dev,c... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/modules/null.h | null | null | null | null | null | null | C | 2026-05-04T19:40:29.789828 |
#ifndef __NULL__
#define __NULL__
#include <runtime/types.h>
#include <core/device.h>
#include <io.h>
class Null : public Device
{
public:
Null(char* n);
~Null();
u32 open(u32 flag);
u32 close();
u32 read(u32 pos,u8* buffer,u32 size);
u32 write(u32 pos,u8* buffer,u32 size);
... |
SamyPesse/How-to-Make-a-Computer-Operating-System | https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System | null | null | null | null | 22,464 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/kernel/modules/stdtty.h | null | null | null | null | null | null | C | 2026-05-04T19:40:30.211570 |
#ifndef __CONSOLE__
#define __CONSOLE__
#include <runtime/types.h>
#include <core/file.h>
#include <io.h>
#include <api/dev/ioctl.h>
#include <api/dev/tty.h>
class Console : public Device
{
public:
Console(char* n,u32 flag);
~Console();
u32 open(u32 flag);
u32 close();
u32 re... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.