On 08/02/2010 09:42 PM +0100, Alasdair G Kergon wrote: >> +static int _check_semaphore_is_supported() > >> + arg.array = (unsigned short int *) (void *) &seminfo; > > Double cast? > The way I read the man page that could be arg.__buf = &seminfo. True :) OK, I'll use that... Peter