COPY(2) COPY(2) Name copy - Copies one box to another. Synopsis #include <ulib.h> void copy(char* s, char* sc, char* d, char* dc) Description Copy copies the box with name s and constraint sc to the box named d with constraint dc. Both sc and dc must match as said in intro(1). This system call is also used to "read" and "write" memory from user memory. See vm(4) for a description of how to do it. Example copy("/b/fs/a", nil, "/b/fs/b", nil); copy("/b/fs/a", "%", "/b/fs/b", "%"); copy("/b/fs/a", "*!%", "/b/fs/b", "*!%"); copy("/b/fs/a", "*!wave", "/b/fs/b", "*!wave"); The first one copies /b/fs/a to /b/fs/b. The second does the same but requests both boxes to be of the same architecture. The third requests both boxes to be attached to the same network. The last one requests both boxes to be attached to the network named wave. Source /src/b/port/box.c See also intro(2), and cp(1).