fsendfile(): Break ABI by switching src and dst to match rest of API.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2015-07-06 02:04:28 +02:00
1 parent af39ae5fa9
commit c5366a33da
3 files changed
+21 -4

No files matched your search

+17
View File
@@ -63,6 +63,11 @@ Generic Functions
names: files and directories that must be freed after use. See
the unit test at the bottom for an example.
- `fcopyfile(src, dst)`
Like `copyfile()` but uses already open `FILE *` pointers. Copies
from current file positions to current file positions until EOF.
- `fexist(file)`
Check for the existance of a file, returns True(1) or False(0).
@@ -75,6 +80,18 @@ Generic Functions
Returns the `mode_t` bits of a file or directory.
- `fsendfile(src, dst, len)`
Copy data between file streams, very similar to `fcopyfile()`, but
`dst` is allowed to be `NULL` to be able to read and discard `len`
bytes from `src`.
- `movefile(src, dst)`
Like `copyfile()`, but renames `src` to `dst`, or recreates symlink
with the `dst` name. On successful operation the source is removed
and the function returns POSIX OK (0).
- `rsync(src, dst, delete, *filter())`
Very simple `rsync()` to copy files files and directories