Re: flock again

2014-09-23 Thread Nicholas Marriott
Don't see anything obvious that needs cdefs.h in there, so I replaced it with types.h On Mon, Sep 22, 2014 at 05:02:29PM +0200, Dagobert Michelsen wrote: > Hi Nicholas, > > Am 22.09.2014 um 16:53 schrieb Dagobert Michelsen : > > Am 22.09.2014 um 16:31 schrieb Nicholas Marriott > > : > >> Well,

Re: flock again

2014-09-22 Thread Dagobert Michelsen
Hi Nicholas, Am 22.09.2014 um 16:53 schrieb Dagobert Michelsen : > Am 22.09.2014 um 16:31 schrieb Nicholas Marriott > : >> Well, I don't have any Solaris boxes but it probably isn't too big a >> change - try this: >> >> diff --git a/compat.h b/compat.h >> index bf6e536..2e433a0 100644 >> --- a/c

Re: flock again

2014-09-22 Thread Dagobert Michelsen
Hi Nicholas, Am 22.09.2014 um 16:31 schrieb Nicholas Marriott : > Well, I don't have any Solaris boxes but it probably isn't too big a > change - try this: > > diff --git a/compat.h b/compat.h > index bf6e536..2e433a0 100644 > --- a/compat.h > +++ b/compat.h > @@ -176,6 +176,13 @@ typedef uint64_

Re: flock again

2014-09-22 Thread Nicholas Marriott
Well, I don't have any Solaris boxes but it probably isn't too big a change - try this: diff --git a/compat.h b/compat.h index bf6e536..2e433a0 100644 --- a/compat.h +++ b/compat.h @@ -176,6 +176,13 @@ typedef uint64_t u_int64_t; #define TTY_NAME_MAX 32 #endif +#ifndef HAVE_FLOCK +#define LOCK

Re: flock again

2014-09-22 Thread Dagobert Michelsen
Hi Nicholas, Am 11.08.2014 um 10:23 schrieb Nicholas Marriott : > From: Nicholas Marriott >> Yes it will have to be a stub, fcntl is useless too. > > I'd add a configure.ac test though and use it on any platform w/o flock not > just Solaris. As this hasn’t been done yet: are you waiting for a

Re: flock again

2014-08-11 Thread Nicholas Marriott
I'd add a configure.ac test though and use it on any platform w/o flock not just Solaris. Original message From: Nicholas Marriott Date: 11/08/2014 09:17 (GMT+00:00) To: Dagobert Michelsen Cc: tmux-users@lists.sourceforge.net Subject: Re: flock again Yes it will

Re: flock again

2014-08-11 Thread Nicholas Marriott
Yes it will have to be a stub, fcntl is useless too. Original message From: Dagobert Michelsen Date: 11/08/2014 08:56 (GMT+00:00) To: Nicholas Marriott Cc: tmux-users@lists.sourceforge.net Subject: Re: flock again Hi Nicholas, Am 10.08.2014 um 10:54 schrieb Nicholas

Re: flock again

2014-08-11 Thread Dagobert Michelsen
Hi Nicholas, Am 10.08.2014 um 10:54 schrieb Nicholas Marriott : > lockf and fcntl are broken (any close on the fd releases all locks) so I > suggest the best option is to create an flock in compat/ that is a no-op and > do without the locking on Solaris. > Or there may be a locking function that

Re: flock again

2014-08-10 Thread Nicholas Marriott
Hi lockf and fcntl are broken (any close on the fd releases all locks) so I suggest the best option is to create an flock in compat/ that is a no-op and do without the locking on Solaris. Or there may be a locking function that has the semantics we need. Original message From