aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-12-07 00:52:58 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-12-07 00:52:58 +0000
commitdb12d1d733ab7de0c5f4cda261eb79fd334a4ed9 (patch)
treebaed427ea76367f8561164995e41cfd34575e0c1
parent30e5cf8875f757581256a4ec4f6935d1cb28a0fb (diff)
downloadbusybox-w32-db12d1d733ab7de0c5f4cda261eb79fd334a4ed9.tar.gz
busybox-w32-db12d1d733ab7de0c5f4cda261eb79fd334a4ed9.tar.bz2
busybox-w32-db12d1d733ab7de0c5f4cda261eb79fd334a4ed9.zip
Fix forgotten license comments
-rw-r--r--applets/usage.c5
-rw-r--r--console-tools/loadfont.c2
-rw-r--r--coreutils/length.c3
-rw-r--r--e2fsprogs/e2fs_lib.c3
-rw-r--r--e2fsprogs/fsck.c5
-rw-r--r--e2fsprogs/old_e2fsprogs/fsck.c5
-rw-r--r--e2fsprogs/old_e2fsprogs/mke2fs.c3
-rw-r--r--e2fsprogs/old_e2fsprogs/tune2fs.c5
-rw-r--r--e2fsprogs/old_e2fsprogs/util.c5
-rw-r--r--libbb/crc32.c2
-rw-r--r--libbb/create_icmp6_socket.c2
-rw-r--r--libbb/create_icmp_socket.c2
-rw-r--r--libbb/crypt_make_salt.c1
-rw-r--r--libbb/human_readable.c2
-rw-r--r--libbb/inet_common.c2
-rw-r--r--libbb/rtc.c2
-rw-r--r--libbb/selinux_common.c2
-rw-r--r--libbb/update_passwd.c2
-rw-r--r--libbb/xatonum_template.c4
-rw-r--r--libbb/xconnect.c1
-rw-r--r--libbb/xgetcwd.c4
-rw-r--r--libbb/xreadlink.c6
-rw-r--r--loginutils/cryptpw.c2
-rw-r--r--networking/udhcp/arpping.c2
-rw-r--r--networking/udhcp/files.c2
-rw-r--r--networking/udhcp/leases.c2
-rw-r--r--networking/udhcp/options.c2
-rw-r--r--networking/udhcp/packet.c6
-rw-r--r--networking/udhcp/static_leases.c1
-rw-r--r--networking/wget.c1
-rw-r--r--procps/fuser.c3
-rw-r--r--procps/top.c11
-rw-r--r--selinux/chcon.c2
-rw-r--r--selinux/getenforce.c1
-rw-r--r--selinux/getsebool.c1
-rw-r--r--selinux/load_policy.c2
-rw-r--r--selinux/matchpathcon.c1
-rw-r--r--selinux/runcon.c2
-rw-r--r--selinux/selinuxenabled.c1
-rw-r--r--selinux/sestatus.c2
-rw-r--r--selinux/setenforce.c1
-rw-r--r--selinux/setsebool.c2
-rw-r--r--util-linux/fdformat.c7
-rw-r--r--util-linux/fdisk_aix.c4
-rw-r--r--util-linux/fdisk_osf.c2
-rw-r--r--util-linux/fdisk_sgi.c12
-rw-r--r--util-linux/fdisk_sun.c27
-rw-r--r--util-linux/mkfs_minix.c5
-rw-r--r--util-linux/rtcwake.c2
49 files changed, 114 insertions, 60 deletions
diff --git a/applets/usage.c b/applets/usage.c
index a35817f9f..1e038b367 100644
--- a/applets/usage.c
+++ b/applets/usage.c
@@ -1,4 +1,9 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/*
3 * Copyright (C) 2008 Denys Vlasenko.
4 *
5 * Licensed under GPLv2, see file LICENSE in this tarball for details.
6 */
2#include <unistd.h> 7#include <unistd.h>
3 8
4/* Just #include "autoconf.h" doesn't work for builds in separate 9/* Just #include "autoconf.h" doesn't work for builds in separate
diff --git a/console-tools/loadfont.c b/console-tools/loadfont.c
index 863c6efcd..336418061 100644
--- a/console-tools/loadfont.c
+++ b/console-tools/loadfont.c
@@ -6,6 +6,8 @@
6 * 6 *
7 * Loads the console font, and possibly the corresponding screen map(s). 7 * Loads the console font, and possibly the corresponding screen map(s).
8 * (Adapted for busybox by Matej Vela.) 8 * (Adapted for busybox by Matej Vela.)
9 *
10 * Licensed under GPLv2, see file LICENSE in this tarball for details.
9 */ 11 */
10#include "libbb.h" 12#include "libbb.h"
11#include <sys/kd.h> 13#include <sys/kd.h>
diff --git a/coreutils/length.c b/coreutils/length.c
index c7523a02a..43a0f5988 100644
--- a/coreutils/length.c
+++ b/coreutils/length.c
@@ -1,4 +1,7 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/*
3 * Licensed under GPLv2, see file LICENSE in this tarball for details.
4 */
2 5
3/* BB_AUDIT SUSv3 N/A -- Apparently a busybox (obsolete?) extension. */ 6/* BB_AUDIT SUSv3 N/A -- Apparently a busybox (obsolete?) extension. */
4 7
diff --git a/e2fsprogs/e2fs_lib.c b/e2fsprogs/e2fs_lib.c
index 839109e3f..3e8d95687 100644
--- a/e2fsprogs/e2fs_lib.c
+++ b/e2fsprogs/e2fs_lib.c
@@ -2,8 +2,7 @@
2/* 2/*
3 * See README for additional information 3 * See README for additional information
4 * 4 *
5 * This file can be redistributed under the terms of the GNU Library General 5 * Licensed under GPLv2, see file LICENSE in this tarball for details.
6 * Public License
7 */ 6 */
8 7
9#include "libbb.h" 8#include "libbb.h"
diff --git a/e2fsprogs/fsck.c b/e2fsprogs/fsck.c
index cb454560a..3c6cafbd3 100644
--- a/e2fsprogs/fsck.c
+++ b/e2fsprogs/fsck.c
@@ -20,10 +20,7 @@
20 * Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 20 * Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
21 * 2001, 2002, 2003, 2004, 2005 by Theodore Ts'o. 21 * 2001, 2002, 2003, 2004, 2005 by Theodore Ts'o.
22 * 22 *
23 * %Begin-Header% 23 * Licensed under GPLv2, see file LICENSE in this tarball for details.
24 * This file may be redistributed under the terms of the GNU Public
25 * License.
26 * %End-Header%
27 */ 24 */
28 25
29/* All filesystem specific hooks have been removed. 26/* All filesystem specific hooks have been removed.
diff --git a/e2fsprogs/old_e2fsprogs/fsck.c b/e2fsprogs/old_e2fsprogs/fsck.c
index cc273536f..98e4e38fe 100644
--- a/e2fsprogs/old_e2fsprogs/fsck.c
+++ b/e2fsprogs/old_e2fsprogs/fsck.c
@@ -20,10 +20,7 @@
20 * Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 20 * Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
21 * 2001, 2002, 2003, 2004, 2005 by Theodore Ts'o. 21 * 2001, 2002, 2003, 2004, 2005 by Theodore Ts'o.
22 * 22 *
23 * %Begin-Header% 23 * Licensed under GPLv2, see file LICENSE in this tarball for details.
24 * This file may be redistributed under the terms of the GNU Public
25 * License.
26 * %End-Header%
27 */ 24 */
28 25
29#include <sys/types.h> 26#include <sys/types.h>
diff --git a/e2fsprogs/old_e2fsprogs/mke2fs.c b/e2fsprogs/old_e2fsprogs/mke2fs.c
index 6ffad3513..a1327437d 100644
--- a/e2fsprogs/old_e2fsprogs/mke2fs.c
+++ b/e2fsprogs/old_e2fsprogs/mke2fs.c
@@ -5,8 +5,7 @@
5 * Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 5 * Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
6 * 2003, 2004, 2005 by Theodore Ts'o. 6 * 2003, 2004, 2005 by Theodore Ts'o.
7 * 7 *
8 * This file may be redistributed under the terms of the GNU Public 8 * Licensed under GPLv2, see file LICENSE in this tarball for details.
9 * License.
10 */ 9 */
11 10
12/* Usage: mke2fs [options] device 11/* Usage: mke2fs [options] device
diff --git a/e2fsprogs/old_e2fsprogs/tune2fs.c b/e2fsprogs/old_e2fsprogs/tune2fs.c
index b7a1b21eb..1d39ed1b0 100644
--- a/e2fsprogs/old_e2fsprogs/tune2fs.c
+++ b/e2fsprogs/old_e2fsprogs/tune2fs.c
@@ -8,10 +8,7 @@
8 * 8 *
9 * Copyright 1995, 1996, 1997, 1998, 1999, 2000 by Theodore Ts'o. 9 * Copyright 1995, 1996, 1997, 1998, 1999, 2000 by Theodore Ts'o.
10 * 10 *
11 * %Begin-Header% 11 * Licensed under GPLv2, see file LICENSE in this tarball for details.
12 * This file may be redistributed under the terms of the GNU Public
13 * License.
14 * %End-Header%
15 */ 12 */
16 13
17/* 14/*
diff --git a/e2fsprogs/old_e2fsprogs/util.c b/e2fsprogs/old_e2fsprogs/util.c
index ce49db96a..7ab6591d5 100644
--- a/e2fsprogs/old_e2fsprogs/util.c
+++ b/e2fsprogs/old_e2fsprogs/util.c
@@ -4,10 +4,7 @@
4 * 4 *
5 * Copyright 1995, 1996, 1997, 1998, 1999, 2000 by Theodore Ts'o. 5 * Copyright 1995, 1996, 1997, 1998, 1999, 2000 by Theodore Ts'o.
6 * 6 *
7 * %Begin-Header% 7 * Licensed under GPLv2, see file LICENSE in this tarball for details.
8 * This file may be redistributed under the terms of the GNU Public
9 * License.
10 * %End-Header%
11 */ 8 */
12 9
13#include <stdio.h> 10#include <stdio.h>
diff --git a/libbb/crc32.c b/libbb/crc32.c
index 42079b9c5..36ac86042 100644
--- a/libbb/crc32.c
+++ b/libbb/crc32.c
@@ -12,6 +12,8 @@
12 * 12 *
13 * endian = 1: big-endian 13 * endian = 1: big-endian
14 * endian = 0: little-endian 14 * endian = 0: little-endian
15 *
16 * Licensed under GPLv2, see file LICENSE in this tarball for details.
15 */ 17 */
16 18
17#include "libbb.h" 19#include "libbb.h"
diff --git a/libbb/create_icmp6_socket.c b/libbb/create_icmp6_socket.c
index 20655170e..91e478ec8 100644
--- a/libbb/create_icmp6_socket.c
+++ b/libbb/create_icmp6_socket.c
@@ -4,6 +4,8 @@
4 * 4 *
5 * create raw socket for icmp (IPv6 version) protocol 5 * create raw socket for icmp (IPv6 version) protocol
6 * and drop root privileges if running setuid 6 * and drop root privileges if running setuid
7 *
8 * Licensed under GPLv2, see file LICENSE in this tarball for details.
7 */ 9 */
8 10
9#include "libbb.h" 11#include "libbb.h"
diff --git a/libbb/create_icmp_socket.c b/libbb/create_icmp_socket.c
index 1fa016ab8..d75f8452d 100644
--- a/libbb/create_icmp_socket.c
+++ b/libbb/create_icmp_socket.c
@@ -4,6 +4,8 @@
4 * 4 *
5 * create raw socket for icmp protocol 5 * create raw socket for icmp protocol
6 * and drop root privileges if running setuid 6 * and drop root privileges if running setuid
7 *
8 * Licensed under GPLv2, see file LICENSE in this tarball for details.
7 */ 9 */
8 10
9#include "libbb.h" 11#include "libbb.h"
diff --git a/libbb/crypt_make_salt.c b/libbb/crypt_make_salt.c
index 393eba5f9..14bb0ddc9 100644
--- a/libbb/crypt_make_salt.c
+++ b/libbb/crypt_make_salt.c
@@ -6,6 +6,7 @@
6 * 6 *
7 * Lifted from loginutils/passwd.c by Thomas Lundquist <thomasez@zelow.no> 7 * Lifted from loginutils/passwd.c by Thomas Lundquist <thomasez@zelow.no>
8 * 8 *
9 * Licensed under GPLv2, see file LICENSE in this tarball for details.
9 */ 10 */
10 11
11#include "libbb.h" 12#include "libbb.h"
diff --git a/libbb/human_readable.c b/libbb/human_readable.c
index 61c856750..05e7d86ec 100644
--- a/libbb/human_readable.c
+++ b/libbb/human_readable.c
@@ -24,6 +24,8 @@
24 * 24 *
25 * Some code to omit the decimal point and tenths digit is sketched out 25 * Some code to omit the decimal point and tenths digit is sketched out
26 * and "#if 0"'d below. 26 * and "#if 0"'d below.
27 *
28 * Licensed under GPLv2, see file LICENSE in this tarball for details.
27 */ 29 */
28 30
29#include "libbb.h" 31#include "libbb.h"
diff --git a/libbb/inet_common.c b/libbb/inet_common.c
index 966a021e5..fa4d8672f 100644
--- a/libbb/inet_common.c
+++ b/libbb/inet_common.c
@@ -5,7 +5,7 @@
5 * 5 *
6 * Heavily modified by Manuel Novoa III Mar 12, 2001 6 * Heavily modified by Manuel Novoa III Mar 12, 2001
7 * 7 *
8 * 8 * Licensed under GPLv2, see file LICENSE in this tarball for details.
9 */ 9 */
10 10
11#include "libbb.h" 11#include "libbb.h"
diff --git a/libbb/rtc.c b/libbb/rtc.c
index 222d977ca..51834f8f9 100644
--- a/libbb/rtc.c
+++ b/libbb/rtc.c
@@ -1,5 +1,7 @@
1/* 1/*
2 * Common RTC functions 2 * Common RTC functions
3 *
4 * Licensed under GPLv2, see file LICENSE in this tarball for details.
3 */ 5 */
4 6
5#include "libbb.h" 7#include "libbb.h"
diff --git a/libbb/selinux_common.c b/libbb/selinux_common.c
index 5fdbe9d58..275a761d2 100644
--- a/libbb/selinux_common.c
+++ b/libbb/selinux_common.c
@@ -3,6 +3,8 @@
3 * -- common SELinux utility functions 3 * -- common SELinux utility functions
4 * 4 *
5 * Copyright 2007 KaiGai Kohei <kaigai@kaigai.gr.jp> 5 * Copyright 2007 KaiGai Kohei <kaigai@kaigai.gr.jp>
6 *
7 * Licensed under GPLv2, see file LICENSE in this tarball for details.
6 */ 8 */
7#include "libbb.h" 9#include "libbb.h"
8#include <selinux/context.h> 10#include <selinux/context.h>
diff --git a/libbb/update_passwd.c b/libbb/update_passwd.c
index 88bc28ca9..565dd3702 100644
--- a/libbb/update_passwd.c
+++ b/libbb/update_passwd.c
@@ -7,6 +7,8 @@
7 * /etc/shadow) for a given user and password. 7 * /etc/shadow) for a given user and password.
8 * 8 *
9 * Moved from loginutils/passwd.c by Alexander Shishkin <virtuoso@slind.org> 9 * Moved from loginutils/passwd.c by Alexander Shishkin <virtuoso@slind.org>
10 *
11 * Licensed under GPLv2, see file LICENSE in this tarball for details.
10 */ 12 */
11 13
12#include "libbb.h" 14#include "libbb.h"
diff --git a/libbb/xatonum_template.c b/libbb/xatonum_template.c
index 2360ae88a..5e0bb59e6 100644
--- a/libbb/xatonum_template.c
+++ b/libbb/xatonum_template.c
@@ -1,4 +1,8 @@
1/* 1/*
2 *
3 * Licensed under GPLv2, see file LICENSE in this tarball for details.
4 */
5/*
2You need to define the following (example): 6You need to define the following (example):
3 7
4#define type long 8#define type long
diff --git a/libbb/xconnect.c b/libbb/xconnect.c
index d48c50339..5be83241b 100644
--- a/libbb/xconnect.c
+++ b/libbb/xconnect.c
@@ -4,6 +4,7 @@
4 * 4 *
5 * Connect to host at port using address resolution from getaddrinfo 5 * Connect to host at port using address resolution from getaddrinfo
6 * 6 *
7 * Licensed under GPLv2, see file LICENSE in this tarball for details.
7 */ 8 */
8 9
9#include <netinet/in.h> 10#include <netinet/in.h>
diff --git a/libbb/xgetcwd.c b/libbb/xgetcwd.c
index eefe1d660..10febe32d 100644
--- a/libbb/xgetcwd.c
+++ b/libbb/xgetcwd.c
@@ -5,7 +5,9 @@
5 * Written by David MacKenzie <djm@gnu.ai.mit.edu>. 5 * Written by David MacKenzie <djm@gnu.ai.mit.edu>.
6 * 6 *
7 * Special function for busybox written by Vladimir Oleynik <dzo@simtreas.ru> 7 * Special function for busybox written by Vladimir Oleynik <dzo@simtreas.ru>
8*/ 8 *
9 * Licensed under GPLv2, see file LICENSE in this tarball for details.
10 */
9 11
10#include "libbb.h" 12#include "libbb.h"
11 13
diff --git a/libbb/xreadlink.c b/libbb/xreadlink.c
index 2cfc5751c..6bff4beae 100644
--- a/libbb/xreadlink.c
+++ b/libbb/xreadlink.c
@@ -1,7 +1,9 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* 2/*
3 * xreadlink.c - safe implementation of readlink. 3 * xreadlink.c - safe implementation of readlink.
4 * Returns a NULL on failure... 4 * Returns a NULL on failure...
5 *
6 * Licensed under GPLv2, see file LICENSE in this tarball for details.
5 */ 7 */
6 8
7#include "libbb.h" 9#include "libbb.h"
diff --git a/loginutils/cryptpw.c b/loginutils/cryptpw.c
index 4eec02b78..47212e18a 100644
--- a/loginutils/cryptpw.c
+++ b/loginutils/cryptpw.c
@@ -6,6 +6,8 @@
6 * 6 *
7 * Cooked from passwd.c by Thomas Lundquist <thomasez@zelow.no> 7 * Cooked from passwd.c by Thomas Lundquist <thomasez@zelow.no>
8 * mkpasswd compatible options added by Bernhard Reutner-Fischer 8 * mkpasswd compatible options added by Bernhard Reutner-Fischer
9 *
10 * Licensed under GPLv2, see file LICENSE in this tarball for details.
9 */ 11 */
10 12
11#include "libbb.h" 13#include "libbb.h"
diff --git a/networking/udhcp/arpping.c b/networking/udhcp/arpping.c
index e0710dc4a..b10bff651 100644
--- a/networking/udhcp/arpping.c
+++ b/networking/udhcp/arpping.c
@@ -4,6 +4,8 @@
4 * 4 *
5 * Mostly stolen from: dhcpcd - DHCP client daemon 5 * Mostly stolen from: dhcpcd - DHCP client daemon
6 * by Yoichi Hariguchi <yoichi@fore.com> 6 * by Yoichi Hariguchi <yoichi@fore.com>
7 *
8 * Licensed under GPLv2, see file LICENSE in this tarball for details.
7 */ 9 */
8 10
9#include <netinet/if_ether.h> 11#include <netinet/if_ether.h>
diff --git a/networking/udhcp/files.c b/networking/udhcp/files.c
index 0b97d76a5..4f7b52056 100644
--- a/networking/udhcp/files.c
+++ b/networking/udhcp/files.c
@@ -2,6 +2,8 @@
2/* 2/*
3 * files.c -- DHCP server file manipulation * 3 * files.c -- DHCP server file manipulation *
4 * Rewrite by Russ Dill <Russ.Dill@asu.edu> July 2001 4 * Rewrite by Russ Dill <Russ.Dill@asu.edu> July 2001
5 *
6 * Licensed under GPLv2, see file LICENSE in this tarball for details.
5 */ 7 */
6 8
7#include <netinet/ether.h> 9#include <netinet/ether.h>
diff --git a/networking/udhcp/leases.c b/networking/udhcp/leases.c
index ff52da9fb..a981db0d7 100644
--- a/networking/udhcp/leases.c
+++ b/networking/udhcp/leases.c
@@ -2,6 +2,8 @@
2/* 2/*
3 * leases.c -- tools to manage DHCP leases 3 * leases.c -- tools to manage DHCP leases
4 * Russ Dill <Russ.Dill@asu.edu> July 2001 4 * Russ Dill <Russ.Dill@asu.edu> July 2001
5 *
6 * Licensed under GPLv2, see file LICENSE in this tarball for details.
5 */ 7 */
6 8
7#include "common.h" 9#include "common.h"
diff --git a/networking/udhcp/options.c b/networking/udhcp/options.c
index 6bf99e2b9..2c27e7033 100644
--- a/networking/udhcp/options.c
+++ b/networking/udhcp/options.c
@@ -2,6 +2,8 @@
2/* 2/*
3 * options.c -- DHCP server option packet tools 3 * options.c -- DHCP server option packet tools
4 * Rewrite by Russ Dill <Russ.Dill@asu.edu> July 2001 4 * Rewrite by Russ Dill <Russ.Dill@asu.edu> July 2001
5 *
6 * Licensed under GPLv2, see file LICENSE in this tarball for details.
5 */ 7 */
6 8
7#include "common.h" 9#include "common.h"
diff --git a/networking/udhcp/packet.c b/networking/udhcp/packet.c
index 1a6f7e6a0..e2c8e6ead 100644
--- a/networking/udhcp/packet.c
+++ b/networking/udhcp/packet.c
@@ -1,4 +1,10 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/*
3 * packet.c -- packet ops
4 * Rewrite by Russ Dill <Russ.Dill@asu.edu> July 2001
5 *
6 * Licensed under GPLv2, see file LICENSE in this tarball for details.
7 */
2 8
3#include <netinet/in.h> 9#include <netinet/in.h>
4#if (defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1) || defined _NEWLIB_VERSION 10#if (defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1) || defined _NEWLIB_VERSION
diff --git a/networking/udhcp/static_leases.c b/networking/udhcp/static_leases.c
index 43f1c9825..7540f7f5e 100644
--- a/networking/udhcp/static_leases.c
+++ b/networking/udhcp/static_leases.c
@@ -5,6 +5,7 @@
5 * 5 *
6 * Wade Berrier <wberrier@myrealbox.com> September 2004 6 * Wade Berrier <wberrier@myrealbox.com> September 2004
7 * 7 *
8 * Licensed under GPLv2, see file LICENSE in this tarball for details.
8 */ 9 */
9 10
10#include "common.h" 11#include "common.h"
diff --git a/networking/wget.c b/networking/wget.c
index 3f80d615e..b40a1ac15 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -4,6 +4,7 @@
4 * 4 *
5 * Chip Rosenthal Covad Communications <chip@laserlink.net> 5 * Chip Rosenthal Covad Communications <chip@laserlink.net>
6 * 6 *
7 * Licensed under GPLv2, see file LICENSE in this tarball for details.
7 */ 8 */
8 9
9#include "libbb.h" 10#include "libbb.h"
diff --git a/procps/fuser.c b/procps/fuser.c
index d2ac9ebfc..7297bfe66 100644
--- a/procps/fuser.c
+++ b/procps/fuser.c
@@ -4,8 +4,7 @@
4 * 4 *
5 * Copyright 2004 Tony J. White 5 * Copyright 2004 Tony J. White
6 * 6 *
7 * May be distributed under the conditions of the 7 * Licensed under GPLv2, see file LICENSE in this tarball for details.
8 * GNU Library General Public License
9 */ 8 */
10 9
11#include "libbb.h" 10#include "libbb.h"
diff --git a/procps/top.c b/procps/top.c
index c8a9539d6..8c58b909d 100644
--- a/procps/top.c
+++ b/procps/top.c
@@ -4,7 +4,7 @@
4 * 4 *
5 * This is written specifically for the linux /proc/<PID>/stat(m) 5 * This is written specifically for the linux /proc/<PID>/stat(m)
6 * files format. 6 * files format.
7 7 *
8 * This reads the PIDs of all processes and their status and shows 8 * This reads the PIDs of all processes and their status and shows
9 * the status of processes (first ones that fit to screen) at given 9 * the status of processes (first ones that fit to screen) at given
10 * intervals. 10 * intervals.
@@ -22,16 +22,13 @@
22 * - CPU where Process was last seen running 22 * - CPU where Process was last seen running
23 * (to see effect of sched_setaffinity() etc) 23 * (to see effect of sched_setaffinity() etc)
24 * - CPU Time Split (idle/IO/wait etc) PER CPU 24 * - CPU Time Split (idle/IO/wait etc) PER CPU
25 */ 25 *
26
27/* Original code Copyrights */
28/*
29 * Copyright (c) 1992 Branko Lankester 26 * Copyright (c) 1992 Branko Lankester
30 * Copyright (c) 1992 Roger Binns 27 * Copyright (c) 1992 Roger Binns
31 * Copyright (C) 1994-1996 Charles L. Blake. 28 * Copyright (C) 1994-1996 Charles L. Blake.
32 * Copyright (C) 1992-1998 Michael K. Johnson 29 * Copyright (C) 1992-1998 Michael K. Johnson
33 * May be distributed under the conditions of the 30 *
34 * GNU Library General Public License 31 * Licensed under GPLv2, see file LICENSE in this tarball for details.
35 */ 32 */
36 33
37#include "libbb.h" 34#include "libbb.h"
diff --git a/selinux/chcon.c b/selinux/chcon.c
index 80a030fde..55c2522f6 100644
--- a/selinux/chcon.c
+++ b/selinux/chcon.c
@@ -4,6 +4,8 @@
4 * Port to busybox: KaiGai Kohei <kaigai@kaigai.gr.jp> 4 * Port to busybox: KaiGai Kohei <kaigai@kaigai.gr.jp>
5 * 5 *
6 * Copyright (C) 2006 - 2007 KaiGai Kohei <kaigai@kaigai.gr.jp> 6 * Copyright (C) 2006 - 2007 KaiGai Kohei <kaigai@kaigai.gr.jp>
7 *
8 * Licensed under GPLv2, see file LICENSE in this tarball for details.
7 */ 9 */
8#include <getopt.h> 10#include <getopt.h>
9#include <selinux/context.h> 11#include <selinux/context.h>
diff --git a/selinux/getenforce.c b/selinux/getenforce.c
index 21075cfd8..3d3eef14c 100644
--- a/selinux/getenforce.c
+++ b/selinux/getenforce.c
@@ -4,6 +4,7 @@
4 * Based on libselinux 1.33.1 4 * Based on libselinux 1.33.1
5 * Port to BusyBox Hiroshi Shinji <shiroshi@my.email.ne.jp> 5 * Port to BusyBox Hiroshi Shinji <shiroshi@my.email.ne.jp>
6 * 6 *
7 * Licensed under GPLv2, see file LICENSE in this tarball for details.
7 */ 8 */
8 9
9#include "libbb.h" 10#include "libbb.h"
diff --git a/selinux/getsebool.c b/selinux/getsebool.c
index ea080d483..b761b72eb 100644
--- a/selinux/getsebool.c
+++ b/selinux/getsebool.c
@@ -4,6 +4,7 @@
4 * Based on libselinux 1.33.1 4 * Based on libselinux 1.33.1
5 * Port to BusyBox Hiroshi Shinji <shiroshi@my.email.ne.jp> 5 * Port to BusyBox Hiroshi Shinji <shiroshi@my.email.ne.jp>
6 * 6 *
7 * Licensed under GPLv2, see file LICENSE in this tarball for details.
7 */ 8 */
8 9
9#include "libbb.h" 10#include "libbb.h"
diff --git a/selinux/load_policy.c b/selinux/load_policy.c
index b7a5c6eef..4bc873e81 100644
--- a/selinux/load_policy.c
+++ b/selinux/load_policy.c
@@ -1,6 +1,8 @@
1/* 1/*
2 * load_policy 2 * load_policy
3 * Author: Yuichi Nakamura <ynakam@hitachisoft.jp> 3 * Author: Yuichi Nakamura <ynakam@hitachisoft.jp>
4 *
5 * Licensed under GPLv2, see file LICENSE in this tarball for details.
4 */ 6 */
5#include "libbb.h" 7#include "libbb.h"
6 8
diff --git a/selinux/matchpathcon.c b/selinux/matchpathcon.c
index 5cfd52aba..1532429b6 100644
--- a/selinux/matchpathcon.c
+++ b/selinux/matchpathcon.c
@@ -3,6 +3,7 @@
3 * based on libselinux-1.32 3 * based on libselinux-1.32
4 * Port to busybox: KaiGai Kohei <kaigai@kaigai.gr.jp> 4 * Port to busybox: KaiGai Kohei <kaigai@kaigai.gr.jp>
5 * 5 *
6 * Licensed under GPLv2, see file LICENSE in this tarball for details.
6 */ 7 */
7#include "libbb.h" 8#include "libbb.h"
8 9
diff --git a/selinux/runcon.c b/selinux/runcon.c
index a9471ef0c..e94ff1454 100644
--- a/selinux/runcon.c
+++ b/selinux/runcon.c
@@ -25,6 +25,8 @@
25 * 25 *
26 * Port to busybox: KaiGai Kohei <kaigai@kaigai.gr.jp> 26 * Port to busybox: KaiGai Kohei <kaigai@kaigai.gr.jp>
27 * - based on coreutils-5.97 (in Fedora Core 6) 27 * - based on coreutils-5.97 (in Fedora Core 6)
28 *
29 * Licensed under GPLv2, see file LICENSE in this tarball for details.
28 */ 30 */
29#include <getopt.h> 31#include <getopt.h>
30#include <selinux/context.h> 32#include <selinux/context.h>
diff --git a/selinux/selinuxenabled.c b/selinux/selinuxenabled.c
index ea233d891..1cf93c3f3 100644
--- a/selinux/selinuxenabled.c
+++ b/selinux/selinuxenabled.c
@@ -4,6 +4,7 @@
4 * Based on libselinux 1.33.1 4 * Based on libselinux 1.33.1
5 * Port to BusyBox Hiroshi Shinji <shiroshi@my.email.ne.jp> 5 * Port to BusyBox Hiroshi Shinji <shiroshi@my.email.ne.jp>
6 * 6 *
7 * Licensed under GPLv2, see file LICENSE in this tarball for details.
7 */ 8 */
8#include "libbb.h" 9#include "libbb.h"
9 10
diff --git a/selinux/sestatus.c b/selinux/sestatus.c
index eca557e4c..216629615 100644
--- a/selinux/sestatus.c
+++ b/selinux/sestatus.c
@@ -4,6 +4,8 @@
4 * Ported to busybox: KaiGai Kohei <kaigai@ak.jp.nec.com> 4 * Ported to busybox: KaiGai Kohei <kaigai@ak.jp.nec.com>
5 * 5 *
6 * Copyright (C) KaiGai Kohei <kaigai@ak.jp.nec.com> 6 * Copyright (C) KaiGai Kohei <kaigai@ak.jp.nec.com>
7 *
8 * Licensed under GPLv2, see file LICENSE in this tarball for details.
7 */ 9 */
8 10
9#include "libbb.h" 11#include "libbb.h"
diff --git a/selinux/setenforce.c b/selinux/setenforce.c
index 198324c91..a2d04288b 100644
--- a/selinux/setenforce.c
+++ b/selinux/setenforce.c
@@ -4,6 +4,7 @@
4 * Based on libselinux 1.33.1 4 * Based on libselinux 1.33.1
5 * Port to BusyBox Hiroshi Shinji <shiroshi@my.email.ne.jp> 5 * Port to BusyBox Hiroshi Shinji <shiroshi@my.email.ne.jp>
6 * 6 *
7 * Licensed under GPLv2, see file LICENSE in this tarball for details.
7 */ 8 */
8 9
9#include "libbb.h" 10#include "libbb.h"
diff --git a/selinux/setsebool.c b/selinux/setsebool.c
index 83e70e2d5..b615ce783 100644
--- a/selinux/setsebool.c
+++ b/selinux/setsebool.c
@@ -4,6 +4,8 @@
4 * NOTE: -P option requires libsemanage, so this feature is 4 * NOTE: -P option requires libsemanage, so this feature is
5 * omitted in this version 5 * omitted in this version
6 * Yuichi Nakamura <ynakam@hitachisoft.jp> 6 * Yuichi Nakamura <ynakam@hitachisoft.jp>
7 *
8 * Licensed under GPLv2, see file LICENSE in this tarball for details.
7 */ 9 */
8 10
9#include "libbb.h" 11#include "libbb.h"
diff --git a/util-linux/fdformat.c b/util-linux/fdformat.c
index 094d620ee..3831ab44e 100644
--- a/util-linux/fdformat.c
+++ b/util-linux/fdformat.c
@@ -1,7 +1,8 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* fdformat.c - Low-level formats a floppy disk - Werner Almesberger */ 2/* fdformat.c - Low-level formats a floppy disk - Werner Almesberger
3 3 * 5 July 2003 -- modified for Busybox by Erik Andersen
4/* 5 July 2003 -- modified for Busybox by Erik Andersen 4 *
5 * Licensed under GPLv2, see file LICENSE in this tarball for details.
5 */ 6 */
6 7
7#include "libbb.h" 8#include "libbb.h"
diff --git a/util-linux/fdisk_aix.c b/util-linux/fdisk_aix.c
index 83be8a8f9..2c0d2a6ac 100644
--- a/util-linux/fdisk_aix.c
+++ b/util-linux/fdisk_aix.c
@@ -1,8 +1,8 @@
1#if ENABLE_FEATURE_AIX_LABEL 1#if ENABLE_FEATURE_AIX_LABEL
2/* 2/*
3 * Copyright (C) Andreas Neuper, Sep 1998. 3 * Copyright (C) Andreas Neuper, Sep 1998.
4 * This file may be redistributed under 4 *
5 * the terms of the GNU Public License. 5 * Licensed under GPLv2, see file LICENSE in this tarball for details.
6 */ 6 */
7 7
8typedef struct { 8typedef struct {
diff --git a/util-linux/fdisk_osf.c b/util-linux/fdisk_osf.c
index c50ee9b16..ea5cd3c17 100644
--- a/util-linux/fdisk_osf.c
+++ b/util-linux/fdisk_osf.c
@@ -1,4 +1,3 @@
1#if ENABLE_FEATURE_OSF_LABEL
2/* 1/*
3 * Copyright (c) 1987, 1988 Regents of the University of California. 2 * Copyright (c) 1987, 1988 Regents of the University of California.
4 * All rights reserved. 3 * All rights reserved.
@@ -32,6 +31,7 @@
32 * SUCH DAMAGE. 31 * SUCH DAMAGE.
33 */ 32 */
34 33
34#if ENABLE_FEATURE_OSF_LABEL
35 35
36#ifndef BSD_DISKMAGIC 36#ifndef BSD_DISKMAGIC
37#define BSD_DISKMAGIC ((uint32_t) 0x82564557) 37#define BSD_DISKMAGIC ((uint32_t) 0x82564557)
diff --git a/util-linux/fdisk_sgi.c b/util-linux/fdisk_sgi.c
index 5a86a6848..51cf30c98 100644
--- a/util-linux/fdisk_sgi.c
+++ b/util-linux/fdisk_sgi.c
@@ -1,13 +1,13 @@
1#if ENABLE_FEATURE_SGI_LABEL
2
3#define SGI_DEBUG 0
4
5/* 1/*
6 * Copyright (C) Andreas Neuper, Sep 1998. 2 * Copyright (C) Andreas Neuper, Sep 1998.
7 * This file may be modified and redistributed under 3 *
8 * the terms of the GNU Public License. 4 * Licensed under GPLv2, see file LICENSE in this tarball for details.
9 */ 5 */
10 6
7#if ENABLE_FEATURE_SGI_LABEL
8
9#define SGI_DEBUG 0
10
11#define SGI_VOLHDR 0x00 11#define SGI_VOLHDR 0x00
12/* 1 and 2 were used for drive types no longer supported by SGI */ 12/* 1 and 2 were used for drive types no longer supported by SGI */
13#define SGI_SWAP 0x03 13#define SGI_SWAP 0x03
diff --git a/util-linux/fdisk_sun.c b/util-linux/fdisk_sun.c
index d1a436b4a..9cdf869e9 100644
--- a/util-linux/fdisk_sun.c
+++ b/util-linux/fdisk_sun.c
@@ -1,3 +1,17 @@
1/*
2 * fdisk_sun.c
3 *
4 * I think this is mostly, or entirely, due to
5 * Jakub Jelinek (jj@sunsite.mff.cuni.cz), July 1996
6 *
7 * Merged with fdisk for other architectures, aeb, June 1998.
8 *
9 * Sat Mar 20 EST 1999 Arnaldo Carvalho de Melo <acme@conectiva.com.br>
10 * Internationalization
11 *
12 * Licensed under GPLv2, see file LICENSE in this tarball for details.
13 */
14
1#if ENABLE_FEATURE_SUN_LABEL 15#if ENABLE_FEATURE_SUN_LABEL
2 16
3#define SUNOS_SWAP 3 17#define SUNOS_SWAP 3
@@ -13,19 +27,6 @@
13 27
14#define SCSI_IOCTL_GET_IDLUN 0x5382 28#define SCSI_IOCTL_GET_IDLUN 0x5382
15 29
16/*
17 * fdisksunlabel.c
18 *
19 * I think this is mostly, or entirely, due to
20 * Jakub Jelinek (jj@sunsite.mff.cuni.cz), July 1996
21 *
22 * Merged with fdisk for other architectures, aeb, June 1998.
23 *
24 * Sat Mar 20 EST 1999 Arnaldo Carvalho de Melo <acme@conectiva.com.br>
25 * Internationalization
26 */
27
28
29static int sun_other_endian; 30static int sun_other_endian;
30static int scsi_disk; 31static int scsi_disk;
31static int floppy; 32static int floppy;
diff --git a/util-linux/mkfs_minix.c b/util-linux/mkfs_minix.c
index 3f7fb4bef..2666132f9 100644
--- a/util-linux/mkfs_minix.c
+++ b/util-linux/mkfs_minix.c
@@ -2,8 +2,9 @@
2/* 2/*
3 * mkfs.c - make a linux (minix) file-system. 3 * mkfs.c - make a linux (minix) file-system.
4 * 4 *
5 * (C) 1991 Linus Torvalds. This file may be redistributed as per 5 * (C) 1991 Linus Torvalds.
6 * the Linux copyright. 6 *
7 * Licensed under GPLv2, see file LICENSE in this tarball for details.
7 */ 8 */
8 9
9/* 10/*
diff --git a/util-linux/rtcwake.c b/util-linux/rtcwake.c
index a9766caaa..6c399c746 100644
--- a/util-linux/rtcwake.c
+++ b/util-linux/rtcwake.c
@@ -3,6 +3,8 @@
3 * 3 *
4 * This version was taken from util-linux and scrubbed down for busybox. 4 * This version was taken from util-linux and scrubbed down for busybox.
5 * 5 *
6 * Licensed under GPLv2, see file LICENSE in this tarball for details.
7 *
6 * This uses cross-platform Linux interfaces to enter a system sleep state, 8 * This uses cross-platform Linux interfaces to enter a system sleep state,
7 * and leave it no later than a specified time. It uses any RTC framework 9 * and leave it no later than a specified time. It uses any RTC framework
8 * driver that supports standard driver model wakeup flags. 10 * driver that supports standard driver model wakeup flags.