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

elftc_copyfile
convenience function to copy data

library “libelftc”

#include <libelftc.h>
in
elftc_copyfile(int ifd, int ofd);

The function elftc_copyfile() copies the contents of the file referenced by argument ifd to the file referenced by argument ofd.
The argument ifd should contain a file descriptor opened for reading, with its file offset at the beginning of the file.
The argument ofd should contain a file descriptor opened for writing.

Upon successful completion, the value 0 is returned; otherwise the value -1 is returned and the global variable errno is set to indicate the error.

The function elftc_copyfile() may fail with any of the errors returned by fstat(2), malloc(3), mmap(2), munmap(2), read(2) or write(2).

fstat(2), malloc(3), mmap(2), munmap(2), read(2), write(2)
December 11, 2011 FreeBSD 12.0-RELEASE

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.