Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
run-command.h File Reference

Go to the source code of this file.

Data Structures

struct  child_process
 

Macros

#define IS_RUN_COMMAND_ERR(x)   (-(x) >= ERR_RUN_COMMAND_FORK)
 
#define RUN_COMMAND_NO_STDIN   1
 
#define RUN_PERF_CMD   2 /*If this is to be perf sub-command */
 
#define RUN_COMMAND_STDOUT_TO_STDERR   4
 

Enumerations

enum  {
  ERR_RUN_COMMAND_FORK = 10000, ERR_RUN_COMMAND_EXEC, ERR_RUN_COMMAND_PIPE, ERR_RUN_COMMAND_WAITPID,
  ERR_RUN_COMMAND_WAITPID_WRONG_PID, ERR_RUN_COMMAND_WAITPID_SIGNAL, ERR_RUN_COMMAND_WAITPID_NOEXIT
}
 

Functions

int start_command (struct child_process *)
 
int finish_command (struct child_process *)
 
int run_command (struct child_process *)
 
int run_command_v_opt (const char **argv, int opt)
 

Macro Definition Documentation

#define IS_RUN_COMMAND_ERR (   x)    (-(x) >= ERR_RUN_COMMAND_FORK)

Definition at line 13 of file run-command.h.

#define RUN_COMMAND_NO_STDIN   1

Definition at line 53 of file run-command.h.

#define RUN_COMMAND_STDOUT_TO_STDERR   4

Definition at line 55 of file run-command.h.

#define RUN_PERF_CMD   2 /*If this is to be perf sub-command */

Definition at line 54 of file run-command.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
ERR_RUN_COMMAND_FORK 
ERR_RUN_COMMAND_EXEC 
ERR_RUN_COMMAND_PIPE 
ERR_RUN_COMMAND_WAITPID 
ERR_RUN_COMMAND_WAITPID_WRONG_PID 
ERR_RUN_COMMAND_WAITPID_SIGNAL 
ERR_RUN_COMMAND_WAITPID_NOEXIT 

Definition at line 4 of file run-command.h.

Function Documentation

int finish_command ( struct child_process )

Definition at line 185 of file run-command.c.

int run_command ( struct child_process )

Definition at line 190 of file run-command.c.

int run_command_v_opt ( const char **  argv,
int  opt 
)

Definition at line 209 of file run-command.c.

int start_command ( struct child_process )

Definition at line 18 of file run-command.c.