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
xt_mv(3) FreeBSD Library Functions Manual xt_mv(3)

xt_mv() - Library function equivalent of xt_mv(1)

#include <xtend/file.h>
-lxtend

#include <unistd.h>
#include "file.h"
int     xt_mv(const char *src, const char *dest)

src     Original filename
dest    New filename

Move file from pathname src to pathname dest. First attempt to rename using rename(3). This will fail if src and dest are in different filesystems. Then attempt to copy the file using xt_fast_cp(3), an optimized cross-filesystem file copy routine.

0 on success, otherwise error code from fastcp(3)

char    *old_name, char *new_name;
if ( xt_mv(old_name, new_name) != 0 )
{

fprintf(stderr, "Failed to move %s to %s.n", old_name, new_name);
... }

xt_fast_cp(3)


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

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