mirror of
https://github.com/sheumann/hush.git
synced 2024-12-27 01:32:08 +00:00
actually add bb_qsort.c
*: s/Denis/Denys/
This commit is contained in:
parent
fb29038b59
commit
d18f52bd18
@ -17,7 +17,7 @@
|
||||
|
||||
/* Written by Jim Meyering. */
|
||||
|
||||
/* Busyboxed by Denis Vlasenko
|
||||
/* Busyboxed by Denys Vlasenko
|
||||
|
||||
Based on od.c from coreutils-5.2.1
|
||||
Top bloat sources:
|
||||
|
@ -2,7 +2,7 @@
|
||||
* which are released into public domain by the author.
|
||||
* Homepage: http://smarden.sunsite.dk/ipsvd/
|
||||
*
|
||||
* Copyright (C) 2007 Denis Vlasenko.
|
||||
* Copyright (C) 2007 Denys Vlasenko.
|
||||
*
|
||||
* Licensed under GPLv2, see file LICENSE in this tarball for details.
|
||||
*/
|
||||
|
@ -2,7 +2,7 @@
|
||||
* which are released into public domain by the author.
|
||||
* Homepage: http://smarden.sunsite.dk/ipsvd/
|
||||
*
|
||||
* Copyright (C) 2007 Denis Vlasenko.
|
||||
* Copyright (C) 2007 Denys Vlasenko.
|
||||
*
|
||||
* Licensed under GPLv2, see file LICENSE in this tarball for details.
|
||||
*/
|
||||
|
@ -2,7 +2,7 @@
|
||||
* which are released into public domain by the author.
|
||||
* Homepage: http://smarden.sunsite.dk/ipsvd/
|
||||
*
|
||||
* Copyright (C) 2007 Denis Vlasenko.
|
||||
* Copyright (C) 2007 Denys Vlasenko.
|
||||
*
|
||||
* Licensed under GPLv2, see file LICENSE in this tarball for details.
|
||||
*/
|
||||
|
@ -2,7 +2,7 @@
|
||||
/*
|
||||
* Utility routines.
|
||||
*
|
||||
* Copyright (C) 2007 Denis Vlasenko
|
||||
* Copyright (C) 2007 Denys Vlasenko
|
||||
*
|
||||
* Licensed under GPL version 2, see file LICENSE in this tarball for details.
|
||||
*/
|
||||
|
20
libbb/bb_qsort.c
Normal file
20
libbb/bb_qsort.c
Normal file
@ -0,0 +1,20 @@
|
||||
/* vi: set sw=4 ts=4: */
|
||||
/*
|
||||
* Wrapper for common string vector sorting operation
|
||||
*
|
||||
* Copyright (c) 2008 Denys Vlasenko
|
||||
*
|
||||
* Licensed under GPLv2, see file LICENSE in this tarball for details.
|
||||
*/
|
||||
|
||||
#include "libbb.h"
|
||||
|
||||
int bb_pstrcmp(const void *a, const void *b)
|
||||
{
|
||||
return strcmp(*(char**)a, *(char**)b);
|
||||
}
|
||||
|
||||
void qsort_string_vector(char **sv, unsigned count)
|
||||
{
|
||||
qsort(sv, count, sizeof(char*), bb_pstrcmp);
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Utility routines.
|
||||
*
|
||||
* Copyright (C) 2006 Denis Vlasenko
|
||||
* Copyright (C) 2006 Denys Vlasenko
|
||||
*
|
||||
* Licensed under GPL version 2, see file LICENSE in this tarball for details.
|
||||
*/
|
||||
|
@ -2,7 +2,7 @@
|
||||
/*
|
||||
* Utility routines.
|
||||
*
|
||||
* Copyright (C) 2007 Denis Vlasenko
|
||||
* Copyright (C) 2007 Denys Vlasenko
|
||||
*
|
||||
* Licensed under GPL version 2, see file LICENSE in this tarball for details.
|
||||
*/
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
|
||||
* Copyright (C) 2006 Rob Landley
|
||||
* Copyright (C) 2006 Denis Vlasenko
|
||||
* Copyright (C) 2006 Denys Vlasenko
|
||||
*
|
||||
* Licensed under GPL version 2, see file LICENSE in this tarball for details.
|
||||
*/
|
||||
|
@ -2,7 +2,7 @@
|
||||
/*
|
||||
* Utility routines.
|
||||
*
|
||||
* Copyright (C) 2007 Denis Vlasenko
|
||||
* Copyright (C) 2007 Denys Vlasenko
|
||||
*
|
||||
* Licensed under GPL version 2, see file LICENSE in this tarball for details.
|
||||
*/
|
||||
|
@ -2,7 +2,7 @@
|
||||
/*
|
||||
* Utility routines.
|
||||
*
|
||||
* Copyright (C) 2007 Denis Vlasenko
|
||||
* Copyright (C) 2007 Denys Vlasenko
|
||||
*
|
||||
* Licensed under GPL version 2, see file LICENSE in this tarball for details.
|
||||
*/
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
|
||||
* Copyright (C) 2006 Rob Landley
|
||||
* Copyright (C) 2006 Denis Vlasenko
|
||||
* Copyright (C) 2006 Denys Vlasenko
|
||||
*
|
||||
* Licensed under GPL version 2, see file LICENSE in this tarball for details.
|
||||
*/
|
||||
|
@ -3,7 +3,7 @@
|
||||
* Generic non-forking server infrastructure.
|
||||
* Intended to make writing telnetd-type servers easier.
|
||||
*
|
||||
* Copyright (C) 2007 Denis Vlasenko
|
||||
* Copyright (C) 2007 Denys Vlasenko
|
||||
*
|
||||
* Licensed under GPL version 2, see file LICENSE in this tarball for details.
|
||||
*/
|
||||
|
@ -3,7 +3,7 @@
|
||||
* Generic non-forking server infrastructure.
|
||||
* Intended to make writing telnetd-type servers easier.
|
||||
*
|
||||
* Copyright (C) 2007 Denis Vlasenko
|
||||
* Copyright (C) 2007 Denys Vlasenko
|
||||
*
|
||||
* Licensed under GPL version 2, see file LICENSE in this tarball for details.
|
||||
*/
|
||||
|
@ -2,7 +2,7 @@
|
||||
/*
|
||||
* Fake identd server.
|
||||
*
|
||||
* Copyright (C) 2007 Denis Vlasenko
|
||||
* Copyright (C) 2007 Denys Vlasenko
|
||||
*
|
||||
* Licensed under GPL version 2, see file LICENSE in this tarball for details.
|
||||
*/
|
||||
|
@ -25,7 +25,7 @@ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
/* Busyboxed by Denis Vlasenko <vda.linux@googlemail.com> */
|
||||
/* Busyboxed by Denys Vlasenko <vda.linux@googlemail.com> */
|
||||
/* Dependencies on runit_lib.c removed */
|
||||
|
||||
#include "libbb.h"
|
||||
|
@ -25,7 +25,7 @@ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
/* Busyboxed by Denis Vlasenko <vda.linux@googlemail.com> */
|
||||
/* Busyboxed by Denys Vlasenko <vda.linux@googlemail.com> */
|
||||
/* Collected into one file from runit's many tiny files */
|
||||
/* TODO: review, eliminate unneeded stuff, move good stuff to libbb */
|
||||
|
||||
|
@ -25,7 +25,7 @@ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
/* Busyboxed by Denis Vlasenko <vda.linux@googlemail.com> */
|
||||
/* Busyboxed by Denys Vlasenko <vda.linux@googlemail.com> */
|
||||
/* TODO: depends on runit_lib.c - review and reduce/eliminate */
|
||||
|
||||
#include <sys/poll.h>
|
||||
|
@ -25,7 +25,7 @@ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
/* Busyboxed by Denis Vlasenko <vda.linux@googlemail.com> */
|
||||
/* Busyboxed by Denys Vlasenko <vda.linux@googlemail.com> */
|
||||
/* TODO: depends on runit_lib.c - review and reduce/eliminate */
|
||||
|
||||
#include <sys/poll.h>
|
||||
|
@ -150,7 +150,7 @@ Exit Codes
|
||||
is 99. sv exits 100 on error.
|
||||
*/
|
||||
|
||||
/* Busyboxed by Denis Vlasenko <vda.linux@googlemail.com> */
|
||||
/* Busyboxed by Denys Vlasenko <vda.linux@googlemail.com> */
|
||||
/* TODO: depends on runit_lib.c - review and reduce/eliminate */
|
||||
|
||||
#include <sys/poll.h>
|
||||
|
@ -25,7 +25,7 @@ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
/* Busyboxed by Denis Vlasenko <vda.linux@googlemail.com> */
|
||||
/* Busyboxed by Denys Vlasenko <vda.linux@googlemail.com> */
|
||||
/* TODO: depends on runit_lib.c - review and reduce/eliminate */
|
||||
|
||||
#include <sys/poll.h>
|
||||
|
Loading…
Reference in New Issue
Block a user