mirror of
https://github.com/topjohnwu/ndk-busybox.git
synced 2024-11-24 12:19:49 +00:00
Change license statements (and clean up headers) on some of the files that
Erik or I are primary copyright holders on.
This commit is contained in:
parent
05592ac00c
commit
e9a7a6212b
@ -2,7 +2,7 @@
|
||||
*
|
||||
* Copyright 2005 Rob Landley <rob@landley.net
|
||||
*
|
||||
* Licensed under GPLv2 or later, see file License in this tarball for details
|
||||
* Licensed under GPL version 2, see file LICENSE in this tarball for details
|
||||
*/
|
||||
|
||||
const char *bb_applet_name;
|
||||
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
* MAINTAINER: Rob Landley <rob@landley.net>
|
||||
*
|
||||
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
|
||||
* Licensed under GPL version 2, see file LICENSE in this tarball for details.
|
||||
*/
|
||||
|
||||
/* Code overview.
|
||||
|
@ -7,7 +7,7 @@
|
||||
* Reworked by David Douthitt <n9ubh@callsign.net> and
|
||||
* Matt Kraai <kraai@alumni.carnegiemellon.edu>.
|
||||
*
|
||||
* Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
|
||||
* Licensed under the GPL version 2, see the file LICENSE in this tarball.
|
||||
*/
|
||||
|
||||
#include "busybox.h"
|
||||
|
@ -4,13 +4,11 @@
|
||||
*
|
||||
* Copyright 2006 by Rob Landley <rob@landley.net>
|
||||
*
|
||||
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
|
||||
* Licensed under GPL version 2, see file LICENSE in this tarball for details.
|
||||
*/
|
||||
|
||||
#include "busybox.h"
|
||||
#include <signal.h>
|
||||
#include <sys/reboot.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int halt_main(int argc, char *argv[])
|
||||
{
|
||||
|
@ -4,15 +4,10 @@
|
||||
*
|
||||
* Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
|
||||
*
|
||||
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
|
||||
* Licensed under GPL version 2, see file LICENSE in this tarball for details.
|
||||
*/
|
||||
|
||||
#include "busybox.h"
|
||||
#include <signal.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#include <getopt.h>
|
||||
#include <sys/reboot.h>
|
||||
#include <sys/syslog.h>
|
||||
#include "init_shared.h"
|
||||
|
@ -6,15 +6,10 @@
|
||||
* Copyright (C) 1999,2000,2001 by John Beppu <beppu@codepoet.org>
|
||||
* Unified with delgroup by Tito Ragusa <farmatito@tiscali.it>
|
||||
*
|
||||
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
|
||||
* Licensed under GPL version 2, see file LICENSE in this tarball for details.
|
||||
*
|
||||
*/
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "busybox.h"
|
||||
|
||||
/* where to start and stop deletion */
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* Copyright (C) 2003-2004 by Erik Andersen <andersen@codepoet.org>
|
||||
*
|
||||
* Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
|
||||
* Licensed under the GPL version 2, see the file LICENSE in this tarball.
|
||||
*/
|
||||
|
||||
#include "busybox.h"
|
||||
|
@ -2,7 +2,7 @@
|
||||
/* `time' utility to display resource usage of processes.
|
||||
Copyright (C) 1990, 91, 92, 93, 96 Free Software Foundation, Inc.
|
||||
|
||||
Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
|
||||
Licensed under GPL version 2, see file LICENSE in this tarball for details.
|
||||
*/
|
||||
/* Originally written by David Keppel <pardo@cs.washington.edu>.
|
||||
Heavily modified by David MacKenzie <djm@gnu.ai.mit.edu>.
|
||||
@ -10,20 +10,8 @@
|
||||
*/
|
||||
|
||||
#include "busybox.h"
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <signal.h>
|
||||
#include <errno.h>
|
||||
#include <getopt.h>
|
||||
#include <string.h>
|
||||
#include <limits.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h> /* For pid_t. */
|
||||
#include <sys/wait.h>
|
||||
#include <sys/param.h> /* For getpagesize, maybe. */
|
||||
|
||||
#define TV_MSEC tv_usec / 1000
|
||||
#include <sys/resource.h>
|
||||
|
||||
/* Information on the resources used by a child process. */
|
||||
typedef struct {
|
||||
|
@ -4,15 +4,12 @@
|
||||
*
|
||||
* Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
|
||||
*
|
||||
* Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
|
||||
* Licensed under the GPL version 2, see the file LICENSE in this tarball.
|
||||
*/
|
||||
|
||||
/* getopt not needed */
|
||||
|
||||
#include "busybox.h"
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int free_main(int argc, char **argv)
|
||||
{
|
||||
|
@ -4,19 +4,10 @@
|
||||
*
|
||||
* Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
|
||||
*
|
||||
* Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
|
||||
* Licensed under the GPL version 2, see the file LICENSE in this tarball.
|
||||
*/
|
||||
|
||||
#include "busybox.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
#include <signal.h>
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#if ENABLE_FEATURE_PIDOF_SINGLE
|
||||
#define _SINGLE_COMPL(a) a
|
||||
|
15
procps/ps.c
15
procps/ps.c
@ -4,23 +4,10 @@
|
||||
*
|
||||
* Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
|
||||
*
|
||||
* Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
|
||||
* Licensed under the GPL version 2, see the file LICENSE in this tarball.
|
||||
*/
|
||||
|
||||
#include "busybox.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <dirent.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
#include <termios.h>
|
||||
#include <sys/ioctl.h>
|
||||
#if ENABLE_SELINUX
|
||||
#include <selinux/selinux.h> /* for is_selinux_enabled() */
|
||||
#endif
|
||||
|
||||
int ps_main(int argc, char **argv)
|
||||
{
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
|
||||
*
|
||||
* Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
|
||||
* Licensed under the GPL version 2, see the file LICENSE in this tarball.
|
||||
*/
|
||||
|
||||
/* This version of uptime doesn't display the number of users on the system,
|
||||
@ -16,10 +16,6 @@
|
||||
/* getopt not needed */
|
||||
|
||||
#include "busybox.h"
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifndef FSHIFT
|
||||
# define FSHIFT 16 /* nr of bits of precision */
|
||||
|
@ -6,7 +6,7 @@
|
||||
* Copyright 2006 Rob Landley <rob@landley.net>
|
||||
* Copyright 2006 Bernhard Fischer <rep.nop@aon.at>
|
||||
*
|
||||
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
|
||||
* Licensed under GPLv2, see file LICENSE in this tarball for details.
|
||||
*/
|
||||
|
||||
#include "busybox.h"
|
||||
|
@ -6,7 +6,7 @@
|
||||
* Adjusted a bit by Erik Andersen <andersen@codepoet.org>
|
||||
* Unified with fdflush by Tito Ragusa <farmatito@tiscali.it>
|
||||
*
|
||||
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
|
||||
* Licensed under GPLv2, see file LICENSE in this tarball for details.
|
||||
*/
|
||||
|
||||
#include "busybox.h"
|
||||
|
@ -6,7 +6,7 @@
|
||||
* Copyright 2005 Rob Landley <rob@landley.net>
|
||||
* Copyright 2005 Frank Sorenson <frank@tuxrocks.com>
|
||||
*
|
||||
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
|
||||
* Licensed under GPL version 2, see file LICENSE in this tarball for details.
|
||||
*/
|
||||
|
||||
#include "busybox.h"
|
||||
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Copyright 2006 Rob Landley <rob@landley.net>
|
||||
*
|
||||
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
|
||||
* Licensed under GPL version 2, see file LICENSE in this tarball for details.
|
||||
*/
|
||||
|
||||
#include <busybox.h>
|
||||
|
@ -6,11 +6,8 @@
|
||||
* pivot_root syscall stubbed by Erik Andersen, so it will compile
|
||||
* regardless of the kernel being used.
|
||||
*
|
||||
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
|
||||
* Licensed under GPL version 2, see file LICENSE in this tarball for details.
|
||||
*/
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include "busybox.h"
|
||||
|
||||
extern int pivot_root(const char * new_root,const char * put_old);
|
||||
|
@ -4,14 +4,11 @@
|
||||
*
|
||||
* Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
|
||||
*
|
||||
* Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
|
||||
* Licensed under the GPL version 2, see the file LICENSE in this tarball.
|
||||
*/
|
||||
|
||||
#include "busybox.h"
|
||||
#include <mntent.h>
|
||||
#include <dirent.h>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <sys/swap.h>
|
||||
|
||||
|
||||
|
@ -3,14 +3,11 @@
|
||||
*
|
||||
* Switch from rootfs to another filesystem as the root of the mount tree.
|
||||
*
|
||||
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
|
||||
* Licensed under GPL version 2, see file LICENSE in this tarball for details.
|
||||
*/
|
||||
|
||||
#include "busybox.h"
|
||||
#include <fcntl.h>
|
||||
#include <string.h>
|
||||
#include <sys/vfs.h>
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
// Make up for header deficiencies.
|
||||
|
@ -5,10 +5,7 @@
|
||||
* Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
|
||||
* Copyright (C) 2005 by Rob Landley <rob@landley.net>
|
||||
*
|
||||
* This program is licensed under the GNU General Public license (GPL)
|
||||
* version 2 or later, see http://www.fsf.org/licensing/licenses/gpl.html
|
||||
* or the file "LICENSE" in the busybox source tarball for the full text.
|
||||
*
|
||||
* Licensed under GPL version 2, see file LICENSE in this tarball for details.
|
||||
*/
|
||||
|
||||
#include "busybox.h"
|
||||
|
Loading…
Reference in New Issue
Block a user