Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

globmem.cc File Reference

#include <string.h>
#include <stddef.h>
#include <stdlib.h>
#include <ctype.h>
#include <math.h>
#include "cms.hh"
#include "globmem.hh"
#include "timer.hh"
#include "rcs_prnt.hh"

Include dependency graph for globmem.cc:

Include dependency graph

Go to the source code of this file.

Defines

#define SEM_DELAY_EPSILON   (1.0E-6)
#define DEFAULT_SEM_DELAY   (1.0E-3)
#define SEM_CHECK_TIME_EPSILON   (1.0E-7)

Functions

int convert2lower (char *dest, char *src, int len)
int convert2upper (char *dest, char *src, int len)

Variables

unsigned long(* get_physical_address_func )(char *)=(unsigned long(*)(char *)) NULL
unsigned long zero = 0
unsigned long one = 0x01010101


Define Documentation

#define SEM_DELAY_EPSILON   (1.0E-6)
 

Definition at line 55 of file globmem.cc.

#define DEFAULT_SEM_DELAY   (1.0E-3)
 

Definition at line 56 of file globmem.cc.

#define SEM_CHECK_TIME_EPSILON   (1.0E-7)
 

Definition at line 57 of file globmem.cc.


Function Documentation

int convert2lower char *    dest,
char *    src,
int    len
[static]
 

Definition at line 70 of file globmem.cc.

00071 {
00072   int i;
00073   for (i = 0; i < len; i++)
00074     {
00075       if (src[i] == 0)
00076         {
00077           dest[i] = 0;
00078           return i;
00079         }
00080       dest[i] = tolower (src[i]);
00081     }
00082   return i;
00083 }

int convert2upper char *    dest,
char *    src,
int    len
[static]
 

Definition at line 86 of file globmem.cc.

Referenced by CMS::CMS(), GLOBMEM::GLOBMEM(), cms_create_from_lines(), and find_proc_and_buffer_lines().

00087 {
00088   int i;
00089   for (i = 0; i < len; i++)
00090     {
00091       if (src[i] == 0)
00092         {
00093           dest[i] = 0;
00094           return i;
00095         }
00096       dest[i] = toupper (src[i]);
00097     }
00098   return i;
00099 }


Variable Documentation

unsigned long(* get_physical_address_func)(char *) = (unsigned long (*)(char *)) NULL
 

Definition at line 64 of file globmem.cc.

unsigned long zero = 0 [static]
 

Definition at line 1293 of file globmem.cc.

unsigned long one = 0x01010101 [static]
 

Definition at line 1294 of file globmem.cc.


Generated on Sun Dec 2 15:57:09 2001 for rcslib by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001