Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
help.c File Reference
#include "cache.h"
#include "../builtin.h"
#include "exec_cmd.h"
#include "levenshtein.h"
#include "help.h"
#include <termios.h>

Go to the source code of this file.

Functions

void add_cmdname (struct cmdnames *cmds, const char *name, size_t len)
 
void exclude_cmds (struct cmdnames *cmds, struct cmdnames *excludes)
 
void load_command_list (const char *prefix, struct cmdnames *main_cmds, struct cmdnames *other_cmds)
 
void list_commands (const char *title, struct cmdnames *main_cmds, struct cmdnames *other_cmds)
 
int is_in_cmdlist (struct cmdnames *c, const char *s)
 
const char * help_unknown_cmd (const char *cmd)
 
int cmd_version (int argc __maybe_unused, const char **argv __maybe_unused, const char *prefix __maybe_unused)
 

Function Documentation

void add_cmdname ( struct cmdnames *  cmds,
const char *  name,
size_t  len 
)

Definition at line 8 of file help.c.

int cmd_version ( int argc  __maybe_unused,
const char **argv  __maybe_unused,
const char *prefix  __maybe_unused 
)

Definition at line 335 of file help.c.

void exclude_cmds ( struct cmdnames *  cmds,
struct cmdnames *  excludes 
)

Definition at line 52 of file help.c.

const char* help_unknown_cmd ( const char *  cmd)

Definition at line 271 of file help.c.

int is_in_cmdlist ( struct cmdnames *  c,
const char *  s 
)

Definition at line 225 of file help.c.

void list_commands ( const char *  title,
struct cmdnames *  main_cmds,
struct cmdnames *  other_cmds 
)

Definition at line 193 of file help.c.

void load_command_list ( const char *  prefix,
struct cmdnames *  main_cmds,
struct cmdnames *  other_cmds 
)

Definition at line 157 of file help.c.