/***********************************************************************1* *2* This software is part of the ast package *3* Copyright (c) 1982-2011 AT&T Intellectual Property *4* and is licensed under the *5* Eclipse Public License, Version 1.0 *6* by AT&T Intellectual Property *7* *8* A copy of the License is available at *9* http://www.eclipse.org/org/documents/epl-v10.html *10* (with md5 checksum b35adb5213ca9657e911e9befb180842) *11* *12* Information and Software Systems Research *13* AT&T Research *14* Florham Park NJ *15* *16* David Korn <[email protected]> *17* *18***********************************************************************/19#pragma prototyped2021#include <shell.h>2223#include "FEATURE/externs"2425#if defined(__sun) && _sys_mman && _lib_memcntl && defined(MHA_MAPSIZE_STACK) && defined(MC_HAT_ADVISE)26# undef VM_FLAGS /* solaris vs vmalloc.h symbol clash */27# include <sys/mman.h>28#else29# undef _lib_memcntl30#endif3132typedef int (*Shnote_f)(int, long, int);3334int main(int argc, char *argv[])35{36#if _lib_memcntl37/* advise larger stack size */38struct memcntl_mha mha;39mha.mha_cmd = MHA_MAPSIZE_STACK;40mha.mha_flags = 0;41mha.mha_pagesize = 64 * 1024;42(void)memcntl(NULL, 0, MC_HAT_ADVISE, (caddr_t)&mha, 0, 0);43#endif44return(sh_main(argc, argv, (Shinit_f)0));45}464748