submission of new Windows rwlock code

2003-06-17 Thread Marc M. Adkins
I've re-coded the Windows rwlock based on the OS/2 algorithm implemented by Brian Havard. My test program doesn't show starvation with this algorithm. I'm assuming that the code is stable and works correctly on OS/2, and it's essentially the same code here, plus it passes all the tests I know how

time vs. file time

2003-06-17 Thread Marc M. Adkins
A minor inconsistency, don't know if it's documented anywhere... On Windows apr_time_now() and file modification times are the same. So a test program that prints the current time, creates a file and prints its modification time, and then prints the current time again will print something like:

Re: [Patch] Revised fallback libtool.m4 location in buildconf

2003-06-17 Thread Max Bowsher
Joe Orton wrote: > On Tue, Jun 17, 2003 at 10:15:32PM +0100, Max Bowsher wrote: >> Joe Orton wrote: >>> Hi Max, >>> >>> On Tue, Jun 10, 2003 at 07:09:48PM +0100, Max Bowsher wrote: Below are the patches, one to apr and one to apr-util, revised to use PrintPath. >>> >>> I think it's useful

Re: [Patch] Revised fallback libtool.m4 location in buildconf

2003-06-17 Thread Joe Orton
On Tue, Jun 17, 2003 at 10:15:32PM +0100, Max Bowsher wrote: > Joe Orton wrote: > > Hi Max, > > > > On Tue, Jun 10, 2003 at 07:09:48PM +0100, Max Bowsher wrote: > >> Below are the patches, one to apr and one to apr-util, revised to use > >> PrintPath. > > > > I think it's useful to allow finding li

Re: [Patch] Revised fallback libtool.m4 location in buildconf

2003-06-17 Thread Max Bowsher
Joe Orton wrote: > Hi Max, > > On Tue, Jun 10, 2003 at 07:09:48PM +0100, Max Bowsher wrote: >> Below are the patches, one to apr and one to apr-util, revised to use >> PrintPath. > > I think it's useful to allow finding libtool.m4 in odd places without > requiring an aclocal installation - since th

Re: [Patch] Revised fallback libtool.m4 location in buildconf

2003-06-17 Thread Joe Orton
Hi Max, On Tue, Jun 10, 2003 at 07:09:48PM +0100, Max Bowsher wrote: > Below are the patches, one to apr and one to apr-util, revised to use > PrintPath. I think it's useful to allow finding libtool.m4 in odd places without requiring an aclocal installation - since this can be done with a very si

Re: cvs commit: apr buildconf

2003-06-17 Thread Max Bowsher
[EMAIL PROTECTED] wrote: > jorton 2003/06/17 13:44:25 > > Modified:.buildconf > Log: > Use the location of libtool.m4 given in the LIBTOOL_M4 environment > variable, if set. Is this a "we don't want your patch", or simply a parallel development? I can see the point of pro

Re: [Patch] Revised fallback libtool.m4 location in buildconf

2003-06-17 Thread Cliff Woolley
On Tue, 17 Jun 2003, Max Bowsher wrote: > Am I doing something wrong? No, nothing wrong... the only problem is that there are a limited number of people who deeply grok our build system (I am not one of them), and all of us stay pretty busy most of the time. I've personally got about three patch

APR string question

2003-06-17 Thread Günter Knauf
Hi, in apr_strings.h is defined: APR_DECLARE(int) apr_strnatcmp(char const *a, char const *b); APR_DECLARE(int) apr_strnatcasecmp(char const *a, char const *b); but I wonder that there are no equivalents for strncmp and strncasecmp?? Guenter.

permission problems with SDBM

2003-06-17 Thread Günter Knauf
Hi all, I've problems creating a SDBM database on Linux with both Apache 1.3 and 2.0 SDBM lib; with AP2 I've tried from my module: retval = apr_dbm_open_ex(&dbm, c->cntr_dbmtype, c->cntr_file, APR_DBM_RWCREATE, DEFAULT_DBM_PERM, r->pool); also I have tried with

Re: [Patch] Revised fallback libtool.m4 location in buildconf

2003-06-17 Thread Max Bowsher
Ping? Am I doing something wrong? If the problem is just that all maintainers are busy, can I get a "queued for review" acknowledgement? Thanks, Max. Max Bowsher wrote: > Ping? I got one person saying +1, but no other response. > > > Max. > > > Max Bowsher wrote: >> Below are the patches, o

RE: read/write lockout

2003-06-17 Thread Marc M. Adkins
> >I have code that uses a rwlock, a mutex, a condition, and an > atomic variable > >to provide something approaching fairness (on W2K, I haven't > gotten around > >to testing this on Linux yet). I can post it if anyone is interested. > > The OS/2 implementation (locks/os2/thread_rwlock.c) I wrote

Re: select on pipes and sockets

2003-06-17 Thread William A. Rowe, Jr.
At 02:34 PM 6/16/2003, Juan Rivera wrote: >Instead of using Select, use WSACreateEvent and WSAEventSelect to assign an >event to the socket. Then use WaitOnMultipleObjects to wait on sockets and >pipes at the same time. Juan, This theory is good - if you look at the attached apr/poll/win32/pol

/usr/local/apr/include/apr-0/apr.h:428:2: #error no decision has been made on APR_PATH_MAX for your platform

2003-06-17 Thread Joshua Moore-Oliva
When I compile with -ansi in my CFLAGS, I get /usr/local/apr/include/apr-0/apr.h:428:2: #error no decision has been made on APR_PATH_MAX for your platform However, when ansi is off it works... does anyone have an idea why this is the case? I tend to like the safety of ansi. Josh.