repo stringlengths 1 152 ⌀ | file stringlengths 14 221 | code stringlengths 501 25k | file_length int64 501 25k | avg_line_length float64 20 99.5 | max_line_length int64 21 134 | extension_type stringclasses 2
values |
|---|---|---|---|---|---|---|
null | NearPMSW-main/nearpm/shadow/pmdkArrSwap-sd/src/include/libpmemlog.h | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2014-2019, Intel Corporation */
/*
* libpmemlog.h -- definitions of libpmemlog entry points
*
* This library provides support for programming with persistent memory (pmem).
*
* libpmemlog provides support for pmem-resident log files.
*
* See libpmemlog(7) fo... | 4,540 | 28.679739 | 80 | h |
null | NearPMSW-main/nearpm/shadow/pmdkArrSwap-sd/src/include/libpmem.h | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2014-2019, Intel Corporation */
/*
* libpmem.h -- definitions of libpmem entry points
*
* This library provides support for programming with persistent memory (pmem).
*
* libpmem provides support for using raw pmem directly.
*
* See libpmem(7) for details.
... | 3,829 | 28.015152 | 80 | h |
null | NearPMSW-main/nearpm/shadow/pmdkArrSwap-sd/src/include/libpmem2.h | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2019-2020, Intel Corporation */
/*
* libpmem2.h -- definitions of libpmem2 entry points (EXPERIMENTAL)
*
* This library provides support for programming with persistent memory (pmem).
*
* libpmem2 provides support for using raw pmem directly.
*
* See libpmem... | 7,202 | 25.677778 | 79 | h |
null | NearPMSW-main/nearpm/shadow/pmdkArrSwap-sd/src/include/libpmemobj/ctl.h | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2017-2019, Intel Corporation */
/*
* libpmemobj/ctl.h -- definitions of pmemobj_ctl related entry points
*/
#ifndef LIBPMEMOBJ_CTL_H
#define LIBPMEMOBJ_CTL_H 1
#include <stddef.h>
#include <sys/types.h>
#include <libpmemobj/base.h>
#ifdef __cplusplus
extern "... | 6,198 | 34.221591 | 80 | h |
null | NearPMSW-main/nearpm/shadow/pmdkArrSwap-sd/src/include/libpmemobj/lists_atomic.h | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2014-2017, Intel Corporation */
/*
* libpmemobj/lists_atomic.h -- definitions of libpmemobj atomic lists macros
*/
#ifndef LIBPMEMOBJ_LISTS_ATOMIC_H
#define LIBPMEMOBJ_LISTS_ATOMIC_H 1
#include <libpmemobj/lists_atomic_base.h>
#include <libpmemobj/thread.h>
#in... | 5,121 | 30.042424 | 80 | h |
null | NearPMSW-main/nearpm/shadow/pmdkArrSwap-sd/src/include/libpmemobj/iterator.h | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2014-2019, Intel Corporation */
/*
* libpmemobj/iterator.h -- definitions of libpmemobj iterator macros
*/
#ifndef LIBPMEMOBJ_ITERATOR_H
#define LIBPMEMOBJ_ITERATOR_H 1
#include <libpmemobj/iterator_base.h>
#include <libpmemobj/types.h>
#ifdef __cplusplus
exte... | 2,041 | 23.60241 | 80 | h |
null | NearPMSW-main/nearpm/shadow/pmdkArrSwap-sd/src/include/libpmemobj/lists_atomic_base.h | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2014-2017, Intel Corporation */
/*
* libpmemobj/lists_atomic_base.h -- definitions of libpmemobj atomic lists
*/
#ifndef LIBPMEMOBJ_LISTS_ATOMIC_BASE_H
#define LIBPMEMOBJ_LISTS_ATOMIC_BASE_H 1
#include <libpmemobj/base.h>
#ifdef __cplusplus
extern "C" {
#endif... | 1,022 | 24.575 | 79 | h |
null | NearPMSW-main/nearpm/shadow/pmdkArrSwap-sd/src/include/libpmemobj/tx_base.h | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2014-2020, Intel Corporation */
/*
* libpmemobj/tx_base.h -- definitions of libpmemobj transactional entry points
*/
#ifndef LIBPMEMOBJ_TX_BASE_H
#define LIBPMEMOBJ_TX_BASE_H 1
#include <setjmp.h>
#include <libpmemobj/base.h>
#ifdef __cplusplus
extern "C" {
#... | 14,087 | 30.237251 | 80 | h |
null | NearPMSW-main/nearpm/shadow/pmdkArrSwap-sd/src/include/libpmemobj/pool_base.h | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2014-2020, Intel Corporation */
/*
* libpmemobj/pool_base.h -- definitions of libpmemobj pool entry points
*/
#ifndef LIBPMEMOBJ_POOL_BASE_H
#define LIBPMEMOBJ_POOL_BASE_H 1
#include <stddef.h>
#include <sys/types.h>
#include <libpmemobj/base.h>
#ifdef __cplu... | 3,095 | 24.377049 | 79 | h |
null | NearPMSW-main/nearpm/shadow/pmdkArrSwap-sd/src/include/libpmemobj/action_base.h | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2017-2020, Intel Corporation */
/*
* libpmemobj/action_base.h -- definitions of libpmemobj action interface
*/
#ifndef LIBPMEMOBJ_ACTION_BASE_H
#define LIBPMEMOBJ_ACTION_BASE_H 1
#include <libpmemobj/base.h>
#ifdef __cplusplus
extern "C" {
#endif
enum pobj_ac... | 1,935 | 24.813333 | 80 | h |
null | NearPMSW-main/nearpm/shadow/pmdkArrSwap-sd/src/include/libpmemobj/types.h | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2014-2020, Intel Corporation */
/*
* libpmemobj/types.h -- definitions of libpmemobj type-safe macros
*/
#ifndef LIBPMEMOBJ_TYPES_H
#define LIBPMEMOBJ_TYPES_H 1
#include <libpmemobj/base.h>
#ifdef __cplusplus
extern "C" {
#endif
#define TOID_NULL(t) ((TOID(t))... | 4,701 | 21.825243 | 78 | h |
null | NearPMSW-main/nearpm/shadow/pmdkArrSwap-sd/src/include/libpmemobj/base.h | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2014-2019, Intel Corporation */
/*
* libpmemobj/base.h -- definitions of base libpmemobj entry points
*/
#ifndef LIBPMEMOBJ_BASE_H
#define LIBPMEMOBJ_BASE_H 1
#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS
#endif
#include <stddef.h>
#include <stdint.h... | 7,415 | 23.72 | 80 | h |
null | NearPMSW-main/nearpm/shadow/pmdkArrSwap-sd/src/include/libpmemobj/tx.h | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2014-2019, Intel Corporation */
/*
* libpmemobj/tx.h -- definitions of libpmemobj transactional macros
*/
#ifndef LIBPMEMOBJ_TX_H
#define LIBPMEMOBJ_TX_H 1
#include <errno.h>
#include <string.h>
#include <libpmemobj/tx_base.h>
#include <libpmemobj/types.h>
ex... | 4,386 | 21.848958 | 74 | h |
null | NearPMSW-main/nearpm/shadow/pmdkArrSwap-sd/src/include/libpmemobj/atomic_base.h | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2014-2019, Intel Corporation */
/*
* libpmemobj/atomic_base.h -- definitions of libpmemobj atomic entry points
*/
#ifndef LIBPMEMOBJ_ATOMIC_BASE_H
#define LIBPMEMOBJ_ATOMIC_BASE_H 1
#include <libpmemobj/base.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* Non... | 2,386 | 24.393617 | 79 | h |
null | NearPMSW-main/nearpm/shadow/pmdkArrSwap-sd/src/include/libpmemobj/thread.h | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2014-2017, Intel Corporation */
/*
* libpmemobj/thread.h -- definitions of libpmemobj thread/locking entry points
*/
#ifndef LIBPMEMOBJ_THREAD_H
#define LIBPMEMOBJ_THREAD_H 1
#include <time.h>
#include <libpmemobj/base.h>
#ifdef __cplusplus
extern "C" {
#endif... | 2,150 | 28.875 | 79 | h |
null | NearPMSW-main/nearpm/shadow/pmdkArrSwap-sd/src/include/libpmemobj/action.h | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2017-2018, Intel Corporation */
/*
* libpmemobj/action.h -- definitions of libpmemobj action interface
*/
#ifndef LIBPMEMOBJ_ACTION_H
#define LIBPMEMOBJ_ACTION_H 1
#include <libpmemobj/action_base.h>
#ifdef __cplusplus
extern "C" {
#endif
#define POBJ_RESERVE... | 829 | 23.411765 | 73 | h |
null | NearPMSW-main/nearpm/shadow/pmdkArrSwap-sd/src/include/libpmemobj/atomic.h | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2014-2017, Intel Corporation */
/*
* libpmemobj/atomic.h -- definitions of libpmemobj atomic macros
*/
#ifndef LIBPMEMOBJ_ATOMIC_H
#define LIBPMEMOBJ_ATOMIC_H 1
#include <libpmemobj/atomic_base.h>
#include <libpmemobj/types.h>
#ifdef __cplusplus
extern "C" {
#... | 1,115 | 23.26087 | 66 | h |
null | NearPMSW-main/nearpm/shadow/pmdkArrSwap-sd/src/include/libpmemobj/iterator_base.h | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2014-2019, Intel Corporation */
/*
* libpmemobj/iterator_base.h -- definitions of libpmemobj iterator entry points
*/
#ifndef LIBPMEMOBJ_ITERATOR_BASE_H
#define LIBPMEMOBJ_ITERATOR_BASE_H 1
#include <libpmemobj/base.h>
#ifdef __cplusplus
extern "C" {
#endif
/... | 855 | 20.4 | 80 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/anet.c | /* anet.c -- Basic TCP socket stuff made a bit less boring
*
* Copyright (c) 2006-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* ... | 20,633 | 30.454268 | 90 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/blocked.c | /* blocked.c - generic support for blocking operations like BLPOP & WAIT.
*
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions ... | 7,966 | 40.712042 | 87 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/help.h | /* Automatically generated by utils/generate-command-help.rb, do not edit. */
#ifndef __REDIS_HELP_H
#define __REDIS_HELP_H
static char *commandGroups[] = {
"generic",
"string",
"list",
"set",
"sorted_set",
"hash",
"pubsub",
"transactions",
"connection",
"server",
"scriptin... | 24,462 | 23.030452 | 134 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/sha1.h | #ifndef SHA1_H
#define SHA1_H
/* ================ sha1.h ================ */
/*
SHA-1 in C
By Steve Reid <steve@edmweb.com>
100% Public Domain
*/
typedef struct {
uint32_t state[5];
uint32_t count[2];
unsigned char buffer[64];
} SHA1_CTX;
void SHA1Transform(uint32_t state[5], const unsigned char buffer[64... | 566 | 21.68 | 76 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/config.h | /*
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above co... | 6,550 | 30.195238 | 130 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/ae_epoll.c | /* Linux epoll(2) based ae.c module
*
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of ... | 4,846 | 34.639706 | 80 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/ae_select.c | /* Select()-based ae.c module.
*
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of sourc... | 3,828 | 34.785047 | 78 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/intset.c | /*
* Copyright (c) 2009-2012, Pieter Noordhuis <pcnoordhuis at gmail dot com>
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... | 16,271 | 32.006085 | 79 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/bio.h | /*
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above co... | 2,073 | 48.380952 | 78 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/setproctitle.c | /* ==========================================================================
* setproctitle.c - Linux/Darwin setproctitle.
* --------------------------------------------------------------------------
* Copyright (C) 2010 William Ahern
* Copyright (C) 2013 Salvatore Sanfilippo
* Copyright (C) 2013 Stam He
*
*... | 5,656 | 20.591603 | 92 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/util.c | /*
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above co... | 22,734 | 29.394385 | 102 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/ae.h | /* A simple event-driven programming library. Originally I wrote this code
* for the Jim's event-loop (Jim is a Tcl interpreter) but later translated
* it in form of a library for easy reuse.
*
* Copyright (c) 2006-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution an... | 4,681 | 36.758065 | 91 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/multi.c | /*
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above co... | 11,229 | 33.660494 | 80 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/lzf_d.c | /*
* Copyright (c) 2000-2010 Marc Alexander Lehmann <schmorp@schmorp.de>
*
* Redistribution and use in source and binary forms, with or without modifica-
* tion, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* ... | 6,088 | 31.736559 | 109 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/sha1.c |
/* from valgrind tests */
/* ================ sha1.c ================ */
/*
SHA-1 in C
By Steve Reid <steve@edmweb.com>
100% Public Domain
Test Vectors (from FIPS PUB 180-1)
"abc"
A9993E36 4706816A BA3E2571 7850C26C 9CD0D89D
"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
84983E44 1C3BD26E BAAE4AA1 F9... | 7,252 | 30.811404 | 84 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/bio.c | /* Background I/O service for Redis.
*
* This file implements operations that we need to perform in the background.
* Currently there is only a single operation, that is a background close(2)
* system call. This is needed as when the process is the last owner of a
* reference to a file closing it means unlinking i... | 9,103 | 38.929825 | 80 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/notify.c | /*
* Copyright (c) 2013, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyrig... | 5,418 | 40.366412 | 78 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/debugmacro.h | /* This file contains debugging macros to be used when investigating issues.
*
* -----------------------------------------------------------------------------
*
* Copyright (c) 2016, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with... | 2,356 | 55.119048 | 80 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/intset.h | /*
* Copyright (c) 2009-2012, Pieter Noordhuis <pcnoordhuis at gmail dot com>
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... | 2,296 | 40.763636 | 78 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/rio.c | /* rio.c is a simple stream-oriented I/O abstraction that provides an interface
* to write code that can consume/produce data using different concrete input
* and output devices. For instance the same rdb.c code using the rio
* abstraction can be used to read and write the RDB format using in-memory
* buffers or fi... | 12,104 | 33.389205 | 81 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/ae_evport.c | /* ae.c module for illumos event ports.
*
* Copyright (c) 2012, Joyent, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyr... | 10,939 | 33.080997 | 81 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/sds.h | /* SDSLib 2.0 -- A C dynamic strings library
*
* Copyright (c) 2006-2015, Salvatore Sanfilippo <antirez at gmail dot com>
* Copyright (c) 2015, Oran Agra
* Copyright (c) 2015, Redis Labs, Inc
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permit... | 9,170 | 31.178947 | 88 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/redisassert.h | /* redisassert.h -- Drop in replacemnet assert.h that prints the stack trace
* in the Redis logs.
*
* This file should be included instead of "assert.h" inside libraries used by
* Redis that are using assertions, so instead of Redis disappearing with
* SIGABORT, we get the details and stack trace ... | 2,276 | 46.4375 | 83 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/anet.h | /* anet.c -- Basic TCP socket stuff made a bit less boring
*
* Copyright (c) 2006-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* ... | 3,562 | 42.987654 | 93 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/lzfP.h | /*
* Copyright (c) 2000-2007 Marc Alexander Lehmann <schmorp@schmorp.de>
*
* Redistribution and use in source and binary forms, with or without modifica-
* tion, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* ... | 5,826 | 30.327957 | 79 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/sdsalloc.h | /* SDSLib 2.0 -- A C dynamic strings library
*
* Copyright (c) 2006-2015, Salvatore Sanfilippo <antirez at gmail dot com>
* Copyright (c) 2015, Redis Labs, Inc
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following c... | 2,083 | 47.465116 | 78 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/ae.c | /* A simple event-driven programming library. Originally I wrote this code
* for the Jim's event-loop (Jim is a Tcl interpreter) but later translated
* it in form of a library for easy reuse.
*
* Copyright (c) 2006-2010, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution an... | 15,529 | 32.32618 | 83 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/testhelp.h | /* This is a really minimal testing framework for C.
*
* Example:
*
* test_cond("Check if 1 == 1", 1==1)
* test_cond("Check if 5 > 10", 5 > 10)
* test_report()
*
* ----------------------------------------------------------------------------
*
* Copyright (c) 2010-2012, Salvatore Sanfilippo <antirez at gmail d... | 2,431 | 40.931034 | 79 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/ziplist.h | /*
* Copyright (c) 2009-2012, Pieter Noordhuis <pcnoordhuis at gmail dot com>
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... | 2,890 | 49.719298 | 104 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/fmacros.h | /*
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above co... | 2,147 | 33.645161 | 78 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/pqsort.h | /* The following is the NetBSD libc qsort implementation modified in order to
* support partial sorting of ranges for Redis.
*
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, a... | 1,964 | 46.926829 | 78 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/slowlog.h | /*
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above co... | 2,197 | 44.791667 | 78 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/util.h | /*
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above co... | 2,303 | 42.471698 | 81 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/t_hash.c | /*
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above co... | 24,913 | 30.026152 | 85 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/sparkline.c | /* sparkline.c -- ASCII Sparklines
* This code is modified from http://github.com/antirez/aspark and adapted
* in order to return SDS strings instead of outputting directly to
* the terminal.
*
* ---------------------------------------------------------------------------
*
* Copyright(C) 2011-2014 Salvatore Sanf... | 6,588 | 36.225989 | 102 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/ae_kqueue.c | /* Kqueue(2)-based ae.c module
*
* Copyright (C) 2009 Harish Mallipeddi - harish.mallipeddi@gmail.com
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code... | 4,567 | 31.863309 | 80 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/rdb.h | /*
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above co... | 5,003 | 40.7 | 93 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/latency.h | /* latency.h -- latency monitor API header file
* See latency.c for more information.
*
* ----------------------------------------------------------------------------
*
* Copyright (c) 2014, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary fo... | 3,914 | 40.648936 | 80 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/slowlog.c | /* Slowlog implements a system that is able to remember the latest N
* queries that took more than M microseconds to execute.
*
* The execution time to reach to be logged in the slow log is set
* using the 'slowlog-log-slower-than' config directive, that is also
* readable and writable using the CONFIG SET/GET com... | 6,716 | 38.511765 | 83 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/lzf.h | /*
* Copyright (c) 2000-2008 Marc Alexander Lehmann <schmorp@schmorp.de>
*
* Redistribution and use in source and binary forms, with or without modifica-
* tion, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* ... | 4,407 | 42.643564 | 79 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/rand.c | /* Pseudo random number generation functions derived from the drand48()
* function obtained from pysam source code.
*
* This functions are used in order to replace the default math.random()
* Lua implementation with something having exactly the same behavior
* across different systems (by default Lua uses libc's r... | 3,848 | 39.946809 | 79 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/rand.h | /*
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above co... | 1,763 | 44.230769 | 78 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/pqsort.c | /* The following is the NetBSD libc qsort implementation modified in order to
* support partial sorting of ranges for Redis.
*
* Copyright(C) 2009-2012 Salvatore Sanfilippo. All rights reserved.
*
* The original copyright notice follows. */
/* $NetBSD: qsort.c,v 1.19 2009/01/30 23:38:44 lukem Exp $ */
/*-
* Co... | 5,528 | 28.725806 | 79 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/memtest.c | /*
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above co... | 13,441 | 36.235457 | 93 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/pmem.c | /*
* Copyright (c) 2017, Andreas Bluemle <andreas dot bluemle at itxperts dot de>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the abov... | 11,010 | 30.016901 | 118 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/solarisfixes.h | /* Solaris specific fixes.
*
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source co... | 2,201 | 39.036364 | 78 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/quicklist.h | /* quicklist.h - A generic doubly linked quicklist implementation
*
* Copyright (c) 2014, Matt Stancliff <matt@genges.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistrib... | 7,808 | 44.935294 | 80 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/redis-check-rdb.c | /*
* Copyright (c) 2016, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyrig... | 12,789 | 35.965318 | 91 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/asciilogo.h | /*
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above co... | 2,833 | 58.041667 | 78 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/syncio.c | /* Synchronous socket and file I/O operations useful across the core.
*
* Copyright (c) 2009-2010, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are ... | 5,580 | 37.226027 | 80 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/lzf_c.c | /*
* Copyright (c) 2000-2010 Marc Alexander Lehmann <schmorp@schmorp.de>
*
* Redistribution and use in source and binary forms, with or without modifica-
* tion, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* ... | 9,012 | 29.866438 | 93 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/endianconv.c | /* endinconv.c -- Endian conversions utilities.
*
* This functions are never called directly, but always using the macros
* defined into endianconv.h, this way we define everything is a non-operation
* if the arch is already little endian.
*
* Redis tries to encode everything as little endian (but a few things th... | 3,777 | 28.286822 | 80 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/crc16.c | #include "server.h"
/*
* Copyright 2001-2010 Georges Menie (www.menie.org)
* Copyright 2010-2012 Salvatore Sanfilippo (adapted to Redis coding style)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions ... | 4,477 | 49.314607 | 80 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/adlist.h | /* adlist.h - A generic doubly linked list implementation
*
* Copyright (c) 2006-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* ... | 3,451 | 35.723404 | 78 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/sparkline.h | /* sparkline.h -- ASCII Sparklines header file
*
* ---------------------------------------------------------------------------
*
* Copyright(C) 2011-2014 Salvatore Sanfilippo <antirez@gmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are per... | 2,345 | 40.157895 | 101 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/pmem.h | /*
* Copyright (c) 2017, Andreas Bluemle <andreas dot bluemle at itxperts dot de>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the abov... | 2,040 | 41.520833 | 79 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/t_string.c | /*
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above co... | 16,238 | 30.903733 | 127 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/dict.h | /* Hash Tables Implementation.
*
* This file implements in-memory hash tables with insert/del/replace/find/
* get-random-element operations. Hash tables will auto-resize if needed
* tables of power of two in size are used, collisions are handled by
* chaining. See the source code for more information... :)
*
* C... | 7,201 | 36.123711 | 87 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/zmalloc.c | /* zmalloc - total amount of allocated memory aware version of malloc()
*
* Copyright (c) 2009-2010, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions ar... | 12,846 | 29.299528 | 94 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/sort.c | /* SORT command and helper functions.
*
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions o... | 22,327 | 36.780034 | 84 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/release.c | /*
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above co... | 2,163 | 39.830189 | 80 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/crc64.c | /* Redis uses the CRC64 variant with "Jones" coefficients and init value of 0.
*
* Specification of this CRC64 variant follows:
* Name: crc-64-jones
* Width: 64 bites
* Poly: 0xad93d23594c935a9
* Reflected In: True
* Xor_In: 0xffffffffffffffff
* Reflected_Out: True
* Xor_Out: 0x0
* Check("123456789"): 0xe9c6d... | 10,717 | 53.683673 | 78 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/adlist.c | /* adlist.c - A generic doubly linked list implementation
*
* Copyright (c) 2006-2010, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* ... | 9,657 | 27.744048 | 78 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/rio.h | /*
* Copyright (c) 2009-2012, Pieter Noordhuis <pcnoordhuis at gmail dot com>
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... | 5,290 | 36.260563 | 123 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/src/endianconv.h | /* See endianconv.c top comments for more information
*
* ----------------------------------------------------------------------------
*
* Copyright (c) 2011-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modi... | 2,901 | 35.734177 | 79 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/deps/linenoise/linenoise.h | /* linenoise.h -- VERSION 1.0
*
* Guerrilla line editing library against the idea that a line editing lib
* needs to be 20,000 lines of C code.
*
* See linenoise.c for more information.
*
* ------------------------------------------------------------------------
*
* Copyright (c) 2010-2014, Salvatore Sanfilipp... | 2,825 | 37.189189 | 80 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/deps/linenoise/example.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "linenoise.h"
void completion(const char *buf, linenoiseCompletions *lc) {
if (buf[0] == 'h') {
linenoiseAddCompletion(lc,"hello");
linenoiseAddCompletion(lc,"hello there");
}
}
char *hints(const char *buf, int *color, int *b... | 2,425 | 31.346667 | 80 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/deps/hiredis/dict.c | /* Hash table implementation.
*
* This file implements in memory hash tables with insert/del/replace/find/
* get-random-element operations. Hash tables will auto resize if needed
* tables of power of two in size are used, collisions are handled by
* chaining. See the source code for more information... :)
*
* Co... | 10,549 | 30.120944 | 80 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/deps/hiredis/net.c | /* Extracted from anet.c to work properly with Hiredis error reporting.
*
* Copyright (c) 2006-2011, Salvatore Sanfilippo <antirez at gmail dot com>
* Copyright (c) 2010-2011, Pieter Noordhuis <pcnoordhuis at gmail dot com>
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or w... | 12,238 | 30.955614 | 95 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/deps/hiredis/net.h | /* Extracted from anet.c to work properly with Hiredis error reporting.
*
* Copyright (c) 2006-2011, Salvatore Sanfilippo <antirez at gmail dot com>
* Copyright (c) 2010-2011, Pieter Noordhuis <pcnoordhuis at gmail dot com>
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or w... | 2,453 | 46.192308 | 103 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/deps/hiredis/sds.h | /* SDSLib 2.0 -- A C dynamic strings library
*
* Copyright (c) 2006-2015, Salvatore Sanfilippo <antirez at gmail dot com>
* Copyright (c) 2015, Oran Agra
* Copyright (c) 2015, Redis Labs, Inc
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permit... | 8,934 | 31.609489 | 88 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/deps/hiredis/hiredis.h | /*
* Copyright (c) 2009-2011, Salvatore Sanfilippo <antirez at gmail dot com>
* Copyright (c) 2010-2011, Pieter Noordhuis <pcnoordhuis at gmail dot com>
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condit... | 9,403 | 41.552036 | 96 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/deps/hiredis/sdsalloc.h | /* SDSLib 2.0 -- A C dynamic strings library
*
* Copyright (c) 2006-2015, Salvatore Sanfilippo <antirez at gmail dot com>
* Copyright (c) 2015, Redis Labs, Inc
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following c... | 2,083 | 47.465116 | 78 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/deps/hiredis/dict.h | /* Hash table implementation.
*
* This file implements in memory hash tables with insert/del/replace/find/
* get-random-element operations. Hash tables will auto resize if needed
* tables of power of two in size are used, collisions are handled by
* chaining. See the source code for more information... :)
*
* Co... | 4,691 | 35.944882 | 80 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/deps/hiredis/adapters/ae.h | /*
* Copyright (c) 2010-2011, Pieter Noordhuis <pcnoordhuis at gmail dot com>
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above... | 4,219 | 31.96875 | 82 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/deps/hiredis/adapters/libevent.h | /*
* Copyright (c) 2010-2011, Pieter Noordhuis <pcnoordhuis at gmail dot com>
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above... | 3,980 | 35.522936 | 80 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/deps/hiredis/adapters/libev.h | /*
* Copyright (c) 2010-2011, Pieter Noordhuis <pcnoordhuis at gmail dot com>
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above... | 4,587 | 30 | 78 | h |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/deps/hiredis/examples/example-libev.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <hiredis.h>
#include <async.h>
#include <adapters/libev.h>
void getCallback(redisAsyncContext *c, void *r, void *privdata) {
redisReply *reply = r;
if (reply == NULL) return;
printf("argv[%s]: %s\n", (char*)privdata, r... | 1,405 | 25.528302 | 87 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/deps/hiredis/examples/example.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <hiredis.h>
int main(int argc, char **argv) {
unsigned int j;
redisContext *c;
redisReply *reply;
const char *hostname = (argc > 1) ? argv[1] : "127.0.0.1";
int port = (argc > 2) ? atoi(argv[2]) : 6379;
struct timeval timeout... | 2,236 | 27.316456 | 80 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/deps/hiredis/examples/example-libuv.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <hiredis.h>
#include <async.h>
#include <adapters/libuv.h>
void getCallback(redisAsyncContext *c, void *r, void *privdata) {
redisReply *reply = r;
if (reply == NULL) return;
printf("argv[%s]: %s\n", (char*)privdata, r... | 1,445 | 25.777778 | 87 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/deps/hiredis/examples/example-ae.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <hiredis.h>
#include <async.h>
#include <adapters/ae.h>
/* Put event loop in the global scope, so it can be explicitly stopped */
static aeEventLoop *loop;
void getCallback(redisAsyncContext *c, void *r, void *privdata) {
red... | 1,583 | 24.142857 | 87 | c |
null | NearPMSW-main/nearpm/shadow/redis-NDP-sd/deps/hiredis/examples/example-libevent.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <hiredis.h>
#include <async.h>
#include <adapters/libevent.h>
void getCallback(redisAsyncContext *c, void *r, void *privdata) {
redisReply *reply = r;
if (reply == NULL) return;
printf("argv[%s]: %s\n", (char*)privdata... | 1,455 | 25.962963 | 87 | c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.