|
Coda Distributed File System
|
#include "copyfile.h"
Macros | |
| #define | O_BINARY 0 |
Functions | |
| int | copyfile_seg (int infd, int outfd, uint64_t pos, int64_t count) |
| int | copyfile (int infd, int outfd) |
| int | copyfile_byname (const char *in, const char *out) |
| #define O_BINARY 0 |
| int copyfile | ( | int | fromfd, |
| int | tofd | ||
| ) |
Copy a file to another file
| fromfd | file descriptor of the source file |
| tofd | file descriptor of the destination file |
| int copyfile_byname | ( | const char * | fromname, |
| const char * | toname | ||
| ) |
Copy a file to another file
| fromname | file path of the source file |
| toname | file path of the destination file |
| int copyfile_seg | ( | int | infd, |
| int | outfd, | ||
| uint64_t | pos, | ||
| int64_t | count | ||
| ) |
Copy a segment of a file to another file
| infd | file descriptor of the source file |
| outfd | file descriptor of the destination file |
| pos | offset within the source file |
| count | amount of bytes to be copied |