Skip to contentSkip to conversation

shared-du: add the rbtree source and header file to lib v4

PATCH New Jie Liu 2 participants 2 messages Sep 20, 2010 – Sep 22, 2010 OCFS2

lore
Share & tools
lore

Jie Liu

author
#0 lore raw

PATCH 1/3 shared-du: add the rbtree source and header file to lib v4

Add the rbtree stuff to lib.

* lib/rbtree.c: Source file of rbtree.
* lib/rbtree.h: Header file of rbtree.
* lib/Makefile.am (libcoreutils_a_SOURCES): Add both of them.
* lib/Makefile.in (libcoreutils_a_SOURCES): Add both of them for workaround.

---
 coreutils-6.9/lib/Makefile.am |    3 +-
 coreutils-6.9/lib/Makefile.in |    4 +-
 coreutils-6.9/lib/rbtree.c    |  403 +++++++++++++++++++++++++++++++++++++++++
 coreutils-6.9/lib/rbtree.h    |  143 +++++++++++++++
 4 files changed, 550 insertions(+), 3 deletions(-)
 create mode 100644 coreutils-6.9/lib/rbtree.c
 create mode 100644 coreutils-6.9/lib/rbtree.h
coreutils-6.9/lib/Makefile.am +2 -1
index cfa22be..6e22f65 100644
@@ -26,7 +26,8 @@ LDADD = $(noinst_LIBRARIES)
 
 libcoreutils_a_SOURCES += \
   buffer-lcm.c buffer-lcm.h \
-  xmemxfrm.c xmemxfrm.h
+  xmemxfrm.c xmemxfrm.h \
+  rbtree.c rbtree.h
 
 libcoreutils_a_LIBADD += $(LIBOBJS)
 libcoreutils_a_DEPENDENCIES += $(LIBOBJS)
coreutils-6.9/lib/Makefile.in +2 -2
index 772d8f3..29a81c0 100644
@@ -213,7 +213,7 @@ am_libcoreutils_a_OBJECTS = allocsa.$(OBJEXT) base64.$(OBJEXT) \
 	xalloc-die.$(OBJEXT) xgethostname.$(OBJEXT) xmemcoll.$(OBJEXT) \
 	xreadlink.$(OBJEXT) xreadlink-with-size.$(OBJEXT) \
 	xstrndup.$(OBJEXT) xstrtoimax.$(OBJEXT) xstrtoumax.$(OBJEXT) \
-	buffer-lcm.$(OBJEXT) xmemxfrm.$(OBJEXT)
+	buffer-lcm.$(OBJEXT) xmemxfrm.$(OBJEXT) rbtree.$(OBJEXT)
 libcoreutils_a_OBJECTS = $(am_libcoreutils_a_OBJECTS)
 LTLIBRARIES = $(noinst_LTLIBRARIES)
 PROGRAMS = $(noinst_PROGRAMS)
@@ -643,7 +643,7 @@ libcoreutils_a_SOURCES = allocsa.h allocsa.c base64.h base64.c \
 	xgethostname.h xgethostname.c xmemcoll.h xmemcoll.c \
 	xreadlink.c xreadlink-with-size.c xstrndup.h xstrndup.c \
 	xstrtoimax.c xstrtoumax.c buffer-lcm.c buffer-lcm.h xmemxfrm.c \
-	xmemxfrm.h
+	xmemxfrm.h rbtree.c rbtree.h
 libcoreutils_a_LIBADD = $(gl_LIBOBJS) @ALLOCA@ $(LIBOBJS)
 libcoreutils_a_DEPENDENCIES = $(gl_LIBOBJS) @ALLOCA@ $(LIBOBJS)
 EXTRA_libcoreutils_a_SOURCES = acl.c acl_entries.c file-has-acl.c \
coreutils-6.9/lib/rbtree.c new file +403 -0

403 lines not on this page · raw message

coreutils-6.9/lib/rbtree.h new file +143 -0

143 lines not on this page · raw message

Signature · 1 line
1.5.4.3
#1 lore raw

PATCH 1/3 shared-du: add the rbtree source and header file to lib v4

Quoted 9 lines · Jie Liu

Add the rbtree stuff to lib.

* lib/rbtree.c: Source file of rbtree.
* lib/rbtree.h: Header file of rbtree.
* lib/Makefile.am (libcoreutils_a_SOURCES): Add both of them.
* lib/Makefile.in (libcoreutils_a_SOURCES): Add both of them for workaround.

Thanks Jeff. I have pushed the patches into the git repo.