Statistics
| Branch: | Revision:

iof-bird-daemon / sysdep / unix / client-main.c @ ed608150

History | View | Annotate | Download (809 Bytes)

1
/*
2
 *        BIRD Client -- Unix Entry Point
3
 *
4
 *        (c) 1999 Martin Mares <mj@ucw.cz>
5
 *
6
 *        Can be freely distributed and used under the terms of the GNU GPL.
7
 */
8

    
9
#include <stdio.h>
10
#include <string.h>
11
#include <stdlib.h>
12
#include <unistd.h>
13

    
14
#include "nest/bird.h"
15
#include "client/client.h"
16

    
17
#include "unix.h"
18

    
19
static char *opt_list = "";
20

    
21
static void
22
usage(void)
23
{
24
  fprintf(stderr, "Usage: birdc\n");
25
  exit(1);
26
}
27

    
28
static void
29
parse_args(int argc, char **argv)
30
{
31
  int c;
32

    
33
  while ((c = getopt(argc, argv, opt_list)) >= 0)
34
    switch (c)
35
      {
36
      default:
37
        usage();
38
      }
39
  if (optind < argc)
40
    usage();
41
}
42

    
43
int
44
client_main(int argc, char **argv)
45
{
46
#ifdef HAVE_LIBDMALLOC
47
  if (!getenv("DMALLOC_OPTIONS"))
48
    dmalloc_debug(0x2f03d00);
49
#endif
50

    
51
  parse_args(argc, argv);
52

    
53
  bug("Not implemented yet!");
54
}