21 lines
283 B
C
21 lines
283 B
C
/* @(#)mlockall.c 1.1 92/07/30 SMI */
|
|
|
|
/*
|
|
* Copyright (c) 1988 by Sun Microsystems, Inc.
|
|
*/
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/mman.h>
|
|
|
|
/*
|
|
* Function to lock address space in memory.
|
|
*/
|
|
|
|
/*LINTLIBRARY*/
|
|
mlockall(flags)
|
|
int flags;
|
|
{
|
|
|
|
return (mctl(0, 0, MC_LOCKAS, flags));
|
|
}
|