RTEMS CPU Kit with SuperCore  4.11.3
Macros | Enumerations | Functions | Variables
main_cp.c File Reference
#include <rtems.h>
#include <rtems/shell.h>
#include <rtems/shellconfig.h>
#include <getopt.h>
#include <sys/param.h>
#include <sys/stat.h>
#include <err.h>
#include <errno.h>
#include <fts.h>
#include <limits.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "internal.h"
#include "extern-cp.h"
Include dependency graph for main_cp.c:

Macros

#define __need_getopt_newlib
 
#define S_ISTXT   0
 
#define STRIP_TRAILING_SLASH(p)
 

Enumerations

enum  op { FILE_TO_FILE, FILE_TO_DIR, DIR_TO_DNE }
 

Functions

int rtems_shell_main_cp (int argc, char *argv[])
 

Variables

rtems_shell_cmd_t rtems_shell_CP_Command
 

Macro Definition Documentation

◆ STRIP_TRAILING_SLASH

#define STRIP_TRAILING_SLASH (   p)
Value:
{ \
while ((p).p_end > (p).p_path + 1 && (p).p_end[-1] == '/') \
*--(p).p_end = 0; \
}

Variable Documentation

◆ rtems_shell_CP_Command

rtems_shell_cmd_t rtems_shell_CP_Command
Initial value:
= {
"cp",
"cp [-R [-H | -L | -P]] [-f | -i] [-pv] src target",
"files",
rtems_shell_main_cp,
NULL,
NULL
}