*BSD News Article 84178


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.Hawaii.Edu!news.uoregon.edu!hunter.premier.net!news.nl.innet.net!INnl.net!feed1.news.erols.com!howland.erols.net!news.mathworks.com!uunet!in3.uu.net!192.174.65.41!01-newsfeed.univie.ac.at!CARNet.hr!dave
From: dave@pc-damir.srce.hr (Drazen Kacar)
Newsgroups: comp.unix.solaris,comp.unix.bsd.misc,comp.unix.internals
Subject: Re: Solaris 2.6
Date: 3 Dec 1996 06:29:28 GMT
Organization: Cardak ni na nebu, ni na zemlji
Lines: 19
Distribution: world
Message-ID: <slrn5a7i75.65.dave@pc-damir.srce.hr>
References: <32986299.AC7@mail.esrin.esa.it> <casper.329abb76@mail.fwi.uva.nl> <vviakfpls.fsf@jlbaker.async.csuohio.edu>
Reply-To: dave@fly.cc.fer.hr
NNTP-Posting-Host: pc-damir.srce.hr
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Newsreader: slrn (0.8.7.1 UNIX)
Xref: euryale.cc.adfa.oz.au comp.unix.solaris:91248 comp.unix.bsd.misc:1664 comp.unix.internals:11433

In article <vviakfpls.fsf@jlbaker.async.csuohio.edu>, jason wrote:
>In article <slrn59q566.3s2.dave@pc-damir.srce.hr> dave@pc-damir.srce.hr (Drazen Kacar) writes:
>
>>char *p;
>
>>p = (char *)((long)p & -getpagesize());
>
>What is wrong with ptrdiff_t in place of long and size_t in place of
>unsigned long?

Nothing, if ptrdiff_t is available everywhere. I don't know if it is. If
not, I have to ifdef anyway.

-- 
Life is a sexually transmitted disease.

dave@fly.cc.fer.hr
dave@zemris.fer.hr