+/*
+ * Copyright 2000, International Business Machines Corporation and others.
+ * All Rights Reserved.
+ *
+ * This software has been released under the terms of the IBM Public
+ * License. For details, see the LICENSE file in the top-level source
+ * directory or online at http://www.openafs.org/dl/license10.html
+ */
-#ifndef __LWP_INCLUDE_
-#define __LWP_INCLUDE_ 1
#if !defined(lint) && !defined(LOCORE) && defined(RCS_HDRS)
#endif
-
-/*
-****************************************************************************
-* Copyright IBM Corporation 1988, 1989 - All Rights Reserved *
-* *
-* Permission to use, copy, modify, and distribute this software and its *
-* documentation for any purpose and without fee is hereby granted, *
-* provided that the above copyright notice appear in all copies and *
-* that both that copyright notice and this permission notice appear in *
-* supporting documentation, and that the name of IBM not be used in *
-* advertising or publicity pertaining to distribution of the software *
-* without specific, written prior permission. *
-* *
-* IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL *
-* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL IBM *
-* BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY *
-* DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER *
-* IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING *
-* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. *
-****************************************************************************
-*/
-
/*******************************************************************\
* *
* Information Technology Center *
* *
\*******************************************************************/
+#ifndef __LWP_INCLUDE_
+#define __LWP_INCLUDE_ 1
+
#if !defined(KERNEL) && !defined(_KMEMUSER) && !defined(AFS_PTHREAD_ENV)
#include <afs/param.h>
#include <setjmp.h>
* cases, and also between machines apparently running the same OS
* version.
*/
+#if defined(AFS_LINUX22_ENV)
+#define AFS_LWP_MINSTACKSIZE (192 * 1024)
+#else
#define AFS_LWP_MINSTACKSIZE (48 * 1024)
+#endif
/* Action to take on stack overflow. */
#define LWP_SOQUIET 1 /* do nothing */