Thanks....I found this out this morning.
 
pagesize isnot supported in Linux.
 
Yet another way is getpagesize() function...
 
Thanks anywys...
-Arijit

Brian Raven <[EMAIL PROTECTED]> wrote:
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Arijit
Das
Sent: 23 September 2005 06:08
To: activeperl@listserv.ActiveState.com;
perl-unix-users@listserv.ActiveState.com
Subject: Page Size -- How to get?


As a non-superuser, any idea how can I get the page size of the
underlying unix operating system?


Try:

--------------------------------------------------
use strict;
use warnings;
use POSIX;

my $pagesize = POSIX::sysconf(POSIX::_SC_PAGESIZE);
print "pagesize is $pagesize\n";
----------------------------------------------------

It is possible that this is not defined for your platform. Seems OK on
Solaris and Linux though.

HTH

--
Brian Raven



=================================
Atos Euronext Mark! et Solutions Disclaimer
=================================
The information contained in this e-mail is confidential and solely for the intended addressee(s). Unauthorised reproduction, disclosure, modification, and/or distribution of this email may be unlawful.
If you have received this email in error, please notify the sender immediately and delete it from your system. The views expressed in this message do not necessarily reflect those of Atos Euronext Market Solutions.

L'information contenue dans cet e-mail est confidentielle et uniquement destinee a la (aux) personnes a laquelle (auxquelle(s)) elle est adressee. Toute copie, publication ou diffusion de cet email est interdite. Si cet e-mail vous parvient par erreur, nous vous prions de bien vouloir prevenir l'expediteur immediatement et d'effacer le e-mail et annexes jointes de votre systeme. Le contenu de ce message electronique ne represente pas necessairement la position ou le point de vue d'Atos Euronext! Market Solutions.



Arijit Das
Infosys Technologies Ltd.
Mangalore - 575 006, India
Cell Phone: 9448135200
E-Mail: [EMAIL PROTECTED]


Yahoo! for Good
Click here to donate to the Hurricane Katrina relief effort.
_______________________________________________
Perl-Unix-Users mailing list
Perl-Unix-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to