public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* sysconf(_SC_PAGESIZE) set to 64k
@ 2006-06-15 14:09 Ehren  Jarosek
  2006-06-15 14:23 ` Dave Korn
  0 siblings, 1 reply; 3+ messages in thread
From: Ehren  Jarosek @ 2006-06-15 14:09 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 558 bytes --]

I don't know if this is something I am doing wrong or an issue.

When compiling under cygwin sysconf(_SC_PAGESIZE) returns 65536 (64k)
memory page size.  My understanding is that:

sysconf(_SC_PAGESIZE) * sysconf(_SC_PHYS_PAGES)

should yield the total physical memory size of the machine.  However,
when I do this it yields a very large number (actually overflows my
long).  However, if I multiply sysconf(_SC_PHYS_PAGES) * 4096 it yields
the correct size.

My code works properly under linux.  Attached is my cygcheck.out.


Thanks,
Ehren

[-- Attachment #2: cygcheck.out --]
[-- Type: application/octet-stream, Size: 21431 bytes --]


Cygwin Configuration Diagnostics
Current System Time: Wed Jun 14 14:42:22 2006

Windows XP Professional Ver 5.1 Build 2600 Service Pack 2

Path:	D:\cygwin\usr\local\bin
	D:\cygwin\bin
	D:\cygwin\bin
	D:\cygwin\usr\X11R6\bin
	d:\oracle\ora92\bin
	c:\WINDOWS\system32
	c:\WINDOWS
	c:\WINDOWS\System32\Wbem
	c:\Program Files\Symantec\pcAnywhere\
	c:\Program Files\Intel\DMIX
	d:\workspace\castor-0.9.9\
	d:\workspace\TortoiseSVNSCC\bin
	c:\Program Files\Microsoft Visual Studio\VSS\win32
	D:\cygwin\bin
	D:\cygwin\usr\win32\bin
	c:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT
	c:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin
	c:\Program Files\Microsoft Visual Studio\Common\Tools
	c:\Program Files\Microsoft Visual Studio\VC98\bin

Output from D:\cygwin\bin\id.exe (nontsec)
UID: 11110(ejarosek)    GID: 10545(mkgroup-l-d)
0(root)                 544(Administrators)     545(Users)
1003(Debugger Users)    1009(ORA_DBA)           10545(mkgroup-l-d)

Output from D:\cygwin\bin\id.exe (ntsec)
UID: 11110(ejarosek)    GID: 10545(mkgroup-l-d)
0(root)                 544(Administrators)     545(Users)
1003(Debugger Users)    1009(ORA_DBA)           10545(mkgroup-l-d)

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

USER = 'ejarosek'
PWD = '/cygdrive/d/workspace/MemoryAvailable'
HOME = '/cygdrive/c'
MAKE_MODE = 'unix'

HOMEPATH = '\'
MANPATH = '/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man'
APPDATA = 'C:\Documents and Settings\ejarosek\Application Data'
HOSTNAME = 'ehren'
VS71COMNTOOLS = 'C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\'
TERM = 'cygwin'
PROCESSOR_IDENTIFIER = 'x86 Family 15 Model 4 Stepping 3, GenuineIntel'
WINDIR = 'C:\WINDOWS'
OLDPWD = '/cygdrive/c'
USERDOMAIN = 'RENOVO'
OS = 'Windows_NT'
ALLUSERSPROFILE = 'C:\Documents and Settings\All Users'
!:: = '::\'
TEMP = '/cygdrive/c/DOCUME~1/ejarosek/LOCALS~1/Temp'
COMMONPROGRAMFILES = 'C:\Program Files\Common Files'
LIB = 'C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\;C:\Program Files\Microsoft Visual Studio\VC98\mfc\lib;C:\Program Files\Microsoft Visual Studio\VC98\lib'
QTJAVA = 'C:\Program Files\Java\jre1.5.0_04\lib\ext\QTJava.zip'
USERNAME = 'ejarosek'
JSERV = 'D:\oracle\ora92/Apache/Jserv/conf'
PROCESSOR_LEVEL = '15'
FP_NO_HOST_CHECK = 'NO'
!M: = 'M:\'
SYSTEMDRIVE = 'C:'
__COMPAT_LAYER = 'EnableNXShowUI '
JAVA_HOME = '"C:\Program Files\Java\jdk1.5.0"'
USERPROFILE = 'C:\Documents and Settings\ejarosek'
WXWIN = 'D:\wxWidgets-2.6.2'
PS1 = '\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ '
LOGONSERVER = '\\GOPHERS'
PROCESSOR_ARCHITECTURE = 'x86'
LM_LICENSE_FILE = 'C:\Documents and Settings\ejarosek\My Documents\license.dat;D:\Modeltech_xe_starter\win32xoem\license.dat'
SHLVL = '1'
USERDNSDOMAIN = 'RENOVOSOFTWARE.COM'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
WV_GATEWAY_CFG = 'D:\oracle\ora92\Apache\modplsql\cfg\wdbsvr.app'
HOMEDRIVE = 'M:'
!D: = 'D:\cygwin\bin'
PROMPT = '$P$G'
COMSPEC = 'C:\WINDOWS\system32\cmd.exe'
TMP = '/cygdrive/c/DOCUME~1/ejarosek/LOCALS~1/Temp'
SYSTEMROOT = 'C:\WINDOWS'
PRINTER = '\\gophers\Samsung ML-2150 Series PCL 6'
CVS_RSH = '/bin/ssh'
PROCESSOR_REVISION = '0403'
MSDEVDIR = 'C:\Program Files\Microsoft Visual Studio\Common\MSDev98'
MINGW = 'D:\Program Files\CodeBlocks'
MASH_HOME = 'C:\Program Files\mash'
BAKEFILE_PATHS = 'D:\wxWidgets-2.6.2/build/bakefiles/wxpresets'
INFOPATH = '/usr/local/info:/usr/share/info:/usr/info:'
PROGRAMFILES = 'C:\Program Files'
HOMESHARE = '\\gophers\Home Directories\ejarosek'
NUMBER_OF_PROCESSORS = '4'
INCLUDE = 'C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\include\;C:\Program Files\Microsoft Visual Studio\VC98\atl\include;C:\Program Files\Microsoft Visual Studio\VC98\mfc\include;C:\Program Files\Microsoft Visual Studio\VC98\include'
SESSIONNAME = 'Console'
COMPUTERNAME = 'EHREN'
_ = '/usr/bin/cygcheck'
POSIXLY_CORRECT = '1'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
  (default) = '/cygdrive'
  cygdrive flags = 0x00000022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = 'D:\cygwin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = 'D:\cygwin/bin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = 'D:\cygwin/lib'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

c:  hd  NTFS     20002Mb  85% CP CS UN PA FC     
d:  hd  NTFS     50563Mb  85% CP CS UN PA FC     
e:  cd             N/A    N/A                    
m:  net NTFS    419698Mb  12% CP CS UN PA FC     
z:  net NTFS      8738Mb  73% CP CS UN PA FC     

D:\cygwin      /          system  binmode
D:\cygwin/bin  /usr/bin   system  binmode
D:\cygwin/lib  /usr/lib   system  binmode
.              /cygdrive  system  binmode,cygdrive

Found: D:\cygwin\bin\awk.exe
Found: D:\cygwin\bin\bash.exe
Found: D:\cygwin\bin\cat.exe
Found: D:\cygwin\bin\cp.exe
Found: D:\cygwin\bin\cpp.exe
Not Found: crontab
Found: D:\cygwin\bin\find.exe
Found: D:\cygwin\bin\gcc.exe
Found: D:\cygwin\bin\gdb.exe
Found: D:\cygwin\bin\grep.exe
Found: D:\cygwin\bin\kill.exe
Found: D:\cygwin\bin\ld.exe
Found: D:\cygwin\bin\ls.exe
Found: D:\cygwin\bin\make.exe
Found: D:\cygwin\bin\mv.exe
Not Found: patch
Found: D:\cygwin\bin\perl.exe
Found: D:\cygwin\bin\rm.exe
Found: D:\cygwin\bin\sed.exe
Not Found: ssh
Found: D:\cygwin\bin\sh.exe
Found: D:\cygwin\bin\tar.exe
Found: D:\cygwin\bin\test.exe
Not Found: vi
Not Found: vim

 5388k 2006/05/31 C:\WINDOWS\system32\cygxerces-c27.dll - os=4.0 img=1.0 sys=4.0
                  "cygxerces-c27.dll" v0.0 ts=2006/5/31 14:56
  618k 2006/05/31 C:\WINDOWS\system32\cygxerces-depdom27.dll - os=4.0 img=1.0 sys=4.0
                  "cygxerces-depdom27.dll" v0.0 ts=2006/5/31 14:56
 5388k 2006/05/31 D:\cygwin\usr\local\bin\cygxerces-c27.dll - os=4.0 img=1.0 sys=4.0
                  "cygxerces-c27.dll" v0.0 ts=2006/5/31 14:56
  618k 2006/05/31 D:\cygwin\usr\local\bin\cygxerces-depdom27.dll - os=4.0 img=1.0 sys=4.0
                  "cygxerces-depdom27.dll" v0.0 ts=2006/5/31 14:56
 2862k 2006/05/31 D:\cygwin\usr\local\bin\cygxml2-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygxml2-2.dll" v0.0 ts=2006/5/31 13:25
   91k 2005/11/11 D:\cygwin\bin\cygapr-0-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygapr-0-0.dll" v0.0 ts=2005/11/11 10:03
  160k 2006/02/18 D:\cygwin\bin\cygapr-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygapr-1-0.dll" v0.0 ts=2006/2/18 4:56
   67k 2005/11/11 D:\cygwin\bin\cygaprutil-0-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygaprutil-0-0.dll" v0.0 ts=2005/11/11 11:55
  111k 2006/02/18 D:\cygwin\bin\cygaprutil-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygaprutil-1-0.dll" v0.0 ts=2006/2/18 5:02
   56k 2005/07/09 D:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz2-1.dll" v0.0 ts=2005/7/9 1:09
    7k 2005/11/20 D:\cygwin\bin\cygcharset-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygcharset-1.dll" v0.0 ts=2005/11/19 21:24
    7k 2003/10/19 D:\cygwin\bin\cygcrypt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypt-0.dll" v0.0 ts=2003/10/19 3:57
 1108k 2005/10/17 D:\cygwin\bin\cygcrypto-0.9.7.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto-0.9.7.dll" v0.0 ts=2005/10/17 5:16
 1047k 2005/10/11 D:\cygwin\bin\cygcrypto-0.9.8.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto-0.9.8.dll" v0.0 ts=2005/10/11 8:47
  895k 2004/04/28 D:\cygwin\bin\cygdb-4.2.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb-4.2.dll" v0.0 ts=2004/4/27 11:31
  965k 2005/05/14 D:\cygwin\bin\cygdb-4.3.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb-4.3.dll" v0.0 ts=2005/5/14 8:37
 1156k 2004/04/28 D:\cygwin\bin\cygdb_cxx-4.2.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb_cxx-4.2.dll" v0.0 ts=2004/4/27 11:35
 1240k 2005/05/14 D:\cygwin\bin\cygdb_cxx-4.3.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb_cxx-4.3.dll" v0.0 ts=2005/5/14 8:41
  174k 2004/10/14 D:\cygwin\bin\cygexpat-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygexpat-0.dll" v0.0 ts=2004/10/14 4:34
   40k 2006/03/24 D:\cygwin\bin\cygform-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygform-8.dll" v0.0 ts=2006/3/24 2:16
   45k 2001/04/25 D:\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0
                  "cygform5.dll" v0.0 ts=2001/4/25 1:28
   35k 2002/01/09 D:\cygwin\bin\cygform6.dll - os=4.0 img=1.0 sys=4.0
                  "cygform6.dll" v0.0 ts=2002/1/9 1:03
   48k 2003/08/09 D:\cygwin\bin\cygform7.dll - os=4.0 img=1.0 sys=4.0
                  "cygform7.dll" v0.0 ts=2003/8/9 5:25
   28k 2003/07/20 D:\cygwin\bin\cyggdbm-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm-3.dll" v0.0 ts=2003/7/20 3:58
   30k 2003/08/11 D:\cygwin\bin\cyggdbm-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm-4.dll" v0.0 ts=2003/8/10 22:12
   19k 2003/03/22 D:\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm.dll" v0.0 ts=2002/2/19 22:05
   15k 2003/07/20 D:\cygwin\bin\cyggdbm_compat-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm_compat-3.dll" v0.0 ts=2003/7/20 4:00
   15k 2003/08/11 D:\cygwin\bin\cyggdbm_compat-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm_compat-4.dll" v0.0 ts=2003/8/10 22:13
   78k 2005/11/20 D:\cygwin\bin\cyggettextlib-0-14-5.dll - os=4.0 img=1.0 sys=4.0
                  "cyggettextlib-0-14-5.dll" v0.0 ts=2005/11/19 21:11
   13k 2005/11/20 D:\cygwin\bin\cyggettextpo-0.dll - os=4.0 img=1.0 sys=4.0
                  "cyggettextpo-0.dll" v0.0 ts=2005/11/19 21:11
  163k 2005/11/20 D:\cygwin\bin\cyggettextsrc-0-14-5.dll - os=4.0 img=1.0 sys=4.0
                  "cyggettextsrc-0-14-5.dll" v0.0 ts=2005/11/19 21:11
   17k 2001/06/28 D:\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory4.dll" v0.0 ts=2001/1/6 23:34
   29k 2003/08/10 D:\cygwin\bin\cyghistory5.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory5.dll" v0.0 ts=2003/8/10 19:16
   24k 2006/03/25 D:\cygwin\bin\cyghistory6.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory6.dll" v0.0 ts=2006/3/25 9:05
  947k 2005/11/20 D:\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiconv-2.dll" v0.0 ts=2005/11/19 21:24
   22k 2001/12/13 D:\cygwin\bin\cygintl-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-1.dll" v0.0 ts=2001/12/13 4:28
   37k 2003/08/10 D:\cygwin\bin\cygintl-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-2.dll" v0.0 ts=2003/8/10 17:50
   31k 2005/11/20 D:\cygwin\bin\cygintl-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-3.dll" v0.0 ts=2005/11/19 21:04
   21k 2001/06/20 D:\cygwin\bin\cygintl.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl.dll" v0.0 ts=2001/6/20 13:09
   23k 2006/04/19 D:\cygwin\bin\cygltdl-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygltdl-3.dll" v0.0 ts=2006/4/19 2:19
   48k 2005/11/19 D:\cygwin\bin\cygmagic-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygmagic-1.dll" v0.0 ts=2005/11/19 6:22
   21k 2006/03/24 D:\cygwin\bin\cygmenu-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu-8.dll" v0.0 ts=2006/3/24 2:16
   26k 2001/04/25 D:\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu5.dll" v0.0 ts=2001/4/25 1:27
   20k 2002/01/09 D:\cygwin\bin\cygmenu6.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu6.dll" v0.0 ts=2002/1/9 1:03
   29k 2003/08/09 D:\cygwin\bin\cygmenu7.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu7.dll" v0.0 ts=2003/8/9 5:25
   67k 2006/03/24 D:\cygwin\bin\cygncurses++-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++-8.dll" v0.0 ts=2006/3/24 2:17
  156k 2001/04/25 D:\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++5.dll" v0.0 ts=2001/4/25 1:29
  175k 2002/01/09 D:\cygwin\bin\cygncurses++6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++6.dll" v0.0 ts=2002/1/9 1:03
  227k 2006/03/24 D:\cygwin\bin\cygncurses-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses-8.dll" v0.0 ts=2006/3/23 23:51
  226k 2001/04/25 D:\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses5.dll" v0.0 ts=2001/4/25 1:17
  202k 2002/01/09 D:\cygwin\bin\cygncurses6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses6.dll" v0.0 ts=2002/1/9 1:03
  224k 2003/08/09 D:\cygwin\bin\cygncurses7.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses7.dll" v0.0 ts=2003/8/9 5:24
   91k 2005/11/24 D:\cygwin\bin\cygneon-24.dll - os=4.0 img=1.0 sys=4.0
                  "cygneon-24.dll" v0.0 ts=2005/11/24 7:21
   90k 2006/01/25 D:\cygwin\bin\cygneon-25.dll - os=4.0 img=1.0 sys=4.0
                  "cygneon-25.dll" v0.0 ts=2006/1/25 6:02
   12k 2006/03/24 D:\cygwin\bin\cygpanel-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel-8.dll" v0.0 ts=2006/3/24 2:16
   15k 2001/04/25 D:\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel5.dll" v0.0 ts=2001/4/25 1:27
   12k 2002/01/09 D:\cygwin\bin\cygpanel6.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel6.dll" v0.0 ts=2002/1/9 1:03
   19k 2003/08/09 D:\cygwin\bin\cygpanel7.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel7.dll" v0.0 ts=2003/8/9 5:24
  176k 2005/09/06 D:\cygwin\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre-0.dll" v0.0 ts=2005/9/6 16:49
  299k 2005/09/06 D:\cygwin\bin\cygpcrecpp-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcrecpp-0.dll" v0.0 ts=2005/9/6 17:26
    6k 2005/09/06 D:\cygwin\bin\cygpcreposix-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix-0.dll" v0.0 ts=2005/9/6 17:26
 1249k 2005/12/30 D:\cygwin\bin\cygperl5_8.dll - os=4.0 img=1.0 sys=4.0
                  "cygperl5_8.dll" v0.0 ts=2005/12/29 20:48
   22k 2002/06/09 D:\cygwin\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpopt-0.dll" v0.0 ts=2002/6/9 1:45
  108k 2001/06/28 D:\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline4.dll" v0.0 ts=2001/1/6 23:34
  148k 2003/08/10 D:\cygwin\bin\cygreadline5.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline5.dll" v0.0 ts=2003/8/10 19:16
  152k 2006/03/25 D:\cygwin\bin\cygreadline6.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline6.dll" v0.0 ts=2006/3/25 9:05
  231k 2005/10/17 D:\cygwin\bin\cygssl-0.9.7.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl-0.9.7.dll" v0.0 ts=2005/10/17 5:16
  215k 2005/10/11 D:\cygwin\bin\cygssl-0.9.8.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl-0.9.8.dll" v0.0 ts=2005/10/11 8:47
  203k 2006/03/14 D:\cygwin\bin\cygsvn_client-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_client-1-0.dll" v0.0 ts=2006/3/14 12:13
   45k 2006/03/14 D:\cygwin\bin\cygsvn_delta-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_delta-1-0.dll" v0.0 ts=2006/3/14 12:07
   38k 2006/03/14 D:\cygwin\bin\cygsvn_diff-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_diff-1-0.dll" v0.0 ts=2006/3/14 12:12
   30k 2006/03/14 D:\cygwin\bin\cygsvn_fs-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_fs-1-0.dll" v0.0 ts=2006/3/14 12:09
  172k 2006/03/14 D:\cygwin\bin\cygsvn_fs_base-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_fs_base-1-0.dll" v0.0 ts=2006/3/14 12:08
  127k 2006/03/14 D:\cygwin\bin\cygsvn_fs_fs-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_fs_fs-1-0.dll" v0.0 ts=2006/3/14 12:07
   21k 2006/03/14 D:\cygwin\bin\cygsvn_ra-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_ra-1-0.dll" v0.0 ts=2006/3/14 12:13
  133k 2006/03/14 D:\cygwin\bin\cygsvn_ra_dav-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_ra_dav-1-0.dll" v0.0 ts=2006/3/14 12:12
   42k 2006/03/14 D:\cygwin\bin\cygsvn_ra_local-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_ra_local-1-0.dll" v0.0 ts=2006/3/14 12:09
   87k 2006/03/14 D:\cygwin\bin\cygsvn_ra_svn-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_ra_svn-1-0.dll" v0.0 ts=2006/3/14 12:10
  150k 2006/03/14 D:\cygwin\bin\cygsvn_repos-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_repos-1-0.dll" v0.0 ts=2006/3/14 12:09
  187k 2006/03/14 D:\cygwin\bin\cygsvn_subr-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_subr-1-0.dll" v0.0 ts=2006/3/14 12:07
  200k 2006/03/14 D:\cygwin\bin\cygsvn_wc-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_wc-1-0.dll" v0.0 ts=2006/3/14 12:12
 1430k 2005/11/18 D:\cygwin\bin\cygxml2-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygxml2-2.dll" v0.0 ts=2005/11/18 12:48
   65k 2005/08/23 D:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2005/8/22 22:03
 1763k 2006/01/20 D:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2006/1/20 13:28
    Cygwin DLL version info:
        DLL version: 1.5.19
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 150
        Shared data: 4
        DLL identifier: cygwin1
        Mount registry: 2
        Cygnus registry name: Cygnus Solutions
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Cygwin mount registry name: mounts v2
        Cygdrive flags: cygdrive flags
        Cygdrive prefix: cygdrive prefix
        Cygdrive default prefix: 
        Build date: Fri Jan 20 13:28:43 EST 2006
        CVS tag: cr-0x5ef
        Shared id: cygwin1S4


Can't find the cygrunsrv utility, skipping services check.


Cygwin Package Information
Last downloaded files to: D:\temp\cygwin
Last downloaded files from: ftp://mirrors.kernel.org/sources.redhat.com/cygwin

Package              Version
_update-info-dir     00399-1
alternatives         1.3.20a-2
ash                  20040127-3
astyle               1.15.3-3
autoconf             2.59-2
autoconf2.1          2.13-1
autoconf2.5          2.59-2
automake1.9          1.9.6-1
base-files           3.7-1
base-passwd          2.2-1
bash                 3.1-6
binutils             20050610-1
bzip2                1.0.3-1
clear                1.0-2
coreutils            5.94-1
crypt                1.1-1
cvs                  1.11.17-1
cvsutils             0.2.3-1
cygutils             1.3.0-1
cygwin               1.5.19-4
cygwin-doc           1.4-3
diffutils            2.8.7-1
editrights           1.01-1
expat                1.95.8-1
file                 4.16-1
findutils            4.2.27-1
gawk                 3.1.5-4
gcc-core             3.4.4-1
gcc-g++              3.4.4-1
gcc-mingw            20040810-1
gcc-mingw-core       20050522-1
gcc-mingw-g++        20050522-1
gdb                  20041228-3
gdbm                 1.8.3-7
gettext              0.14.5-1
gettext-devel        0.14.5-1
grep                 2.5.1a-2
groff                1.18.1-2
gzip                 1.3.5-2
indent               2.2.9-1
less                 381-1
libapr0              0.9.7-1
libapr1              1.2.2-1
libaprutil0          0.9.7-1
libaprutil1          1.2.2-1
libbz2_1             1.0.3-1
libcharset1          1.9.2-2
libdb4.2             4.2.52-1
libdb4.3             4.3.28-1
libgdbm              1.8.0-5
libgdbm-devel        1.8.3-7
libgdbm3             1.8.3-3
libgdbm4             1.8.3-7
libgettextpo0        0.14.5-1
libiconv             1.9.2-2
libiconv2            1.9.2-2
libintl              0.10.38-3
libintl1             0.10.40-1
libintl2             0.12.1-3
libintl3             0.14.5-1
libltdl3             1.5.22-1
libncurses5          5.2-1
libncurses6          5.2-8
libncurses7          5.3-4
libncurses8          5.5-2
libneon24            0.24.7-2
libneon25            0.25.5-1
libpcre0             6.3-1
libpopt0             1.6.4-4
libreadline4         4.1-2
libreadline5         4.3-5
libreadline6         5.1-5
libtool1.5           1.5.22-1
libxml2              2.6.22-1
login                1.9-7
m4                   1.4.4-1
make                 3.80-1
man                  1.5p-1
mingw-runtime        3.9-2
mktemp               1.5-3
ncurses              5.5-2
openssl              0.9.8a-1
openssl097           0.9.7i-1
perl                 5.8.7-5
pkg-config           0.20-1
pkgconfig            0.17.2-3
run                  1.1.10-1
sed                  4.1.5-1
subversion           1.3.0-1
tar                  1.15.1-4
tcltk                20030901-1
termcap              20050421-1
terminfo             5.5_20060323-1
texinfo              4.8-3
w32api               3.7-1
wget                 1.10.2-1
which                1.7-1
zlib                 1.2.3-1
Use -h to see help about each section

[-- Attachment #3: Type: text/plain, Size: 218 bytes --]

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: sysconf(_SC_PAGESIZE) set to 64k
  2006-06-15 14:09 sysconf(_SC_PAGESIZE) set to 64k Ehren  Jarosek
@ 2006-06-15 14:23 ` Dave Korn
  2006-06-15 17:24   ` Corinna Vinschen
  0 siblings, 1 reply; 3+ messages in thread
From: Dave Korn @ 2006-06-15 14:23 UTC (permalink / raw)
  To: cygwin

On 15 June 2006 14:56, Ehren Jarosek wrote:

> I don't know if this is something I am doing wrong or an issue.
> 
> When compiling under cygwin sysconf(_SC_PAGESIZE) returns 65536 (64k)
> memory page size.  My understanding is that:
> 
> sysconf(_SC_PAGESIZE) * sysconf(_SC_PHYS_PAGES)
> 
> should yield the total physical memory size of the machine.  However,
> when I do this it yields a very large number (actually overflows my
> long).  However, if I multiply sysconf(_SC_PHYS_PAGES) * 4096 it yields
> the correct size.

  Alas there is a problem with the definition of sysconf: it is supposed to be
the size of the unit of granularity of mmap'ing, but it is also supposed to be
the size of a single pageframe of memory.  While it is a correct assumption on
Linux that these things are one and the same, on 'doze you can only mmap pages
in blocks of 64kB, but the pages themselves (the granularity of RWX access
protection rather than of VAD mapping) are the standard 4kB size.   This is a
limitation of the underlying windows o/s.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: sysconf(_SC_PAGESIZE) set to 64k
  2006-06-15 14:23 ` Dave Korn
@ 2006-06-15 17:24   ` Corinna Vinschen
  0 siblings, 0 replies; 3+ messages in thread
From: Corinna Vinschen @ 2006-06-15 17:24 UTC (permalink / raw)
  To: cygwin

On Jun 15 15:09, Dave Korn wrote:
> On 15 June 2006 14:56, Ehren Jarosek wrote:
> 
> > I don't know if this is something I am doing wrong or an issue.
> > 
> > When compiling under cygwin sysconf(_SC_PAGESIZE) returns 65536 (64k)
> > memory page size.  My understanding is that:
> > 
> > sysconf(_SC_PAGESIZE) * sysconf(_SC_PHYS_PAGES)
> > 
> > should yield the total physical memory size of the machine.  However,
> > when I do this it yields a very large number (actually overflows my
> > long).  However, if I multiply sysconf(_SC_PHYS_PAGES) * 4096 it yields
> > the correct size.
> 
> Alas there is a problem with the definition of sysconf: it is
> supposed to be the size of the unit of granularity of mmap'ing, but
> it is also supposed to be the size of a single pageframe of memory.
> [...]

_SC_PAGESIZE is only for indicating the page size as used in calls to
mmap(2).  POSIX does not demand that _SC_PAGESIZE is actually the
physical page size.

Two quotes from the Linux man pages:

  $ man getpagesize
  [...]
   The  function  getpagesize()  returns  the  number of bytes in a page,
   where a "page" is the thing used where it says in the  description  of
   mmap(2) that files are mapped in page-sized units.

   The size of the kind of pages that mmap uses, is found using

	  #include <unistd.h>
	  long sz = sysconf(_SC_PAGESIZE);


  $ man sysconf
  [...]
   These values also exist, but may not be standard.

   - _SC_PHYS_PAGES
	 The number of pages of physical memory.  Note that it is possi-
	 ble   for   the   product  of  this  value  and  the  value  of
	 _SC_PAGE_SIZE to overflow.


So, actually Ehren's application works on Linux just coincidentally,
since it make invalid assumptions.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-06-15 17:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-15 14:09 sysconf(_SC_PAGESIZE) set to 64k Ehren  Jarosek
2006-06-15 14:23 ` Dave Korn
2006-06-15 17:24   ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).