开发者

sendfile() usage on two mmaped files (linux)

开发者 https://www.devze.com 2022-12-24 19:55 出处:网络
Can sendfile() linux syscall be used to send part of file from one mmaped file to other mmaped fi开发者_运维百科le?From sendfile(2):

Can sendfile() linux syscall be used to send part of file from one mmaped file to other mmaped fi开发者_运维百科le?


From sendfile(2):

Presently (Linux 2.6.9): in_fd, must correspond to a file which supports mmap()-like operations (i.e., it cannot be a socket); and out_fd must refer to a socket.

So it looks like the answer is no.

Edit

I think I understand what you are looking for now. Check out splice(2).

0

精彩评论

暂无评论...
验证码 换一张
取 消