Rename util/ to libutil/

This commit is contained in:
sin
2014-11-17 16:48:01 +00:00
parent ee1e90ebdc
commit 027052f5e5
26 changed files with 26 additions and 26 deletions

20
libutil/fnck.c Normal file
View File

@@ -0,0 +1,20 @@
/* See LICENSE file for copyright and license details. */
#include <sys/stat.h>
#include "../util.h"
void
fnck(const char *a, const char *b, int (*fn)(const char *, const char *))
{
struct stat sta, stb;
if (stat(a, &sta) == 0
&& stat(b, &stb) == 0
&& sta.st_dev == stb.st_dev
&& sta.st_ino == stb.st_ino) {
eprintf("%s -> %s: same file\n", a, b);
}
if (fn(a, b) == -1)
eprintf("%s -> %s:", a, b);
}