Skip to content

Commit

Permalink
Change license statements (and clean up headers) on some of the files…
Browse files Browse the repository at this point in the history
… that

Erik or I are primary copyright holders on.
  • Loading branch information
landley committed Sep 22, 2006
1 parent 05592ac commit e9a7a62
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 85 deletions.
2 changes: 1 addition & 1 deletion applets/individual.c
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion editors/sed.c
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion findutils/find.c
Expand Up @@ -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"
Expand Down
4 changes: 1 addition & 3 deletions init/halt.c
Expand Up @@ -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[])
{
Expand Down
7 changes: 1 addition & 6 deletions init/init_shared.c
Expand Up @@ -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"
Expand Down
7 changes: 1 addition & 6 deletions loginutils/deluser.c
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion miscutils/last.c
Expand Up @@ -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"
Expand Down
14 changes: 1 addition & 13 deletions miscutils/time.c
Expand Up @@ -2,28 +2,16 @@
/* `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>.
Heavily modified for busybox by Erik Andersen <andersen@codepoet.org>
*/

#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 {
Expand Down
5 changes: 1 addition & 4 deletions procps/free.c
Expand Up @@ -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)
{
Expand Down
11 changes: 1 addition & 10 deletions procps/pidof.c
Expand Up @@ -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
Expand Down
15 changes: 1 addition & 14 deletions procps/ps.c
Expand Up @@ -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)
{
Expand Down
6 changes: 1 addition & 5 deletions procps/uptime.c
Expand Up @@ -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,
Expand All @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion util-linux/dmesg.c
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion util-linux/freeramdisk.c
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion util-linux/mdev.c
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion util-linux/mkswap.c
Expand Up @@ -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>
Expand Down
5 changes: 1 addition & 4 deletions util-linux/pivot_root.c
Expand Up @@ -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);
Expand Down
5 changes: 1 addition & 4 deletions util-linux/swaponoff.c
Expand Up @@ -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>


Expand Down
5 changes: 1 addition & 4 deletions util-linux/switch_root.c
Expand Up @@ -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.
Expand Down
5 changes: 1 addition & 4 deletions util-linux/umount.c
Expand Up @@ -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"
Expand Down

0 comments on commit e9a7a62

Please sign in to comment.