GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
xcp(1) hxtools xcp(1)

xcp — proof-of-concept cp(1) with alternate copying mechanisms

xcp [-d] [-m|--mmap] [-s|--splice] fromfile tofile

Copies the file from src to dst using mmap(2) or splice(2) instead of the read(2)-write(2) cycle that is normally used. mmap may actually be faster than the r/w cycle.

-d
Calls mmap(2) on both the source and destination, and does a memcpy(3).
-m, --mmap
Calls mmap(2) on the source and uses write(2) for the destination.
-s, --splice
Calls splice(2) on a pipe(2) pair. This is silly, but it is what it is because splice(2) does not support file-to-file transfers.
2008-11-11 hxtools

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.