From 55c64fc9cd8ddd7a3d4b3207b9c9c698c7a9ec4b Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Fri, 11 Apr 2008 22:57:54 +0000 Subject: 2008-04-12 Chris Johns * libmisc/shell/shell.c, libmisc/shell/shell.h, libmisc/shell/shell_script.c: Add support to echo the commands to stdout. This is useful with the -v script option to show commands as the run. Also added support to chdir to the directory the task invoking the script is in. * libmisc/shell/extern-cp.h, libmisc/shell/main_cp.c, libmisc/shell/utils-cp.c: Update tro the latest FreeBSD version. * libcsupport/Makefile.am, libcsupport/src/fchown.c: Add fchown support. --- cpukit/libmisc/shell/extern-cp.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'cpukit/libmisc/shell/extern-cp.h') diff --git a/cpukit/libmisc/shell/extern-cp.h b/cpukit/libmisc/shell/extern-cp.h index 614142aa9a..ba6ff9c4de 100644 --- a/cpukit/libmisc/shell/extern-cp.h +++ b/cpukit/libmisc/shell/extern-cp.h @@ -46,21 +46,22 @@ typedef struct { typedef struct { PATH_T to; + int info; uid_t myuid; - int Rflag, fflag, iflag, pflag, rflag, vflag, Nflag; + int fflag, iflag, lflag, nflag, pflag, vflag; mode_t myumask; jmp_buf exit_jmp; } rtems_shell_cp_globals; #define to cp_globals->to +#define info cp_globals->info #define myuid cp_globals->myuid -#define Rflag cp_globals->Rflag #define fflag cp_globals->fflag #define iflag cp_globals->iflag +#define lflag cp_globals->lflag +#define nflag cp_globals->nflag #define pflag cp_globals->pflag -#define rflag cp_globals->rflag #define vflag cp_globals->vflag -#define Nflag cp_globals->Nflag #define myumask cp_globals->myumask #define exit_jump &(cp_globals->exit_jmp) @@ -81,7 +82,10 @@ int copy_link(rtems_shell_cp_globals* cp_globals, FTSENT *, int); int copy_special(rtems_shell_cp_globals* cp_globals, struct stat *, int); int set_utimes(const char *, struct stat *); int setfile(rtems_shell_cp_globals* cp_globals, struct stat *, int); +int preserve_dir_acls(struct stat *, char *, char *); +int preserve_fd_acls(int, int); void usage(); + __END_DECLS #endif /* !_EXTERN_H_ */ -- cgit v1.2.3