RTEMS CPU Kit with SuperCore
Data Structures | Macros | Functions | Variables
main_mv.c File Reference
#include <rtems.h>
#include <rtems/shell.h>
#include <rtems/shellconfig.h>
#include <getopt.h>
#include <sys/param.h>
#include <sys/time.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <grp.h>
#include <locale.h>
#include <pwd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "internal.h"
#include "pathnames-mv.h"
#include <setjmp.h>
Include dependency graph for main_mv.c:

Data Structures

struct  rtems_shell_mv_globals
 

Macros

#define __need_getopt_newlib
 
#define fflg   globals->fflg
 
#define iflg   globals->iflg
 
#define vflg   globals->vflg
 
#define stdin_ok   globals->stdin_ok
 
#define exit_jump   &(globals->exit_jmp)
 
#define exit(ec)   rtems_shell_mv_exit(globals, ec)
 
#define do_move(a1, a2)   do_move_mv(globals, a1, a2)
 
#define fastcopy(a1, a2, a3)   fastcopy_mv(globals, a1, a2, a3)
 
#define copy(a1, a2)   copy_mv(globals, a1, a2)
 
#define usage()   usage_mv(globals)
 

Functions

int copy (char *, char *)
 
int do_move (char *, char *)
 
int fastcopy (char *, char *, struct stat *)
 
int main (int, char *[])
 
const char * user_from_uid (uid_t uid, int nouser)
 
char * group_from_gid (gid_t gid, int nogroup)
 
int rtems_shell_main_mv (int argc, char *argv[])
 

Variables

rtems_shell_cmd_t rtems_shell_MV_Command
 

Variable Documentation

◆ rtems_shell_MV_Command

rtems_shell_cmd_t rtems_shell_MV_Command
Initial value:
= {
"mv",
"[-fiv] source target ...",
"files",
rtems_shell_main_mv,
NULL,
NULL
}