aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-03-02 12:53:15 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-03-02 12:53:15 +0000
commitd18f52bd182ac163a4ca87e7f8ffcb047fd063a3 (patch)
tree2b0804e1014e908150a20acc6bbccbd9b83cfce3
parentfb29038b59fa639b79de99c4edddfa6462918765 (diff)
downloadbusybox-w32-d18f52bd182ac163a4ca87e7f8ffcb047fd063a3.tar.gz
busybox-w32-d18f52bd182ac163a4ca87e7f8ffcb047fd063a3.tar.bz2
busybox-w32-d18f52bd182ac163a4ca87e7f8ffcb047fd063a3.zip
actually add bb_qsort.c
*: s/Denis/Denys/
-rw-r--r--coreutils/od_bloaty.c2
-rw-r--r--ipsvd/ipsvd_perhost.c2
-rw-r--r--ipsvd/ipsvd_perhost.h2
-rw-r--r--ipsvd/tcpudp.c2
-rw-r--r--libbb/bb_basename.c2
-rw-r--r--libbb/bb_qsort.c20
-rw-r--r--libbb/makedev.c2
-rw-r--r--libbb/printable.c2
-rw-r--r--libbb/signals.c2
-rw-r--r--libbb/time.c2
-rw-r--r--libbb/udp_io.c2
-rw-r--r--libbb/xfuncs.c2
-rw-r--r--networking/isrv.c2
-rw-r--r--networking/isrv.h2
-rw-r--r--networking/isrv_identd.c2
-rw-r--r--runit/chpst.c2
-rw-r--r--runit/runit_lib.c2
-rw-r--r--runit/runsv.c2
-rw-r--r--runit/runsvdir.c2
-rw-r--r--runit/sv.c2
-rw-r--r--runit/svlogd.c2
21 files changed, 40 insertions, 20 deletions
diff --git a/coreutils/od_bloaty.c b/coreutils/od_bloaty.c
index 501a92b38..a083114c9 100644
--- a/coreutils/od_bloaty.c
+++ b/coreutils/od_bloaty.c
@@ -17,7 +17,7 @@
17 17
18/* Written by Jim Meyering. */ 18/* Written by Jim Meyering. */
19 19
20/* Busyboxed by Denis Vlasenko 20/* Busyboxed by Denys Vlasenko
21 21
22Based on od.c from coreutils-5.2.1 22Based on od.c from coreutils-5.2.1
23Top bloat sources: 23Top bloat sources:
diff --git a/ipsvd/ipsvd_perhost.c b/ipsvd/ipsvd_perhost.c
index d4c0d795f..6075c0a3a 100644
--- a/ipsvd/ipsvd_perhost.c
+++ b/ipsvd/ipsvd_perhost.c
@@ -2,7 +2,7 @@
2 * which are released into public domain by the author. 2 * which are released into public domain by the author.
3 * Homepage: http://smarden.sunsite.dk/ipsvd/ 3 * Homepage: http://smarden.sunsite.dk/ipsvd/
4 * 4 *
5 * Copyright (C) 2007 Denis Vlasenko. 5 * Copyright (C) 2007 Denys Vlasenko.
6 * 6 *
7 * Licensed under GPLv2, see file LICENSE in this tarball for details. 7 * Licensed under GPLv2, see file LICENSE in this tarball for details.
8 */ 8 */
diff --git a/ipsvd/ipsvd_perhost.h b/ipsvd/ipsvd_perhost.h
index afe2c296c..9fc8cee61 100644
--- a/ipsvd/ipsvd_perhost.h
+++ b/ipsvd/ipsvd_perhost.h
@@ -2,7 +2,7 @@
2 * which are released into public domain by the author. 2 * which are released into public domain by the author.
3 * Homepage: http://smarden.sunsite.dk/ipsvd/ 3 * Homepage: http://smarden.sunsite.dk/ipsvd/
4 * 4 *
5 * Copyright (C) 2007 Denis Vlasenko. 5 * Copyright (C) 2007 Denys Vlasenko.
6 * 6 *
7 * Licensed under GPLv2, see file LICENSE in this tarball for details. 7 * Licensed under GPLv2, see file LICENSE in this tarball for details.
8 */ 8 */
diff --git a/ipsvd/tcpudp.c b/ipsvd/tcpudp.c
index b3a2c7a77..cb57e598a 100644
--- a/ipsvd/tcpudp.c
+++ b/ipsvd/tcpudp.c
@@ -2,7 +2,7 @@
2 * which are released into public domain by the author. 2 * which are released into public domain by the author.
3 * Homepage: http://smarden.sunsite.dk/ipsvd/ 3 * Homepage: http://smarden.sunsite.dk/ipsvd/
4 * 4 *
5 * Copyright (C) 2007 Denis Vlasenko. 5 * Copyright (C) 2007 Denys Vlasenko.
6 * 6 *
7 * Licensed under GPLv2, see file LICENSE in this tarball for details. 7 * Licensed under GPLv2, see file LICENSE in this tarball for details.
8 */ 8 */
diff --git a/libbb/bb_basename.c b/libbb/bb_basename.c
index e19156d5c..e6832f8ef 100644
--- a/libbb/bb_basename.c
+++ b/libbb/bb_basename.c
@@ -2,7 +2,7 @@
2/* 2/*
3 * Utility routines. 3 * Utility routines.
4 * 4 *
5 * Copyright (C) 2007 Denis Vlasenko 5 * Copyright (C) 2007 Denys Vlasenko
6 * 6 *
7 * Licensed under GPL version 2, see file LICENSE in this tarball for details. 7 * Licensed under GPL version 2, see file LICENSE in this tarball for details.
8 */ 8 */
diff --git a/libbb/bb_qsort.c b/libbb/bb_qsort.c
new file mode 100644
index 000000000..e8673abf9
--- /dev/null
+++ b/libbb/bb_qsort.c
@@ -0,0 +1,20 @@
1/* vi: set sw=4 ts=4: */
2/*
3 * Wrapper for common string vector sorting operation
4 *
5 * Copyright (c) 2008 Denys Vlasenko
6 *
7 * Licensed under GPLv2, see file LICENSE in this tarball for details.
8 */
9
10#include "libbb.h"
11
12int bb_pstrcmp(const void *a, const void *b)
13{
14 return strcmp(*(char**)a, *(char**)b);
15}
16
17void qsort_string_vector(char **sv, unsigned count)
18{
19 qsort(sv, count, sizeof(char*), bb_pstrcmp);
20}
diff --git a/libbb/makedev.c b/libbb/makedev.c
index 81cd82baf..efd51224f 100644
--- a/libbb/makedev.c
+++ b/libbb/makedev.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * Utility routines. 2 * Utility routines.
3 * 3 *
4 * Copyright (C) 2006 Denis Vlasenko 4 * Copyright (C) 2006 Denys Vlasenko
5 * 5 *
6 * Licensed under GPL version 2, see file LICENSE in this tarball for details. 6 * Licensed under GPL version 2, see file LICENSE in this tarball for details.
7 */ 7 */
diff --git a/libbb/printable.c b/libbb/printable.c
index 2420a91f0..676758a2b 100644
--- a/libbb/printable.c
+++ b/libbb/printable.c
@@ -2,7 +2,7 @@
2/* 2/*
3 * Utility routines. 3 * Utility routines.
4 * 4 *
5 * Copyright (C) 2007 Denis Vlasenko 5 * Copyright (C) 2007 Denys Vlasenko
6 * 6 *
7 * Licensed under GPL version 2, see file LICENSE in this tarball for details. 7 * Licensed under GPL version 2, see file LICENSE in this tarball for details.
8 */ 8 */
diff --git a/libbb/signals.c b/libbb/signals.c
index b46b595da..1929cb88e 100644
--- a/libbb/signals.c
+++ b/libbb/signals.c
@@ -4,7 +4,7 @@
4 * 4 *
5 * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> 5 * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
6 * Copyright (C) 2006 Rob Landley 6 * Copyright (C) 2006 Rob Landley
7 * Copyright (C) 2006 Denis Vlasenko 7 * Copyright (C) 2006 Denys Vlasenko
8 * 8 *
9 * Licensed under GPL version 2, see file LICENSE in this tarball for details. 9 * Licensed under GPL version 2, see file LICENSE in this tarball for details.
10 */ 10 */
diff --git a/libbb/time.c b/libbb/time.c
index 525032d4d..3aa0ee318 100644
--- a/libbb/time.c
+++ b/libbb/time.c
@@ -2,7 +2,7 @@
2/* 2/*
3 * Utility routines. 3 * Utility routines.
4 * 4 *
5 * Copyright (C) 2007 Denis Vlasenko 5 * Copyright (C) 2007 Denys Vlasenko
6 * 6 *
7 * Licensed under GPL version 2, see file LICENSE in this tarball for details. 7 * Licensed under GPL version 2, see file LICENSE in this tarball for details.
8 */ 8 */
diff --git a/libbb/udp_io.c b/libbb/udp_io.c
index 7e48d32f3..2f02a138b 100644
--- a/libbb/udp_io.c
+++ b/libbb/udp_io.c
@@ -2,7 +2,7 @@
2/* 2/*
3 * Utility routines. 3 * Utility routines.
4 * 4 *
5 * Copyright (C) 2007 Denis Vlasenko 5 * Copyright (C) 2007 Denys Vlasenko
6 * 6 *
7 * Licensed under GPL version 2, see file LICENSE in this tarball for details. 7 * Licensed under GPL version 2, see file LICENSE in this tarball for details.
8 */ 8 */
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c
index 18e696a7a..ca7f94173 100644
--- a/libbb/xfuncs.c
+++ b/libbb/xfuncs.c
@@ -4,7 +4,7 @@
4 * 4 *
5 * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> 5 * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
6 * Copyright (C) 2006 Rob Landley 6 * Copyright (C) 2006 Rob Landley
7 * Copyright (C) 2006 Denis Vlasenko 7 * Copyright (C) 2006 Denys Vlasenko
8 * 8 *
9 * Licensed under GPL version 2, see file LICENSE in this tarball for details. 9 * Licensed under GPL version 2, see file LICENSE in this tarball for details.
10 */ 10 */
diff --git a/networking/isrv.c b/networking/isrv.c
index 080c60fbd..66bb3718e 100644
--- a/networking/isrv.c
+++ b/networking/isrv.c
@@ -3,7 +3,7 @@
3 * Generic non-forking server infrastructure. 3 * Generic non-forking server infrastructure.
4 * Intended to make writing telnetd-type servers easier. 4 * Intended to make writing telnetd-type servers easier.
5 * 5 *
6 * Copyright (C) 2007 Denis Vlasenko 6 * Copyright (C) 2007 Denys Vlasenko
7 * 7 *
8 * Licensed under GPL version 2, see file LICENSE in this tarball for details. 8 * Licensed under GPL version 2, see file LICENSE in this tarball for details.
9 */ 9 */
diff --git a/networking/isrv.h b/networking/isrv.h
index c786770a6..370ed9043 100644
--- a/networking/isrv.h
+++ b/networking/isrv.h
@@ -3,7 +3,7 @@
3 * Generic non-forking server infrastructure. 3 * Generic non-forking server infrastructure.
4 * Intended to make writing telnetd-type servers easier. 4 * Intended to make writing telnetd-type servers easier.
5 * 5 *
6 * Copyright (C) 2007 Denis Vlasenko 6 * Copyright (C) 2007 Denys Vlasenko
7 * 7 *
8 * Licensed under GPL version 2, see file LICENSE in this tarball for details. 8 * Licensed under GPL version 2, see file LICENSE in this tarball for details.
9 */ 9 */
diff --git a/networking/isrv_identd.c b/networking/isrv_identd.c
index dbdecba24..33338572d 100644
--- a/networking/isrv_identd.c
+++ b/networking/isrv_identd.c
@@ -2,7 +2,7 @@
2/* 2/*
3 * Fake identd server. 3 * Fake identd server.
4 * 4 *
5 * Copyright (C) 2007 Denis Vlasenko 5 * Copyright (C) 2007 Denys Vlasenko
6 * 6 *
7 * Licensed under GPL version 2, see file LICENSE in this tarball for details. 7 * Licensed under GPL version 2, see file LICENSE in this tarball for details.
8 */ 8 */
diff --git a/runit/chpst.c b/runit/chpst.c
index 7b70a4d5a..89d8ce443 100644
--- a/runit/chpst.c
+++ b/runit/chpst.c
@@ -25,7 +25,7 @@ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
25ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26*/ 26*/
27 27
28/* Busyboxed by Denis Vlasenko <vda.linux@googlemail.com> */ 28/* Busyboxed by Denys Vlasenko <vda.linux@googlemail.com> */
29/* Dependencies on runit_lib.c removed */ 29/* Dependencies on runit_lib.c removed */
30 30
31#include "libbb.h" 31#include "libbb.h"
diff --git a/runit/runit_lib.c b/runit/runit_lib.c
index bedd5401f..f33619d28 100644
--- a/runit/runit_lib.c
+++ b/runit/runit_lib.c
@@ -25,7 +25,7 @@ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
25ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26*/ 26*/
27 27
28/* Busyboxed by Denis Vlasenko <vda.linux@googlemail.com> */ 28/* Busyboxed by Denys Vlasenko <vda.linux@googlemail.com> */
29/* Collected into one file from runit's many tiny files */ 29/* Collected into one file from runit's many tiny files */
30/* TODO: review, eliminate unneeded stuff, move good stuff to libbb */ 30/* TODO: review, eliminate unneeded stuff, move good stuff to libbb */
31 31
diff --git a/runit/runsv.c b/runit/runsv.c
index 02dcf50ca..5d4e1584e 100644
--- a/runit/runsv.c
+++ b/runit/runsv.c
@@ -25,7 +25,7 @@ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
25ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26*/ 26*/
27 27
28/* Busyboxed by Denis Vlasenko <vda.linux@googlemail.com> */ 28/* Busyboxed by Denys Vlasenko <vda.linux@googlemail.com> */
29/* TODO: depends on runit_lib.c - review and reduce/eliminate */ 29/* TODO: depends on runit_lib.c - review and reduce/eliminate */
30 30
31#include <sys/poll.h> 31#include <sys/poll.h>
diff --git a/runit/runsvdir.c b/runit/runsvdir.c
index 3ff1d4c23..0ab672ef4 100644
--- a/runit/runsvdir.c
+++ b/runit/runsvdir.c
@@ -25,7 +25,7 @@ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
25ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26*/ 26*/
27 27
28/* Busyboxed by Denis Vlasenko <vda.linux@googlemail.com> */ 28/* Busyboxed by Denys Vlasenko <vda.linux@googlemail.com> */
29/* TODO: depends on runit_lib.c - review and reduce/eliminate */ 29/* TODO: depends on runit_lib.c - review and reduce/eliminate */
30 30
31#include <sys/poll.h> 31#include <sys/poll.h>
diff --git a/runit/sv.c b/runit/sv.c
index a89e24439..141f7a8bc 100644
--- a/runit/sv.c
+++ b/runit/sv.c
@@ -150,7 +150,7 @@ Exit Codes
150 is 99. sv exits 100 on error. 150 is 99. sv exits 100 on error.
151*/ 151*/
152 152
153/* Busyboxed by Denis Vlasenko <vda.linux@googlemail.com> */ 153/* Busyboxed by Denys Vlasenko <vda.linux@googlemail.com> */
154/* TODO: depends on runit_lib.c - review and reduce/eliminate */ 154/* TODO: depends on runit_lib.c - review and reduce/eliminate */
155 155
156#include <sys/poll.h> 156#include <sys/poll.h>
diff --git a/runit/svlogd.c b/runit/svlogd.c
index d7da18093..c69cb545c 100644
--- a/runit/svlogd.c
+++ b/runit/svlogd.c
@@ -25,7 +25,7 @@ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
25ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26*/ 26*/
27 27
28/* Busyboxed by Denis Vlasenko <vda.linux@googlemail.com> */ 28/* Busyboxed by Denys Vlasenko <vda.linux@googlemail.com> */
29/* TODO: depends on runit_lib.c - review and reduce/eliminate */ 29/* TODO: depends on runit_lib.c - review and reduce/eliminate */
30 30
31#include <sys/poll.h> 31#include <sys/poll.h>