regularize format of source file headers, no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2017-09-18 16:28:43 +02:00
parent b63afead44
commit 0c4dbd481a
96 changed files with 158 additions and 246 deletions

View File

@@ -9,7 +9,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
//config:config HOSTNAME
//config: bool "hostname (5.6 kb)"
//config: default y

View File

@@ -16,7 +16,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
//config:config IFUP
//config: bool "ifup (17 kb)"
//config: default y

View File

@@ -9,7 +9,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
//config:config NAMEIF
//config: bool "nameif (6.6 kb)"
//config: default y

View File

@@ -3,20 +3,20 @@
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
#include "libbb.h"
#include <netinet/tcp.h>
#include <linux/fs.h>
//applet:IF_NBDCLIENT(APPLET_NOEXEC(nbd-client, nbdclient, BB_DIR_USR_SBIN, BB_SUID_DROP, nbdclient))
//kbuild:lib-$(CONFIG_NBDCLIENT) += nbd-client.o
//config:config NBDCLIENT
//config: bool "nbd-client (4.6 kb)"
//config: default y
//config: help
//config: Network block device client
//applet:IF_NBDCLIENT(APPLET_NOEXEC(nbd-client, nbdclient, BB_DIR_USR_SBIN, BB_SUID_DROP, nbdclient))
//kbuild:lib-$(CONFIG_NBDCLIENT) += nbd-client.o
#include "libbb.h"
#include <netinet/tcp.h>
#include <linux/fs.h>
#define NBD_SET_SOCK _IO(0xab, 0)
#define NBD_SET_BLKSIZE _IO(0xab, 1)
#define NBD_SET_SIZE _IO(0xab, 2)

View File

@@ -24,28 +24,6 @@
* This version is an adaptation of ping.c from busybox.
* The code was modified by Bart Visscher <magick@linux-fan.com>
*/
#include <net/if.h>
#include <netinet/ip_icmp.h>
#include "libbb.h"
#include "common_bufsiz.h"
#ifdef __BIONIC__
/* should be in netinet/ip_icmp.h */
# define ICMP_DEST_UNREACH 3 /* Destination Unreachable */
# define ICMP_SOURCE_QUENCH 4 /* Source Quench */
# define ICMP_REDIRECT 5 /* Redirect (change route) */
# define ICMP_ECHO 8 /* Echo Request */
# define ICMP_TIME_EXCEEDED 11 /* Time Exceeded */
# define ICMP_PARAMETERPROB 12 /* Parameter Problem */
# define ICMP_TIMESTAMP 13 /* Timestamp Request */
# define ICMP_TIMESTAMPREPLY 14 /* Timestamp Reply */
# define ICMP_INFO_REQUEST 15 /* Information Request */
# define ICMP_INFO_REPLY 16 /* Information Reply */
# define ICMP_ADDRESS 17 /* Address Mask Request */
# define ICMP_ADDRESSREPLY 18 /* Address Mask Reply */
#endif
//config:config PING
//config: bool "ping (9.5 kb)"
//config: default y
@@ -136,6 +114,27 @@
//usage: "1 packets transmitted, 1 packets received, 0% packet loss\n"
//usage: "round-trip min/avg/max = 20.1/20.1/20.1 ms\n"
#include <net/if.h>
#include <netinet/ip_icmp.h>
#include "libbb.h"
#include "common_bufsiz.h"
#ifdef __BIONIC__
/* should be in netinet/ip_icmp.h */
# define ICMP_DEST_UNREACH 3 /* Destination Unreachable */
# define ICMP_SOURCE_QUENCH 4 /* Source Quench */
# define ICMP_REDIRECT 5 /* Redirect (change route) */
# define ICMP_ECHO 8 /* Echo Request */
# define ICMP_TIME_EXCEEDED 11 /* Time Exceeded */
# define ICMP_PARAMETERPROB 12 /* Parameter Problem */
# define ICMP_TIMESTAMP 13 /* Timestamp Request */
# define ICMP_TIMESTAMPREPLY 14 /* Timestamp Reply */
# define ICMP_INFO_REQUEST 15 /* Information Request */
# define ICMP_INFO_REPLY 16 /* Information Reply */
# define ICMP_ADDRESS 17 /* Address Mask Request */
# define ICMP_ADDRESSREPLY 18 /* Address Mask Reply */
#endif
#if ENABLE_PING6
# include <netinet/icmp6.h>
/* I see RENUMBERED constants in bits/in.h - !!?

View File

@@ -8,7 +8,6 @@
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
//config:config UDHCPC6
//config: bool "udhcpc6"
//config: default n # not yet ready

View File

@@ -6,9 +6,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
/* BB_AUDIT SUSv3 N/A */
//config:config VCONFIG
//config: bool "vconfig (2.5 kb)"
//config: default y
@@ -34,6 +31,8 @@
#include "libbb.h"
#include <net/if.h>
/* BB_AUDIT SUSv3 N/A */
/* Stuff from linux/if_vlan.h, kernel version 2.4.23 */
enum vlan_ioctl_cmds {
ADD_VLAN_CMD,

View File

@@ -8,7 +8,6 @@
* Copyright (C) 2010 Bradley M. Kuhn <bkuhn@ebb.org>
* Kuhn's copyrights are licensed GPLv2-or-later. File as a whole remains GPLv2.
*/
//config:config WGET
//config: bool "wget (35 kb)"
//config: default y

View File

@@ -9,7 +9,6 @@
* Add ipv6 support
* Add proxy support
*/
//config:config WHOIS
//config: bool "whois (6.6 kb)"
//config: default y