Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Jan 2007 14:59:19 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Cc:        Roman Divacky <rdivacky@freebsd.org>, Perforce Change Reviews <perforce@freebsd.org>
Subject:   Re: PERFORCE change 112379 for review
Message-ID:  <200701031459.20116.jhb@freebsd.org>
In-Reply-To: <20070103123256.GA76983@stud.fit.vutbr.cz>
References:  <200612312353.kBVNrYYY007010@repoman.freebsd.org> <200701021129.54537.jhb@freebsd.org> <20070103123256.GA76983@stud.fit.vutbr.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 03 January 2007 07:32, Divacky Roman wrote:
> On Tue, Jan 02, 2007 at 11:29:54AM -0500, John Baldwin wrote:
> > On Sunday 31 December 2006 18:53, Roman Divacky wrote:
> > > http://perforce.freebsd.org/chv.cgi?CH=112379
> > > 
> > > Change 112379 by rdivacky@rdivacky_witten on 2006/12/31 23:53:30
> > > 
> > > 	Implement SETALL/GETALL IPC primitives. This fixes some LTP testcases.
> > 
> > Are you sure it's actually working?  I thought Linux semid structure was a
> > different size, and GETALL and SETALL try to copyin and copyout data from
> > userland without doing any conversions.
> 
> I only tested with the LTP tests and it fixed all cases there. 
> 
> the [SG]ETALL copies in/out u_char * nsems which looks quite OS independant.
> 
> someone reported that some program doesnt work because of missing 
SETALL/GETALL
> I think that if the one reportes that this patch fixes it we can consider it 
ok.
> (because we have 2 positive reports and 0 negative)
> 
> opinion?

Actually, it copies out an array of shorts so I do think it is ok and
doesn't need any conversions.

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701031459.20116.jhb>