Skip to content

Commit c29ecaa

Browse files
committed
Initial commit
0 parents  commit c29ecaa

File tree

196 files changed

+61086
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

196 files changed

+61086
-0
lines changed

.gitignore

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Object files
2+
*.o
3+
*.ko
4+
*.obj
5+
*.elf
6+
7+
# Precompiled Headers
8+
*.gch
9+
*.pch
10+
11+
# Libraries
12+
*.lib
13+
*.a
14+
*.la
15+
*.lo
16+
17+
# Shared objects (inc. Windows DLLs)
18+
*.dll
19+
*.so
20+
*.so.*
21+
*.dylib
22+
23+
# Executables
24+
*.exe
25+
*.out
26+
*.app
27+
*.i*86
28+
*.x86_64
29+
*.hex
30+
*.sh
31+
files

COPYING

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Copyright (c) 2014, Sureshkumar Nedunchezhian
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5+
6+
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7+
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8+
* Neither the name of Redis nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
9+
10+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
default: all
2+
3+
.DEFAULT:
4+
cd src && $(MAKE) $@
5+
6+
install:
7+
cd src && $(MAKE) $@
8+
9+
.PHONY: install

README

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Prez
2+
----
3+
4+
Prez is a server which provides distributed coordination. Internally, it uses Raft consensus protocol. The project is in the early stages.
5+
6+
Happy Coding!

deps/Makefile

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Prez dependency Makefile
2+
3+
uname_S:= $(shell sh -c 'uname -s 2>/dev/null || echo not')
4+
5+
CCCOLOR="\033[34m"
6+
LINKCOLOR="\033[34;1m"
7+
SRCCOLOR="\033[33m"
8+
BINCOLOR="\033[37;1m"
9+
MAKECOLOR="\033[32;1m"
10+
ENDCOLOR="\033[0m"
11+
12+
default:
13+
@echo "Explicit target required"
14+
15+
.PHONY: default
16+
17+
# Prerequisites target
18+
.make-prerequisites:
19+
@touch $@
20+
21+
# Clean everything when CFLAGS is different
22+
ifneq ($(shell sh -c '[ -f .make-cflags ] && cat .make-cflags || echo none'), $(CFLAGS))
23+
.make-cflags: distclean
24+
-(echo "$(CFLAGS)" > .make-cflags)
25+
.make-prerequisites: .make-cflags
26+
endif
27+
28+
# Clean everything when LDFLAGS is different
29+
ifneq ($(shell sh -c '[ -f .make-ldflags ] && cat .make-ldflags || echo none'), $(LDFLAGS))
30+
.make-ldflags: distclean
31+
-(echo "$(LDFLAGS)" > .make-ldflags)
32+
.make-prerequisites: .make-ldflags
33+
endif
34+
35+
distclean:
36+
-(cd jemalloc && [ -f Makefile ] && $(MAKE) distclean) > /dev/null || true
37+
-(rm -f .make-*)
38+
39+
.PHONY: distclean
40+
41+
JEMALLOC_CFLAGS= -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops $(CFLAGS)
42+
JEMALLOC_LDFLAGS= $(LDFLAGS)
43+
44+
jemalloc: .make-prerequisites
45+
@printf '%b %b\n' $(MAKECOLOR)MAKE$(ENDCOLOR) $(BINCOLOR)$@$(ENDCOLOR)
46+
cd jemalloc && ./configure --with-jemalloc-prefix=je_ --enable-cc-silence CFLAGS="$(JEMALLOC_CFLAGS)" LDFLAGS="$(JEMALLOC_LDFLAGS)"
47+
cd jemalloc && $(MAKE) CFLAGS="$(JEMALLOC_CFLAGS)" LDFLAGS="$(JEMALLOC_LDFLAGS)" lib/libjemalloc.a
48+
49+
.PHONY: jemalloc

deps/jemalloc/.gitignore

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
/*.gcov.*
2+
3+
/autom4te.cache/
4+
5+
/bin/jemalloc.sh
6+
7+
/config.stamp
8+
/config.log
9+
/config.status
10+
/configure
11+
12+
/doc/html.xsl
13+
/doc/manpages.xsl
14+
/doc/jemalloc.xml
15+
/doc/jemalloc.html
16+
/doc/jemalloc.3
17+
18+
/lib/
19+
20+
/Makefile
21+
22+
/include/jemalloc/internal/jemalloc_internal.h
23+
/include/jemalloc/internal/jemalloc_internal_defs.h
24+
/include/jemalloc/internal/private_namespace.h
25+
/include/jemalloc/internal/private_unnamespace.h
26+
/include/jemalloc/internal/public_namespace.h
27+
/include/jemalloc/internal/public_symbols.txt
28+
/include/jemalloc/internal/public_unnamespace.h
29+
/include/jemalloc/internal/size_classes.h
30+
/include/jemalloc/jemalloc.h
31+
/include/jemalloc/jemalloc_defs.h
32+
/include/jemalloc/jemalloc_macros.h
33+
/include/jemalloc/jemalloc_mangle.h
34+
/include/jemalloc/jemalloc_mangle_jet.h
35+
/include/jemalloc/jemalloc_protos.h
36+
/include/jemalloc/jemalloc_protos_jet.h
37+
/include/jemalloc/jemalloc_rename.h
38+
39+
/src/*.[od]
40+
/src/*.gcda
41+
/src/*.gcno
42+
43+
/test/test.sh
44+
test/include/test/jemalloc_test.h
45+
test/include/test/jemalloc_test_defs.h
46+
47+
/test/integration/[A-Za-z]*
48+
!/test/integration/[A-Za-z]*.*
49+
/test/integration/*.[od]
50+
/test/integration/*.gcda
51+
/test/integration/*.gcno
52+
/test/integration/*.out
53+
54+
/test/src/*.[od]
55+
/test/src/*.gcda
56+
/test/src/*.gcno
57+
58+
/test/stress/[A-Za-z]*
59+
!/test/stress/[A-Za-z]*.*
60+
/test/stress/*.[od]
61+
/test/stress/*.gcda
62+
/test/stress/*.gcno
63+
/test/stress/*.out
64+
65+
/test/unit/[A-Za-z]*
66+
!/test/unit/[A-Za-z]*.*
67+
/test/unit/*.[od]
68+
/test/unit/*.gcda
69+
/test/unit/*.gcno
70+
/test/unit/*.out
71+
72+
/VERSION

deps/jemalloc/COPYING

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Unless otherwise specified, files in the jemalloc source distribution are
2+
subject to the following license:
3+
--------------------------------------------------------------------------------
4+
Copyright (C) 2002-2014 Jason Evans <[email protected]>.
5+
All rights reserved.
6+
Copyright (C) 2007-2012 Mozilla Foundation. All rights reserved.
7+
Copyright (C) 2009-2014 Facebook, Inc. All rights reserved.
8+
9+
Redistribution and use in source and binary forms, with or without
10+
modification, are permitted provided that the following conditions are met:
11+
1. Redistributions of source code must retain the above copyright notice(s),
12+
this list of conditions and the following disclaimer.
13+
2. Redistributions in binary form must reproduce the above copyright notice(s),
14+
this list of conditions and the following disclaimer in the documentation
15+
and/or other materials provided with the distribution.
16+
17+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) ``AS IS'' AND ANY EXPRESS
18+
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19+
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
20+
EVENT SHALL THE COPYRIGHT HOLDER(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
21+
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
23+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
25+
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
26+
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27+
--------------------------------------------------------------------------------

0 commit comments

Comments
 (0)