Article View: news.software.nntp
Article #23625Re: Compiling Diablo under Solaris
From: Nate Shockey
Date: Tue, 25 Nov 1997 00:00
Date: Tue, 25 Nov 1997 00:00
37 lines
1581 bytes
1581 bytes
Forrest J. Cavalier III wrote: > > And could someone tell me why getpagesize() is not declared anywhere > in Solaris 2.5? It is supposed to be in unistd.h, it IS in libc, > but a grep on everything in include and include/sys comes up empty. getpagesize is a berkeley compatibility function, and it's prototype is missing from /usr/ucbinclude/unistd.h. Like you said, it _is_ in libc though, so not to worry. You can look at the call and deduce the prototype if you want to add if, but, to make life easier, here is it: int getpagesize(void); Or at least that's what it _should_ be. ;) > The manpage for getpagesize says #include <unistd.h>. Yeah, the appropriate System V function is sysconf. #include <unistd.h> long sysconf(int name); And the call is: some_long_var = sysconf(_SC_PAGESIZE); Cheers! ____ _______ __________________ Nate Shockey underdog@flash.net News Administrator FlashNet Communications
Technical Details
Message-ID:
<347B021C.F25FE8@flash.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<347A5E91.FA74673@dojo.epix.net> <65ehf2$g10$2@news1.epix.net>Show Full Headers
Complete Article Headers
Message-ID: <347B021C.F25FE8@flash.net> Subject: Re: Compiling Diablo under Solaris Date: Tue, 25 Nov 1997 00:00:00 +0000 From: Nate Shockey <underdog@flash.net> References: <347A5E91.FA74673@dojo.epix.net> <65ehf2$g10$2@news1.epix.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 292567555 Organization: FlashNet Communications Reply-To: underdog@flash.net Newsgroups: news.software.nntp