All our binaries are now mulicalls into rc, which makes our on disk size

a lot smaller.
This commit is contained in:
Roy Marples
2007-07-31 16:05:56 +00:00
parent 02fcdeede4
commit c674026f9e
12 changed files with 124 additions and 89 deletions

View File

@@ -5,19 +5,20 @@
Released under the GPLv2
*/
#define APPLET "rc-status"
#include <getopt.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "builtins.h"
#include "einfo.h"
#include "rc.h"
#include "rc-misc.h"
#include "strlist.h"
#define APPLET "rc-status"
static void print_level (char *level)
{
printf ("Runlevel: %s%s%s\n",
@@ -55,7 +56,7 @@ static void print_service (char *service)
#include "_usage.h"
#define getoptstring "alsu" getoptstring_COMMON
const struct option longopts[] = {
static const struct option longopts[] = {
{"all", 0, NULL, 'a'},
{"list", 0, NULL, 'l'},
{"servicelist", 0, NULL, 's'},
@@ -65,7 +66,7 @@ const struct option longopts[] = {
};
#include "_usage.c"
int main (int argc, char **argv)
int rc_status (int argc, char **argv)
{
char **levels = NULL;
char **services = NULL;