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
polardb/PolarDB-for-PostgreSQL
https://github.com/polardb/PolarDB-for-PostgreSQL
null
null
null
null
3,164
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/bool_plperl/bool_plperl.c
null
null
null
null
null
null
C
2026-05-04T19:29:19.190600
#include "postgres.h" #include "fmgr.h" #include "plperl.h" PG_MODULE_MAGIC; PG_FUNCTION_INFO_V1(bool_to_plperl); Datum bool_to_plperl(PG_FUNCTION_ARGS) { dTHX; bool in = PG_GETARG_BOOL(0); return PointerGetDatum(in ? &PL_sv_yes : &PL_sv_no); } PG_FUNCTION_INFO_V1(plperl_to_bool); Datum plperl_to_bool(PG_F...
polardb/PolarDB-for-PostgreSQL
https://github.com/polardb/PolarDB-for-PostgreSQL
null
null
null
null
3,164
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/btree_gist/btree_bool.c
null
null
null
null
null
null
C
2026-05-04T19:29:19.223130
/* * contrib/btree_gist/btree_bool.c */ #include "postgres.h" #include "btree_gist.h" #include "btree_utils_num.h" #include "common/int.h" typedef struct boolkey { bool lower; bool upper; } boolKEY; /* ** bool ops */ PG_FUNCTION_INFO_V1(gbt_bool_compress); PG_FUNCTION_INFO_V1(gbt_bool_fetch); PG_FUNCTION_INFO_...
polardb/PolarDB-for-PostgreSQL
https://github.com/polardb/PolarDB-for-PostgreSQL
null
null
null
null
3,164
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/btree_gist/btree_enum.c
null
null
null
null
null
null
C
2026-05-04T19:29:19.643143
/* * contrib/btree_gist/btree_enum.c */ #include "postgres.h" #include "btree_gist.h" #include "btree_utils_num.h" #include "fmgr.h" #include "utils/builtins.h" /* enums are really Oids, so we just use the same structure */ typedef struct { Oid lower; Oid upper; } oidKEY; /* ** enum ops */ PG_FUNCTION_INFO_...
polardb/PolarDB-for-PostgreSQL
https://github.com/polardb/PolarDB-for-PostgreSQL
null
null
null
null
3,164
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/btree_gist/btree_float8.c
null
null
null
null
null
null
C
2026-05-04T19:29:19.706129
/* * contrib/btree_gist/btree_float8.c */ #include "postgres.h" #include "btree_gist.h" #include "btree_utils_num.h" #include "utils/float.h" typedef struct float8key { float8 lower; float8 upper; } float8KEY; /* ** float8 ops */ PG_FUNCTION_INFO_V1(gbt_float8_compress); PG_FUNCTION_INFO_V1(gbt_float8_fetch); ...
polardb/PolarDB-for-PostgreSQL
https://github.com/polardb/PolarDB-for-PostgreSQL
null
null
null
null
3,164
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/btree_gist/btree_gist.c
null
null
null
null
null
null
C
2026-05-04T19:29:19.781974
/* * contrib/btree_gist/btree_gist.c */ #include "postgres.h" #include "utils/builtins.h" PG_MODULE_MAGIC; PG_FUNCTION_INFO_V1(gbt_decompress); PG_FUNCTION_INFO_V1(gbtreekey_in); PG_FUNCTION_INFO_V1(gbtreekey_out); /************************************************** * In/Out for keys ***************************...
polardb/PolarDB-for-PostgreSQL
https://github.com/polardb/PolarDB-for-PostgreSQL
null
null
null
null
3,164
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/btree_gist/btree_int2.c
null
null
null
null
null
null
C
2026-05-04T19:29:19.825712
/* * contrib/btree_gist/btree_int2.c */ #include "postgres.h" #include "btree_gist.h" #include "btree_utils_num.h" #include "common/int.h" typedef struct int16key { int16 lower; int16 upper; } int16KEY; /* ** int16 ops */ PG_FUNCTION_INFO_V1(gbt_int2_compress); PG_FUNCTION_INFO_V1(gbt_int2_fetch); PG_FUNCTION_...
polardb/PolarDB-for-PostgreSQL
https://github.com/polardb/PolarDB-for-PostgreSQL
null
null
null
null
3,164
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/btree_gist/btree_int4.c
null
null
null
null
null
null
C
2026-05-04T19:29:19.862919
/* * contrib/btree_gist/btree_int4.c */ #include "postgres.h" #include "btree_gist.h" #include "btree_utils_num.h" #include "common/int.h" typedef struct int32key { int32 lower; int32 upper; } int32KEY; /* ** int32 ops */ PG_FUNCTION_INFO_V1(gbt_int4_compress); PG_FUNCTION_INFO_V1(gbt_int4_fetch); PG_FUNCTION_...
polardb/PolarDB-for-PostgreSQL
https://github.com/polardb/PolarDB-for-PostgreSQL
null
null
null
null
3,164
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/btree_gist/btree_inet.c
null
null
null
null
null
null
C
2026-05-04T19:29:20.021624
/* * contrib/btree_gist/btree_inet.c */ #include "postgres.h" #include "btree_gist.h" #include "btree_utils_num.h" #include "catalog/pg_type.h" #include "utils/builtins.h" #include "utils/inet.h" typedef struct inetkey { double lower; double upper; } inetKEY; /* ** inet ops */ PG_FUNCTION_INFO_V1(gbt_inet_comp...
polardb/PolarDB-for-PostgreSQL
https://github.com/polardb/PolarDB-for-PostgreSQL
null
null
null
null
3,164
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/btree_gist/btree_int8.c
null
null
null
null
null
null
C
2026-05-04T19:29:20.352617
/* * contrib/btree_gist/btree_int8.c */ #include "postgres.h" #include "btree_gist.h" #include "btree_utils_num.h" #include "common/int.h" typedef struct int64key { int64 lower; int64 upper; } int64KEY; /* ** int64 ops */ PG_FUNCTION_INFO_V1(gbt_int8_compress); PG_FUNCTION_INFO_V1(gbt_int8_fetch); PG_FUNCTION_...
polardb/PolarDB-for-PostgreSQL
https://github.com/polardb/PolarDB-for-PostgreSQL
null
null
null
null
3,164
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/btree_gist/btree_macaddr8.c
null
null
null
null
null
null
C
2026-05-04T19:29:20.503635
/* * contrib/btree_gist/btree_macaddr8.c */ #include "postgres.h" #include "btree_gist.h" #include "btree_utils_num.h" #include "utils/builtins.h" #include "utils/inet.h" typedef struct { macaddr8 lower; macaddr8 upper; /* make struct size = sizeof(gbtreekey16) */ } mac8KEY; /* ** OID ops */ PG_FUNCTION_INFO_V1...
polardb/PolarDB-for-PostgreSQL
https://github.com/polardb/PolarDB-for-PostgreSQL
null
null
null
null
3,164
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/btree_gist/btree_numeric.c
null
null
null
null
null
null
C
2026-05-04T19:29:20.756586
/* * contrib/btree_gist/btree_numeric.c */ #include "postgres.h" #include <math.h> #include <float.h> #include "btree_gist.h" #include "btree_utils_var.h" #include "utils/builtins.h" #include "utils/numeric.h" #include "utils/rel.h" /* ** Bytea ops */ PG_FUNCTION_INFO_V1(gbt_numeric_compress); PG_FUNCTION_INFO_V1(...
polardb/PolarDB-for-PostgreSQL
https://github.com/polardb/PolarDB-for-PostgreSQL
null
null
null
null
3,164
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/btree_gist/btree_oid.c
null
null
null
null
null
null
C
2026-05-04T19:29:20.761384
/* * contrib/btree_gist/btree_oid.c */ #include "postgres.h" #include "btree_gist.h" #include "btree_utils_num.h" typedef struct { Oid lower; Oid upper; } oidKEY; /* ** OID ops */ PG_FUNCTION_INFO_V1(gbt_oid_compress); PG_FUNCTION_INFO_V1(gbt_oid_fetch); PG_FUNCTION_INFO_V1(gbt_oid_union); PG_FUNCTION_INFO_V...
polardb/PolarDB-for-PostgreSQL
https://github.com/polardb/PolarDB-for-PostgreSQL
null
null
null
null
3,164
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/btree_gist/btree_gist.h
null
null
null
null
null
null
C
2026-05-04T19:29:21.941345
/* * contrib/btree_gist/btree_gist.h */ #ifndef __BTREE_GIST_H__ #define __BTREE_GIST_H__ #include "access/nbtree.h" #include "fmgr.h" #define BtreeGistNotEqualStrategyNumber 6 /* indexed types */ enum gbtree_type { gbt_t_var, gbt_t_int2, gbt_t_int4, gbt_t_int8, gbt_t_float4, gbt_t_float8, gbt_t_numeric, ...
polardb/PolarDB-for-PostgreSQL
https://github.com/polardb/PolarDB-for-PostgreSQL
null
null
null
null
3,164
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/btree_gist/btree_text.c
null
null
null
null
null
null
C
2026-05-04T19:29:21.942604
/* * contrib/btree_gist/btree_text.c */ #include "postgres.h" #include "btree_gist.h" #include "btree_utils_var.h" #include "utils/builtins.h" /* ** Text ops */ PG_FUNCTION_INFO_V1(gbt_text_compress); PG_FUNCTION_INFO_V1(gbt_bpchar_compress); PG_FUNCTION_INFO_V1(gbt_text_union); PG_FUNCTION_INFO_V1(gbt_text_pickspl...
polardb/PolarDB-for-PostgreSQL
https://github.com/polardb/PolarDB-for-PostgreSQL
null
null
null
null
3,164
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/btree_gist/btree_utils_num.c
null
null
null
null
null
null
C
2026-05-04T19:29:22.339341
/* * contrib/btree_gist/btree_utils_num.c */ #include "postgres.h" #include "btree_gist.h" #include "btree_utils_num.h" #include "utils/cash.h" #include "utils/date.h" #include "utils/timestamp.h" GISTENTRY * gbt_num_compress(GISTENTRY *entry, const gbtree_ninfo *tinfo) { GISTENTRY *retval; if (entry->leafkey)...
polardb/PolarDB-for-PostgreSQL
https://github.com/polardb/PolarDB-for-PostgreSQL
null
null
null
null
3,164
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/btree_gist/btree_ts.c
null
null
null
null
null
null
C
2026-05-04T19:29:22.340699
/* * contrib/btree_gist/btree_ts.c */ #include "postgres.h" #include <limits.h> #include "btree_gist.h" #include "btree_utils_num.h" #include "utils/builtins.h" #include "utils/datetime.h" #include "utils/float.h" typedef struct { Timestamp lower; Timestamp upper; } tsKEY; /* ** timestamp ops */ PG_FUNCTION_INF...
polardb/PolarDB-for-PostgreSQL
https://github.com/polardb/PolarDB-for-PostgreSQL
null
null
null
null
3,164
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/btree_gist/btree_interval.c
null
null
null
null
null
null
C
2026-05-04T19:29:22.748794
/* * contrib/btree_gist/btree_interval.c */ #include "postgres.h" #include "btree_gist.h" #include "btree_utils_num.h" #include "utils/builtins.h" #include "utils/timestamp.h" typedef struct { Interval lower, upper; } intvKEY; /* ** Interval ops */ PG_FUNCTION_INFO_V1(gbt_intv_compress); PG_FUNCTION_INFO_V1(...
polardb/PolarDB-for-PostgreSQL
https://github.com/polardb/PolarDB-for-PostgreSQL
null
null
null
null
3,164
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/btree_gist/btree_utils_var.c
null
null
null
null
null
null
C
2026-05-04T19:29:22.750276
/* * contrib/btree_gist/btree_utils_var.c */ #include "postgres.h" #include <math.h> #include <limits.h> #include <float.h> #include "btree_gist.h" #include "btree_utils_var.h" #include "utils/builtins.h" #include "utils/pg_locale.h" #include "utils/rel.h" /* used for key sorting */ typedef struct { int i; GBT...
polardb/PolarDB-for-PostgreSQL
https://github.com/polardb/PolarDB-for-PostgreSQL
null
null
null
null
3,164
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/btree_gist/btree_utils_var.h
null
null
null
null
null
null
C
2026-05-04T19:29:23.159155
/* * contrib/btree_gist/btree_utils_var.h */ #ifndef __BTREE_UTILS_VAR_H__ #define __BTREE_UTILS_VAR_H__ #include "access/gist.h" #include "btree_gist.h" #include "mb/pg_wchar.h" /* Variable length key */ typedef bytea GBT_VARKEY; /* Better readable key */ typedef struct { bytea *lower, *upper; } GBT_VAR...
polardb/PolarDB-for-PostgreSQL
https://github.com/polardb/PolarDB-for-PostgreSQL
null
null
null
null
3,164
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/btree_gist/btree_uuid.c
null
null
null
null
null
null
C
2026-05-04T19:29:23.159682
/* * contrib/btree_gist/btree_uuid.c */ #include "postgres.h" #include "btree_gist.h" #include "btree_utils_num.h" #include "port/pg_bswap.h" #include "utils/uuid.h" typedef struct { pg_uuid_t lower, upper; } uuidKEY; /* * UUID ops */ PG_FUNCTION_INFO_V1(gbt_uuid_compress); PG_FUNCTION_INFO_V1(gbt_uuid_fet...
polardb/PolarDB-for-PostgreSQL
https://github.com/polardb/PolarDB-for-PostgreSQL
null
null
null
null
3,164
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/bloom/blvalidate.c
null
null
null
null
null
null
C
2026-05-04T19:29:23.364193
/*------------------------------------------------------------------------- * * blvalidate.c * Opclass validator for bloom. * * Copyright (c) 2016-2024, PostgreSQL Global Development Group * * IDENTIFICATION * contrib/bloom/blvalidate.c * *------------------------------------------------------------------...
polardb/PolarDB-for-PostgreSQL
https://github.com/polardb/PolarDB-for-PostgreSQL
null
null
null
null
3,164
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/btree_gist/btree_bytea.c
null
null
null
null
null
null
C
2026-05-04T19:29:23.365627
/* * contrib/btree_gist/btree_bytea.c */ #include "postgres.h" #include "btree_gist.h" #include "btree_utils_var.h" #include "utils/builtins.h" #include "utils/bytea.h" /* ** Bytea ops */ PG_FUNCTION_INFO_V1(gbt_bytea_compress); PG_FUNCTION_INFO_V1(gbt_bytea_union); PG_FUNCTION_INFO_V1(gbt_bytea_picksplit); PG_FUN...
polardb/PolarDB-for-PostgreSQL
https://github.com/polardb/PolarDB-for-PostgreSQL
null
null
null
null
3,164
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/cube/cube.c
null
null
null
null
null
null
C
2026-05-04T19:29:23.572197
/****************************************************************************** contrib/cube/cube.c This file contains routines that can be bound to a Postgres backend and called by the backend in the process of processing queries. The calling format for these routines is dictated by Postgres architecture. **...
polardb/PolarDB-for-PostgreSQL
https://github.com/polardb/PolarDB-for-PostgreSQL
null
null
null
null
3,164
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/cube/cubedata.h
null
null
null
null
null
null
C
2026-05-04T19:29:24.406511
/* contrib/cube/cubedata.h */ /* * This limit is pretty arbitrary, but don't make it so large that you * risk overflow in sizing calculations. */ #define CUBE_MAX_DIM (100) typedef struct NDBOX { /* varlena header (do not touch directly!) */ int32 vl_len_; /*---------- * Header contains info about NDBOX. Fo...
polardb/PolarDB-for-PostgreSQL
https://github.com/polardb/PolarDB-for-PostgreSQL
null
null
null
null
3,164
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/citext/citext.c
null
null
null
null
null
null
C
2026-05-04T19:29:24.889509
/* * contrib/citext/citext.c */ #include "postgres.h" #include "catalog/pg_collation.h" #include "common/hashfn.h" #include "utils/builtins.h" #include "utils/formatting.h" #include "utils/varlena.h" #include "varatt.h" PG_MODULE_MAGIC; /* * ==================== * FORWARD DECLARATIONS * ==================== ...
polardb/PolarDB-for-PostgreSQL
https://github.com/polardb/PolarDB-for-PostgreSQL
null
null
null
null
3,164
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/btree_gist/btree_time.c
null
null
null
null
null
null
C
2026-05-04T19:29:25.264363
/* * contrib/btree_gist/btree_time.c */ #include "postgres.h" #include "btree_gist.h" #include "btree_utils_num.h" #include "utils/builtins.h" #include "utils/date.h" #include "utils/timestamp.h" typedef struct { TimeADT lower; TimeADT upper; } timeKEY; /* ** time ops */ PG_FUNCTION_INFO_V1(gbt_time_compress);...
polardb/PolarDB-for-PostgreSQL
https://github.com/polardb/PolarDB-for-PostgreSQL
null
null
null
null
3,164
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/dict_int/dict_int.c
null
null
null
null
null
null
C
2026-05-04T19:29:25.373147
/*------------------------------------------------------------------------- * * dict_int.c * Text search dictionary for integers * * Copyright (c) 2007-2024, PostgreSQL Global Development Group * * IDENTIFICATION * contrib/dict_int/dict_int.c * *------------------------------------------------------------...
polardb/PolarDB-for-PostgreSQL
https://github.com/polardb/PolarDB-for-PostgreSQL
null
null
null
null
3,164
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/dict_xsyn/dict_xsyn.c
null
null
null
null
null
null
C
2026-05-04T19:29:25.381762
/*------------------------------------------------------------------------- * * dict_xsyn.c * Extended synonym dictionary * * Copyright (c) 2007-2024, PostgreSQL Global Development Group * * IDENTIFICATION * contrib/dict_xsyn/dict_xsyn.c * *-----------------------------------------------------------------...
polardb/PolarDB-for-PostgreSQL
https://github.com/polardb/PolarDB-for-PostgreSQL
null
null
null
null
3,164
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/fuzzystrmatch/daitch_mokotoff.c
null
null
null
null
null
null
C
2026-05-04T19:29:25.554771
/* * Daitch-Mokotoff Soundex * * Copyright (c) 2023-2024, PostgreSQL Global Development Group * * This module was originally sponsored by Finance Norway / * Trafikkforsikringsforeningen, and implemented by Dag Lem <dag@nimrod.no> * * The implementation of the Daitch-Mokotoff Soundex System aims at correctness ...
polardb/PolarDB-for-PostgreSQL
https://github.com/polardb/PolarDB-for-PostgreSQL
null
null
null
null
3,164
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/btree_gist/btree_macaddr.c
null
null
null
null
null
null
C
2026-05-04T19:29:25.597073
/* * contrib/btree_gist/btree_macaddr.c */ #include "postgres.h" #include "btree_gist.h" #include "btree_utils_num.h" #include "utils/builtins.h" #include "utils/inet.h" typedef struct { macaddr lower; macaddr upper; char pad[4]; /* make struct size = sizeof(gbtreekey16) */ } macKEY; /* ** OID ops */ PG_FU...
polardb/PolarDB-for-PostgreSQL
https://github.com/polardb/PolarDB-for-PostgreSQL
null
null
null
null
3,164
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/file_fdw/file_fdw.c
null
null
null
null
null
null
C
2026-05-04T19:29:26.266540
/*------------------------------------------------------------------------- * * file_fdw.c * foreign-data wrapper for server-side flat files (or programs). * * Copyright (c) 2010-2024, PostgreSQL Global Development Group * * IDENTIFICATION * contrib/file_fdw/file_fdw.c * *-------------------------------...
polardb/PolarDB-for-PostgreSQL
https://github.com/polardb/PolarDB-for-PostgreSQL
null
null
null
null
3,164
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/dblink/dblink.c
null
null
null
null
null
null
C
2026-05-04T19:29:29.353171
/* * dblink.c * * Functions returning results from a remote database * * Joe Conway <mail@joeconway.com> * And contributors: * Darko Prenosil <Darko.Prenosil@finteh.hr> * Shridhar Daithankar <shridhar_daithankar@persistent.co.in> * * contrib/dblink/dblink.c * Copyright (c) 2001-2024, PostgreSQL Global Develo...
polardb/PolarDB-for-PostgreSQL
https://github.com/polardb/PolarDB-for-PostgreSQL
null
null
null
null
3,164
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/btree_gist/btree_float4.c
null
null
null
null
null
null
C
2026-05-04T19:29:29.906263
/* * contrib/btree_gist/btree_float4.c */ #include "postgres.h" #include "btree_gist.h" #include "btree_utils_num.h" #include "utils/float.h" typedef struct float4key { float4 lower; float4 upper; } float4KEY; /* ** float4 ops */ PG_FUNCTION_INFO_V1(gbt_float4_compress); PG_FUNCTION_INFO_V1(gbt_float4_fetch); ...
polardb/PolarDB-for-PostgreSQL
https://github.com/polardb/PolarDB-for-PostgreSQL
null
null
null
null
3,164
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/earthdistance/earthdistance.c
null
null
null
null
null
null
C
2026-05-04T19:29:30.726211
/* contrib/earthdistance/earthdistance.c */ #include "postgres.h" #include <math.h> #include "utils/geo_decls.h" /* for Point */ /* X/Open (XSI) requires <math.h> to provide M_PI, but core POSIX does not */ #ifndef M_PI #define M_PI 3.14159265358979323846 #endif PG_MODULE_MAGIC; /* Earth's radius is in statute mi...
polardb/PolarDB-for-PostgreSQL
https://github.com/polardb/PolarDB-for-PostgreSQL
null
null
null
null
3,164
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/btree_gist/btree_utils_num.h
null
null
null
null
null
null
C
2026-05-04T19:29:33.310390
/* * contrib/btree_gist/btree_utils_num.h */ #ifndef __BTREE_UTILS_NUM_H__ #define __BTREE_UTILS_NUM_H__ #include <math.h> #include <float.h> #include "access/gist.h" #include "btree_gist.h" #include "utils/rel.h" typedef char GBT_NUMKEY; /* Better readable key */ typedef struct { const GBT_NUMKEY *lower, ...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/azure.c
null
null
null
null
null
null
C
2026-05-04T19:29:37.546617
#include <kernel.h> #include <lwip.h> #include <net_utils.h> #include "azure.h" #ifdef AZURE_DEBUG #define azure_debug(fmt, ...) tprintf(sym(azure), 0, ss(fmt "\n"), ##__VA_ARGS__) #else #define azure_debug(fmt, ...) #endif #define AZURE_INSTANCE_MD_ADDR ss("169.254.169.254") typedef struct az_instance_md_req { ...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/azure_diagnostics.c
null
null
null
null
null
null
C
2026-05-04T19:29:37.557166
#include <kernel.h> #include <lwip.h> #include <mktime.h> #include <net_utils.h> #include <pagecache.h> #include <tls.h> #include "azure.h" #ifdef AZURE_DIAG_DEBUG #define azdiag_debug(fmt, ...) tprintf(sym(azure_diag), 0, ss(fmt "\n"), ##__VA_ARGS__) #else #define azdiag_debug(fmt, ...) #endif enum azure_metrics_...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/cloud_init.c
null
null
null
null
null
null
C
2026-05-04T19:29:37.559580
#include <unix_internal.h> #include <cloud_init.h> #include <drivers/dmi.h> #include <filesystem.h> #include <http.h> #include <lwip.h> #include <tls.h> #define AZURE_CHASSIS "7783-7084-3265-9085-8269-3286-77" enum cloud { CLOUD_ERROR, CLOUD_AZURE, CLOUD_UNKNOWN }; enum cloud_init_task_op { CLOUD_I...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/aws.h
null
null
null
null
null
null
C
2026-05-04T19:29:37.570642
#define AWS_ERR_TOKEN_EXPIRED "ExpiredTokenException" boolean aws_metadata_available(void); void aws_metadata_get(heap h, sstring uri, buffer_handler handler); static inline void aws_region_get(heap h, buffer_handler handler) { aws_metadata_get(h, ss("/latest/meta-data/placement/region"), handler); } static in...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/cloudwatch.c
null
null
null
null
null
null
C
2026-05-04T19:29:37.572414
#include <kernel.h> #include <aws.h> #include <drivers/console.h> #include <http.h> #include <lwip.h> #include <mktime.h> #include <pagecache.h> #include <tls.h> #define CLOUDWATCH_SERVICE_NAME "monitoring" #define CLOUDWATCH_LOG_SERVICE_NAME "logs" #define CW_LOG_NEXT_SEQ_TOK "\"nextSequenceToken\"" #define CW_LOG_...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/azure.h
null
null
null
null
null
null
C
2026-05-04T19:29:37.591237
#ifndef AZURE_H_ #define AZURE_H_ typedef struct azure_ext { sstring name; sstring version; status s; u64 cfg_seconds; u64 cfg_seqno; } *azure_ext; closure_type(az_instance_md_handler, void, tuple md); boolean azure_register_ext(azure_ext ext); int azure_diag_init(tuple cfg); void azure_instanc...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/aws.c
null
null
null
null
null
null
C
2026-05-04T19:29:37.827535
#include <kernel.h> #include <aws.h> #include <http.h> #include <lwip.h> #define _RUNTIME_H_ /* guard against double inclusion of runtime.h */ #include <mbedtls/md.h> #include <mbedtls/sha256.h> #define AWS_MD_SERVER IPADDR4_INIT_BYTES(169, 254, 169, 254) #define AWS_CRED_URI "/latest/meta-data/iam/security-cre...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/crc32.c
null
null
null
null
null
null
C
2026-05-04T19:29:38.149522
#include <runtime.h> #include "crc.h" static const u32 crc32c_table[256] = { 0x00000000, 0xf26b8303, 0xe13b70f7, 0x1350f3f4, 0xc79a971f, 0x35f1141c, 0x26a1e7e8, 0xd4ca64eb, 0x8ad958cf, 0x78b2dbcc, 0x6be22838, 0x9989ab3b, 0x4d43cfd0, 0xbf284cd3, 0xac78bf27, 0x5e133c24, 0x105ec76f, 0xe235446c, 0xf165b798, 0...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/klib.h
null
null
null
null
null
null
C
2026-05-04T19:29:38.212947
enum { KLIB_INIT_OK = 0, KLIB_LOAD_FAILED, KLIB_MISSING_DEP, KLIB_INIT_IN_PROGRESS, KLIB_INIT_FAILED };
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/mbedtls.c
null
null
null
null
null
null
C
2026-05-04T19:29:38.220954
#include <kernel.h> #include <lwip.h> #define _RUNTIME_H_ /* guard against double inclusion of runtime.h */ #include <mbedtls/ctr_drbg.h> #include <mbedtls/entropy.h> #include <mbedtls/ssl.h> typedef struct tls_conn { mbedtls_ssl_context ssl; closure_struct(connection_handler, ch); closure_struct(input_bu...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/mbedtls_conf.h
null
null
null
null
null
null
C
2026-05-04T19:29:38.249879
#ifndef _RUNTIME_H_ #include <runtime.h> #endif #include <mktime.h> #define NULL ((void *)0) #define CHAR_BIT 8 #define INT_MAX 0x7fffffff #define UINT_MAX 0xffffffff #define SIZE_MAX 0x7fffffffffffffffll typedef signed char int8_t; typedef unsigned char uint8_t; typedef short int16_t; typedef unsig...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/firewall.c
null
null
null
null
null
null
C
2026-05-04T19:29:38.279349
#include <kernel.h> #include <lwip.h> #include <lwip/prot/tcp.h> typedef struct firewall_rule { struct list l; u8 ip_version; u8 l4_proto; vector l3_match; vector l4_match; boolean drop; } *firewall_rule; typedef struct firewall_constraint { int type; boolean equals; } *firewall_constr...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/gcp.c
null
null
null
null
null
null
C
2026-05-04T19:29:38.307716
#include <kernel.h> #include <drivers/console.h> #include <http.h> #include <lwip.h> #include <mktime.h> #include <pagecache.h> #include <tls.h> #include <storage.h> #include <fs.h> #define GCP_MD_SERVER_ADDR IPADDR4_INIT_BYTES(169, 254, 169, 254) #define GCP_LOG_SERVER_NAME "logging.googleapis.com" #define GCP_LOG_...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/net_utils.c
null
null
null
null
null
null
C
2026-05-04T19:29:38.811845
#include <kernel.h> #include <lwip.h> #include <tls.h> #include "net_utils.h" typedef struct net_http_req_data { heap h; struct net_http_req_params params; closure_struct(connection_handler, ch); buffer_handler out; closure_struct(input_buffer_handler, ibh); buffer_handler parser; closure_...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/sandbox.c
null
null
null
null
null
null
C
2026-05-04T19:29:39.182563
#include <unix_internal.h> #include "sandbox.h" static struct sb_syscall sb_syscalls[SYS_MAX]; static sysreturn sb_handler(u64 arg0, u64 arg1, u64 arg2, u64 arg3, u64 arg4, u64 arg5) { syscall_context sc = (syscall_context)get_current_context(current_cpu()); sb_syscall sbsc = &sb_syscalls[sc->call]; sb_s...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/cloud_azure.c
null
null
null
null
null
null
C
2026-05-04T19:29:39.208323
#include <kernel.h> #include <lwip.h> #include <mktime.h> #include <net_utils.h> #include <xml.h> #include "azure.h" #define AZURE_MS_VERSION "2015-04-05" #define AZURE_WIRESERVER_ADDR ss("168.63.129.16") typedef struct azure { heap h; struct buffer ms_version; struct buffer goalstate_query; cl...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/ntp.c
null
null
null
null
null
null
C
2026-05-04T19:29:39.209331
#include <kernel.h> #include <lwip.h> #include <util.h> //#define NTP_DEBUG #ifdef NTP_DEBUG #define ntp_debug(x, ...) do {tprintf(sym(ntp), 0, ss(x), ##__VA_ARGS__);} while(0) #else #define ntp_debug(x, ...) #endif #define NTP_SERVER_DEFAULT "pool.ntp.org" #define NTP_PORT_DEFAULT 123 #define NTP_EPOCH_DELTA 22...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/sandbox.h
null
null
null
null
null
null
C
2026-05-04T19:29:39.229428
typedef boolean (*sb_syscall_handler)(u64 arg0, u64 arg1, u64 arg2, u64 arg3, u64 arg4, u64 arg5, sysreturn *rv); typedef struct sb_syscall { struct buffer sb_handlers; sysreturn (*default_handler)(u64 arg0, u64 arg1, u64 arg2, u64 arg3, u64 arg4, u64 arg5); } *sb_syscall;...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/special_files.c
null
null
null
null
null
null
C
2026-05-04T19:29:39.463560
#include <unix_internal.h> #include <filesystem.h> #include <storage.h> static heap specfiles_heap; typedef struct specfiles_disks { file f; closure_struct(file_io, read); closure_struct(fdesc_close, close); } *specfiles_disks; closure_function(1, 4, void, disks_handler, buffer, b, ...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/strace_mem.c
null
null
null
null
null
null
C
2026-05-04T19:29:39.883280
#include "strace.h" static void strace_brk_enter(thread t, strace_sc_ctx ctx) { bprintf(ctx->trace_buf, "%p", sc_arg0(t)); ctx->rv_fmt = STRACE_RV_XE; } static void strace_mmap_enter(thread t, strace_sc_ctx ctx) { buffer trace_buf = ctx->trace_buf; bprintf(trace_buf, "%p, %lu, ", sc_arg0(t), sc_arg1(t...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/strace.h
null
null
null
null
null
null
C
2026-05-04T19:29:39.902780
#ifndef STRACE_H_ #define STRACE_H_ #include <unix_internal.h> #define sc_arg0(t) thread_frame(t)[SYSCALL_FRAME_ARG0] #define sc_arg1(t) thread_frame(t)[SYSCALL_FRAME_ARG1] #define sc_arg2(t) thread_frame(t)[SYSCALL_FRAME_ARG2] #define sc_arg3(t) thread_frame(t)[SYSCALL_FRAME_ARG3] #define sc_arg4(t) thread_fram...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/net_utils.h
null
null
null
null
null
null
C
2026-05-04T19:29:39.943304
#ifndef NET_UTILS_H_ #define NET_UTILS_H_ #include <http.h> typedef struct net_http_req_params { sstring host; tuple req; buffer body; value_handler resp_handler; http_method method; u16 port; boolean tls; } *net_http_req_params; void net_resolve(sstring host, void (*cb)(sstring host, con...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/digitalocean.c
null
null
null
null
null
null
C
2026-05-04T19:29:40.060079
#include <kernel.h> #include <crc.h> #include <http.h> #include <lwip.h> #include <pagecache.h> #define DO_SERVER_ADDR IPADDR4_INIT_BYTES(169, 254, 169, 254) static struct digitalocean { heap h; closure_struct(status_handler, setup_complete); char server_host[IPADDR_STRLEN_MAX]; int server_host_len; ...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/strace_misc.c
null
null
null
null
null
null
C
2026-05-04T19:29:40.135861
#include "strace.h" typedef struct strace_clock_nanosleep_ctx { int flags; struct timespec *rem; } *strace_clock_nanosleep_ctx; static void strace_print_clone_args(strace_sc_ctx ctx, const void *data) { const struct clone_args *args = data; bprintf(ctx->trace_buf, "{pidfd=%p, child_tid=%p, parent_tid=...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/pledge.c
null
null
null
null
null
null
C
2026-05-04T19:29:40.195844
#include <unix_internal.h> #include <net_system_structs.h> #include <socket.h> #include "sandbox.h" #define PLEDGE_STDIO U64_FROM_BIT(0) #define PLEDGE_RPATH U64_FROM_BIT(1) #define PLEDGE_WPATH U64_FROM_BIT(2) #define PLEDGE_CPATH U64_FROM_BIT(3) #define PLEDGE_DPATH U64_FROM_BIT(4...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/tmpfs.c
null
null
null
null
null
null
C
2026-05-04T19:29:41.181197
#include <errno.h> #include <kernel.h> #include <pagecache.h> #include <fs.h> #include <storage.h> #include <tmpfs.h> typedef struct tmpfs_file { struct fsfile f; struct rangemap dirty; u64 seals; closure_struct(pagecache_node_reserve, reserve); closure_struct(thunk, free); } *tmpfs_file; static i...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/test/page_table.c
null
null
null
null
null
null
C
2026-05-04T19:29:41.300583
#include <kernel.h> closure_function(1, 3, boolean, pt_test_entry_handler, boolean, writable, int level, u64 vaddr, pteptr entry) { pte e = pte_from_pteptr(entry); if (!pte_is_mapping(level, e)) return true; pageflags flags = pageflags_from_pte(e); boolean ...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/tls.h
null
null
null
null
null
null
C
2026-05-04T19:29:41.309506
int tls_set_cacert(void *cert, u64 len); int tls_connect(ip_addr_t *addr, u16 port, connection_handler ch);
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/strace_file.c
null
null
null
null
null
null
C
2026-05-04T19:29:41.487609
#include "strace.h" #include "sandbox.h" typedef struct strace_newfstatat_ctx { struct stat *s; int flags; } *strace_newfstatat_ctx; static void strace_print_iov_entry(strace_sc_ctx ctx, const void *data) { const struct iovec *iov = data; bprintf(ctx->trace_buf, "{iov_base=%p, iov_len=%lu}", iov->iov_...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/strace.c
null
null
null
null
null
null
C
2026-05-04T19:29:41.571082
#include "strace.h" #define STRACE_SC_F_NOTRACE (1 << 0) #define STRACE_SC_F_SET_FILE (1 << 8) #define STRACE_SC_F_SET_DESC (1 << 9) #define STRACE_SC_F_SET_MEM (1 << 10) #define STRACE_SC_F_SET_PROC (1 << 11) #define STRACE_SC_F_SET_SIG (1 << 12) #define STRACE_SC_F_SET_NET (1 << 13) #defin...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/syslog.c
null
null
null
null
null
null
C
2026-05-04T19:29:41.953629
#include <unix_internal.h> #include <drivers/console.h> #include <filesystem.h> #include <lwip.h> #include <mktime.h> #define __STRING(x) #x #define __XSTRING(x) __STRING(x) #define SYSLOG_BUF_LEN (8 * KB) #define SYSLOG_FLUSH_INTERVAL seconds(1) #define SYSLOG_FILE_MAXSIZE_DEFAULT (8 * MB) #define SYSLO...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/umcg.c
null
null
null
null
null
null
C
2026-05-04T19:29:42.101203
#include <unix_internal.h> #define SYS_umcg_ctl 450 #define UMCG_WORKER_ID_SHIFT 5 #define UMCG_WORKER_EVENT_MASK ((1 << UMCG_WORKER_ID_SHIFT) - 1) enum umcg_cmd { UMCG_REGISTER_WORKER = 1, UMCG_REGISTER_SERVER, UMCG_UNREGISTER, UMCG_WAKE, UMCG_WAIT, UMCG_CTX_SWITCH, }; #define UMCG_W...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/tmpfs.h
null
null
null
null
null
null
C
2026-05-04T19:29:42.112574
#ifndef _TMPFS_H_ #define _TMPFS_H_ typedef struct tmpfs { struct filesystem fs; table files; int page_order; } *tmpfs; filesystem tmpfs_new(void); #endif
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/userdata.c
null
null
null
null
null
null
C
2026-05-04T19:29:42.363320
#include <unix_internal.h> #include <filesystem.h> #include <lwip.h> #include "net_utils.h" #define _RUNTIME_H_ /* guard against double inclusion of runtime.h */ #include <mbedtls/base64.h> #define METADATA_SERVER_ADDR ss("169.254.169.254") /* Retry configuration: 5 retries at 3 second intervals = 15 seconds maxi...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/test/klib.c
null
null
null
null
null
null
C
2026-05-04T19:29:42.396666
#include <kernel.h> #define Z_LEN 1024 int y = 123; unsigned long z[Z_LEN]; int foo(int x) { z[0] = x; /* bss write */ return z[0] + y; /* test data */ } int init(status_handler complete) { /* test that bss is clear */ for (int i = 0; i < Z_LEN; i++) if (z[i] != 0) return KLIB_IN...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/xml.c
null
null
null
null
null
null
C
2026-05-04T19:29:42.591895
#include <runtime.h> #include "xml.h" boolean xml_get_elem(buffer b, sstring name, xml_elem elem) { bytes initial_buf_start = b->start; boolean success = false; int index; while (1) { index = buffer_strchr(b, '<'); if (index < 0) goto done; buffer_consume(b, index +...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/xml.h
null
null
null
null
null
null
C
2026-05-04T19:29:42.723872
#ifndef XML_H_ #define XML_H_ typedef struct xml_elem { bytes start, len; bytes data_start, data_len; } *xml_elem; boolean xml_get_elem(buffer b, sstring name, xml_elem elem); boolean xml_elem_get_attr(buffer b, xml_elem elem, sstring name, bytes *start, bytes *len); #endif
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
platform/pc/boot/def32.h
null
null
null
null
null
null
C
2026-05-04T19:29:42.748838
typedef unsigned char u8; typedef char s8; typedef unsigned short u16; typedef unsigned int u32; typedef int s32; typedef unsigned long long u64; typedef long long s64; typedef u32 bytes; // not sure if we keep word, sizeof(word) == sizeof(void **), so I guess its uintptr_t typedef u32 word; typedef s32 sword; #defin...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/tun.c
null
null
null
null
null
null
C
2026-05-04T19:29:42.969320
#include <unix_internal.h> #include <filesystem.h> #include <lwip.h> #include <socket.h> #define TUN_MINOR 200 /* ioctl requests */ #define TUNSETIFF 0x400454ca #define TUNGETIFF 0x800454d2 #define TUNSETQUEUE 0x400454d9 /* ifreq flags */ #define IFF_TUN 0x0001 #define IFF_MULTI_QUEUE 0x0100 /* TUNSET...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
platform/pc/boot/stage2.c
null
null
null
null
null
null
C
2026-05-04T19:29:43.014363
#include <runtime.h> #include <frame.h> #include <kernel_machine.h> #include <kernel_heaps.h> #include <tfs.h> #include <page.h> #include <elf64.h> #include <region.h> #include <kvm_platform.h> #include <serial.h> #include <drivers/ata.h> #include <storage.h> //#define STAGE2_DEBUG //#define DEBUG_STAGE2_ALLOC #ifdef...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
platform/pc/service.c
null
null
null
null
null
null
C
2026-05-04T19:29:43.270444
#include <kernel.h> #include <region.h> #include <symtab.h> #include <pagecache.h> #include <tfs.h> #include <management.h> #include <apic.h> #include <aws/aws.h> #include <drivers/acpi.h> #include <drivers/ata-pci.h> #include <drivers/console.h> #include <drivers/dmi.h> #include <drivers/gve.h> #include <drivers/nvme....
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
platform/pc/pci.c
null
null
null
null
null
null
C
2026-05-04T19:29:43.274324
#include <kernel.h> #include <apic.h> #include <pci.h> #include <io.h> //#define PCI_PLATFORM_DEBUG #ifdef PCI_PLATFORM_DEBUG #define pci_plat_debug rprintf #else #define pci_plat_debug(...) do { } while(0) #endif #define CONF1_ADDR_PORT 0x0cf8 #define CONF1_DATA_PORT 0x0cfc #define CONF1_ENABLE 0x800000...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
platform/riscv-virt/pci.c
null
null
null
null
null
null
C
2026-05-04T19:29:43.375522
#include <kernel.h> #include <pci.h> //#define PCI_PLATFORM_DEBUG #ifdef PCI_PLATFORM_DEBUG #define pci_plat_debug rprintf #else #define pci_plat_debug(...) do { } while(0) #endif #define PIO_DATA (mmio_base_addr(PCIE_PIO)) #define pio_in8(port) mmio_read_8(PIO_DATA + port) #define pio_in16(port) mmio_read_16(PIO_DAT...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
platform/riscv-virt/kernel_platform.h
null
null
null
null
null
null
C
2026-05-04T19:29:43.829092
#define PHYSMEM_BASE 0x80000000 #define BIOS_SIZE (256*KB) #define DTB_SIZE (16*KB) #define INIT_PAGEMEM (PHYSMEM_BASE+BIOS_SIZE+DTB_SIZE) #define INIT_IDENTITY_SIZE 0x00800000 #define DEVICETREE_BLOB_BASE (KERNEL_BASE-DTB_SIZE) #define DEV_MAP_SIZE 0x80000000 #...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/radar.c
null
null
null
null
null
null
C
2026-05-04T19:29:44.105649
#include <kernel.h> #include <http.h> #include <lwip.h> #include <pagecache.h> #include <storage.h> #include <fs.h> #include <tls.h> #define RADAR_HOSTNAME "radar.relayered.net" #define RADAR_PORT 443 #define RADAR_CA_CERT "-----BEGIN CERTIFICATE-----\n\ MIIE0DCCA7igAwIBAgIBBzANBgkqhkiG9w0BAQsFADCBgzELMAkGA1U...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/shmem.c
null
null
null
null
null
null
C
2026-05-04T19:29:44.784200
#include <unix_internal.h> #include <filesystem.h> #include <tmpfs.h> #define MEMFD_KNOWN_FLAGS \ (MFD_CLOEXEC | MFD_ALLOW_SEALING) static struct { filesystem fs; } shmem; sysreturn memfd_create(const char *name, unsigned int flags) { if (flags & ~MEMFD_KNOWN_FLAGS) return -EINVAL; filesyst...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/test/lock.c
null
null
null
null
null
null
C
2026-05-04T19:29:46.100662
#include <kernel.h> static boolean klib_test_rw_spinlock(void) { struct rw_spinlock l; spin_rw_lock_init(&l); if (!spin_tryrlock(&l)) { msg_err("%s: couldn't rlock unlocked spinlock", func_ss); return false; } if (spin_trywlock(&l)) { msg_err("%s: could wlock rlocked spinloc...
nanovms/nanos
https://github.com/nanovms/nanos
null
null
null
null
3,131
null
null
apache-2.0
null
null
null
null
null
null
null
klib/unveil.c
null
null
null
null
null
null
C
2026-05-04T19:29:47.215678
#include <unix_internal.h> #include <net_system_structs.h> #include <socket.h> #include "sandbox.h" #define UNVEIL_READ U64_FROM_BIT(0) #define UNVEIL_WRITE U64_FROM_BIT(1) #define UNVEIL_EXEC U64_FROM_BIT(2) #define UNVEIL_CREATE U64_FROM_BIT(3) #define UNVEIL_PERMS_VALID U64_FROM_BIT(63) static stru...
google/eddystone
https://github.com/google/eddystone
null
null
null
null
3,098
null
null
apache-2.0
null
null
null
null
null
null
null
eddystone-url/implementations/CSR-1010/battery_uuids.h
null
null
null
null
null
null
C
2026-05-04T19:29:49.753789
/****************************************************************************** * Copyright (c) 2015 Cambridge Silicon Radio Limited * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted (subject to the limitations in the disclaim...
google/eddystone
https://github.com/google/eddystone
null
null
null
null
3,098
null
null
apache-2.0
null
null
null
null
null
null
null
eddystone-url/implementations/CSR-1010/battery_service.c
null
null
null
null
null
null
C
2026-05-04T19:29:49.765306
/****************************************************************************** * Copyright (c) 2015 Cambridge Silicon Radio Limited * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted (subject to the limitations in the disclaim...
google/eddystone
https://github.com/google/eddystone
null
null
null
null
3,098
null
null
apache-2.0
null
null
null
null
null
null
null
eddystone-url/implementations/CSR-1010/buzzer.c
null
null
null
null
null
null
C
2026-05-04T19:29:49.773238
/****************************************************************************** * Copyright (c) 2015 Cambridge Silicon Radio Limited * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted (subject to the limitations in the disclaim...
google/eddystone
https://github.com/google/eddystone
null
null
null
null
3,098
null
null
apache-2.0
null
null
null
null
null
null
null
eddystone-url/implementations/CSR-1010/constants.c
null
null
null
null
null
null
C
2026-05-04T19:29:49.785015
/****************************************************************************** * Copyright (c) 2015 Cambridge Silicon Radio Limited * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted (subject to the limitations in the disclaim...
google/eddystone
https://github.com/google/eddystone
null
null
null
null
3,098
null
null
apache-2.0
null
null
null
null
null
null
null
eddystone-url/implementations/CSR-1010/appearance.h
null
null
null
null
null
null
C
2026-05-04T19:29:49.811534
/****************************************************************************** * Copyright (c) 2015 Cambridge Silicon Radio Limited * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted (subject to the limitations in the disclaim...
google/eddystone
https://github.com/google/eddystone
null
null
null
null
3,098
null
null
apache-2.0
null
null
null
null
null
null
null
eddystone-url/implementations/CSR-1010/battery_service.h
null
null
null
null
null
null
C
2026-05-04T19:29:49.817182
/****************************************************************************** * Copyright (c) 2015 Cambridge Silicon Radio Limited * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted (subject to the limitations in the disclaim...
google/eddystone
https://github.com/google/eddystone
null
null
null
null
3,098
null
null
apache-2.0
null
null
null
null
null
null
null
eddystone-url/implementations/CSR-1010/buzzer.h
null
null
null
null
null
null
C
2026-05-04T19:29:49.818607
/****************************************************************************** * Copyright (c) 2015 Cambridge Silicon Radio Limited * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted (subject to the limitations in the disclaim...
google/eddystone
https://github.com/google/eddystone
null
null
null
null
3,098
null
null
apache-2.0
null
null
null
null
null
null
null
eddystone-url/implementations/CSR-1010/beaconing.c
null
null
null
null
null
null
C
2026-05-04T19:29:49.935522
/****************************************************************************** * Copyright (c) 2015 Cambridge Silicon Radio Limited * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted (subject to the limitations in the disclaim...
google/eddystone
https://github.com/google/eddystone
null
null
null
null
3,098
null
null
apache-2.0
null
null
null
null
null
null
null
eddystone-url/implementations/CSR-1010/debug_interface.h
null
null
null
null
null
null
C
2026-05-04T19:29:50.390324
/****************************************************************************** * Copyright (c) 2015 Cambridge Silicon Radio Limited * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted (subject to the limitations in the disclaim...
google/eddystone
https://github.com/google/eddystone
null
null
null
null
3,098
null
null
apache-2.0
null
null
null
null
null
null
null
eddystone-url/implementations/CSR-1010/debug_interface.c
null
null
null
null
null
null
C
2026-05-04T19:29:50.446473
/****************************************************************************** * Copyright (c) 2015 Cambridge Silicon Radio Limited * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted (subject to the limitations in the disclaim...
google/eddystone
https://github.com/google/eddystone
null
null
null
null
3,098
null
null
apache-2.0
null
null
null
null
null
null
null
eddystone-url/implementations/CSR-1010/dev_info_service.c
null
null
null
null
null
null
C
2026-05-04T19:29:50.447414
/***************************************************************************** * Copyright (c) 2015 Cambridge Silicon Radio Limited * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted (subject to the limitations in the disclaime...
google/eddystone
https://github.com/google/eddystone
null
null
null
null
3,098
null
null
apache-2.0
null
null
null
null
null
null
null
eddystone-url/implementations/CSR-1010/esurl_beacon.c
null
null
null
null
null
null
C
2026-05-04T19:29:50.459900
/****************************************************************************** * Copyright (c) 2015 Cambridge Silicon Radio Limited * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted (subject to the limitations in the disclaim...
google/eddystone
https://github.com/google/eddystone
null
null
null
null
3,098
null
null
apache-2.0
null
null
null
null
null
null
null
eddystone-url/implementations/CSR-1010/dev_info_service.h
null
null
null
null
null
null
C
2026-05-04T19:29:50.489911
/***************************************************************************** * Copyright (c) 2015 Cambridge Silicon Radio Limited * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted (subject to the limitations in the disclaime...
google/eddystone
https://github.com/google/eddystone
null
null
null
null
3,098
null
null
apache-2.0
null
null
null
null
null
null
null
eddystone-url/implementations/CSR-1010/dev_info_uuids.h
null
null
null
null
null
null
C
2026-05-04T19:29:50.494663
/****************************************************************************** * Copyright (c) 2015 Cambridge Silicon Radio Limited * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted (subject to the limitations in the disclaim...
google/eddystone
https://github.com/google/eddystone
null
null
null
null
3,098
null
null
apache-2.0
null
null
null
null
null
null
null
eddystone-url/implementations/CSR-1010/esurl_beacon.h
null
null
null
null
null
null
C
2026-05-04T19:29:50.496308
/****************************************************************************** * Copyright (c) 2015 Cambridge Silicon Radio Limited * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted (subject to the limitations in the disclaim...
google/eddystone
https://github.com/google/eddystone
null
null
null
null
3,098
null
null
apache-2.0
null
null
null
null
null
null
null
eddystone-url/implementations/CSR-1010/esurl_beacon_service.h
null
null
null
null
null
null
C
2026-05-04T19:29:51.150076
/****************************************************************************** * Copyright (c) 2015 Cambridge Silicon Radio Limited * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted (subject to the limitations in the disclaim...
google/eddystone
https://github.com/google/eddystone
null
null
null
null
3,098
null
null
apache-2.0
null
null
null
null
null
null
null
eddystone-url/implementations/CSR-1010/gap_conn_params.h
null
null
null
null
null
null
C
2026-05-04T19:29:51.179360
/****************************************************************************** * Copyright (c) 2015 Cambridge Silicon Radio Limited * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted (subject to the limitations in the disclaim...