madvise man page on BSDOS

Man page or keyword search:  
man Server   6284 pages
apropos Keyword Search (all sections)
Output format
BSDOS logo
[printable version]

MADVISE(2)		    BSD Programmer's Manual		    MADVISE(2)

NAME
     madvise - give advice about use of memory

SYNOPSIS
     #include <sys/types.h>
     #include <sys/mman.h>

     int
     madvise(void *addr, int len, int behav);

DESCRIPTION
     The madvise() system call allows a process that has knowledge of its mem-
     ory behavior to describe it to the system.	 The known behaviors are given
     in <sys/mman.h>:

     #define MADV_NORMAL     0	     /* no further special treatment */
     #define MADV_RANDOM     1	     /* expect random page references */
     #define MADV_SEQUENTIAL 2	     /* expect sequential references */
     #define MADV_WILLNEED   3	     /* will need these pages */
     #define MADV_DONTNEED   4	     /* don't need these pages */
     #define MADV_SPACEAVAIL 5	     /* insure that resources are reserved */

RETURN VALUES
     Upon successful completion, madvise() will return 0; otherwise a value of
     -1 is returned and errno is set to indicate the error.

SEE ALSO
     msync(2),	munmap(2),  mprotect(2),  mincore(2)

HISTORY
     The madvise function first appeared in 4.4BSD.

BUGS
     This call is not yet supported.

BSDI BSD/OS		       October 21, 1997				     1
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server BSDOS

List of man pages available for BSDOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net