NdbHost.h File Reference

#include <sys/param.h>
#include <netdb.h>

Go to the source code of this file.

Defines

#define MAXHOSTNAMELEN   255

Functions

int NdbHost_GetHostName (char *)
int NdbHost_GetProcessId ()


Define Documentation

#define MAXHOSTNAMELEN   255
 

Definition at line 26 of file NdbHost.h.

Referenced by main(), NdbHost_GetHostName(), and print_stats().


Function Documentation

int NdbHost_GetHostName char *   ) 
 

Definition at line 21 of file NdbHost.c.

References MAXHOSTNAMELEN.

Referenced by NDB_COMMAND(), and print_stats().

00022 {
00023   if (gethostname(buf, MAXHOSTNAMELEN) != 0)
00024   {     
00025      return -1;
00026    }
00027   return 0;
00028 }

int NdbHost_GetProcessId  ) 
 

Definition at line 30 of file NdbHost.c.

Referenced by ErrorReporter::formatMessage(), and ArbitTicket::update().

00031 {
00032   return getpid();
00033 }


Generated on Wed Jul 20 21:09:34 2005 for MySQL 5.0.9 Beta by  doxygen 1.4.3