diff options
Diffstat (limited to 'sysutils/xdd/files/patch-initialization.c')
-rw-r--r-- | sysutils/xdd/files/patch-initialization.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sysutils/xdd/files/patch-initialization.c b/sysutils/xdd/files/patch-initialization.c index ea88eee2862b..9444d4af3b02 100644 --- a/sysutils/xdd/files/patch-initialization.c +++ b/sysutils/xdd/files/patch-initialization.c @@ -1,6 +1,6 @@ ---- initialization.c.orig Mon May 29 04:17:28 2006 -+++ initialization.c Mon May 29 04:18:32 2006 -@@ -562,7 +562,7 @@ +--- initialization.c.orig Fri Mar 16 06:54:36 2007 ++++ initialization.c Fri Mar 16 06:56:05 2007 +@@ -628,7 +628,7 @@ * NOTE: This is not supported by all operating systems. */ if (p->target_options & RX_SHARED_MEMORY) { @@ -9,7 +9,7 @@ /* In AIX we need to get memory in a shared memory segment to avoid * the system continually trying to pin each page on every I/O operation */ #if (AIX) -@@ -590,14 +590,14 @@ +@@ -656,14 +656,14 @@ fprintf(xgp->errout,"%s: Shared Memory not supported on this OS - using valloc\n", xgp->progname); p->target_options &= ~RX_SHARED_MEMORY; @@ -26,7 +26,7 @@ rwbuf = valloc(p->iosize); #else rwbuf = malloc(p->iosize); -@@ -684,7 +684,7 @@ +@@ -740,7 +740,7 @@ newlim = liret - (PAGESIZE*8); return; #else @@ -35,7 +35,7 @@ if (getuid() != 0) { fprintf(xgp->errout,"(PID %d) %s: You must run as superuser to lock memory for %s\n", getpid(),xgp->progname, sp); -@@ -833,7 +833,7 @@ +@@ -889,7 +889,7 @@ #endif return; #else @@ -44,25 +44,25 @@ if (getuid() != 0) { return; } -@@ -919,7 +919,7 @@ +@@ -974,7 +974,7 @@ + if (xgp->global_options & RX_NOPROCLOCK) return; - #if !(OSX) -#if (IRIX || SOLARIS || HPUX || AIX || LINUX || ALTIX || OSX) +#if (IRIX || SOLARIS || HPUX || AIX || LINUX || ALTIX || OSX || FreeBSD) if (getuid() != 0) fprintf(xgp->errout,"%s: xdd_schedule_options: You must be super user to lock processes\n",xgp->progname); #endif -@@ -933,7 +933,7 @@ - - /* reset priority */ +@@ -985,7 +985,7 @@ + perror("Reason"); + } if (xgp->global_options & RX_MAXPRI) { -#if (IRIX || SOLARIS || HPUX || AIX || LINUX || ALTIX || OSX) +#if (IRIX || SOLARIS || HPUX || AIX || LINUX || ALTIX || OSX || FreeBSD) if (getuid() != 0) fprintf(xgp->errout,"%s: xdd_schedule_options: You must be super user to max priority\n",xgp->progname); #endif -@@ -1063,7 +1063,7 @@ +@@ -1127,7 +1127,7 @@ #endif #if (IRIX || SOLARIS || HPUX || AIX || ALTIX) struct stat64 statbuf; /* buffer for file statistics */ |