aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2017-01-04 01:32:44 -0600
committerRob Landley <rob@landley.net>2017-01-04 01:32:44 -0600
commita1a559e25a19726b3a62267feb5e89bad2fcd01e (patch)
tree7f6942e4a2801e41a027f4ba5db40a47e05a7eab /lib/lib.h
parent4d4ca28acaa44069893d06aea64e304809527b16 (diff)
downloadtoybox-a1a559e25a19726b3a62267feb5e89bad2fcd01e.tar.gz
Some lib fixes: mark xvfork() noinline, make xsendfile() return bytes copied,
make xsocket()'s returned fd CLOEXEC.
Diffstat (limited to 'lib/lib.h')
-rw-r--r--lib/lib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lib.h b/lib/lib.h
index d5a48326..2cb0c07a 100644
--- a/lib/lib.h
+++ b/lib/lib.h
@@ -211,7 +211,7 @@ off_t fdlength(int fd);
void loopfiles_rw(char **argv, int flags, int permissions,
void (*function)(int fd, char *name));
void loopfiles(char **argv, void (*function)(int fd, char *name));
-void xsendfile(int in, int out);
+long long xsendfile(int in, int out);
int wfchmodat(int rc, char *name, mode_t mode);
int copy_tempfile(int fdin, char *name, char **tempname);
void delete_tempfile(int fdin, int fdout, char **tempname);