Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 6160c279b4
Fetching contributors…

Cannot retrieve contributors at this time

87 lines (72 sloc) 1.892 kB
/*
* CPDUP.H
*
* $DragonFly: src/bin/cpdup/cpdup.h,v 1.9 2008/04/14 05:40:51 dillon Exp $
*/
#include <sys/param.h>
#include <sys/time.h>
#include <sys/stat.h>
#include <sys/file.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <utime.h>
#include <dirent.h>
#include <signal.h>
#include <pwd.h>
#include <fnmatch.h>
#include <assert.h>
#ifndef NOMD5
#include "md5.h"
#endif
/* Solaris needs <strings.h> for bzero(), bcopy() and bcmp(). */
#include <strings.h>
#ifdef __sun
#include "compat_sun.h"
#endif
#ifdef __linux
#include "compat_linux.h"
#endif
void logstd(const char *ctl, ...);
void logerr(const char *ctl, ...);
char *mprintf(const char *ctl, ...);
void fatal(const char *ctl, ...);
char *fextract(FILE *fi, int n, int *pc, int skip);
int16_t hc_bswap16(int16_t var);
int32_t hc_bswap32(int32_t var);
int64_t hc_bswap64(int64_t var);
int fsmid_check(int64_t fsmid, const char *dpath);
void fsmid_flush(void);
#ifndef NOMD5
int md5_check(const char *spath, const char *dpath);
void md5_flush(void);
#endif
extern const char *UseCpFile;
extern const char *MD5CacheFile;
extern const char *FSMIDCacheFile;
extern int QuietOpt;
extern int SummaryOpt;
extern int CompressOpt;
extern int ReadOnlyOpt;
extern int DstRootPrivs;
extern int ssh_argc;
extern const char *ssh_argv[];
extern int64_t CountSourceBytes;
extern int64_t CountSourceItems;
extern int64_t CountCopiedItems;
extern int64_t CountSourceReadBytes;
extern int64_t CountTargetReadBytes;
extern int64_t CountWriteBytes;
extern int64_t CountRemovedItems;
#ifdef DEBUG_MALLOC
void *debug_malloc(size_t bytes, const char *file, int line);
void debug_free(void *ptr);
#define malloc(bytes) debug_malloc(bytes, __FILE__, __LINE__)
#define free(ptr) debug_free(ptr)
#endif
Jump to Line
Something went wrong with that request. Please try again.