NetBSD port

This commit is contained in:
Ulrich Wilkens
2014-02-20 19:19:17 +01:00
committed by Jon Trulson
parent a4f9413950
commit 2712d5f787
94 changed files with 2443 additions and 302 deletions

View File

@@ -4120,15 +4120,19 @@ CheckDeletePermission(
char *parentdir,
char *destinationPath)
{
#if defined(CSRG_BASED)
#if defined(__FreeBSD__) || defined(__OpenBSD__)
struct statfs statbuf;
#elif defined(__NetBSD__)
struct statvfs statbuf;
#else
struct stat statbuf;
#endif
char fname[1024];
#if defined(CSRG_BASED)
#if defined(__FreeBSD__) || defined(__OpenBSD__)
if (statfs(parentdir,&statbuf) < 0) /* does not exist */
#elif defined(__NetBSD__)
if (statvfs(parentdir,&statbuf) < 0) /* does not exist */
#else
if (lstat(parentdir,&statbuf) < 0) /* does not exist */
#endif

View File

@@ -452,15 +452,19 @@ CopyCheckDeletePermission(
char *parentdir,
char *destinationPath)
{
#if defined(CSRG_BASED)
#if defined(__FreeBSD__) || defined(__OpenBSD__)
struct statfs statbuf;
#elif defined(__NetBSD__)
struct statvfs statbuf;
#else
struct stat statbuf;
#endif
char fname[1024];
#if defined(CSRG_BASED)
#if defined(__FreeBSD__) || defined(__OpenBSD__)
if (statfs(parentdir,&statbuf) < 0) /* does not exist */
#elif defined(__NetBSD__)
if (statvfs(parentdir,&statbuf) < 0) /* does not exist */
#else
if (lstat(parentdir,&statbuf) < 0) /* does not exist */
#endif