File: file_utils.h

package info (click to toggle)
cado 0.9.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 276 kB
  • sloc: ansic: 1,464; sh: 54; makefile: 16
file content (13 lines) | stat: -rw-r--r-- 438 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef _FILE_UTILS_H
#define _FILE_UTILS_H

/* copyfile copies the file infd (from the current offset) to
	 outfd (from the current offset) */
/* the return value is the number of bytes copied */
ssize_t copyfile(int infd, int outfd);

/* copytemp copies the file whose path is 'inpath' in a temporary file
	 whose pathname has been created by mkstemp(3) using 'outtemplate; */
ssize_t copytemp(char *inpath, char *outtemplate);

#endif