diff options
| author | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-04-23 18:53:07 +0000 |
|---|---|---|
| committer | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-04-23 18:53:07 +0000 |
| commit | 9788f99c9bc501de79f5e383291c24481bb63c57 (patch) | |
| tree | b6ded0b21428442ba27167d8654410c8ce0c73d3 /include | |
| parent | 9ef67d9ca4a31f46dac4406e0925c77c3c21a017 (diff) | |
| download | busybox-w32-9788f99c9bc501de79f5e383291c24481bb63c57.tar.gz busybox-w32-9788f99c9bc501de79f5e383291c24481bb63c57.tar.bz2 busybox-w32-9788f99c9bc501de79f5e383291c24481bb63c57.zip | |
Rewrite cp and mv to be SUSv2 compliant.
git-svn-id: svn://busybox.net/trunk/busybox@2407 69ca8d6d-28ef-0310-b511-8ec308f3f277
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 c3037973d..d3399b9af 100644 --- a/include/applets.h +++ b/include/applets.h | |||
| @@ -80,8 +80,8 @@ | |||
| 80 | #ifdef BB_CMP | 80 | #ifdef BB_CMP |
| 81 | APPLET(cmp, cmp_main, _BB_DIR_USR_BIN) | 81 | APPLET(cmp, cmp_main, _BB_DIR_USR_BIN) |
| 82 | #endif | 82 | #endif |
| 83 | #ifdef BB_CP_MV | 83 | #ifdef BB_CP |
| 84 | APPLET(cp, cp_mv_main, _BB_DIR_BIN) | 84 | APPLET(cp, cp_main, _BB_DIR_BIN) |
| 85 | #endif | 85 | #endif |
| 86 | #ifdef BB_CUT | 86 | #ifdef BB_CUT |
| 87 | APPLET(cut, cut_main, _BB_DIR_USR_BIN) | 87 | APPLET(cut, cut_main, _BB_DIR_USR_BIN) |
| @@ -269,8 +269,8 @@ | |||
| 269 | #ifdef BB_MT | 269 | #ifdef BB_MT |
| 270 | APPLET(mt, mt_main, _BB_DIR_BIN) | 270 | APPLET(mt, mt_main, _BB_DIR_BIN) |
| 271 | #endif | 271 | #endif |
| 272 | #ifdef BB_CP_MV | 272 | #ifdef BB_MV |
| 273 | APPLET(mv, cp_mv_main, _BB_DIR_BIN) | 273 | APPLET(mv, mv_main, _BB_DIR_BIN) |
| 274 | #endif | 274 | #endif |
| 275 | #ifdef BB_NC | 275 | #ifdef BB_NC |
| 276 | APPLET(nc, nc_main, _BB_DIR_USR_BIN) | 276 | APPLET(nc, nc_main, _BB_DIR_USR_BIN) |
diff --git a/include/libbb.h b/include/libbb.h index 19de73ca9..c47a6689e 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); | |||
| 93 | void add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name); | 93 | void add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name); |
| 94 | void reset_ino_dev_hashtable(void); | 94 | void reset_ino_dev_hashtable(void); |
| 95 | 95 | ||
| 96 | int copy_file(const char *src_name, const char *dst_name, | 96 | int copy_file(const char *source, const char *dest, int flags); |
| 97 | int set_modes, int follow_links, int force_flag, int quiet_flag); | ||
| 98 | int copy_file_chunk(FILE *src_file, FILE *dst_file, unsigned long long chunksize); | 97 | int copy_file_chunk(FILE *src_file, FILE *dst_file, unsigned long long chunksize); |
| 99 | char *buildName(const char *dirName, const char *fileName); | 98 | char *buildName(const char *dirName, const char *fileName); |
| 100 | int makeString(int argc, const char **argv, char *buf, int bufLen); | 99 | int makeString(int argc, const char **argv, char *buf, int bufLen); |
| @@ -255,4 +254,12 @@ extern int gz_open(FILE *compressed_file, int *pid); | |||
| 255 | #define CT_DOS2UNIX 2 | 254 | #define CT_DOS2UNIX 2 |
| 256 | /* extern int convert(char *fn, int ConvType); */ | 255 | /* extern int convert(char *fn, int ConvType); */ |
| 257 | 256 | ||
| 257 | enum { | ||
| 258 | CP_PRESERVE_STATUS = 1, | ||
| 259 | CP_PRESERVE_SYMLINKS = 2, | ||
| 260 | CP_RECUR = 4, | ||
| 261 | CP_FORCE = 8, | ||
| 262 | CP_INTERACTIVE = 16 | ||
| 263 | }; | ||
| 264 | |||
| 258 | #endif /* __LIBBB_H__ */ | 265 | #endif /* __LIBBB_H__ */ |
