diff options
author | Matt Kraai | 2001-04-23 18:53:07 +0000 |
---|---|---|
committer | Matt Kraai | 2001-04-23 18:53:07 +0000 |
commit | 91b2855ba8b9918b79dbe4b9188a3acccb41f7b7 (patch) | |
tree | b6ded0b21428442ba27167d8654410c8ce0c73d3 /include | |
parent | 4e9267d76c7dc47064bc80b1f8542453725158d7 (diff) | |
download | busybox-91b2855ba8b9918b79dbe4b9188a3acccb41f7b7.zip busybox-91b2855ba8b9918b79dbe4b9188a3acccb41f7b7.tar.gz |
Rewrite cp and mv to be SUSv2 compliant.
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.h | 8 | ||||
-rw-r--r-- | include/libbb.h | 11 |
2 files changed, 13 insertions, 6 deletions
diff --git a/include/applets.h b/include/applets.h index c303797..d3399b9 100644 --- a/include/applets.h +++ b/include/applets.h @@ -80,8 +80,8 @@ #ifdef BB_CMP APPLET(cmp, cmp_main, _BB_DIR_USR_BIN) #endif -#ifdef BB_CP_MV - APPLET(cp, cp_mv_main, _BB_DIR_BIN) +#ifdef BB_CP + APPLET(cp, cp_main, _BB_DIR_BIN) #endif #ifdef BB_CUT APPLET(cut, cut_main, _BB_DIR_USR_BIN) @@ -269,8 +269,8 @@ #ifdef BB_MT APPLET(mt, mt_main, _BB_DIR_BIN) #endif -#ifdef BB_CP_MV - APPLET(mv, cp_mv_main, _BB_DIR_BIN) +#ifdef BB_MV + APPLET(mv, mv_main, _BB_DIR_BIN) #endif #ifdef BB_NC APPLET(nc, nc_main, _BB_DIR_USR_BIN) diff --git a/include/libbb.h b/include/libbb.h index 19de73c..c47a668 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -93,8 +93,7 @@ int is_in_ino_dev_hashtable(const struct stat *statbuf, char **name); void add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name); void reset_ino_dev_hashtable(void); -int copy_file(const char *src_name, const char *dst_name, - int set_modes, int follow_links, int force_flag, int quiet_flag); +int copy_file(const char *source, const char *dest, int flags); int copy_file_chunk(FILE *src_file, FILE *dst_file, unsigned long long chunksize); char *buildName(const char *dirName, const char *fileName); int makeString(int argc, const char **argv, char *buf, int bufLen); @@ -255,4 +254,12 @@ extern int gz_open(FILE *compressed_file, int *pid); #define CT_DOS2UNIX 2 /* extern int convert(char *fn, int ConvType); */ +enum { + CP_PRESERVE_STATUS = 1, + CP_PRESERVE_SYMLINKS = 2, + CP_RECUR = 4, + CP_FORCE = 8, + CP_INTERACTIVE = 16 +}; + #endif /* __LIBBB_H__ */ |