getpagesize(2) System Calls Manual getpagesize(2)NAME
getpagesize - Gets the system page size
SYNOPSIS
#include <unistd.h>
int getpagesize ( void );
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
getpagesize(): XPG4-UNIX
Refer to the standards(5) reference page for more information about industry standards and associated tags.
DESCRIPTION
The getpagesize() function returns the number of bytes in a page. You might need to include this value in parameters to memory management
system calls.
The page size is an operating system page size and might differ from the underlying hardware page size.
RETURN VALUES
The getpagesize() function returns the number of bytes in a page, and is always successful.
RELATED INFORMATION
Functions: brk(2), getrlimit(2), madvise(2), mmap(2), mprotect(2), msync(2), munmap(2)
Routines: sysconf(3)
Standards: standards(5) delim off
getpagesize(2)
Check Out this Related Man Page
getpagesize(3C) Standard C Library Functions getpagesize(3C)NAME
getpagesize - get system page size
SYNOPSIS
#include <unistd.h>
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(_SC_PAGE_SIZE) and sysconf(_SC_PAGESIZE). See sysconf(3C).
RETURN VALUES
The getpagesize() function returns the current page size.
ERRORS
No errors are defined.
USAGE
The value returned by getpagesize() need not be the minimum value that malloc(3C) can allocate. Moreover, the application cannot assume
that an object of this size can be allocated with malloc().
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE 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.10 27 Jun 2000 getpagesize(3C)
I have been asked to put together some coding standards for the project I am assigned to. I have found documented standards for C/C++, Java but was wondering if there is a good place for UNIX scripting (Korn/Bourne) standards?
Does anyone know of a good place to find information on scripting... (3 Replies)