version 1.38, 2014/12/13 10:31:07 |
version 1.39, 2015/01/16 06:40:10 |
|
|
* behaviour |
* behaviour |
*/ |
*/ |
|
|
#include <sys/param.h> |
|
#include <sys/stat.h> |
#include <sys/stat.h> |
|
|
#include <ctype.h> |
#include <ctype.h> |
|
|
backup_file(const char *orig) |
backup_file(const char *orig) |
{ |
{ |
struct stat filestat; |
struct stat filestat; |
char bakname[MAXPATHLEN], *s, *simplename; |
char bakname[PATH_MAX], *s, *simplename; |
dev_t orig_device; |
dev_t orig_device; |
ino_t orig_inode; |
ino_t orig_inode; |
|
|
|
|
char * |
char * |
checked_in(char *file) |
checked_in(char *file) |
{ |
{ |
char *filebase, *filedir, tmpbuf[MAXPATHLEN]; |
char *filebase, *filedir, tmpbuf[PATH_MAX]; |
struct stat filestat; |
struct stat filestat; |
|
|
filebase = basename(file); |
filebase = basename(file); |