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/checkpointing/memcached-pmem-checkpointing/util.c
#include <stdio.h> #include <assert.h> #include <ctype.h> #include <errno.h> #include <string.h> #include <stdlib.h> #include <stdarg.h> #include "memcached.h" static char *uriencode_map[256]; static char uriencode_str[768]; void uriencode_init(void) { int x; char *str = uriencode_str; for (x = 0; x < 25...
4,608
22.395939
101
c
null
NearPMSW-main/nearpm/checkpointing/memcached-pmem-checkpointing/extstore.h
#ifndef EXTSTORE_H #define EXTSTORE_H /* A safe-to-read dataset for determining compaction. * id is the array index. */ struct extstore_page_data { uint64_t version; uint64_t bytes_used; unsigned int bucket; }; /* Pages can have objects deleted from them at any time. This creates holes * that can't be ...
4,091
36.541284
116
h
null
NearPMSW-main/nearpm/checkpointing/memcached-pmem-checkpointing/stats.c
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Detailed statistics management. For simple stats like total number of * "get" requests, we use inline code in memcached.c and friends, but when * stats detail mode is activated, the code here records more information. * * Author: *...
12,481
32.196809
117
c
null
NearPMSW-main/nearpm/checkpointing/memcached-pmem-checkpointing/slab_automove_extstore.c
/* Copyright 2017 Facebook. * * Use and distribution licensed under the BSD license. See * the LICENSE file for full text. */ /* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #include "memcached.h" #include "slab_automove_extstore.h" #include <stdlib.h> #include <string.h> #define...
9,351
33.895522
98
c
null
NearPMSW-main/nearpm/checkpointing/memcached-pmem-checkpointing/crawler.c
/* Copyright 2016 Netflix. * * Use and distribution licensed under the BSD license. See * the LICENSE file for full text. */ /* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #include "memcached.h" #include <sys/stat.h> #include <sys/socket.h> #include <sys/resource.h> #include <fcn...
22,607
31.623377
93
c
null
NearPMSW-main/nearpm/checkpointing/memcached-pmem-checkpointing/crawler.h
#ifndef CRAWLER_H #define CRAWLER_H typedef struct { uint64_t histo[61]; uint64_t ttl_hourplus; uint64_t noexp; uint64_t reclaimed; uint64_t seen; rel_time_t start_time; rel_time_t end_time; bool run_complete; } crawlerstats_t; struct crawler_expired_data { pthread_mutex_t lock; ...
1,191
29.564103
103
h
null
NearPMSW-main/nearpm/checkpointing/memcached-pmem-checkpointing/sizes.c
#include <stdio.h> #include "memcached.h" static void display(const char *name, size_t size) { printf("%s\t%d\n", name, (int)size); } int main(int argc, char **argv) { display("Slab Stats", sizeof(struct slab_stats)); display("Thread stats", sizeof(struct thread_stats) - (200 * s...
982
28.787879
70
c
null
NearPMSW-main/nearpm/checkpointing/memcached-pmem-checkpointing/slab_automove.h
#ifndef SLAB_AUTOMOVE_H #define SLAB_AUTOMOVE_H /* default automove functions */ void *slab_automove_init(struct settings *settings); void slab_automove_free(void *arg); void slab_automove_run(void *arg, int *src, int *dst); typedef void *(*slab_automove_init_func)(struct settings *settings); typedef void (*slab_auto...
568
27.45
70
h
null
NearPMSW-main/nearpm/checkpointing/memcached-pmem-checkpointing/assoc.c
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Hash table * * The hash function used here is by Bob Jenkins, 1996: * <http://burtleburtle.net/bob/hash/doobs.html> * "By Bob Jenkins, 1996. bob_jenkins@burtleburtle.net. * You may use this code any way you wish, pr...
9,916
31.198052
109
c
null
NearPMSW-main/nearpm/checkpointing/memcached-pmem-checkpointing/linux_priv.c
#include "config.h" #include <seccomp.h> #include <errno.h> #include <stdlib.h> #include "memcached.h" // In the future when the system is more tested this could be switched // to SCMP_ACT_KILL instead. #define DENY_ACTION SCMP_ACT_ERRNO(EACCES) void drop_privileges(void) { scmp_filter_ctx ctx = seccomp_init(DENY...
4,495
38.438596
97
c
null
NearPMSW-main/nearpm/checkpointing/memcached-pmem-checkpointing/itoa_ljust.h
#ifndef ITOA_LJUST_H #define ITOA_LJUST_H //=== itoa_ljust.h - Fast integer to ascii conversion // // Fast and simple integer to ASCII conversion: // // - 32 and 64-bit integers // - signed and unsigned // - user supplied buffer must be large enough for all decimal digits // in value plus minus sign if negat...
822
27.37931
80
h
null
NearPMSW-main/nearpm/checkpointing/memcached-pmem-checkpointing/murmur3_hash.h
//----------------------------------------------------------------------------- // MurmurHash3 was written by Austin Appleby, and is placed in the public // domain. The author hereby disclaims copyright to this source code. #ifndef MURMURHASH3_H #define MURMURHASH3_H //------------------------------------------------...
681
33.1
79
h
null
NearPMSW-main/nearpm/checkpointing/memcached-pmem-checkpointing/itoa_ljust.c
//=== itoa_ljust.cpp - Fast integer to ascii conversion --*- C++ -*-// // // Substantially simplified (and slightly faster) version // based on the following functions in Google's protocol buffers: // // FastInt32ToBufferLeft() // FastUInt32ToBufferLeft() // FastInt64ToBufferLeft() // FastUInt64To...
5,242
33.953333
80
c
null
NearPMSW-main/nearpm/checkpointing/memcached-pmem-checkpointing/util.h
/* fast-enough functions for uriencoding strings. */ void uriencode_init(void); bool uriencode(const char *src, char *dst, const size_t srclen, const size_t dstlen); /* * Wrappers around strtoull/strtoll that are safer and easier to * use. For tests and assumptions, see internal_tests.c. * * str a NULL-terminat...
1,127
27.923077
85
h
null
NearPMSW-main/nearpm/checkpointing/memcached-pmem-checkpointing/protocol_binary.h
/* * Copyright (c) <2008>, Sun Microsystems, 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 copyright * notice, this...
16,525
34.087049
80
h
null
NearPMSW-main/nearpm/checkpointing/memcached-pmem-checkpointing/timedrun.c
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <signal.h> #include <sys/wait.h> #include <sysexits.h> #include <assert.h> static int caught = 0; static void caught_signal(int which) { caught = which; } static int wait_for_process(pid_t pid) { int rv = EX_SOFTWARE; int stats = 0; ...
2,416
22.466019
70
c
null
NearPMSW-main/nearpm/checkpointing/memcached-pmem-checkpointing/hash.c
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #include "memcached.h" #include "jenkins_hash.h" #include "murmur3_hash.h" int hash_init(enum hashfunc_type type) { switch(type) { case JENKINS_HASH: hash = jenkins_hash; settings.hash_algorithm = "jenkin...
539
23.545455
77
c
null
NearPMSW-main/nearpm/checkpointing/memcached-pmem-checkpointing/items.h
/* * Copyright 2018 Lenovo * * Licensed under the BSD-3 license. see LICENSE.Lenovo.txt for full text */ /* * Note: * Codes enclosed in `#ifdef PSLAB' and `#endif' are added by Lenovo for * persistent memory support */ #define HOT_LRU 0 #define WARM_LRU 64 #define COLD_LRU 128 #define TEMP_LRU 192 #define ...
3,550
31.577982
120
h
null
NearPMSW-main/nearpm/checkpointing/memcached-pmem-checkpointing/trace.h
#ifndef TRACE_H #define TRACE_H #ifdef ENABLE_DTRACE #include "memcached_dtrace.h" #else #define MEMCACHED_ASSOC_DELETE(arg0, arg1, arg2) #define MEMCACHED_ASSOC_DELETE_ENABLED() (0) #define MEMCACHED_ASSOC_FIND(arg0, arg1, arg2) #define MEMCACHED_ASSOC_FIND_ENABLED() (0) #define MEMCACHED_ASSOC_INSERT(arg0, arg1, arg...
3,179
43.166667
66
h
null
NearPMSW-main/nearpm/checkpointing/memcached-pmem-checkpointing/cache.h
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #ifndef CACHE_H #define CACHE_H #include <pthread.h> #ifdef HAVE_UMEM_H #include <umem.h> #define cache_t umem_cache_t #define cache_alloc(a) umem_cache_alloc(a, UMEM_DEFAULT) #define do_cache_alloc(a) umem_cache_alloc(a, UMEM_DEFAULT) #defi...
4,498
36.181818
92
h
null
NearPMSW-main/nearpm/checkpointing/memcached-pmem-checkpointing/sasl_defs.c
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #include "memcached.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sasl/saslplug.h> char my_sasl_hostname[1025]; #ifdef HAVE_SASL_CB_GETCONF /* The locations we may search for a SASL config file if the user didn't ...
5,091
25.659686
93
c
null
NearPMSW-main/nearpm/checkpointing/memcached-pmem-checkpointing/bipbuffer.h
#ifndef BIPBUFFER_H #define BIPBUFFER_H typedef struct { unsigned long int size; /* region A */ unsigned int a_start, a_end; /* region B */ unsigned int b_end; /* is B inuse? */ int b_inuse; unsigned char data[]; } bipbuf_t; /** * Create a new bip buffer. * * malloc()s space * ...
2,118
23.079545
74
h
null
NearPMSW-main/nearpm/checkpointing/memcached-pmem-checkpointing/solaris_priv.c
#include <stdlib.h> #include <priv.h> #include <stdio.h> #include "memcached.h" /* * this section of code will drop all (Solaris) privileges including * those normally granted to all userland process (basic privileges). The * effect of this is that after running this code, the process will not able * to fork(), ex...
1,259
27
76
c
null
NearPMSW-main/nearpm/checkpointing/memcached-pmem-checkpointing/jenkins_hash.c
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Hash table * * The hash function used here is by Bob Jenkins, 1996: * <http://burtleburtle.net/bob/hash/doobs.html> * "By Bob Jenkins, 1996. bob_jenkins@burtleburtle.net. * You may use this code any way you wish, pr...
14,709
33.050926
79
c
null
NearPMSW-main/nearpm/checkpointing/memcached-pmem-checkpointing/pslab.c
/* * Copyright 2018 Lenovo * * Licensed under the BSD-3 license. see LICENSE.Lenovo.txt for full text */ #include "memcached.h" #include <stddef.h> #include <string.h> #define PSLAB_POOL_SIG "PMCH" #define PSLAB_POOL_SIG_SIZE 4 #define PSLAB_POOL_VER_SIZE 12 #define PSLAB_ALIGN_MASK 0xfffffff8 #pragma pack(1) /*...
11,974
29.705128
90
c
null
NearPMSW-main/nearpm/checkpointing/memcached-pmem-checkpointing/murmur3_hash.c
//----------------------------------------------------------------------------- // MurmurHash3 was written by Austin Appleby, and is placed in the public // domain. The author hereby disclaims copyright to this source code. // Note - The x86 and x64 versions do _not_ produce the same results, as the // algorithms are ...
2,826
21.616
79
c
null
NearPMSW-main/nearpm/checkpointing/memcached-pmem-checkpointing/daemon.c
/* $Header: /cvsroot/wikipedia/willow/src/bin/willow/daemon.c,v 1.1 2005/05/02 19:15:21 kateturner Exp $ */ /* $NetBSD: daemon.c,v 1.9 2003/08/07 16:42:46 agc Exp $ */ /*- * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in sou...
3,082
33.255556
122
c
null
NearPMSW-main/nearpm/checkpointing/memcached-pmem-checkpointing/crc32c.c
/* crc32c.c -- compute CRC-32C using the Intel crc32 instruction * Copyright (C) 2013 Mark Adler * Version 1.1 1 Aug 2013 Mark Adler */ /* This software is provided 'as-is', without any express or implied warranty. In no event will the author be held liable for any damages arising from the use of this soft...
11,318
31.90407
79
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/tools/rpmemd/rpmemd_config.h
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2016-2018, Intel Corporation */ /* * rpmemd_config.h -- internal definitions for rpmemd config */ #include <stdint.h> #include <stdbool.h> #ifndef RPMEMD_DEFAULT_LOG_FILE #define RPMEMD_DEFAULT_LOG_FILE ("/var/log/" DAEMON_NAME ".log") #endif #ifndef RPMEMD_GL...
1,012
21.021739
77
h
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/tools/rpmemd/rpmemd.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2016-2020, Intel Corporation */ /* * rpmemd.c -- rpmemd main source file */ #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <sys/socket.h> #include <netinet/in.h> #include "librpmem.h" #include "rpmemd.h" #include "rpmemd...
18,497
22.007463
79
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/tools/rpmemd/rpmemd_log.h
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2016-2018, Intel Corporation */ /* * rpmemd_log.h -- rpmemd logging functions declarations */ #include <string.h> #include "util.h" #define FORMAT_PRINTF(a, b) __attribute__((__format__(__printf__, (a), (b)))) /* * The tab character is not allowed in rpmemd l...
1,991
25.210526
77
h
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/tools/rpmemd/rpmemd_util.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2017-2018, Intel Corporation */ /* * rpmemd_util.c -- rpmemd utility functions definitions */ #include <stdlib.h> #include <unistd.h> #include "libpmem.h" #include "rpmem_common.h" #include "rpmemd_log.h" #include "rpmemd_util.h" /* * rpmemd_pmem_persist -- p...
2,839
22.666667
79
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/tools/rpmemd/rpmemd_db.h
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2016-2018, Intel Corporation */ /* * rpmemd_db.h -- internal definitions for rpmemd database of pool set files */ struct rpmemd_db; struct rpmem_pool_attr; /* * struct rpmemd_db_pool -- remote pool context */ struct rpmemd_db_pool { void *pool_addr; size_t ...
1,132
32.323529
76
h
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/tools/rpmemd/rpmemd_obc.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2016-2019, Intel Corporation */ /* * rpmemd_obc.c -- rpmemd out-of-band connection definitions */ #include <stdlib.h> #include <errno.h> #include <stdint.h> #include <string.h> #include <netinet/in.h> #include <arpa/inet.h> #include <sys/socket.h> #include <unis...
12,309
21.422587
79
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/tools/rpmemd/rpmemd_config.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2016-2020, Intel Corporation */ /* * rpmemd_config.c -- rpmemd config source file */ #include <pwd.h> #include <stdio.h> #include <stddef.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <unistd.h> #include <ctype.h> #include <errno.h> #in...
15,007
22.413417
79
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/tools/rpmemd/rpmemd_db.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2016-2020, Intel Corporation */ /* * rpmemd_db.c -- rpmemd database of pool set files */ #include <stdio.h> #include <stdint.h> #include <errno.h> #include <string.h> #include <unistd.h> #include <dirent.h> #include <sys/file.h> #include <sys/mman.h> #include "...
13,747
20.616352
80
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/tools/rpmemd/rpmemd_fip.h
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2016-2018, Intel Corporation */ /* * rpmemd_fip.h -- rpmemd libfabric provider module header file */ #include <stddef.h> struct rpmemd_fip; struct rpmemd_fip_attr { void *addr; size_t size; unsigned nlanes; size_t nthreads; size_t buff_size; enum rpmem_p...
1,066
27.078947
70
h
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/tools/rpmemd/rpmemd_obc.h
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2016-2018, Intel Corporation */ /* * rpmemd_obc.h -- rpmemd out-of-band connection declarations */ #include <stdint.h> #include <sys/types.h> #include <sys/socket.h> struct rpmemd_obc; struct rpmemd_obc_requests { int (*create)(struct rpmemd_obc *obc, void *ar...
1,296
31.425
65
h
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/tools/pmempool/create.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2014-2019, Intel Corporation */ /* * create.c -- pmempool create command source file */ #include <stdio.h> #include <getopt.h> #include <stdlib.h> #include <fcntl.h> #include <unistd.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <sy...
14,987
21.403587
109
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/tools/pmempool/transform.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2016-2018, Intel Corporation */ /* * transform.c -- pmempool transform command source file */ #include <stdio.h> #include <libgen.h> #include <string.h> #include <unistd.h> #include <stdlib.h> #include <getopt.h> #include <stdbool.h> #include <sys/mman.h> #inclu...
3,689
21.919255
77
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/tools/pmempool/info_blk.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2014-2018, Intel Corporation */ /* * Copyright (c) 2016, Microsoft Corporation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * ...
14,565
24.644366
74
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/tools/pmempool/info_obj.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2014-2019, Intel Corporation */ /* * info_obj.c -- pmempool info command source file for obj pool */ #include <stdlib.h> #include <stdbool.h> #include <err.h> #include <signal.h> #include <sys/stat.h> #include <sys/mman.h> #include <assert.h> #include <inttypes.h...
24,182
24.11215
80
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/tools/pmempool/check.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2014-2019, Intel Corporation */ /* * check.c -- pmempool check command source file */ #include <getopt.h> #include <stdlib.h> #include "common.h" #include "check.h" #include "output.h" #include "set.h" #include "file.h" #include "libpmempool.h" typedef enum { ...
7,163
21.670886
72
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/tools/pmempool/common.h
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2014-2020, Intel Corporation */ /* * common.h -- declarations of common functions */ #include <stdint.h> #include <stddef.h> #include <stdarg.h> #include <stdbool.h> #include "queue.h" #include "log.h" #include "blk.h" #include "libpmemobj.h" #include "lane.h" ...
5,957
28.205882
79
h
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/tools/pmempool/info_log.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2014-2019, Intel Corporation */ /* * info_log.c -- pmempool info command source file for log pool */ #include <stdbool.h> #include <stdlib.h> #include <err.h> #include <sys/mman.h> #include "common.h" #include "output.h" #include "info.h" /* * info_log_data --...
3,972
23.677019
70
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/tools/pmempool/info.h
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2014-2019, Intel Corporation */ /* * info.h -- pmempool info command header file */ #include "vec.h" /* * Verbose levels used in application: * * VERBOSE_DEFAULT: * Default value for application's verbosity level. * This is also set for data structures whi...
4,492
25.904192
73
h
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/tools/pmempool/output.h
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2014-2018, Intel Corporation */ /* * output.h -- declarations of output printing related functions */ #include <time.h> #include <stdint.h> #include <stdio.h> void out_set_vlevel(int vlevel); void out_set_stream(FILE *stream); void out_set_prefix(const char *pr...
2,070
41.265306
74
h
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/tools/pmempool/synchronize.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2016-2018, Intel Corporation */ /* * synchronize.c -- pmempool sync command source file */ #include "synchronize.h" #include <stdio.h> #include <libgen.h> #include <string.h> #include <unistd.h> #include <stdlib.h> #include <getopt.h> #include <stdbool.h> #incl...
3,499
21.151899
98
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/tools/daxio/daxio.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2018-2020, Intel Corporation */ /* * daxio.c -- simple app for reading and writing data from/to * Device DAX device using mmap instead of file I/O API */ #include <assert.h> #include <stdio.h> #include <unistd.h> #include <getopt.h> #include <stdlib....
14,160
22.291118
79
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/libpmemlog/log.h
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2014-2020, Intel Corporation */ /* * log.h -- internal definitions for libpmem log module */ #ifndef LOG_H #define LOG_H 1 #include <stdint.h> #include <stddef.h> #include <endian.h> #include "ctl.h" #include "util.h" #include "os_thread.h" #include "pool_hdr....
2,832
23.422414
74
h
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/libpmemlog/log.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2014-2020, Intel Corporation */ /* * log.c -- log memory pool entry points for libpmem */ #include <inttypes.h> #include <stdio.h> #include <string.h> #include <sys/types.h> #include <sys/param.h> #include <unistd.h> #include <errno.h> #include <time.h> #include...
19,695
20.982143
75
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/libpmemlog/libpmemlog.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2014-2018, Intel Corporation */ /* * libpmemlog.c -- pmem entry points for libpmemlog */ #include <stdio.h> #include <stdint.h> #include "libpmemlog.h" #include "ctl_global.h" #include "pmemcommon.h" #include "log.h" /* * The variable from which the config i...
4,301
20.29703
78
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/core/os_windows.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2017-2020, Intel Corporation */ /* * Copyright (c) 2016, Microsoft Corporation. All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * ...
16,299
20.967655
79
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/core/os_thread_posix.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2017-2020, Intel Corporation */ /* * os_thread_posix.c -- Posix thread abstraction layer */ #define _GNU_SOURCE #include <pthread.h> #ifdef __FreeBSD__ #include <pthread_np.h> #endif #include <semaphore.h> #include "os_thread.h" #include "util.h" typedef struc...
9,190
20.032037
72
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/core/util.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2014-2020, Intel Corporation */ /* * util.c -- very basic utilities */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <endian.h> #include <errno.h> #include <time.h> #include <stdarg.h> #include "util.h" #include "os.h" ...
10,620
20.456566
79
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/core/os_thread_windows.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2015-2020, Intel Corporation */ /* * Copyright (c) 2016, Microsoft Corporation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * ...
15,425
22.443769
78
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/core/out.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2014-2020, Intel Corporation */ /* * out.c -- support for logging, tracing, and assertion output * * Macros like LOG(), OUT, ASSERT(), etc. end up here. */ #include <stdio.h> #include <stdarg.h> #include <stdlib.h> #include <unistd.h> #include <limits.h> #incl...
12,602
20.252951
80
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/core/util.h
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2014-2020, Intel Corporation */ /* * Copyright (c) 2016-2020, Microsoft Corporation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * ...
17,058
30.47417
79
h
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/core/valgrind_internal.h
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2015-2020, Intel Corporation */ /* * valgrind_internal.h -- internal definitions for valgrind macros */ #ifndef PMDK_VALGRIND_INTERNAL_H #define PMDK_VALGRIND_INTERNAL_H 1 #if !defined(_WIN32) && !defined(__FreeBSD__) #ifndef VALGRIND_ENABLED #define VALGRIND_E...
11,169
22.319415
75
h
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/core/alloc.h
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2019-2020, Intel Corporation */ #ifndef COMMON_ALLOC_H #define COMMON_ALLOC_H #include <stdlib.h> #ifdef __cplusplus extern "C" { #endif typedef void *(*Malloc_func)(size_t size); typedef void *(*Realloc_func)(void *ptr, size_t size); extern Malloc_func fn_mall...
1,131
21.64
69
h
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/core/os_thread.h
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2015-2020, Intel Corporation */ /* * Copyright (c) 2016, Microsoft Corporation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * ...
5,876
31.291209
75
h
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/core/out.h
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2014-2020, Intel Corporation */ /* * out.h -- definitions for "out" module */ #ifndef PMDK_OUT_H #define PMDK_OUT_H 1 #include <stdarg.h> #include <stddef.h> #include <stdlib.h> #include "util.h" #ifdef __cplusplus extern "C" { #endif /* * Suppress errors w...
6,066
25.150862
80
h
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/core/valgrind/memcheck.h
/* ---------------------------------------------------------------- Notice that the following BSD-style license applies to this one file (memcheck.h) only. The rest of Valgrind is licensed under the terms of the GNU General Public License, version 2, unless otherwise indicated. See the COPYING file i...
15,621
47.666667
79
h
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/core/valgrind/pmemcheck.h
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2014-2015, Intel Corporation */ #ifndef __PMEMCHECK_H #define __PMEMCHECK_H /* This file is for inclusion into client (your!) code. You can use these macros to manipulate and query memory permissions inside your own programs. See comment near the top o...
9,085
47.588235
77
h
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/common/ctl.h
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2016-2019, Intel Corporation */ /* * ctl.h -- internal declaration of statistics and control related structures */ #ifndef PMDK_CTL_H #define PMDK_CTL_H 1 #include "queue.h" #include "errno.h" #include "out.h" #ifdef __cplusplus extern "C" { #endif struct ctl...
5,127
24.261084
80
h
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/common/file.h
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2014-2020, Intel Corporation */ /* * file.h -- internal definitions for file module */ #ifndef PMDK_FILE_H #define PMDK_FILE_H 1 #include <stddef.h> #include <sys/stat.h> #include <sys/types.h> #include <dirent.h> #include <limits.h> #include "os.h" #ifdef __c...
3,013
24.982759
78
h
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/common/badblocks.h
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2017-2020, Intel Corporation */ /* * badblocks.h -- bad blocks API based on the libpmem2 library */ #ifndef PMDK_BADBLOCKS_H #define PMDK_BADBLOCKS_H 1 #include <string.h> #include <stdint.h> #include <sys/types.h> #ifdef __cplusplus extern "C" { #endif #defi...
1,878
23.089744
130
h
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/common/ctl.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2016-2020, Intel Corporation */ /* * ctl.c -- implementation of the interface for examination and modification of * the library's internal state */ #include "ctl.h" #include "os.h" #include "alloc.h" #define CTL_MAX_ENTRIES 100 #define MAX_CONFIG_FILE_LEN (1 <...
12,706
20.946459
80
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/common/pool_hdr.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2014-2019, Intel Corporation */ /* * pool_hdr.c -- pool header utilities */ #include <errno.h> #include <stdio.h> #include <string.h> #include <endian.h> #include "out.h" #include "pool_hdr.h" /* Determine ISA for which PMDK is currently compiled */ #if define...
8,733
24.242775
80
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/common/shutdown_state.h
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2017-2020, Intel Corporation */ /* * shutdown_state.h -- unsafe shudown detection */ #ifndef PMDK_SHUTDOWN_STATE_H #define PMDK_SHUTDOWN_STATE_H 1 #include <stdint.h> #ifdef __cplusplus extern "C" { #endif struct pool_replica; struct shutdown_state { uint64_...
950
21.642857
78
h
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/common/uuid.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2014-2018, Intel Corporation */ /* * uuid.c -- uuid utilities */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include "uuid.h" #include "out.h" /* * util_uuid_to_string -- generate a string form of the uuid */ int util_uuid_to_string(const uuid...
1,818
20.654762
66
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/common/queue.h
/* * Source: glibc 2.24 (git://sourceware.org/glibc.git /misc/sys/queue.h) * * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. * Copyright (c) 2016, Microsoft Corporation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * ...
22,165
33.907087
85
h
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/common/set.h
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2014-2019, Intel Corporation */ /* * Copyright (c) 2016, Microsoft Corporation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * ...
14,145
31.077098
80
h
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/common/shutdown_state.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2017-2020, Intel Corporation */ /* * shutdown_state.c -- unsafe shudown detection */ #include <string.h> #include <stdbool.h> #include <endian.h> #include "shutdown_state.h" #include "out.h" #include "util.h" #include "os_deep.h" #include "set.h" #include "libpm...
5,491
22.370213
117
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/common/mmap.h
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2014-2020, Intel Corporation */ /* * mmap.h -- internal definitions for mmap module */ #ifndef PMDK_MMAP_H #define PMDK_MMAP_H 1 #include <stddef.h> #include <stdint.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include <errno.h> #includ...
3,328
22.27972
76
h
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/common/ravl.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2018-2020, Intel Corporation */ /* * ravl.c -- implementation of a RAVL tree * https://sidsen.azurewebsites.net//papers/ravl-trees-journal.pdf */ #include <stdlib.h> #include <string.h> #include <errno.h> #include "out.h" #include "ravl.h" #include "alloc.h" #...
12,600
20.801038
79
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/common/vecq.h
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2018-2019, Intel Corporation */ /* * vecq.h -- vector queue (FIFO) interface */ #ifndef PMDK_VECQ_H #define PMDK_VECQ_H 1 #include <stddef.h> #include "util.h" #include "out.h" #include "alloc.h" #ifdef __cplusplus extern "C" { #endif #define VECQ_INIT_SIZE (...
2,731
20.178295
68
h
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/common/os_deep_linux.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2017-2020, Intel Corporation */ /* * os_deep_linux.c -- Linux abstraction layer */ #define _GNU_SOURCE #include <inttypes.h> #include <fcntl.h> #include <sys/stat.h> #include "out.h" #include "os.h" #include "mmap.h" #include "file.h" #include "libpmem.h" #incl...
3,932
21.095506
75
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/common/file_windows.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2015-2020, Intel Corporation */ /* * file_windows.c -- Windows emulation of Linux-specific system calls */ /* * XXX - The initial approach to PMDK for Windows port was to minimize the * amount of changes required in the core part of the library, and to avoid ...
4,186
20.253807
76
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/common/mmap.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2014-2020, Intel Corporation */ /* * mmap.c -- mmap utilities */ #include <errno.h> #include <inttypes.h> #include <fcntl.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include <unistd.h> #include "file.h" #include "queue.h" #include "mmap.h"...
11,141
21.063366
115
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/common/mmap_posix.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2014-2018, Intel Corporation */ /* * mmap_posix.c -- memory-mapped files for Posix */ #include <stdio.h> #include <sys/mman.h> #include <sys/param.h> #include "mmap.h" #include "out.h" #include "os.h" #define PROCMAXLEN 2048 /* maximum expected line length in /...
5,438
27.036082
79
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/common/ravl.h
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2018-2019, Intel Corporation */ /* * ravl.h -- internal definitions for ravl tree */ #ifndef LIBPMEMOBJ_RAVL_H #define LIBPMEMOBJ_RAVL_H 1 #include <stddef.h> #ifdef __cplusplus extern "C" { #endif struct ravl; struct ravl_node; enum ravl_predicate { RAVL_P...
1,556
27.309091
73
h
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/common/pool_hdr.h
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2014-2019, Intel Corporation */ /* * pool_hdr.h -- internal definitions for pool header module */ #ifndef PMDK_POOL_HDR_H #define PMDK_POOL_HDR_H 1 #include <stddef.h> #include <stdint.h> #include <unistd.h> #include "uuid.h" #include "shutdown_state.h" #includ...
7,980
29.696154
77
h
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/common/os_deep_windows.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2017-2018, Intel Corporation */ /* * os_deep_windows.c -- Windows abstraction layer for deep_* functions */ #include <windows.h> #include "out.h" #include "os.h" #include "set.h" #include "libpmem.h" /* * os_range_deep_common -- call msnyc for non DEV dax */ ...
1,598
20.039474
75
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/common/mmap_windows.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2015-2018, Intel Corporation */ /* * Copyright (c) 2015-2017, Microsoft Corporation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * ...
4,965
31.887417
76
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/examples/libpmemlog/logfile/addlog.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2014-2019, Intel Corporation */ /* * addlog -- given a log file, append a log entry * * Usage: * fallocate -l 1G /path/to/pm-aware/file * addlog /path/to/pm-aware/file "first line of entry" "second line" */ #include <ex_common.h> #include <sys/stat.h> #inclu...
2,511
21.230088
73
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/examples/libpmemblk/assetdb/asset_checkout.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2014-2019, Intel Corporation */ /* * asset_checkout -- mark an asset as checked out to someone * * Usage: * asset_checkin /path/to/pm-aware/file asset-ID name */ #include <ex_common.h> #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <string...
1,634
20.233766
66
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/examples/libpmemobj/buffons_needle_problem.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2019, Intel Corporation */ /* * buffons_needle_problem.c <path> [<n>] -- example illustrating * usage of libpmemobj * * Calculates pi number by solving Buffon's needle problem. * Takes one/two arguments -- path of the file and integer amount of trials * or o...
3,119
20.22449
75
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/examples/libpmemobj/pi.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2015-2019, Intel Corporation */ /* * pi.c -- example usage of user lists * * Calculates pi number with multiple threads using Leibniz formula. */ #include <ex_common.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <sys/stat.h> #include <ass...
5,620
20.786822
68
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/examples/libpmemobj/setjmp.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2016-2019, Intel Corporation */ /* * setjmp.c -- example illustrating an issue with indeterminate value * of non-volatile automatic variables after transaction abort. * See libpmemobj(7) for details. * * NOTE: To observe the problem (likely segfault on a secon...
1,723
23.985507
77
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/examples/libpmemobj/pmemblk/obj_pmemblk.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2015-2019, Intel Corporation */ /* * obj_pmemblk.c -- alternate pmemblk implementation based on pmemobj * * usage: obj_pmemblk [co] file blk_size [cmd[:blk_num[:data]]...] * * c - create file * o - open file * * The "cmd" arguments match the pmemblk fun...
9,447
22.62
76
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/examples/libpmemobj/slab_allocator/main.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2017, Intel Corporation */ /* * main.c -- example usage of a slab-like mechanism implemented in libpmemobj * * This application does nothing besides demonstrating the example slab * allocator mechanism. * * By using the CTL alloc class API we can instrument l...
2,066
21.225806
77
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/examples/libpmemobj/slab_allocator/slab_allocator.h
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2017, Intel Corporation */ /* * slab_allocator.h -- slab-like mechanism for libpmemobj */ #ifndef SLAB_ALLOCATOR_H #define SLAB_ALLOCATOR_H #include <libpmemobj.h> struct slab_allocator; struct slab_allocator *slab_new(PMEMobjpool *pop, size_t size); void sla...
542
22.608696
63
h
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/examples/libpmemobj/array/array.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2016-2019, Intel Corporation */ /* * array.c -- example of arrays usage */ #include <ex_common.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <sys/stat.h> #include <libpmemobj.h> #define TOID_ARRAY(x) TOID(x) #define CO...
11,844
22.595618
77
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/examples/libpmemobj/list_map/skiplist_map.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2016, Intel Corporation */ /* * skiplist_map.c -- Skiplist implementation */ #include <assert.h> #include <errno.h> #include <stdlib.h> #include <stdio.h> #include "skiplist_map.h" #define SKIPLIST_LEVELS_NUM 4 #define NULL_NODE TOID_NULL(struct skiplist_map_no...
8,913
23.899441
83
c
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/examples/libpmemobj/list_map/skiplist_map.h
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2016, Intel Corporation */ /* * skiplist_map.h -- sorted list collection implementation */ #ifndef SKIPLIST_MAP_H #define SKIPLIST_MAP_H #include <libpmemobj.h> #ifndef SKIPLIST_MAP_TYPE_OFFSET #define SKIPLIST_MAP_TYPE_OFFSET 2020 #endif struct skiplist_map_...
1,688
36.533333
80
h
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/examples/libpmemobj/hashmap/hashmap_tx.h
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2015-2017, Intel Corporation */ #ifndef HASHMAP_TX_H #define HASHMAP_TX_H #include <stddef.h> #include <stdint.h> #include <hashmap.h> #include <libpmemobj.h> #ifndef HASHMAP_TX_TYPE_OFFSET #define HASHMAP_TX_TYPE_OFFSET 1004 #endif struct hashmap_tx; TOID_DECLAR...
1,270
34.305556
76
h
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/examples/libpmemobj/hashmap/hashmap_rp.h
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2018, Intel Corporation */ #ifndef HASHMAP_RP_H #define HASHMAP_RP_H #include <stddef.h> #include <stdint.h> #include <hashmap.h> #include <libpmemobj.h> #ifndef HASHMAP_RP_TYPE_OFFSET #define HASHMAP_RP_TYPE_OFFSET 1008 #endif /* Flags to indicate if insertion i...
1,780
36.104167
76
h
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/examples/libpmemobj/hashmap/hashmap_internal.h
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2015-2017, Intel Corporation */ #ifndef HASHSET_INTERNAL_H #define HASHSET_INTERNAL_H /* large prime number used as a hashing function coefficient */ #define HASH_FUNC_COEFF_P 32212254719ULL /* initial number of buckets */ #define INIT_BUCKETS_NUM 10 /* number o...
521
25.1
72
h
null
NearPMSW-main/nearpm/checkpointing/pmdkArrSwap-checkpoint/src/examples/libpmemobj/hashmap/hashmap_tx.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2015-2019, Intel Corporation */ /* integer hash set implementation which uses only transaction APIs */ #include <stdlib.h> #include <stdio.h> #include <errno.h> #include <inttypes.h> #include <libpmemobj.h> #include "hashmap_tx.h" #include "hashmap_internal.h" st...
11,602
22.825462
83
c