MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Standard C Library Functions                      getpagesize(3C)



NAME
     getpagesize - get system page size

SYNOPSIS
     #include 

     int getpagesize(void);


DESCRIPTION
     The getpagesize() function returns the number of bytes in  a
     page.  Page  granularity  is  the granularity of many of the
     memory management calls.


     The page size is a system page size and need not be the same
     as the underlying hardware page size.


     The    getpagesize()    function    is     equivalent     to
     sysconf(SCPAGESIZE)    and   sysconf(SCPAGESIZE).   See
     sysconf(3C).

RETURN VALUES
     The getpagesize() function returns the current page size.

ERORS
     No errors are defined.

USAGE
     The value returned by getpagesize() need not be the  minimum
     value  that malloc(3C) can allocate.  Moreover, the applica-
     tion cannot assume that an object of this size can be  allo-
     cated with malloc().

ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     MT-Level                     MT-Safe                     
    


SEE ALSO
     pagesize(1),  brk(2),  getrlimit(2),  mmap(2),  mprotect(2),
     munmap(2), malloc(3C), msync(3C), sysconf(3C), attributes(5)




SunOS 5.11          Last change: 27 Jun 2000                    1



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™