/* BLURB lgpl
Coda File System
Release 6
Copyright (c) 1987-2003 Carnegie Mellon University
Additional copyrights listed below
This code is distributed "AS IS" without warranty of any kind under
the terms of the GNU Library General Public Licence Version 2, as
shown in the file LICENSE. The technical and financial contributors to
Coda are listed in the file CREDITS.
Additional copyrights
none currently
#*/
#ifndef _COPYFILE_H_
#define _COPYFILE_H_
/*
* functions for copying files around
*/
#include <errno.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#define BUF_SIZE 8192 /* size of buffer for looping copy */
#ifdef __cplusplus
extern "C" {
#endif
/* these functions are used to copy files, they return -1 on errors */
int copyfile(int fromfd, int tofd);
int copyfile_byname(const char *fromname, const char *toname);
#ifdef __cplusplus
}
#endif
#endif /* _COPYFILE_H_ */
syntax highlighted by Code2HTML, v. 0.9.1