diff options
author | Lukas Larsson <[email protected]> | 2011-11-11 16:19:07 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2011-12-01 14:10:03 +0100 |
commit | 020e988424cf0d15ebab8de50638492defb6f2b5 (patch) | |
tree | a953bbef07196e93619fd7b57c2d6f2783a993b9 /erts/emulator/drivers/common/erl_efile.h | |
parent | 54bdd9a15d2e130c76f76ca322af56b306d02078 (diff) | |
download | otp-020e988424cf0d15ebab8de50638492defb6f2b5.tar.gz otp-020e988424cf0d15ebab8de50638492defb6f2b5.tar.bz2 otp-020e988424cf0d15ebab8de50638492defb6f2b5.zip |
Implement sendfile when there are no async threads
When there are no async threads sendfile will use the
ready_output select on the socket fd to know when to send
data.
The file_desc will also be put in the sending sendfile_state
which buffers all other commands to that file until the
sendfile is done.
Diffstat (limited to 'erts/emulator/drivers/common/erl_efile.h')
-rw-r--r-- | erts/emulator/drivers/common/erl_efile.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/drivers/common/erl_efile.h b/erts/emulator/drivers/common/erl_efile.h index 864b867955..e0b8cfca03 100644 --- a/erts/emulator/drivers/common/erl_efile.h +++ b/erts/emulator/drivers/common/erl_efile.h @@ -162,5 +162,5 @@ int efile_symlink(Efile_error* errInfo, char* old, char* new); int efile_may_openfile(Efile_error* errInfo, char *name); int efile_fadvise(Efile_error* errInfo, int fd, Sint64 offset, Sint64 length, int advise); -int efile_sendfile(Efile_error* errInfo, int in_fd, int out_fd, off_t offset, - size_t *count); +int efile_sendfile(Efile_error* errInfo, int in_fd, int out_fd, + off_t *offset, size_t *nbytes); |