diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-02 12:53:15 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-02 12:53:15 +0000 |
commit | d18f52bd182ac163a4ca87e7f8ffcb047fd063a3 (patch) | |
tree | 2b0804e1014e908150a20acc6bbccbd9b83cfce3 /libbb | |
parent | fb29038b59fa639b79de99c4edddfa6462918765 (diff) | |
download | busybox-w32-d18f52bd182ac163a4ca87e7f8ffcb047fd063a3.tar.gz busybox-w32-d18f52bd182ac163a4ca87e7f8ffcb047fd063a3.tar.bz2 busybox-w32-d18f52bd182ac163a4ca87e7f8ffcb047fd063a3.zip |
actually add bb_qsort.c
*: s/Denis/Denys/
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/bb_basename.c | 2 | ||||
-rw-r--r-- | libbb/bb_qsort.c | 20 | ||||
-rw-r--r-- | libbb/makedev.c | 2 | ||||
-rw-r--r-- | libbb/printable.c | 2 | ||||
-rw-r--r-- | libbb/signals.c | 2 | ||||
-rw-r--r-- | libbb/time.c | 2 | ||||
-rw-r--r-- | libbb/udp_io.c | 2 | ||||
-rw-r--r-- | libbb/xfuncs.c | 2 |
8 files changed, 27 insertions, 7 deletions
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 | |||
12 | int bb_pstrcmp(const void *a, const void *b) | ||
13 | { | ||
14 | return strcmp(*(char**)a, *(char**)b); | ||
15 | } | ||
16 | |||
17 | void 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 | */ |