2006-05-27 14:38:27 +02:00
|
|
|
$NetBSD: patch-ad,v 1.2 2006/05/27 12:38:27 drochner Exp $
|
|
|
|
|
|
|
|
--- base/src/TMapFile.cxx.orig 2006-05-26 17:50:02.000000000 +0200
|
|
|
|
+++ base/src/TMapFile.cxx
|
|
|
|
@@ -104,7 +104,7 @@
|
|
|
|
#include <sys/sem.h>
|
|
|
|
#if defined(R__HPUX) || (defined (R__ALPHA) && !defined(R__FBSD)) || \
|
|
|
|
defined (R__SOLARIS) || defined(R__AIX) || defined(R__HIUX) || \
|
|
|
|
- __GLIBC_MINOR__ > 0
|
|
|
|
+ __GLIBC_MINOR__ > 0 || defined(__NetBSD__)
|
|
|
|
union semun {
|
|
|
|
int val; // value for SETVAL
|
|
|
|
struct semid_ds *buf; // buffer for IPC_STAT & IPC_SET
|
|
|
|
@@ -760,8 +760,7 @@ void TMapFile::CreateSemaphore(int pid)
|
|
|
|
#ifdef HAVE_SEMOP
|
|
|
|
#ifndef WIN32
|
|
|
|
// create semaphore to synchronize access (should use read/write lock)
|
|
|
|
- fSemaphore = semget(IPC_PRIVATE, 1, SEM_R|SEM_A|(SEM_R>>3)|(SEM_A>>3)|
|
|
|
|
- (SEM_R>>6)|(SEM_A>>6));
|
|
|
|
+ fSemaphore = semget(IPC_PRIVATE, 1, 0);
|
import ROOT pkg
citing pkg/DESCR:
The ROOT system provides a set of OO frameworks with all the functionality
needed to handle and analyse large amounts of data in a very efficient way.
Having the data defined as a set of objects, specialised storage methods are
used to get direct access to the separate attributes of the selected objects,
without having to touch the bulk of the data. Included are histograming methods
in 1, 2 and 3 dimensions, curve fitting, function evaluation, minimisation,
graphics and visualization classes to allow the easy setup of an analysis
system that can query and process the data interactively or in batch mode.
Thanks to the builtin CINT C++ interpreter the command language, the scripting,
or macro, language and the programming language are all C++. The interpreter
allows for fast prototyping of the macros since it removes the time consuming
compile/link cycle. It also provides a good environment to learn C++. If more
performance is needed the interactively developed macros can be compiled using
a C++ compiler.
It's not yet perfect - pixmap/icon files are missing because these are
not part of the ROOT source distribution. Most things work anyway.
1999-11-17 17:17:03 +01:00
|
|
|
|
2006-05-27 14:38:27 +02:00
|
|
|
// set semaphore to 1
|
|
|
|
if (fSemaphore != -1) {
|