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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
eclipse-threadx/threadx | https://github.com/eclipse-threadx/threadx | null | null | null | null | 3,445 | null | null | mit | null | null | null | null | null | null | null | common/src/tx_byte_allocate.c | null | null | null | null | null | null | C | 2026-05-04T18:32:12.101447 | /***************************************************************************
* Copyright (c) 2024 Microsoft Corporation
* Copyright (c) 2026-present Eclipse ThreadX contributors
*
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://... |
eclipse-threadx/threadx | https://github.com/eclipse-threadx/threadx | null | null | null | null | 3,445 | null | null | mit | null | null | null | null | null | null | null | common/src/tx_byte_pool_delete.c | null | null | null | null | null | null | C | 2026-05-04T18:32:12.102701 | /***************************************************************************
* Copyright (c) 2024 Microsoft Corporation
* Copyright (c) 2026-present Eclipse ThreadX contributors
*
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://... |
eclipse-threadx/threadx | https://github.com/eclipse-threadx/threadx | null | null | null | null | 3,445 | null | null | mit | null | null | null | null | null | null | null | common/src/tx_byte_pool_info_get.c | null | null | null | null | null | null | C | 2026-05-04T18:32:12.324070 | /***************************************************************************
* Copyright (c) 2024 Microsoft Corporation
* Copyright (c) 2026-present Eclipse ThreadX contributors
*
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://... |
eclipse-threadx/threadx | https://github.com/eclipse-threadx/threadx | null | null | null | null | 3,445 | null | null | mit | null | null | null | null | null | null | null | common/src/tx_byte_pool_initialize.c | null | null | null | null | null | null | C | 2026-05-04T18:32:12.409402 | /***************************************************************************
* Copyright (c) 2024 Microsoft Corporation
* Copyright (c) 2026-present Eclipse ThreadX contributors
*
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://... |
eclipse-threadx/threadx | https://github.com/eclipse-threadx/threadx | null | null | null | null | 3,445 | null | null | mit | null | null | null | null | null | null | null | common/src/tx_byte_pool_prioritize.c | null | null | null | null | null | null | C | 2026-05-04T18:32:12.817345 | /***************************************************************************
* Copyright (c) 2024 Microsoft Corporation
* Copyright (c) 2026-present Eclipse ThreadX contributors
*
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://... |
eclipse-threadx/threadx | https://github.com/eclipse-threadx/threadx | null | null | null | null | 3,445 | null | null | mit | null | null | null | null | null | null | null | common/src/tx_byte_pool_performance_info_get.c | null | null | null | null | null | null | C | 2026-05-04T18:32:12.818183 | /***************************************************************************
* Copyright (c) 2024 Microsoft Corporation
* Copyright (c) 2026-present Eclipse ThreadX contributors
*
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://... |
eclipse-threadx/threadx | https://github.com/eclipse-threadx/threadx | null | null | null | null | 3,445 | null | null | mit | null | null | null | null | null | null | null | common/src/tx_byte_pool_performance_system_info_get.c | null | null | null | null | null | null | C | 2026-05-04T18:32:12.820318 | /***************************************************************************
* Copyright (c) 2024 Microsoft Corporation
* Copyright (c) 2026-present Eclipse ThreadX contributors
*
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://... |
eclipse-threadx/threadx | https://github.com/eclipse-threadx/threadx | null | null | null | null | 3,445 | null | null | mit | null | null | null | null | null | null | null | common/src/tx_byte_release.c | null | null | null | null | null | null | C | 2026-05-04T18:32:13.042832 | /***************************************************************************
* Copyright (c) 2024 Microsoft Corporation
* Copyright (c) 2026-present Eclipse ThreadX contributors
*
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://... |
eclipse-threadx/threadx | https://github.com/eclipse-threadx/threadx | null | null | null | null | 3,445 | null | null | mit | null | null | null | null | null | null | null | common/src/tx_event_flags_cleanup.c | null | null | null | null | null | null | C | 2026-05-04T18:32:13.043391 | /***************************************************************************
* Copyright (c) 2024 Microsoft Corporation
* Copyright (c) 2026-present Eclipse ThreadX contributors
*
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://... |
eclipse-threadx/threadx | https://github.com/eclipse-threadx/threadx | null | null | null | null | 3,445 | null | null | mit | null | null | null | null | null | null | null | common/src/tx_event_flags_delete.c | null | null | null | null | null | null | C | 2026-05-04T18:32:13.303580 | /***************************************************************************
* Copyright (c) 2024 Microsoft Corporation
* Copyright (c) 2026-present Eclipse ThreadX contributors
*
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://... |
eclipse-threadx/threadx | https://github.com/eclipse-threadx/threadx | null | null | null | null | 3,445 | null | null | mit | null | null | null | null | null | null | null | common/src/tx_event_flags_initialize.c | null | null | null | null | null | null | C | 2026-05-04T18:32:13.514945 | /***************************************************************************
* Copyright (c) 2024 Microsoft Corporation
* Copyright (c) 2026-present Eclipse ThreadX contributors
*
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://... |
eclipse-threadx/threadx | https://github.com/eclipse-threadx/threadx | null | null | null | null | 3,445 | null | null | mit | null | null | null | null | null | null | null | common/src/tx_event_flags_info_get.c | null | null | null | null | null | null | C | 2026-05-04T18:32:13.545113 | /***************************************************************************
* Copyright (c) 2024 Microsoft Corporation
* Copyright (c) 2026-present Eclipse ThreadX contributors
*
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://... |
eclipse-threadx/threadx | https://github.com/eclipse-threadx/threadx | null | null | null | null | 3,445 | null | null | mit | null | null | null | null | null | null | null | common/src/tx_event_flags_get.c | null | null | null | null | null | null | C | 2026-05-04T18:32:13.546309 | /***************************************************************************
* Copyright (c) 2024 Microsoft Corporation
* Copyright (c) 2026-present Eclipse ThreadX contributors
*
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://... |
eclipse-threadx/threadx | https://github.com/eclipse-threadx/threadx | null | null | null | null | 3,445 | null | null | mit | null | null | null | null | null | null | null | common/src/tx_event_flags_performance_system_info_get.c | null | null | null | null | null | null | C | 2026-05-04T18:32:13.728290 | /***************************************************************************
* Copyright (c) 2024 Microsoft Corporation
* Copyright (c) 2026-present Eclipse ThreadX contributors
*
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://... |
eclipse-threadx/threadx | https://github.com/eclipse-threadx/threadx | null | null | null | null | 3,445 | null | null | mit | null | null | null | null | null | null | null | common/src/tx_event_flags_performance_info_get.c | null | null | null | null | null | null | C | 2026-05-04T18:32:13.741209 | /***************************************************************************
* Copyright (c) 2024 Microsoft Corporation
* Copyright (c) 2026-present Eclipse ThreadX contributors
*
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://... |
eclipse-threadx/threadx | https://github.com/eclipse-threadx/threadx | null | null | null | null | 3,445 | null | null | mit | null | null | null | null | null | null | null | common/src/tx_byte_pool_search.c | null | null | null | null | null | null | C | 2026-05-04T18:32:13.853481 | /***************************************************************************
* Copyright (c) 2024 Microsoft Corporation
* Copyright (c) 2026-present Eclipse ThreadX contributors
*
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://... |
eclipse-threadx/threadx | https://github.com/eclipse-threadx/threadx | null | null | null | null | 3,445 | null | null | mit | null | null | null | null | null | null | null | common/src/tx_event_flags_set.c | null | null | null | null | null | null | C | 2026-05-04T18:32:13.964766 | /***************************************************************************
* Copyright (c) 2024 Microsoft Corporation
* Copyright (c) 2026-present Eclipse ThreadX contributors
*
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://... |
eclipse-threadx/threadx | https://github.com/eclipse-threadx/threadx | null | null | null | null | 3,445 | null | null | mit | null | null | null | null | null | null | null | common/src/tx_block_pool_initialize.c | null | null | null | null | null | null | C | 2026-05-04T18:32:14.270648 | /***************************************************************************
* Copyright (c) 2024 Microsoft Corporation
* Copyright (c) 2026-present Eclipse ThreadX contributors
*
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://... |
eclipse-threadx/threadx | https://github.com/eclipse-threadx/threadx | null | null | null | null | 3,445 | null | null | mit | null | null | null | null | null | null | null | common/src/tx_initialize_kernel_enter.c | null | null | null | null | null | null | C | 2026-05-04T18:32:14.272162 | /***************************************************************************
* Copyright (c) 2024 Microsoft Corporation
* Copyright (c) 2026-present Eclipse ThreadX contributors
*
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://... |
eclipse-threadx/threadx | https://github.com/eclipse-threadx/threadx | null | null | null | null | 3,445 | null | null | mit | null | null | null | null | null | null | null | common/src/tx_block_pool_delete.c | null | null | null | null | null | null | C | 2026-05-04T18:32:14.273350 | /***************************************************************************
* Copyright (c) 2024 Microsoft Corporation
* Copyright (c) 2026-present Eclipse ThreadX contributors
*
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://... |
eclipse-threadx/threadx | https://github.com/eclipse-threadx/threadx | null | null | null | null | 3,445 | null | null | mit | null | null | null | null | null | null | null | common/src/tx_event_flags_set_notify.c | null | null | null | null | null | null | C | 2026-05-04T18:32:14.274174 | /***************************************************************************
* Copyright (c) 2024 Microsoft Corporation
* Copyright (c) 2026-present Eclipse ThreadX contributors
*
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://... |
eclipse-threadx/threadx | https://github.com/eclipse-threadx/threadx | null | null | null | null | 3,445 | null | null | mit | null | null | null | null | null | null | null | common/src/tx_initialize_kernel_setup.c | null | null | null | null | null | null | C | 2026-05-04T18:32:14.512480 | /***************************************************************************
* Copyright (c) 2024 Microsoft Corporation
* Copyright (c) 2026-present Eclipse ThreadX contributors
*
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://... |
eclipse-threadx/threadx | https://github.com/eclipse-threadx/threadx | null | null | null | null | 3,445 | null | null | mit | null | null | null | null | null | null | null | common/src/tx_misra.c | null | null | null | null | null | null | C | 2026-05-04T18:32:14.541305 | /***************************************************************************
* Copyright (c) 2024 Microsoft Corporation
* Copyright (c) 2026-present Eclipse ThreadX contributors
*
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://... |
eclipse-threadx/threadx | https://github.com/eclipse-threadx/threadx | null | null | null | null | 3,445 | null | null | mit | null | null | null | null | null | null | null | common/src/tx_initialize_high_level.c | null | null | null | null | null | null | C | 2026-05-04T18:32:14.631132 | /***************************************************************************
* Copyright (c) 2024 Microsoft Corporation
* Copyright (c) 2026-present Eclipse ThreadX contributors
*
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://... |
eclipse-threadx/threadx | https://github.com/eclipse-threadx/threadx | null | null | null | null | 3,445 | null | null | mit | null | null | null | null | null | null | null | common/src/tx_mutex_cleanup.c | null | null | null | null | null | null | C | 2026-05-04T18:32:14.655752 | /***************************************************************************
* Copyright (c) 2024 Microsoft Corporation
* Copyright (c) 2026-present Eclipse ThreadX contributors
*
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://... |
eclipse-threadx/threadx | https://github.com/eclipse-threadx/threadx | null | null | null | null | 3,445 | null | null | mit | null | null | null | null | null | null | null | common/src/tx_mutex_create.c | null | null | null | null | null | null | C | 2026-05-04T18:32:14.809307 | /***************************************************************************
* Copyright (c) 2024 Microsoft Corporation
* Copyright (c) 2026-present Eclipse ThreadX contributors
*
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://... |
eclipse-threadx/threadx | https://github.com/eclipse-threadx/threadx | null | null | null | null | 3,445 | null | null | mit | null | null | null | null | null | null | null | common/src/tx_mutex_get.c | null | null | null | null | null | null | C | 2026-05-04T18:32:14.967053 | /***************************************************************************
* Copyright (c) 2024 Microsoft Corporation
* Copyright (c) 2026-present Eclipse ThreadX contributors
*
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://... |
eclipse-threadx/threadx | https://github.com/eclipse-threadx/threadx | null | null | null | null | 3,445 | null | null | mit | null | null | null | null | null | null | null | common/src/tx_mutex_delete.c | null | null | null | null | null | null | C | 2026-05-04T18:32:15.143551 | /***************************************************************************
* Copyright (c) 2024 Microsoft Corporation
* Copyright (c) 2026-present Eclipse ThreadX contributors
*
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://... |
eclipse-threadx/threadx | https://github.com/eclipse-threadx/threadx | null | null | null | null | 3,445 | null | null | mit | null | null | null | null | null | null | null | common/src/tx_event_flags_create.c | null | null | null | null | null | null | C | 2026-05-04T18:32:18.483865 | /***************************************************************************
* Copyright (c) 2024 Microsoft Corporation
* Copyright (c) 2026-present Eclipse ThreadX contributors
*
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://... |
34736384/genshin-fps-unlock | https://github.com/34736384/genshin-fps-unlock | null | null | null | null | 3,431 | null | null | mit | null | null | null | null | null | null | null | UnlockerStub/Utils.h | null | null | null | null | null | null | C | 2026-05-04T18:32:20.708117 | #pragma once
#include <Windows.h>
#include <string>
#include <vector>
#include <span>
template<typename T, typename Func>
class MemoryGuard
{
T pResource;
Func pFree;
public:
MemoryGuard(T pAddress, Func pFunc) : pResource(pAddress), pFree(pFunc) {}
~MemoryGuard() { if (pResource) pFree(pResource); }
operator T()... |
osqzss/gps-sdr-sim | https://github.com/osqzss/gps-sdr-sim | null | null | null | null | 3,379 | null | null | mit | null | null | null | null | null | null | null | getopt.c | null | null | null | null | null | null | C | 2026-05-04T18:32:23.155300 | /*
* Copyright (c) 1987, 1993, 1994
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above c... |
osqzss/gps-sdr-sim | https://github.com/osqzss/gps-sdr-sim | null | null | null | null | 3,379 | null | null | mit | null | null | null | null | null | null | null | player/limeplayer_win/getopt.c | null | null | null | null | null | null | C | 2026-05-04T18:32:23.158512 | /*
* Copyright (c) 1987, 1993, 1994
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above c... |
osqzss/gps-sdr-sim | https://github.com/osqzss/gps-sdr-sim | null | null | null | null | 3,379 | null | null | mit | null | null | null | null | null | null | null | player/limeplayer_win/getopt.h | null | null | null | null | null | null | C | 2026-05-04T18:32:23.160126 | #ifndef GETOPT_H
#define GETOPT_H
extern char *optarg;
extern int optind;
int getopt(int nargc, char * const nargv[], const char *ostr) ;
#endif
|
osqzss/gps-sdr-sim | https://github.com/osqzss/gps-sdr-sim | null | null | null | null | 3,379 | null | null | mit | null | null | null | null | null | null | null | player/limeplayer_win/limeplayer.c | null | null | null | null | null | null | C | 2026-05-04T18:32:23.166566 | #define _CRT_SECURE_NO_WARNINGS
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#ifdef _WIN32
#include "getopt.h"
#else
#include <unistd.h>
#endif
#include <lime/LimeSuite.h>
// Configration Properties:
// C/C++ --> General --> Addition... |
osqzss/gps-sdr-sim | https://github.com/osqzss/gps-sdr-sim | null | null | null | null | 3,379 | null | null | mit | null | null | null | null | null | null | null | player/limeplayer.c | null | null | null | null | null | null | C | 2026-05-04T18:32:23.167898 | #define _CRT_SECURE_NO_DEPRECATE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include <sys/time.h>
#include <unistd.h>
#include <getopt.h>
#include <signal.h>
#include <lime/LimeSuite.h>
#define EXIT_CODE_CONTROL_C (-3)
#define EXIT_CODE_NO_DEVICE (-2)
#define EXIT_... |
osqzss/gps-sdr-sim | https://github.com/osqzss/gps-sdr-sim | null | null | null | null | 3,379 | null | null | mit | null | null | null | null | null | null | null | player/hackplayer.c | null | null | null | null | null | null | C | 2026-05-04T18:32:23.171115 | #define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#ifdef _WIN32
#include <windows.h>
#ifdef _WIN64
typedef int64_t ssize_t;
#else
typedef int32_t ssize_t;
#endif
typedef int bool;
#define true 1
#define false 0
#include "getopt.h"
#else
#include <stdbool.h>
#include <sys/types.h>
#include <getopt.... |
osqzss/gps-sdr-sim | https://github.com/osqzss/gps-sdr-sim | null | null | null | null | 3,379 | null | null | mit | null | null | null | null | null | null | null | getopt.h | null | null | null | null | null | null | C | 2026-05-04T18:32:23.172813 | #ifndef GETOPT_H
#define GETOPT_H
extern char *optarg;
extern int optind;
int getopt(int nargc, char * const nargv[], const char *ostr) ;
#endif
|
osqzss/gps-sdr-sim | https://github.com/osqzss/gps-sdr-sim | null | null | null | null | 3,379 | null | null | mit | null | null | null | null | null | null | null | gpssim.h | null | null | null | null | null | null | C | 2026-05-04T18:32:23.173961 | #ifndef GPSSIM_H
#define GPSSIM_H
//#define FLOAT_CARR_PHASE // For RKT simulation. Higher computational load, but smoother carrier phase.
#define TRUE (1)
#define FALSE (0)
/*! \brief Maximum length of a line in a text file (RINEX, motion) */
#define MAX_CHAR (100)
/*! \brief Maximum number of satellites in RINEX ... |
osqzss/gps-sdr-sim | https://github.com/osqzss/gps-sdr-sim | null | null | null | null | 3,379 | null | null | mit | null | null | null | null | null | null | null | player/bladeplayer.c | null | null | null | null | null | null | C | 2026-05-04T18:32:23.176559 | #define _CRT_SECURE_NO_WARNINGS
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <libbladeRF.h>
#ifdef _WIN32
#include "getopt.h"
#else
#include <getopt.h>
#include <unistd.h>
#include <errno.h>
#endif
#define TX_FREQUENCY 1575420000
#define TX_SAMPLERATE 2600000
#define TX_BANDWIDTH 250000... |
osqzss/gps-sdr-sim | https://github.com/osqzss/gps-sdr-sim | null | null | null | null | 3,379 | null | null | mit | null | null | null | null | null | null | null | gpssim.c | null | null | null | null | null | null | C | 2026-05-04T18:32:23.222784 | #define _CRT_SECURE_NO_DEPRECATE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>
#ifdef _WIN32
#include "getopt.h"
#else
#include <unistd.h>
#endif
#include "gpssim.h"
int sinTable512[] = {
2, 5, 8, 11, 14, 17, 20, 23, 26, 29, 32, 35, 38, 41, 44, 47,... |
osqzss/gps-sdr-sim | https://github.com/osqzss/gps-sdr-sim | null | null | null | null | 3,379 | null | null | mit | null | null | null | null | null | null | null | player/plutoplayer_win/plutoplayer.c | null | null | null | null | null | null | C | 2026-05-04T18:32:23.810515 | #define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#ifdef _WIN32
#include "getopt.h"
#include "ad9361.h"
#include "iio.h"
#else
#include <getopt.h>
#include <ad9361.h>
#include <iio.h>
#endif
#include <errno.h>
#include <signal.h>
#include <string.h>
#define NOTUSED(V) ((void) V)
#define MHZ(x) ((... |
osqzss/gps-sdr-sim | https://github.com/osqzss/gps-sdr-sim | null | null | null | null | 3,379 | null | null | mit | null | null | null | null | null | null | null | player/plutoplayer_win/ad9361.h | null | null | null | null | null | null | C | 2026-05-04T18:32:23.833233 | /*
* Copyright (C) 2015 Analog Devices, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This... |
osqzss/gps-sdr-sim | https://github.com/osqzss/gps-sdr-sim | null | null | null | null | 3,379 | null | null | mit | null | null | null | null | null | null | null | player/plutoplayer.c | null | null | null | null | null | null | C | 2026-05-04T18:32:23.838397 | #include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include <errno.h>
#include <signal.h>
#include <string.h>
#include <iio.h>
#include <ad9361.h>
#define NOTUSED(V) ((void) V)
#define MHZ(x) ((long long)(x*1000000.0 + .5))
#define GHZ(x) ((long long)(x*1000000000.0 + .5))
#define NUM_SAMPLES 26000... |
osqzss/gps-sdr-sim | https://github.com/osqzss/gps-sdr-sim | null | null | null | null | 3,379 | null | null | mit | null | null | null | null | null | null | null | player/plutoplayer_win/iio.h | null | null | null | null | null | null | C | 2026-05-04T18:32:23.844561 | /* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
* libiio - Library for interfacing industrial I/O (IIO) devices
*
* Copyright (C) 2014 Analog Devices, Inc.
* Author: Paul Cercueil <paul.cercueil@analog.com>
*/
/** @file iio.h
* @brief Public interface */
#ifndef __IIO_H__
#define __IIO_H__
#ifdef __cpluspl... |
osqzss/gps-sdr-sim | https://github.com/osqzss/gps-sdr-sim | null | null | null | null | 3,379 | null | null | mit | null | null | null | null | null | null | null | player/plutoplayer_win/getopt.h | null | null | null | null | null | null | C | 2026-05-04T18:32:23.865004 | #ifndef GETOPT_H
#define GETOPT_H
extern char *optarg;
extern int optind;
int getopt(int nargc, char * const nargv[], const char *ostr) ;
#endif
|
osqzss/gps-sdr-sim | https://github.com/osqzss/gps-sdr-sim | null | null | null | null | 3,379 | null | null | mit | null | null | null | null | null | null | null | player/plutoplayer_win/getopt.c | null | null | null | null | null | null | C | 2026-05-04T18:32:23.865680 | /*
* Copyright (c) 1987, 1993, 1994
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above c... |
osqzss/gps-sdr-sim | https://github.com/osqzss/gps-sdr-sim | null | null | null | null | 3,379 | null | null | mit | null | null | null | null | null | null | null | player/plutoplayer_win/ad9361_baseband_auto_rate.c | null | null | null | null | null | null | C | 2026-05-04T18:32:23.894466 | /*
* Copyright (C) 2016 Analog Devices, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This... |
jakogut/tinyvm | https://github.com/jakogut/tinyvm | null | null | null | null | 3,319 | null | null | mit | null | null | null | null | null | null | null | include/tvm/tvm_htab.h | null | null | null | null | null | null | C | 2026-05-04T18:32:27.668716 | #ifndef TVM_HTAB_H_
#define TVM_HTAB_H_
#define KEY_LENGTH 64
#define HTAB_SIZE 4096
struct tvm_htab_node {
char *key;
int value;
void *valptr;
struct tvm_htab_node *next;
};
struct tvm_htab_ctx {
unsigned int num_nodes;
unsigned int size;
struct tvm_htab_node **nodes;
};
struct tvm_htab_ctx *tvm_htab_create... |
jakogut/tinyvm | https://github.com/jakogut/tinyvm | null | null | null | null | 3,319 | null | null | mit | null | null | null | null | null | null | null | include/tvm/tvm_memory.h | null | null | null | null | null | null | C | 2026-05-04T18:32:27.669972 | #ifndef TVM_MEMORY_H_
#define TVM_MEMORY_H_
#include <stdint.h>
#include <stddef.h>
#define MIN_MEMORY_SIZE (64 * 1024 * 1024) /* 64 MB */
union tvm_reg_u {
int32_t i32;
int32_t *i32_ptr;
union {
int16_t h;
int16_t l;
} i16;
};
struct tvm_mem {
/*
* Similar to x86 FLAGS register
*
* 0x1 EQUAL
* 0... |
jakogut/tinyvm | https://github.com/jakogut/tinyvm | null | null | null | null | 3,319 | null | null | mit | null | null | null | null | null | null | null | include/tvm/tvm_stack.h | null | null | null | null | null | null | C | 2026-05-04T18:32:27.673446 | #ifndef TVM_STACK_H_
#define TVM_STACK_H_
#define MIN_STACK_SIZE (2 * 1024 * 1024) /* 2 MB */
#include "tvm_memory.h"
/* Initialize our stack by setting the base pointer and stack pointer */
static inline void tvm_stack_create(struct tvm_mem *mem, size_t size)
{
mem->registers[0x7].i32_ptr =
((int32_t *)mem->mem... |
jakogut/tinyvm | https://github.com/jakogut/tinyvm | null | null | null | null | 3,319 | null | null | mit | null | null | null | null | null | null | null | include/tvm/tvm_parser.h | null | null | null | null | null | null | C | 2026-05-04T18:32:27.673981 | #ifndef TVM_PARSER_H_
#define TVM_PARSER_H_
#include "tvm.h"
#include "tvm_program.h"
int tvm_parse_labels(struct tvm_ctx *vm, const char ***tokens);
int tvm_parse_program(struct tvm_ctx *vm, const char ***tokens);
int *tvm_add_value(struct tvm_ctx *vm, const int val);
int tvm_parse_value(const char *str);
#endif
|
jakogut/tinyvm | https://github.com/jakogut/tinyvm | null | null | null | null | 3,319 | null | null | mit | null | null | null | null | null | null | null | include/tvm/tvm_lexer.h | null | null | null | null | null | null | C | 2026-05-04T18:32:27.691070 | #ifndef TVM_LEXER_H_
#define TVM_LEXER_H_
#define MAX_ARGS 2
#define MAX_TOKENS 4
#include "tvm_htab.h"
struct tvm_lexer_ctx {
char **source_lines;
char ***tokens;
};
struct tvm_lexer_ctx *lexer_create();
void tvm_lexer_destroy(struct tvm_lexer_ctx *l);
/* Tokenize the character array "source" into lines and tok... |
jakogut/tinyvm | https://github.com/jakogut/tinyvm | null | null | null | null | 3,319 | null | null | mit | null | null | null | null | null | null | null | include/tvm/tvm_preprocessor.h | null | null | null | null | null | null | C | 2026-05-04T18:32:27.691581 | #ifndef TVM_PREPROCESSOR_H_
#define TVM_PREPROCESSOR_H_
#include "tvm_htab.h"
int tvm_preprocess(char **src, int *src_len, struct tvm_htab_ctx *defines);
#endif
|
jakogut/tinyvm | https://github.com/jakogut/tinyvm | null | null | null | null | 3,319 | null | null | mit | null | null | null | null | null | null | null | include/tvm/tvm_file.h | null | null | null | null | null | null | C | 2026-05-04T18:32:27.701453 | #ifndef TVM_FILE_H_
#define TVM_FILE_H_
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
FILE *tvm_fopen(const char *filename, const char *extension, const char *mode);
/* Copy the contents of a file from file handle "src" to char array "dest" */
int tvm_fcopy(char *dest, size_t size, FILE *src);
/* Get t... |
jakogut/tinyvm | https://github.com/jakogut/tinyvm | null | null | null | null | 3,319 | null | null | mit | null | null | null | null | null | null | null | include/tvm/tvm_tokens.h | null | null | null | null | null | null | C | 2026-05-04T18:32:27.702794 | #ifndef _TVM_TOKENS_H_
#define _TVM_TOKENS_H_
#define TOK_INCLUDE "%include"
#define TOK_DEFINE "%define"
extern const char *tvm_opcode_map[];
extern const char *tvm_register_map[];
#endif
|
jakogut/tinyvm | https://github.com/jakogut/tinyvm | null | null | null | null | 3,319 | null | null | mit | null | null | null | null | null | null | null | include/tvm/tvm_program.h | null | null | null | null | null | null | C | 2026-05-04T18:32:27.703874 | #ifndef TVM_PROGRAM_H_
#define TVM_PROGRAM_H_
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "tvm_htab.h"
#include "tvm_memory.h"
struct tvm_prog {
int start;
int num_instr;
int *instr;
int ***args;
int **values;
int num_values;
struct tvm_htab_ctx *defines;
struct tvm_htab_ctx *label... |
jakogut/tinyvm | https://github.com/jakogut/tinyvm | null | null | null | null | 3,319 | null | null | mit | null | null | null | null | null | null | null | include/tvm/tvm.h | null | null | null | null | null | null | C | 2026-05-04T18:32:27.732344 | #ifndef TVM_H_
#define TVM_H_
#include <stddef.h>
#include "tvm_file.h"
#include "tvm_preprocessor.h"
#include "tvm_stack.h"
#include "tvm_memory.h"
#include "tvm_program.h"
#include "tvm_tokens.h"
struct tvm_ctx {
struct tvm_prog *prog;
struct tvm_mem *mem;
};
struct tvm_ctx *tvm_vm_create();
void tvm_vm_destro... |
jakogut/tinyvm | https://github.com/jakogut/tinyvm | null | null | null | null | 3,319 | null | null | mit | null | null | null | null | null | null | null | libtvm/tvm.c | null | null | null | null | null | null | C | 2026-05-04T18:32:28.309026 | #include <tvm/tvm.h>
#include <tvm/tvm_lexer.h>
#include <tvm/tvm_parser.h>
struct tvm_ctx *tvm_vm_create()
{
struct tvm_ctx *vm =
(struct tvm_ctx *)calloc(1, sizeof(struct tvm_ctx));
if (!vm)
return NULL;
vm->mem = tvm_mem_create(MIN_MEMORY_SIZE);
vm->prog = tvm_prog_create();
if (!vm->mem || !vm->prog) {... |
jakogut/tinyvm | https://github.com/jakogut/tinyvm | null | null | null | null | 3,319 | null | null | mit | null | null | null | null | null | null | null | libtvm/tvm_file.c | null | null | null | null | null | null | C | 2026-05-04T18:32:28.347148 | #include <tvm/tvm_file.h>
FILE *tvm_fopen(const char *filename, const char *extension, const char *mode)
{
FILE *filp = NULL;
size_t fname_chars = strlen(filename) + strlen(extension) + 1;
char *fname = calloc(fname_chars, sizeof(char));
int i;
strcpy(fname, filename);
for (i = 0; i < 2 && !filp; i++) {
if (... |
jakogut/tinyvm | https://github.com/jakogut/tinyvm | null | null | null | null | 3,319 | null | null | mit | null | null | null | null | null | null | null | libtvm/tvm_lexer.c | null | null | null | null | null | null | C | 2026-05-04T18:32:28.348304 | #include <tvm/tvm_lexer.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct tvm_lexer_ctx *lexer_create()
{
return (struct tvm_lexer_ctx *)calloc(1, sizeof(struct tvm_lexer_ctx));
}
void tvm_lexer_destroy(struct tvm_lexer_ctx *lexer)
{
for (int i = 0; lexer->source_lines[i]; i++)
free(lexer->sou... |
jakogut/tinyvm | https://github.com/jakogut/tinyvm | null | null | null | null | 3,319 | null | null | mit | null | null | null | null | null | null | null | libtvm/tvm_htab.c | null | null | null | null | null | null | C | 2026-05-04T18:32:28.379045 | #include <stdlib.h>
#include <string.h>
#include <tvm/tvm_htab.h>
#define HTAB_LOAD_FACTOR 0.7
struct tvm_htab_ctx *tvm_htab_create()
{
struct tvm_htab_ctx *htab =
(struct tvm_htab_ctx *)calloc(1, sizeof(struct tvm_htab_ctx));
htab->size = HTAB_SIZE;
htab->nodes = (struct tvm_htab_node **)calloc(
htab->size... |
jakogut/tinyvm | https://github.com/jakogut/tinyvm | null | null | null | null | 3,319 | null | null | mit | null | null | null | null | null | null | null | libtvm/tvm_memory.c | null | null | null | null | null | null | C | 2026-05-04T18:32:28.380207 | #include <tvm/tvm_memory.h>
#include <stdlib.h>
#include <string.h>
#define NUM_REGISTERS 17
struct tvm_mem *tvm_mem_create(size_t size)
{
struct tvm_mem *m =
(struct tvm_mem *)calloc(1, sizeof(struct tvm_mem));
m->registers = calloc(NUM_REGISTERS, sizeof(union tvm_reg_u));
m->mem_space_size = size;
m->mem_s... |
jakogut/tinyvm | https://github.com/jakogut/tinyvm | null | null | null | null | 3,319 | null | null | mit | null | null | null | null | null | null | null | programs/c/euler/euler1_nodiv.c | null | null | null | null | null | null | C | 2026-05-04T18:32:28.387159 | #include <stdio.h>
int main()
{
unsigned upper_bound = 1000000, sum = 0, iteration = 0;
for(int i = 3; i < upper_bound; i += 3) sum += i;
for(int i = 5; i < upper_bound; i += 15) sum += i;
for(int i = 10; i < upper_bound; i+= 15) sum += i;
printf("%i\n", sum);
}
|
jakogut/tinyvm | https://github.com/jakogut/tinyvm | null | null | null | null | 3,319 | null | null | mit | null | null | null | null | null | null | null | libtvm/tvm_parser.c | null | null | null | null | null | null | C | 2026-05-04T18:32:28.387734 | #include <tvm/tvm_parser.h>
#include <tvm/tvm_file.h>
#include <tvm/tvm_lexer.h>
#include <tvm/tvm_tokens.h>
const char *tvm_opcode_map[] = {
"nop", "int", "mov",
"push", "pop", "pushf", "popf",
"inc", "dec", "add", "sub", "mul", "div", "mod", "rem",
"not", "xor", "or", "and", "shl", "shr",
"cmp", "jmp", "call", ... |
jakogut/tinyvm | https://github.com/jakogut/tinyvm | null | null | null | null | 3,319 | null | null | mit | null | null | null | null | null | null | null | libtvm/tvm_preprocessor.c | null | null | null | null | null | null | C | 2026-05-04T18:32:28.405156 | #include <tvm/tvm_preprocessor.h>
#include <tvm/tvm_file.h>
#include <tvm/tvm_tokens.h>
#include <unistd.h>
#include <string.h>
static int process_includes(
char **src, int *src_len, struct tvm_htab_ctx *defines)
{
char *pp_directive_delimiter = strstr(*src, TOK_INCLUDE);
if (!pp_directive_delimiter)
return 0;
... |
jakogut/tinyvm | https://github.com/jakogut/tinyvm | null | null | null | null | 3,319 | null | null | mit | null | null | null | null | null | null | null | programs/c/fib.c | null | null | null | null | null | null | C | 2026-05-04T18:32:28.405606 | #include <stdio.h>
int main()
{
int a = 1, b = 0;
loop:
a += b;
b += a;
printf("%i\n%i\n", a, b);
if(a > 0 && b > 0) goto loop;
return 0;
}
|
jakogut/tinyvm | https://github.com/jakogut/tinyvm | null | null | null | null | 3,319 | null | null | mit | null | null | null | null | null | null | null | libtvm/tvm_program.c | null | null | null | null | null | null | C | 2026-05-04T18:32:28.562482 | #include <tvm/tvm_file.h>
#include <tvm/tvm_program.h>
#include <tvm/tvm_preprocessor.h>
#include <tvm/tvm_lexer.h>
#include <tvm/tvm_parser.h>
#include <tvm/tvm.h>
struct tvm_prog *tvm_prog_create()
{
struct tvm_prog *p = calloc(1, sizeof(struct tvm_prog));
p->label_htab = tvm_htab_create();
p->defines = tvm_htab... |
jakogut/tinyvm | https://github.com/jakogut/tinyvm | null | null | null | null | 3,319 | null | null | mit | null | null | null | null | null | null | null | tdb/tdb.c | null | null | null | null | null | null | C | 2026-05-04T18:32:29.352716 | #include "tdb.h"
#include <tvm/tvm.h>
#include <tvm/tvm_parser.h>
#include <stdio.h>
#define TOKEN_LENGTH 32
#define MAX_TOKENS 3
#define MAX_INPUT_LENGTH 256
const char *commands[] = {"q", "run", "break", "step", "continue", 0};
static void tokenize(char *str, char **tokens);
static int cmd_to_idx(char *cmd);
voi... |
jakogut/tinyvm | https://github.com/jakogut/tinyvm | null | null | null | null | 3,319 | null | null | mit | null | null | null | null | null | null | null | tdb/main.c | null | null | null | null | null | null | C | 2026-05-04T18:32:29.353690 | #include <stdio.h>
#include "tdb.h"
int main(int argc, char **argv)
{
struct tvm_ctx *vm = tvm_vm_create();
if(vm != NULL && tvm_vm_interpret(vm, argv[1]) == 0) tdb_shell(vm);
tvm_vm_destroy(vm);
return 0;
}
|
jakogut/tinyvm | https://github.com/jakogut/tinyvm | null | null | null | null | 3,319 | null | null | mit | null | null | null | null | null | null | null | tdb/tdb_breakpoint.h | null | null | null | null | null | null | C | 2026-05-04T18:32:29.466963 | #ifndef TDB_BREAKPOINT_H_
#define TDB_BREAKPOINT_H_
#define TDB_BREAKPOINT_LABEL 0x1
#define TDB_BREAKPOINT_ADDRESS 0x2
struct tdb_breakpoint
{
int address;
char *label;
int type;
};
#endif
|
jakogut/tinyvm | https://github.com/jakogut/tinyvm | null | null | null | null | 3,319 | null | null | mit | null | null | null | null | null | null | null | src/tvmi.c | null | null | null | null | null | null | C | 2026-05-04T18:32:29.615297 | #include <stdlib.h>
#include <stdio.h>
#include <tvm/tvm.h>
int main(int argc, char **argv)
{
struct tvm_ctx *vm = tvm_vm_create();
if (vm != NULL && tvm_vm_interpret(vm, argv[1]) == 0)
tvm_vm_run(vm);
tvm_vm_destroy(vm);
return 0;
}
|
jakogut/tinyvm | https://github.com/jakogut/tinyvm | null | null | null | null | 3,319 | null | null | mit | null | null | null | null | null | null | null | tdb/tdb.h | null | null | null | null | null | null | C | 2026-05-04T18:32:30.313712 | #ifndef TDB_H_
#define TDB_H_
#include <tvm/tvm.h>
#include "tdb_breakpoint.h"
void tdb_shell(struct tvm_ctx *vm);
int tdb_run(struct tvm_ctx *vm, struct tdb_breakpoint *breakpoints, int num_breakpoints);
void tdb_step(struct tvm_ctx *vm);
#endif
|
GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator | https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator | null | null | null | null | 3,319 | null | null | mit | null | null | null | null | null | null | null | src/VmaUsage.h | null | null | null | null | null | null | C | 2026-05-04T18:32:33.173444 | //
// Copyright (c) 2017-2026 Advanced Micro Devices, Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rig... |
GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator | https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator | null | null | null | null | 3,319 | null | null | mit | null | null | null | null | null | null | null | src/SparseBindingTest.h | null | null | null | null | null | null | C | 2026-05-04T18:32:33.173996 | //
// Copyright (c) 2017-2026 Advanced Micro Devices, Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rig... |
GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator | https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator | null | null | null | null | 3,319 | null | null | mit | null | null | null | null | null | null | null | src/Tests.h | null | null | null | null | null | null | C | 2026-05-04T18:32:33.174844 | //
// Copyright (c) 2017-2026 Advanced Micro Devices, Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rig... |
GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator | https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator | null | null | null | null | 3,319 | null | null | mit | null | null | null | null | null | null | null | src/Common.h | null | null | null | null | null | null | C | 2026-05-04T18:32:33.202941 | //
// Copyright (c) 2017-2026 Advanced Micro Devices, Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rig... |
zigzap/zap | https://github.com/zigzap/zap | null | null | null | null | 3,316 | null | null | mit | null | null | null | null | null | null | null | facil.io/examples/http-hello.c | null | null | null | null | null | null | C | 2026-05-04T18:32:35.640541 | /**
In this a Hello World example using the bundled HTTP / WebSockets extension.
Compile using:
NAME=http make
Or test the `poll` engine's performance by compiling with `poll`:
FIO_POLL=1 NAME=http make
Run with:
./tmp/http -t 1
Benchmark with keep-alive:
ab -c 200 -t 4 -n 1000000 -k http://127.... |
zigzap/zap | https://github.com/zigzap/zap | null | null | null | null | 3,316 | null | null | mit | null | null | null | null | null | null | null | facil.io/examples/boiler_plate/src/http_service.h | null | null | null | null | null | null | C | 2026-05-04T18:32:35.643547 | #ifndef H_HTTP_SERVICE_H
#define H_HTTP_SERVICE_H
/* this function can be safely ignored. */
void initialize_http_service(void);
#endif
|
zigzap/zap | https://github.com/zigzap/zap | null | null | null | null | 3,316 | null | null | mit | null | null | null | null | null | null | null | facil.io/examples/boiler_plate/src/main.c | null | null | null | null | null | null | C | 2026-05-04T18:32:35.656281 | #include "main.h"
int main(int argc, char const *argv[]) {
/* accept command line arguments and setup default values, see "cli.c" */
initialize_cli(argc, argv);
/* initialize HTTP service, see "http_service.h" */
initialize_http_service();
/* start facil */
fio_start(.threads = fio_cli_get_i("-t"), .work... |
zigzap/zap | https://github.com/zigzap/zap | null | null | null | null | 3,316 | null | null | mit | null | null | null | null | null | null | null | facil.io/examples/boiler_plate/src/cli.c | null | null | null | null | null | null | C | 2026-05-04T18:32:35.663686 | #include <stdlib.h>
#include <string.h>
#include "cli.h"
#include "fio.h"
#include "fio_cli.h"
#include "http.h"
#include "redis_engine.h"
static void redis_cleanup(void *e_) {
redis_engine_destroy(e_);
FIO_LOG_DEBUG("Cleaned up redis engine object.");
FIO_PUBSUB_DEFAULT = FIO_PUBSUB_CLUSTER;
}
void initializ... |
zigzap/zap | https://github.com/zigzap/zap | null | null | null | null | 3,316 | null | null | mit | null | null | null | null | null | null | null | facil.io/examples/benchmarks/framework_benchmark.c | null | null | null | null | null | null | C | 2026-05-04T18:32:35.677081 | /*
This is a short implementation fo the TechEmpower Framework Benchmarks. See:
http://frameworkbenchmarks.readthedocs.io/en/latest/
At the moment it's incomplete and only answers the plaintext and json tests
using the full HTTP framework stack (without any DB support).
*/
#include "http.h"
#include "fio_cli.h"
/* *... |
zigzap/zap | https://github.com/zigzap/zap | null | null | null | null | 3,316 | null | null | mit | null | null | null | null | null | null | null | facil.io/examples/benchmarks/websocket_shootout.c | null | null | null | null | null | null | C | 2026-05-04T18:32:35.680044 | /**
This example emulates the websocket shootout testing requirements, except that
the JSON will not be fully parsed.
See the Websocket-Shootout repository at GitHub:
https://github.com/hashrocket/websocket-shootout
Using the benchmarking tool, try the following benchmarks (binary and text):
websocket-bench broadcas... |
zigzap/zap | https://github.com/zigzap/zap | null | null | null | null | 3,316 | null | null | mit | null | null | null | null | null | null | null | facil.io/examples/boiler_plate/src/main.h | null | null | null | null | null | null | C | 2026-05-04T18:32:35.695602 | #include "fio.h"
#include "cli.h"
#include "fio_cli.h"
#include "http.h"
#include "http_service.h"
|
zigzap/zap | https://github.com/zigzap/zap | null | null | null | null | 3,316 | null | null | mit | null | null | null | null | null | null | null | facil.io/examples/boiler_plate/src/http_service.c | null | null | null | null | null | null | C | 2026-05-04T18:32:35.699418 | #include "fio_cli.h"
#include "main.h"
/* TODO: edit this function to handle HTTP data and answer Websocket requests.*/
static void on_http_request(http_s *h) {
/* set a response and send it (finnish vs. destroy). */
http_send_body(h, "Hello World!", 12);
}
/* starts a listeninng socket for HTTP connections. */
v... |
zigzap/zap | https://github.com/zigzap/zap | null | null | null | null | 3,316 | null | null | mit | null | null | null | null | null | null | null | facil.io/examples/http-chat.c | null | null | null | null | null | null | C | 2026-05-04T18:32:35.703475 | /**
In this a Hello World example using the bundled HTTP / WebSockets extension.
Compile using:
NAME=http make
Or test the `poll` engine's performance by compiling with `poll`:
FIO_POLL=1 NAME=http make
Run with:
./tmp/http -t 1
Benchmark with keep-alive:
ab -c 200 -t 4 -n 1000000 -k http://127.... |
zigzap/zap | https://github.com/zigzap/zap | null | null | null | null | 3,316 | null | null | mit | null | null | null | null | null | null | null | facil.io/examples/boiler_plate/src/cli.h | null | null | null | null | null | null | C | 2026-05-04T18:32:35.706117 | #ifndef H_APP_CLI_H
#define H_APP_CLI_H
void initialize_cli(int argc, char const *argv[]);
void free_cli(void);
#endif
|
zigzap/zap | https://github.com/zigzap/zap | null | null | null | null | 3,316 | null | null | mit | null | null | null | null | null | null | null | facil.io/examples/http_client.c | null | null | null | null | null | null | C | 2026-05-04T18:32:36.273073 | #include "fio_cli.h"
#include "http.h"
static void on_response(http_s *h);
int main(int argc, char const *argv[]) {
fio_cli_start(
argc, argv, 1, 1,
"This is an HTTP client example, use:\n"
"\n\tfioapp http://example.com/foo\n",
FIO_CLI_STRING("-unix -u Unix Socket address (has no place in u... |
zigzap/zap | https://github.com/zigzap/zap | null | null | null | null | 3,316 | null | null | mit | null | null | null | null | null | null | null | facil.io/lib/facil/cli/fio_cli.h | null | null | null | null | null | null | C | 2026-05-04T18:32:36.336447 | /*
Copyright: Boaz segev, 2017
License: MIT
Feel free to copy, use and enjoy according to the license provided.
*/
#ifndef H_FIO_CLI_HELPER_H
#define H_FIO_CLI_HELPER_H
/* support C++ */
#ifdef __cplusplus
extern "C" {
#endif
/* *****************************************************************************
CLI API
**... |
zigzap/zap | https://github.com/zigzap/zap | null | null | null | null | 3,316 | null | null | mit | null | null | null | null | null | null | null | facil.io/examples/raw-http.c | null | null | null | null | null | null | C | 2026-05-04T18:32:36.338050 | /**
In this example we will author an HTTP server with a smaller memory footprint
and a simplified design.
This simplified design gains performance at the price of ease of use and
flexibility.
This design can be effective for some applications, however it suffers form a
rigid HTTP header limit and a harder to use dat... |
zigzap/zap | https://github.com/zigzap/zap | null | null | null | null | 3,316 | null | null | mit | null | null | null | null | null | null | null | facil.io/examples/raw-chat.c | null | null | null | null | null | null | C | 2026-05-04T18:32:36.357592 | /* *****************************************************************************
This is a simple echo server example.
To try it out, compile using (avoids server state printout):
FIO_PRINT=0 NAME=char make
Than run:
./tmp/char
To connect to this server run telnet, netcat or the client example, using:
... |
zigzap/zap | https://github.com/zigzap/zap | null | null | null | null | 3,316 | null | null | mit | null | null | null | null | null | null | null | facil.io/lib/facil/fiobj/fio_siphash.c | null | null | null | null | null | null | C | 2026-05-04T18:32:36.363382 | /*
Copyright: Boaz Segev, 2017-2019
License: MIT
*/
#include <fio_siphash.h>
/* *****************************************************************************
NOTICE
This code won't be linked to the final application when using fio.h and fio.c.
The code is here only to allow the F... |
zigzap/zap | https://github.com/zigzap/zap | null | null | null | null | 3,316 | null | null | mit | null | null | null | null | null | null | null | facil.io/examples/raw-client.c | null | null | null | null | null | null | C | 2026-05-04T18:32:36.364362 | /*
This is a simple REPL client example, similar to netcat but simpler.
Data is read from STDIN (which is most of the code) and sent as is, including
the EOL (end of line) character(s).
To try it out, compile using (avoids server state printout):
FIO_PRINT=0 NAME=client make
Than run:
./tmp/client localhos... |
zigzap/zap | https://github.com/zigzap/zap | null | null | null | null | 3,316 | null | null | mit | null | null | null | null | null | null | null | facil.io/lib/facil/fio_zig.c | null | null | null | null | null | null | C | 2026-05-04T18:32:36.386345 | #include <fio.h>
#include <fiobject.h>
int fiobj_invalid = FIOBJ_INVALID;
int is_invalid(FIOBJ o) {
if(o == FIOBJ_INVALID) return 1;
return 0;
}
void fiobj_free_wrapped(FIOBJ o) {
if (!FIOBJ_IS_ALLOCATED(o))
return;
if (fiobj_ref_dec(o))
return;
if (FIOBJECT2VTBL(o)->each && FIOBJECT2VTBL(o)->c... |
zigzap/zap | https://github.com/zigzap/zap | null | null | null | null | 3,316 | null | null | mit | null | null | null | null | null | null | null | facil.io/lib/facil/fiobj/fio_json_parser.h | null | null | null | null | null | null | C | 2026-05-04T18:32:36.387599 | #ifndef H_FIO_JSON_H
/* *****************************************************************************
* Copyright: Boaz Segev, 2017-2019
* License: MIT
*
* This header file is a single-file JSON naive parse.
*
* The code was extracted form the FIOBJ implementation in order to allow the
* parser to be used indepe... |
zigzap/zap | https://github.com/zigzap/zap | null | null | null | null | 3,316 | null | null | mit | null | null | null | null | null | null | null | facil.io/examples/raw-echo.c | null | null | null | null | null | null | C | 2026-05-04T18:32:36.438086 | /* *****************************************************************************
This is a simple echo server example.
To try it out, compile using (avoids server state printout):
FIO_PRINT=0 NAME=echo make
Than run:
./tmp/echo
To connect to this server run telnet, netcat or the client example, using:
... |
zigzap/zap | https://github.com/zigzap/zap | null | null | null | null | 3,316 | null | null | mit | null | null | null | null | null | null | null | facil.io/lib/facil/cli/fio_cli.c | null | null | null | null | null | null | C | 2026-05-04T18:32:36.539884 | /*
Copyright: Boaz segev, 2017
License: MIT
Feel free to copy, use and enjoy according to the license provided.
*/
#include <fio.h>
#include <fio_cli.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
/* ************************************************************... |
zigzap/zap | https://github.com/zigzap/zap | null | null | null | null | 3,316 | null | null | mit | null | null | null | null | null | null | null | facil.io/lib/facil/fiobj/fio_tmpfile.h | null | null | null | null | null | null | C | 2026-05-04T18:32:37.290026 | /*
Copyright: Boaz Segev, 2018-2019
License: MIT
*/
#ifndef H_FIO_TMPFILE_H
/** a simple helper to create temporary files and file names */
#define H_FIO_TMPFILE_H
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#in... |
zigzap/zap | https://github.com/zigzap/zap | null | null | null | null | 3,316 | null | null | mit | null | null | null | null | null | null | null | facil.io/lib/facil/fiobj/fio_siphash.h | null | null | null | null | null | null | C | 2026-05-04T18:32:37.290676 | #ifndef H_FIO_SIPHASH_H
#define H_FIO_SIPHASH_H
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <stdint.h>
#include <sys/types.h>
/**
* A SipHash variation (2-4).
*/
uint64_t fio_siphash24(const void *data, size_t len, uint64_t key1,
uint64_t key2);
/**
* A SipHash 1-3 variation.
... |
zigzap/zap | https://github.com/zigzap/zap | null | null | null | null | 3,316 | null | null | mit | null | null | null | null | null | null | null | facil.io/lib/facil/fiobj/fiobj_ary.c | null | null | null | null | null | null | C | 2026-05-04T18:32:37.326292 | /*
Copyright: Boaz Segev, 2017-2019
License: MIT
*/
#include <fio.h>
#include <fiobject.h>
#define FIO_ARY_NAME fio_ary__
#define FIO_ARY_TYPE FIOBJ
#define FIO_ARY_TYPE_INVALID FIOBJ_INVALID
#define FIO_ARY_TYPE_COMPARE(a, b) (fiobj_iseq((a), (b)))
#define FIO_ARY_INVALID FIOBJ_INVALID
#include <fio.h>
#include <ass... |
zigzap/zap | https://github.com/zigzap/zap | null | null | null | null | 3,316 | null | null | mit | null | null | null | null | null | null | null | facil.io/lib/facil/fiobj/fiobj4fio.h | null | null | null | null | null | null | C | 2026-05-04T18:32:37.356014 | #ifndef H_FIOBJ4SOCK_H
#define H_FIOBJ4SOCK_H
/**
* Defines a helper for using fiobj with the sock library.
*/
#include <fio.h>
#include <fiobj.h>
static void fiobj4sock_dealloc(void *o) { fiobj_free((FIOBJ)o); }
/** send a FIOBJ object through a socket. */
static inline __attribute__((unused)) ssize_t fiobj_send... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.