whitespace and comment format fixes, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
099ef9324e
commit
ebe6d9d875
@ -2,7 +2,6 @@
|
|||||||
/*
|
/*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#include "bb_archive.h"
|
#include "bb_archive.h"
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
/*
|
/*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#include "bb_archive.h"
|
#include "bb_archive.h"
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
/*
|
/*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#include "bb_archive.h"
|
#include "bb_archive.h"
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
/*
|
/*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#include "bb_archive.h"
|
#include "bb_archive.h"
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
/*
|
/*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#include "bb_archive.h"
|
#include "bb_archive.h"
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
/*
|
/*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#include "bb_archive.h"
|
#include "bb_archive.h"
|
||||||
|
|
||||||
|
@ -1,14 +1,13 @@
|
|||||||
/* vi: set sw=4 ts=4: */
|
/* vi: set sw=4 ts=4: */
|
||||||
/* Small bzip2 deflate implementation, by Rob Landley (rob@landley.net).
|
/* Small bzip2 deflate implementation, by Rob Landley (rob@landley.net).
|
||||||
|
*
|
||||||
Based on bzip2 decompression code by Julian R Seward (jseward@acm.org),
|
* Based on bzip2 decompression code by Julian R Seward (jseward@acm.org),
|
||||||
which also acknowledges contributions by Mike Burrows, David Wheeler,
|
* which also acknowledges contributions by Mike Burrows, David Wheeler,
|
||||||
Peter Fenwick, Alistair Moffat, Radford Neal, Ian H. Witten,
|
* Peter Fenwick, Alistair Moffat, Radford Neal, Ian H. Witten,
|
||||||
Robert Sedgewick, and Jon L. Bentley.
|
* Robert Sedgewick, and Jon L. Bentley.
|
||||||
|
*
|
||||||
Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Size and speed optimizations by Manuel Novoa III (mjn3@codepoet.org).
|
Size and speed optimizations by Manuel Novoa III (mjn3@codepoet.org).
|
||||||
|
|
||||||
@ -38,7 +37,6 @@
|
|||||||
|
|
||||||
Manuel
|
Manuel
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#include "bb_archive.h"
|
#include "bb_archive.h"
|
||||||
|
|
||||||
|
@ -32,7 +32,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <setjmp.h>
|
#include <setjmp.h>
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#include "bb_archive.h"
|
#include "bb_archive.h"
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#include "bb_archive.h"
|
#include "bb_archive.h"
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#include "bb_archive.h"
|
#include "bb_archive.h"
|
||||||
|
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
/* vi: set sw=4 ts=4: */
|
/* vi: set sw=4 ts=4: */
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2002 by Glenn McGrath
|
* Copyright (C) 2002 by Glenn McGrath
|
||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#include "bb_archive.h"
|
#include "bb_archive.h"
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#include "bb_archive.h"
|
#include "bb_archive.h"
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <fnmatch.h>
|
#include <fnmatch.h>
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#include "bb_archive.h"
|
#include "bb_archive.h"
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#include "bb_archive.h"
|
#include "bb_archive.h"
|
||||||
#include "ar.h"
|
#include "ar.h"
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#include "bb_archive.h"
|
#include "bb_archive.h"
|
||||||
|
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
* Opengroup's ustar interchange format,
|
* Opengroup's ustar interchange format,
|
||||||
* http://www.opengroup.org/onlinepubs/007904975/utilities/pax.html
|
* http://www.opengroup.org/onlinepubs/007904975/utilities/pax.html
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#include "bb_archive.h"
|
#include "bb_archive.h"
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
/*
|
/*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#include "bb_archive.h"
|
#include "bb_archive.h"
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
/*
|
/*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#include "bb_archive.h"
|
#include "bb_archive.h"
|
||||||
|
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2, see file LICENSE in this source tree.
|
* Licensed under GPLv2, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#include "bb_archive.h"
|
#include "bb_archive.h"
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
/*
|
/*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#include "bb_archive.h"
|
#include "bb_archive.h"
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
/*
|
/*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#include "bb_archive.h"
|
#include "bb_archive.h"
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
/*
|
/*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#include "bb_archive.h"
|
#include "bb_archive.h"
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
/*
|
/*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#include "bb_archive.h"
|
#include "bb_archive.h"
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
/*
|
/*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#include "bb_archive.h"
|
#include "bb_archive.h"
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
/*
|
/*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#include "bb_archive.h"
|
#include "bb_archive.h"
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
/*
|
/*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#include "bb_archive.h"
|
#include "bb_archive.h"
|
||||||
#include "ar.h"
|
#include "ar.h"
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
/*
|
/*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#include "bb_archive.h"
|
#include "bb_archive.h"
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
/* vi: set sw=4 ts=4: */
|
/* vi: set sw=4 ts=4: */
|
||||||
/*
|
/*
|
||||||
* setconsole.c - redirect system console output
|
* setconsole.c - redirect system console output
|
||||||
*
|
*
|
||||||
* Copyright (C) 2004,2005 Enrik Berkhan <Enrik.Berkhan@inka.de>
|
* Copyright (C) 2004,2005 Enrik Berkhan <Enrik.Berkhan@inka.de>
|
||||||
* Copyright (C) 2008 Bernhard Reutner-Fischer
|
* Copyright (C) 2008 Bernhard Reutner-Fischer
|
||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
/* vi: set sw=4 ts=4: */
|
/* vi: set sw=4 ts=4: */
|
||||||
/* fold -- wrap each input line to fit in specified width.
|
/* fold -- wrap each input line to fit in specified width.
|
||||||
|
*
|
||||||
Written by David MacKenzie, djm@gnu.ai.mit.edu.
|
* Written by David MacKenzie, djm@gnu.ai.mit.edu.
|
||||||
Copyright (C) 91, 1995-2002 Free Software Foundation, Inc.
|
* Copyright (C) 91, 1995-2002 Free Software Foundation, Inc.
|
||||||
|
*
|
||||||
Modified for busybox based on coreutils v 5.0
|
* Modified for busybox based on coreutils v 5.0
|
||||||
Copyright (C) 2003 Glenn McGrath
|
* Copyright (C) 2003 Glenn McGrath
|
||||||
|
*
|
||||||
Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
//config:config FOLD
|
//config:config FOLD
|
||||||
//config: bool "fold (4.6 kb)"
|
//config: bool "fold (4.6 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/* vi: set sw=4 ts=4: */
|
/* vi: set sw=4 ts=4: */
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2003 Glenn L. McGrath
|
* Copyright (C) 2003 Glenn L. McGrath
|
||||||
* Copyright (C) 2003-2004 Erik Andersen
|
* Copyright (C) 2003-2004 Erik Andersen
|
||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
@ -1,41 +1,39 @@
|
|||||||
/* vi: set sw=4 ts=4: */
|
/* vi: set sw=4 ts=4: */
|
||||||
/* printf - format and print data
|
/* printf - format and print data
|
||||||
|
*
|
||||||
Copyright 1999 Dave Cinege
|
* Copyright 1999 Dave Cinege
|
||||||
Portions copyright (C) 1990-1996 Free Software Foundation, Inc.
|
* Portions copyright (C) 1990-1996 Free Software Foundation, Inc.
|
||||||
|
*
|
||||||
Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Usage: printf format [argument...]
|
/* Usage: printf format [argument...]
|
||||||
|
*
|
||||||
A front end to the printf function that lets it be used from the shell.
|
* A front end to the printf function that lets it be used from the shell.
|
||||||
|
*
|
||||||
Backslash escapes:
|
* Backslash escapes:
|
||||||
|
*
|
||||||
\" = double quote
|
* \" = double quote
|
||||||
\\ = backslash
|
* \\ = backslash
|
||||||
\a = alert (bell)
|
* \a = alert (bell)
|
||||||
\b = backspace
|
* \b = backspace
|
||||||
\c = produce no further output
|
* \c = produce no further output
|
||||||
\f = form feed
|
* \f = form feed
|
||||||
\n = new line
|
* \n = new line
|
||||||
\r = carriage return
|
* \r = carriage return
|
||||||
\t = horizontal tab
|
* \t = horizontal tab
|
||||||
\v = vertical tab
|
* \v = vertical tab
|
||||||
\0ooo = octal number (ooo is 0 to 3 digits)
|
* \0ooo = octal number (ooo is 0 to 3 digits)
|
||||||
\xhhh = hexadecimal number (hhh is 1 to 3 digits)
|
* \xhhh = hexadecimal number (hhh is 1 to 3 digits)
|
||||||
|
*
|
||||||
Additional directive:
|
* Additional directive:
|
||||||
|
*
|
||||||
%b = print an argument string, interpreting backslash escapes
|
* %b = print an argument string, interpreting backslash escapes
|
||||||
|
*
|
||||||
The 'format' argument is re-used as many times as necessary
|
* The 'format' argument is re-used as many times as necessary
|
||||||
to convert all of the given arguments.
|
* to convert all of the given arguments.
|
||||||
|
*
|
||||||
David MacKenzie <djm@gnu.ai.mit.edu>
|
* David MacKenzie <djm@gnu.ai.mit.edu>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* 19990508 Busy Boxed! Dave Cinege */
|
/* 19990508 Busy Boxed! Dave Cinege */
|
||||||
|
|
||||||
//config:config PRINTF
|
//config:config PRINTF
|
||||||
|
@ -1,24 +1,24 @@
|
|||||||
/* vi: set sw=4 ts=4: */
|
/* vi: set sw=4 ts=4: */
|
||||||
/* stty -- change and print terminal line settings
|
/* stty -- change and print terminal line settings
|
||||||
Copyright (C) 1990-1999 Free Software Foundation, Inc.
|
* Copyright (C) 1990-1999 Free Software Foundation, Inc.
|
||||||
|
*
|
||||||
Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
/* Usage: stty [-ag] [-F device] [setting...]
|
/* Usage: stty [-ag] [-F device] [setting...]
|
||||||
|
*
|
||||||
Options:
|
* Options:
|
||||||
-a Write all current settings to stdout in human-readable form.
|
* -a Write all current settings to stdout in human-readable form.
|
||||||
-g Write all current settings to stdout in stty-readable form.
|
* -g Write all current settings to stdout in stty-readable form.
|
||||||
-F Open and use the specified device instead of stdin
|
* -F Open and use the specified device instead of stdin
|
||||||
|
*
|
||||||
If no args are given, write to stdout the baud rate and settings that
|
* If no args are given, write to stdout the baud rate and settings that
|
||||||
have been changed from their defaults. Mode reading and changes
|
* have been changed from their defaults. Mode reading and changes
|
||||||
are done on the specified device, or stdin if none was specified.
|
* are done on the specified device, or stdin if none was specified.
|
||||||
|
*
|
||||||
David MacKenzie <djm@gnu.ai.mit.edu>
|
* David MacKenzie <djm@gnu.ai.mit.edu>
|
||||||
|
*
|
||||||
Special for busybox ported by Vladimir Oleynik <dzo@simtreas.ru> 2001
|
* Special for busybox ported by Vladimir Oleynik <dzo@simtreas.ru> 2001
|
||||||
*/
|
*/
|
||||||
//config:config STTY
|
//config:config STTY
|
||||||
//config: bool "stty (8.6 kb)"
|
//config: bool "stty (8.6 kb)"
|
||||||
//config: default y
|
//config: default y
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
/* vi: set sw=4 ts=4: */
|
/* vi: set sw=4 ts=4: */
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2000 by Glenn McGrath
|
* Copyright (C) 2000 by Glenn McGrath
|
||||||
*
|
*
|
||||||
* based on the function base64_encode from http.c in wget v1.6
|
* based on the function base64_encode from http.c in wget v1.6
|
||||||
* Copyright (C) 1995, 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
|
* Copyright (C) 1995, 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
@ -6,12 +6,11 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
#include "libbb.h"
|
||||||
|
|
||||||
/* Read a line from stdin. If the first non-whitespace char is 'y' or 'Y',
|
/* Read a line from stdin. If the first non-whitespace char is 'y' or 'Y',
|
||||||
* return 1. Otherwise return 0.
|
* return 1. Otherwise return 0.
|
||||||
*/
|
*/
|
||||||
#include "libbb.h"
|
|
||||||
|
|
||||||
int FAST_FUNC bb_ask_confirmation(void)
|
int FAST_FUNC bb_ask_confirmation(void)
|
||||||
{
|
{
|
||||||
char first = 0;
|
char first = 0;
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
/* do nothing signal handler */
|
/* do nothing signal handler */
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2, see file LICENSE in this source tree.
|
* Licensed under GPLv2, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
void FAST_FUNC bb_do_delay(int seconds)
|
void FAST_FUNC bb_do_delay(int seconds)
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
/* TODO: maybe change API to return malloced data?
|
/* TODO: maybe change API to return malloced data?
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2, see file LICENSE in this source tree.
|
* Licensed under GPLv2, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
int /* not FAST_FUNC! */ bb_pstrcmp(const void *a, const void *b)
|
int /* not FAST_FUNC! */ bb_pstrcmp(const void *a, const void *b)
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#include <math.h> /* just for HUGE_VAL */
|
#include <math.h> /* just for HUGE_VAL */
|
||||||
|
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
/* On exit: errno = 0 only if there was non-empty, '\0' terminated value
|
/* On exit: errno = 0 only if there was non-empty, '\0' terminated value
|
||||||
|
@ -6,9 +6,9 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
//applet:IF_UNIT_TEST(APPLET(unit, BB_DIR_USR_BIN, BB_SUID_DROP))
|
||||||
|
|
||||||
//kbuild:lib-$(CONFIG_UNIT_TEST) += bbunit.o
|
//kbuild:lib-$(CONFIG_UNIT_TEST) += bbunit.o
|
||||||
//applet:IF_UNIT_TEST(APPLET(unit, BB_DIR_USR_BIN, BB_SUID_DROP))
|
|
||||||
|
|
||||||
//usage:#define unit_trivial_usage
|
//usage:#define unit_trivial_usage
|
||||||
//usage: ""
|
//usage: ""
|
||||||
|
@ -27,7 +27,6 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
/* Become the user and group(s) specified by PW. */
|
/* Become the user and group(s) specified by PW. */
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
void FAST_FUNC chomp(char *s)
|
void FAST_FUNC chomp(char *s)
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
/*
|
/*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
#include "libbb.h"
|
||||||
|
|
||||||
/* Concatenate path and filename to new allocated buffer.
|
/* Concatenate path and filename to new allocated buffer.
|
||||||
* Add '/' only as needed (no duplicate // are produced).
|
* Add '/' only as needed (no duplicate // are produced).
|
||||||
@ -14,8 +15,6 @@
|
|||||||
* filename should not be NULL.
|
* filename should not be NULL.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
|
||||||
|
|
||||||
char* FAST_FUNC concat_path_file(const char *path, const char *filename)
|
char* FAST_FUNC concat_path_file(const char *path, const char *filename)
|
||||||
{
|
{
|
||||||
char *lc;
|
char *lc;
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
#include "libbb.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
This function make special for recursive actions with usage
|
This function make special for recursive actions with usage
|
||||||
@ -13,8 +14,6 @@
|
|||||||
and skipping "." and ".." directory entries
|
and skipping "." and ".." directory entries
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
|
||||||
|
|
||||||
char* FAST_FUNC concat_subpath_file(const char *path, const char *f)
|
char* FAST_FUNC concat_subpath_file(const char *path, const char *f)
|
||||||
{
|
{
|
||||||
if (f && DOT_OR_DOTDOT(f))
|
if (f && DOT_OR_DOTDOT(f))
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#if ENABLE_FEATURE_USE_SENDFILE
|
#if ENABLE_FEATURE_USE_SENDFILE
|
||||||
# include <sys/sendfile.h>
|
# include <sys/sendfile.h>
|
||||||
|
@ -27,7 +27,6 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
#define SHADOW_BUFSIZE 256
|
#define SHADOW_BUFSIZE 256
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2, see file LICENSE in this source tree.
|
* Licensed under GPLv2, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
uint32_t *global_crc32_table;
|
uint32_t *global_crc32_table;
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Seems silly to copyright a global variable. ;-) Oh well.
|
/* Seems silly to copyright a global variable. ;-) Oh well.
|
||||||
*
|
*
|
||||||
* At least one applet (cmp) returns a value different from the typical
|
* At least one applet (cmp) returns a value different from the typical
|
||||||
@ -12,7 +11,6 @@
|
|||||||
* by the applet. I suppose we could use a wrapper function to set it, but
|
* by the applet. I suppose we could use a wrapper function to set it, but
|
||||||
* that too seems silly.
|
* that too seems silly.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
uint8_t xfunc_error_retval = EXIT_FAILURE;
|
uint8_t xfunc_error_retval = EXIT_FAILURE;
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
/* try to open up the specified device */
|
/* try to open up the specified device */
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
/* To avoid problems, the username should consist only of
|
/* To avoid problems, the username should consist only of
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
*
|
*
|
||||||
* Original copyright notice is retained at the end of this file.
|
* Original copyright notice is retained at the end of this file.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#include "dump.h"
|
#include "dump.h"
|
||||||
|
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
/* check if path points to an executable file;
|
/* check if path points to an executable file;
|
||||||
|
@ -6,14 +6,12 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
#include "libbb.h"
|
||||||
|
|
||||||
/* A number of standard utilities can accept multiple command line args
|
/* A number of standard utilities can accept multiple command line args
|
||||||
* of '-' for stdin, according to SUSv3. So we encapsulate the check
|
* of '-' for stdin, according to SUSv3. So we encapsulate the check
|
||||||
* here to save a little space.
|
* here to save a little space.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
|
||||||
|
|
||||||
int FAST_FUNC fclose_if_not_stdin(FILE *f)
|
int FAST_FUNC fclose_if_not_stdin(FILE *f)
|
||||||
{
|
{
|
||||||
/* Some more paranoid applets want ferror() check too */
|
/* Some more paranoid applets want ferror() check too */
|
||||||
|
@ -6,13 +6,11 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
#include "libbb.h"
|
||||||
|
|
||||||
/* Attempt to fflush(stdout), and exit with an error code if stdout is
|
/* Attempt to fflush(stdout), and exit with an error code if stdout is
|
||||||
* in an error state.
|
* in an error state.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
|
||||||
|
|
||||||
void FAST_FUNC fflush_stdout_and_exit(int retval)
|
void FAST_FUNC fflush_stdout_and_exit(int retval)
|
||||||
{
|
{
|
||||||
xfunc_error_retval = retval;
|
xfunc_error_retval = retval;
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
static char *xmalloc_fgets_internal(FILE *file, const char *terminating_string, int chop_off, size_t *maxsz_p)
|
static char *xmalloc_fgets_internal(FILE *file, const char *terminating_string, int chop_off, size_t *maxsz_p)
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#include <mntent.h>
|
#include <mntent.h>
|
||||||
|
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
/* Find block device /dev/XXX which contains specified file
|
/* Find block device /dev/XXX which contains specified file
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
/* From <linux/kd.h> */
|
/* From <linux/kd.h> */
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
char* FAST_FUNC bb_get_chunk_from_file(FILE *file, int *end)
|
char* FAST_FUNC bb_get_chunk_from_file(FILE *file, int *end)
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
#define DEBUG 0
|
#define DEBUG 0
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
#define NEED_SHA512 (ENABLE_SHA512SUM || ENABLE_USE_BB_CRYPT_SHA)
|
#define NEED_SHA512 (ENABLE_SHA512SUM || ENABLE_USE_BB_CRYPT_SHA)
|
||||||
|
@ -22,7 +22,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2, see file LICENSE in this source tree.
|
* Licensed under GPLv2, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
const char* FAST_FUNC make_human_readable_str(unsigned long long val,
|
const char* FAST_FUNC make_human_readable_str(unsigned long long val,
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
/*
|
/*
|
||||||
* Utility routines.
|
* Utility routines.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//kbuild:lib-$(CONFIG_ARP) += in_ether.o
|
//kbuild:lib-$(CONFIG_ARP) += in_ether.o
|
||||||
//kbuild:lib-$(CONFIG_IFCONFIG) += in_ether.o
|
//kbuild:lib-$(CONFIG_IFCONFIG) += in_ether.o
|
||||||
//kbuild:lib-$(CONFIG_IFENSLAVE) += in_ether.o
|
//kbuild:lib-$(CONFIG_IFENSLAVE) += in_ether.o
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2, see file LICENSE in this source tree.
|
* Licensed under GPLv2, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#include "inet_common.h"
|
#include "inet_common.h"
|
||||||
|
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
typedef struct ino_dev_hash_bucket_struct {
|
typedef struct ino_dev_hash_bucket_struct {
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
|
@ -6,12 +6,10 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
/* After libbb.h, since it needs sys/types.h on some systems */
|
/* After libbb.h, since it needs sys/types.h on some systems */
|
||||||
#include <sys/utsname.h> /* for uname(2) */
|
#include <sys/utsname.h> /* for uname(2) */
|
||||||
|
|
||||||
|
|
||||||
/* Returns current kernel version encoded as major*65536 + minor*256 + patch,
|
/* Returns current kernel version encoded as major*65536 + minor*256 + patch,
|
||||||
* so, for example, to check if the kernel is greater than 2.2.11:
|
* so, for example, to check if the kernel is greater than 2.2.11:
|
||||||
*
|
*
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
/* Find out if the last character of a string matches the one given.
|
/* Find out if the last character of a string matches the one given.
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
/* Add data to the start of the linked list. */
|
/* Add data to the start of the linked list. */
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
/* After libbb.h, since it needs sys/types.h on some systems */
|
/* After libbb.h, since it needs sys/types.h on some systems */
|
||||||
#include <sys/utsname.h>
|
#include <sys/utsname.h>
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Mar 5, 2003 Manuel Novoa III
|
/* Mar 5, 2003 Manuel Novoa III
|
||||||
*
|
*
|
||||||
* This is the main work function for the 'mkdir' applet. As such, it
|
* This is the main work function for the 'mkdir' applet. As such, it
|
||||||
@ -21,7 +20,6 @@
|
|||||||
* To set specific permissions on 'path', pass the appropriate 'mode'
|
* To set specific permissions on 'path', pass the appropriate 'mode'
|
||||||
* val. Otherwise, pass -1 to get default permissions.
|
* val. Otherwise, pass -1 to get default permissions.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
/* This function is used from NOFORK applets. It must not allocate anything */
|
/* This function is used from NOFORK applets. It must not allocate anything */
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
int FAST_FUNC fstype_matches(const char *fstype, const char *comma_list)
|
int FAST_FUNC fstype_matches(const char *fstype, const char *comma_list)
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
/* allow default system PATH to be extended via CFLAGS */
|
/* allow default system PATH to be extended via CFLAGS */
|
||||||
|
@ -10,8 +10,6 @@
|
|||||||
/* Aug 13, 2003
|
/* Aug 13, 2003
|
||||||
* Fix a bug reported by junkio@cox.net involving the mode_chars index.
|
* Fix a bug reported by junkio@cox.net involving the mode_chars index.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <mntent.h>
|
#include <mntent.h>
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2, see file LICENSE in this source tree.
|
* Licensed under GPLv2, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//kbuild:lib-y += nuke_str.o
|
//kbuild:lib-y += nuke_str.o
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
@ -6,11 +6,10 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
#include "libbb.h"
|
||||||
|
|
||||||
/* http://www.opengroup.org/onlinepubs/007904975/utilities/chmod.html */
|
/* http://www.opengroup.org/onlinepubs/007904975/utilities/chmod.html */
|
||||||
|
|
||||||
#include "libbb.h"
|
|
||||||
|
|
||||||
/* This function is used from NOFORK applets. It must not allocate anything */
|
/* This function is used from NOFORK applets. It must not allocate anything */
|
||||||
|
|
||||||
#define FILEMODEBITS (S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO)
|
#define FILEMODEBITS (S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO)
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
/*
|
/*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//kbuild:lib-y += percent_decode.o
|
//kbuild:lib-y += percent_decode.o
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2, see file LICENSE in this source tree.
|
* Licensed under GPLv2, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
void FAST_FUNC fputc_printable(int ch, FILE *file)
|
void FAST_FUNC fputc_printable(int ch, FILE *file)
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
#define WANT_HEX_ESCAPES 1
|
#define WANT_HEX_ESCAPES 1
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2, see file LICENSE in this source tree.
|
* Licensed under GPLv2, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
struct globals;
|
struct globals;
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
/* static const uint8_t ascii64[] ALIGN1 =
|
/* static const uint8_t ascii64[] ALIGN1 =
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
#undef DEBUG_RECURS_ACTION
|
#undef DEBUG_RECURS_ACTION
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
/* Used from NOFORK applets. Must not allocate anything */
|
/* Used from NOFORK applets. Must not allocate anything */
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//kbuild:lib-y += replace.o
|
//kbuild:lib-y += replace.o
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
@ -27,7 +27,6 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#if ENABLE_SELINUX
|
#if ENABLE_SELINUX
|
||||||
#include <selinux/selinux.h> /* for setexeccon */
|
#include <selinux/selinux.h> /* for setexeccon */
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SUSv2 guarantees that "Host names are limited to 255 bytes"
|
* SUSv2 guarantees that "Host names are limited to 255 bytes"
|
||||||
* POSIX.1-2001 guarantees that "Host names (not including the terminating
|
* POSIX.1-2001 guarantees that "Host names (not including the terminating
|
||||||
@ -23,7 +22,6 @@
|
|||||||
* Host software MUST handle host names of up to 63 characters and
|
* Host software MUST handle host names of up to 63 characters and
|
||||||
* SHOULD handle host names of up to 255 characters.
|
* SHOULD handle host names of up to 255 characters.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#include <sys/utsname.h>
|
#include <sys/utsname.h>
|
||||||
|
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2, see file LICENSE in this source tree.
|
* Licensed under GPLv2, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
/* Wrapper which restarts poll on EINTR or ENOMEM.
|
/* Wrapper which restarts poll on EINTR or ENOMEM.
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
/* Like strncpy but make sure the resulting string is always 0 terminated. */
|
/* Like strncpy but make sure the resulting string is always 0 terminated. */
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
ssize_t FAST_FUNC safe_write(int fd, const void *buf, size_t count)
|
ssize_t FAST_FUNC safe_write(int fd, const void *buf, size_t count)
|
||||||
|
@ -27,7 +27,6 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
void FAST_FUNC setup_environment(const char *shell, int flags, const struct passwd *pw)
|
void FAST_FUNC setup_environment(const char *shell, int flags, const struct passwd *pw)
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2, see file LICENSE in this source tree.
|
* Licensed under GPLv2, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
/* All known arches use small ints for signals */
|
/* All known arches use small ints for signals */
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
char* FAST_FUNC skip_whitespace(const char *s)
|
char* FAST_FUNC skip_whitespace(const char *s)
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
struct speed_map {
|
struct speed_map {
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user