Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
ELFTC_COPYFILE(3)	 BSD Library Functions Manual	     ELFTC_COPYFILE(3)

NAME
     elftc_copyfile -- convenience function to copy data

LIBRARY
     library "libelftc"

SYNOPSIS
     #include <libelftc.h>

     in
     elftc_copyfile(int	ifd, int ofd);

DESCRIPTION
     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.

RETURN VALUES
     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.

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

SEE ALSO
     fstat(2), mmap(2),	munmap(2), read(2), write(2), malloc(3)

BSD			       December	11, 2011			   BSD

NAME | LIBRARY | SYNOPSIS | DESCRIPTION | RETURN VALUES | ERRORS | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=elftc_copyfile&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help