+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
/* $TOG: SmConMgmt.c /main/6 1998/04/06 14:35:42 mgreess $ */
/* *
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
#include <stdio.h>
#include <fcntl.h>
-#if !defined(linux)
+#if !defined(__linux__)
#include <nlist.h>
#endif
#include <X11/Intrinsic.h>
/*
* Variables global to this module only
*/
-#if !defined(linux)
+#if !defined(__linux__)
static struct nlist namelist[3];
#endif
static int freemem_loc, gpgslim_loc, gpgslim, freemem;
int
GetMemoryUtilization(void)
{
-#if !defined(linux)
+#if !defined(__linux__)
static int init = 0;
- static kmem;
-#if !defined(SVR4) && !defined(sco) && !defined(hpV4) && !defined(_POWER) && !defined (__osf__)
+ static int kmem;
+#if !defined(SVR4) && !defined(hpV4) && !defined(_POWER) && !defined(CSRG_BASED)
extern void nlist();
#endif
int i;
*
* Description:
* -----------
- * This is the event handler registered to recieve the client message
+ * This is the event handler registered to receive the client message
* from dtwm when a client has beem managed
*
*