- move #include busybox.h to the very top so we pull in the config

and eventual platform specific includes in early.
This commit is contained in:
Bernhard Reutner-Fischer
2006-06-02 20:56:16 +00:00
parent ecae66ac16
commit e15d7573a1
34 changed files with 77 additions and 193 deletions

View File

@@ -7,10 +7,9 @@
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
#include "busybox.h"
#include <signal.h>
#include <sys/reboot.h>
#include "busybox.h"
#include <unistd.h>
int halt_main(int argc, char *argv[])
@@ -40,7 +39,7 @@ RB_AUTOBOOT
flags = bb_getopt_ulflags(argc, argv, "d:nf", &delay);
if (flags&1) sleep(atoi(delay));
if (!(flags&2)) sync();
/* Perform action. */
if (ENABLE_INIT && !(flags & 4)) {
if (ENABLE_FEATURE_INITRD) {

View File

@@ -7,6 +7,7 @@
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
#include "busybox.h"
#include <signal.h>
#include <stdlib.h>
#include <sys/types.h>
@@ -14,7 +15,6 @@
#include <getopt.h>
#include <sys/reboot.h>
#include <sys/syslog.h>
#include "busybox.h"
#include "init_shared.h"
const char * const init_sending_format = "Sending SIG%s to all processes.";

View File

@@ -1,3 +1,9 @@
/* vi: set sw=4 ts=4: */
/*
* Helper functions shared by init et al.
*
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
extern int kill_init(int sig);
extern int bb_shutdown_system(unsigned long magic);
extern const char * const init_sending_format;

View File

@@ -1,26 +1,15 @@
/* vi: set sw=4 ts=4: */
/*
* mesg implementation for busybox
* mesg implementation for busybox
*
* Copyright (c) 2002 Manuel Novoa III <mjn3@codepoet.org>
* Copyright (c) 2002 Manuel Novoa III <mjn3@codepoet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
*/
#include "busybox.h"
#include <unistd.h>
#include <stdlib.h>
#include "busybox.h"
#ifdef USE_TTY_GROUP
#define S_IWGRP_OR_S_IWOTH S_IWGRP