Merge branch 'from-hg'

This commit is contained in:
Robert James Clay
2011-08-16 19:05:23 -04:00
682 changed files with 5860 additions and 7741 deletions

View File

@@ -1,6 +1,6 @@
# Makefile for the mbsetup.
# Copyright (c) 1997-2001 by M. Broek.
# $Id$
# $Id: Makefile,v 1.16 2007/05/27 12:50:47 mbse Exp $
include ../Makefile.global

View File

@@ -1,10 +1,9 @@
/*****************************************************************************
*
* $Id$
* Purpose ...............: Monitor Program
*
*****************************************************************************
* Copyright (C) 1997-2007
* Copyright (C) 1997-2011
*
* Michiel Broek FIDO: 2:280/2802
* Beekmansbos 10
@@ -80,7 +79,7 @@ static void die(int onsig)
void ShowSysinfo(void)
{
int ch;
char buf[128], *cnt, *lc;
char buf[128], *lc;
clr_index();
set_color(WHITE, BLACK);
@@ -103,7 +102,7 @@ void ShowSysinfo(void)
if (socket_send(buf) == 0) {
snprintf(buf, 128, "%s", socket_receive());
if (strncmp(buf, "100:7,", 6) == 0) {
cnt = strtok(buf, ",");
strtok(buf, ",");
mbse_mvprintw( 7,26, "%s", strtok(NULL, ","));
mbse_mvprintw( 8,26, "%s", strtok(NULL, ","));
mbse_mvprintw( 9,26, "%s", strtok(NULL, ","));
@@ -125,7 +124,7 @@ void ShowSysinfo(void)
void ShowLastcaller(void)
{
int records, maxrows, ch, i, y, o;
char buf[128], *cnt;
char buf[128];
clr_index();
set_color(WHITE, BLACK);
@@ -144,7 +143,7 @@ void ShowLastcaller(void)
if (socket_send(buf) == 0) {
snprintf(buf, 128, "%s", socket_receive());
if (strncmp(buf, "100:1,", 6) == 0) {
cnt = strtok(buf, ",");
strtok(buf, ",");
records = atoi(strtok(NULL, ";"));
}
}
@@ -161,7 +160,7 @@ void ShowLastcaller(void)
if (socket_send(buf) == 0) {
snprintf(buf, 128, "%s", socket_receive());
if (strncmp(buf, "100:9,", 6) == 0) {
cnt = strtok(buf, ",");
strtok(buf, ",");
mbse_mvprintw(y, 1, "%2d", i);
mbse_mvprintw(y, 4, "%s", cldecode(strtok(NULL, ",")));
mbse_mvprintw(y,19, "%s", cldecode(strtok(NULL, ",")));
@@ -186,7 +185,7 @@ void ShowLastcaller(void)
void system_moni(void)
{
int ch, y, eof;
char *cnt, buf[128];
char buf[128];
time_t start, now;
clr_index();
@@ -220,7 +219,7 @@ void system_moni(void)
*/
eof = 1;
} else {
cnt = strtok(buf, ",");
strtok(buf, ",");
mbse_mvprintw(y, 1, (char *)"%.5s", strtok(NULL, ","));
mbse_mvprintw(y, 7, (char *)"%.6s", strtok(NULL, ","));
mbse_mvprintw(y,14, (char *)"%.8s", cldecode(strtok(NULL, ",")));
@@ -250,7 +249,7 @@ void system_moni(void)
void system_stat(void)
{
int ch;
char buf[256], *cnt;
char buf[256];
time_t now;
clr_index();
@@ -289,12 +288,12 @@ void system_stat(void)
if (socket_send(buf) == 0) {
strncpy(buf, socket_receive(), 256);
set_color(LIGHTGRAY, BLACK);
cnt = strtok(buf, ",");
strtok(buf, ",");
now = atoi(strtok(NULL, ","));
mbse_mvprintw(7, 30, "%s", ctime(&now));
now = atoi(strtok(NULL, ","));
mbse_mvprintw(8, 30, "%s", ctime(&now));
cnt = strtok(NULL, ",");
strtok(NULL, ",");
mbse_mvprintw(9, 30, (char *)"%s ", strtok(NULL, ","));
mbse_mvprintw(10,30, (char *)"%s ", strtok(NULL, ","));
mbse_mvprintw(14,30, (char *)"%s ", strtok(NULL, ","));

View File

@@ -1,7 +1,7 @@
#ifndef _MBMON_H
#define _MBMON_H
/* $Id$ */
/* $Id: mbmon.h,v 1.3 2003/03/24 19:44:39 mbroek Exp $ */
static void die(int);
void ShowSysinfo(void);

View File

@@ -1,6 +1,6 @@
/*****************************************************************************
*
* $Id$
* $Id: mutil.c,v 1.21 2005/10/17 18:02:00 mbse Exp $
* Purpose ...............: Utilities
*
*****************************************************************************

View File

@@ -1,6 +1,6 @@
/*****************************************************************************
*
* $Id$
* $Id: proglock.c,v 1.6 2005/08/28 17:08:04 mbse Exp $
* Purpose ...............: Program Locking
*
*****************************************************************************

View File

@@ -1,7 +1,7 @@
#ifndef _PROGLOCK_H
#define _PROGLOCK_H
/* $Id$ */
/* $Id: proglock.h,v 1.1 2003/08/03 14:08:08 mbroek Exp $ */
int lockprogram(char *);
void ulockprogram(char*);