/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1985-2010 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* David Korn <dgk@research.att.com> *
* Phong Vo <kpv@research.att.com> *
* *
***********************************************************************/
void _STUB_vmmopen(){}
#else
#include "vmhdr.h"
#if _sys_stat
#endif
#include <fcntl.h>
#ifdef S_IRUSR
#else
#endif
#if _lib_mmap
#else
#endif
/* Create a region to allocate based on mmap()
**
** Written by Kiem-Phong Vo (kpv@research.att.com)
*/
#ifndef MAP_FAILED
#endif
typedef struct _user_s
} User_t;
typedef struct _mmvm_s
{
} Mmvm_t;
typedef struct _mmvmdisc_s
{
} Mmvmdisc_t;
#if __STD_C
#else
char* file; /* file to map data from */
#endif
{
int fd;
goto done;
else if(size == 0)
goto new_f;
/* read the header */
goto done;
goto done;
goto done;
}
else
goto done;
new_f: /* create an initial set of data */
goto done;
if(!base)
goto done;
/* write magic number */
}
done:
if(!base)
{ if(fd >= 0)
fd = -1;
}
return fd;
}
#if __STD_C
#else
#endif
{
{ /* base and size of new map */
/* make room for new space */
/* remap the space */
if(caddr)
else /* bad problem */
}
}
}
#if __STD_C
#else
int type;
#endif
{
return 1;
}
else return 0;
}
return 1; /* freeing of mapped data is already done */
}
else return 0;
}
#if __STD_C
#else
char* file; /* file mapping data from */
#endif
{
int fd;
if(!file)
/* set the amount to round up to on each memory request */
}
}
return vm;
}
#if __STD_C
#else
int key; /* key of data to be set */
int set; /* 1 for setting, 0 for getting */
#endif
{
User_t *u;
break;
if(!set)
else if(u)
return old;
}
else
return data;
}
}
#endif