ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/ihost/ihost.c
Revision 1.54 - (view) (annotate) - [select for diffs]
Tue May 2 06:49:53 2006 UTC (18 years, 7 months ago) by tdb
Branch: MAIN
CVS Tags: HEAD
Changes since 1.53: +1 -0 lines
Diff to previous 1.53
Make ihost ignore NFS file systems.
Probably need to modify the default UDP packet size at some point too.

Revision 1.53 - (view) (annotate) - [select for diffs]
Sat Sep 24 13:30:40 2005 UTC (19 years, 3 months ago) by tdb
Branch: MAIN
Changes since 1.52: +570 -96 lines
Diff to previous 1.52
Add WIN32 support via MINGW. We'll need to add stuff to the README file
about what this requires to build.

All the hard work done by: skel

Revision 1.52 - (view) (annotate) - [select for diffs]
Mon May 31 13:52:27 2004 UTC (20 years, 6 months ago) by tdb
Branch: MAIN
CVS Tags: IHOST_1_5_8
Changes since 1.51: +1 -1 lines
Diff to previous 1.51
Prepare new release of ihost.

Revision 1.51 - (view) (annotate) - [select for diffs]
Mon May 31 13:35:23 2004 UTC (20 years, 6 months ago) by tdb
Branch: MAIN
Changes since 1.50: +168 -156 lines
Diff to previous 1.50
Properly fix for libstatgrab 0.10 (more errors were apparent when I used
-Wall). Add support for libstatgrab 0.10's error reporting. Whitespace
cleanup's - yes, I did it again :-)

Revision 1.50 - (view) (annotate) - [select for diffs]
Sun May 30 17:13:05 2004 UTC (20 years, 6 months ago) by tdb
Branch: MAIN
Changes since 1.49: +22 -22 lines
Diff to previous 1.49
"Fix" ihost to work with libstatgrab 0.10. This is very much a fix, rather
than a proper solution :-)

Revision 1.49 - (view) (annotate) - [select for diffs]
Sun Jan 18 23:29:15 2004 UTC (20 years, 11 months ago) by tdb
Branch: MAIN
Changes since 1.48: +1 -1 lines
Diff to previous 1.48
Correct spelling mistake.

Revision 1.48 - (view) (annotate) - [select for diffs]
Wed Jan 7 11:37:10 2004 UTC (20 years, 11 months ago) by tdb
Branch: MAIN
CVS Tags: IHOST_1_5_7
Changes since 1.47: +1 -1 lines
Diff to previous 1.47
Fix the test of libstatgrab failure. Pete assures me this is right :-)

Revision 1.47 - (view) (annotate) - [select for diffs]
Tue Jan 6 23:05:45 2004 UTC (20 years, 11 months ago) by tdb
Branch: MAIN
Changes since 1.46: +1 -1 lines
Diff to previous 1.46
If I'm gonna change the command line arguments I should update the getopt
line aswell :-)

Revision 1.46 - (view) (annotate) - [select for diffs]
Mon Jan 5 16:48:55 2004 UTC (20 years, 11 months ago) by tdb
Branch: MAIN
Changes since 1.45: +0 -2 lines
Diff to previous 1.45
A few more minor tidies.

Revision 1.45 - (view) (annotate) - [select for diffs]
Mon Jan 5 16:47:09 2004 UTC (20 years, 11 months ago) by tdb
Branch: MAIN
Changes since 1.44: +0 -19 lines
Diff to previous 1.44
Remove some old commented-out code.

Revision 1.44 - (view) (annotate) - [select for diffs]
Mon Jan 5 15:22:17 2004 UTC (20 years, 11 months ago) by pajs
Branch: MAIN
Changes since 1.43: +7 -0 lines
Diff to previous 1.43
Added statgrab_init.

Revision 1.43 - (view) (annotate) - [select for diffs]
Sun Oct 5 12:52:12 2003 UTC (21 years, 2 months ago) by tdb
Branch: MAIN
Changes since 1.42: +27 -25 lines
Diff to previous 1.42
Tweak the option parsing. Made ihost a bit like idar; the server and
port are given as options, and have defaults at compile time.

Also tided up the usage and removed some debugging (?) printf's.

Can someone check this bit of code:

ihost_state.filtermanager_host=strdup(optarg);

I copied that strdup from the existing line of code, but in idar it
wasn't needed. Is it necessary here?

Revision 1.42 - (view) (annotate) - [select for diffs]
Fri Sep 26 21:22:44 2003 UTC (21 years, 3 months ago) by tdb
Branch: MAIN
Changes since 1.41: +1 -1 lines
Diff to previous 1.41
Update some old URL's etc.

Revision 1.41 - (view) (annotate) - [select for diffs]
Fri Aug 22 14:40:11 2003 UTC (21 years, 4 months ago) by pajs
Branch: MAIN
CVS Tags: IHOST_1_5_6
Changes since 1.40: +39 -5 lines
Diff to previous 1.40
Added support to be able to specify the hostname or IP address of the host.
This is mainly useful for machines with multiple NIC's and you want it to be
called something specific (which may not be the IP you use to connect to the
server with)

Revision 1.40 - (view) (annotate) - [select for diffs]
Sun Apr 6 12:08:37 2003 UTC (21 years, 8 months ago) by pajs
Branch: MAIN
CVS Tags: IHOST_1_5_5
Changes since 1.39: +1 -0 lines
Diff to previous 1.39
Fixed to compile on freebsd. ihost required an extra header.
configure.in needed -lkvm to be supplied before statgrab and i added
-ldevstat as statgrab requires this also.

Revision 1.39 - (view) (annotate) - [select for diffs]
Sat Mar 29 18:49:49 2003 UTC (21 years, 9 months ago) by tdb
Branch: MAIN
Changes since 1.38: +2 -2 lines
Diff to previous 1.38
Change #include's to correctly use <> rather than "".

Revision 1.38 - (view) (annotate) - [select for diffs]
Wed Mar 19 21:51:50 2003 UTC (21 years, 9 months ago) by pajs
Branch: MAIN
CVS Tags: IHOST_1_5_3, IHOST_1_5_4
Changes since 1.37: +2 -0 lines
Diff to previous 1.37
File descriptor leak fix.

Revision 1.37 - (view) (annotate) - [select for diffs]
Mon Mar 10 16:01:09 2003 UTC (21 years, 9 months ago) by pajs
Branch: MAIN
CVS Tags: IHOST_1_5_2
Changes since 1.36: +1 -0 lines
Diff to previous 1.36
Bug fix :) , would only write to log file once buffer is filled. (Except
stderr which flushed automatically)

Revision 1.36 - (view) (annotate) - [select for diffs]
Mon Mar 10 08:18:17 2003 UTC (21 years, 9 months ago) by tdb
Branch: MAIN
CVS Tags: IHOST_1_5_1
Changes since 1.35: +1 -1 lines
Diff to previous 1.35
Change swapins->pageins and swapouts->pageouts.

Revision 1.35 - (view) (annotate) - [select for diffs]
Sun Mar 9 21:04:20 2003 UTC (21 years, 9 months ago) by pajs
Branch: MAIN
Changes since 1.34: +1 -1 lines
Diff to previous 1.34
Bug fix. Accidently freeing NULL :)

Revision 1.34 - (view) (annotate) - [select for diffs]
Sun Mar 9 00:21:22 2003 UTC (21 years, 9 months ago) by tdb
Branch: MAIN
Changes since 1.33: +5 -4 lines
Diff to previous 1.33
Add check for strlcat function as Pete requested. This is the sort of
thing configure scripts should be used for ;) It'd be nice to see us
doing this more often, instead of our guess work based on what we know
the OS to be ;)

Revision 1.33 - (view) (annotate) - [select for diffs]
Sat Mar 8 20:41:46 2003 UTC (21 years, 9 months ago) by pajs
Branch: MAIN
Changes since 1.32: +72 -1 lines
Diff to previous 1.32
Created a strlcpy function to get it working with OS's that do not have it.
This function was lifted straight out of openssh code, and its licence for that
function is in the comment for it. I also moved errno around so strlcpy will work
with it.
I've left the
#ifndef HAVE_STRLCAT
line commented out for now until tim modifys the configure stuff to check for it
or not :)

Revision 1.32 - (view) (annotate) - [select for diffs]
Thu Mar 6 12:01:33 2003 UTC (21 years, 9 months ago) by pajs
Branch: MAIN
Changes since 1.31: +1 -1 lines
Diff to previous 1.31
Minor bug fix which made it think that successful config checks failed :)

Revision 1.31 - (view) (annotate) - [select for diffs]
Tue Mar 4 10:44:36 2003 UTC (21 years, 9 months ago) by pajs
Branch: MAIN
Changes since 1.30: +1 -1 lines
Diff to previous 1.30
Stupid middle mouse button paste :)

Revision 1.30 - (view) (annotate) - [select for diffs]
Mon Mar 3 17:07:34 2003 UTC (21 years, 9 months ago) by pajs
Branch: MAIN
Changes since 1.29: +4 -2 lines
Diff to previous 1.29
Bug fix

Revision 1.29 - (view) (annotate) - [select for diffs]
Mon Mar 3 12:32:35 2003 UTC (21 years, 9 months ago) by tdb
Branch: MAIN
CVS Tags: IHOST_1_5
Changes since 1.28: +4 -10 lines
Diff to previous 1.28
Following up on Pete's commit of the new ihost - the new configure stuff.
Also dropped the old libstatgrab.

Revision 1.28 - (view) (annotate) - [select for diffs]
Mon Mar 3 12:18:35 2003 UTC (21 years, 9 months ago) by pajs
Branch: MAIN
Changes since 1.27: +669 -496 lines
Diff to previous 1.27
New re-written ihost to use the new libstatgrab. Also now doesn't
die on errors, and should handle them nicely. Uses the new protocol too.

Revision 1.27 - (view) (annotate) - [select for diffs]
Wed May 29 23:03:53 2002 UTC (22 years, 7 months ago) by tdb
Branch: MAIN
CVS Tags: IHOST_1_0_RC1
Changes since 1.26: +0 -2 lines
Diff to previous 1.26
Moved the definitions of the PID file location and the maximum UDP packet
size to configure options. The version number is also done by configure.

Revision 1.26 - (view) (annotate) - [select for diffs]
Wed May 29 19:41:59 2002 UTC (22 years, 7 months ago) by tdb
Branch: MAIN
Changes since 1.25: +5 -2 lines
Diff to previous 1.25
This ihost now uses autoconf and automake to make a "normal" installation
and distribution ;) It's now far easier to compile. To build from CVS :-
aclocal
autoheader
autoconf
automake -a -c
Then for compiling (end users will only need to do this) :-
./configure
make
make install
To build a distribution :-
make dist

Revision 1.25 - (view) (annotate) - [select for diffs]
Wed May 22 09:01:01 2002 UTC (22 years, 7 months ago) by pajs
Branch: MAIN
Changes since 1.24: +6 -4 lines
Diff to previous 1.24
Minor bug fixes :)

Revision 1.24 - (view) (annotate) - [select for diffs]
Tue May 21 16:55:59 2002 UTC (22 years, 7 months ago) by pajs
Branch: MAIN
Changes since 1.23: +1 -1 lines
Diff to previous 1.23
Update version number...
Should be a fully working system now, but still need some tweaks for "niceness",
and a bit of testing would be nice too :)
All needed functionality however is there.... afaik ;)

Revision 1.23 - (view) (annotate) - [select for diffs]
Tue May 21 16:47:12 2002 UTC (22 years, 7 months ago) by tdb
Branch: MAIN
Changes since 1.22: +1 -0 lines
Diff to previous 1.22
Added URL to GPL headers.

Revision 1.22 - (view) (annotate) - [select for diffs]
Tue May 21 16:04:34 2002 UTC (22 years, 7 months ago) by pajs
Branch: MAIN
Changes since 1.21: +10 -9 lines
Diff to previous 1.21
Critical bug fixes.

Revision 1.21 - (view) (annotate) - [select for diffs]
Tue May 21 15:44:34 2002 UTC (22 years, 7 months ago) by pajs
Branch: MAIN
Changes since 1.20: +2 -15 lines
Diff to previous 1.20
Brain failure :) , now says what its sending sanely, and also says what its recieved.

Revision 1.20 - (view) (annotate) - [select for diffs]
Tue May 21 14:36:23 2002 UTC (22 years, 7 months ago) by pajs
Branch: MAIN
Changes since 1.19: +12 -15 lines
Diff to previous 1.19
Slightly more efficent

Revision 1.19 - (view) (annotate) - [select for diffs]
Tue May 21 14:23:31 2002 UTC (22 years, 7 months ago) by pajs
Branch: MAIN
Changes since 1.18: +16 -0 lines
Diff to previous 1.18
Writing of PID file

Revision 1.18 - (view) (annotate) - [select for diffs]
Tue May 21 14:07:32 2002 UTC (22 years, 7 months ago) by pajs
Branch: MAIN
Changes since 1.17: +173 -67 lines
Diff to previous 1.17
Command line arguments now do what they should.
Message logging improved.

Revision 1.17 - (view) (annotate) - [select for diffs]
Mon May 20 12:28:46 2002 UTC (22 years, 7 months ago) by pajs
Branch: MAIN
Changes since 1.16: +52 -5 lines
Diff to previous 1.16
Proper command line parsing, however doesn't do anything with the options yet :)

Revision 1.16 - (view) (annotate) - [select for diffs]
Sun May 19 19:42:41 2002 UTC (22 years, 7 months ago) by pajs
Branch: MAIN
Changes since 1.15: +22 -2 lines
Diff to previous 1.15
Now sends ip address of host. Doesn't cope with ip changing without at least
a reconfigure signal from the server. Only tested on solaris.

Revision 1.15 - (view) (annotate) - [select for diffs]
Sun May 19 15:14:31 2002 UTC (22 years, 7 months ago) by pajs
Branch: MAIN
Changes since 1.14: +0 -1 lines
Diff to previous 1.14
Didn't mean to commit with the printf in :)

Revision 1.14 - (view) (annotate) - [select for diffs]
Sun May 19 14:58:06 2002 UTC (22 years, 7 months ago) by pajs
Branch: MAIN
Changes since 1.13: +1 -1 lines
Diff to previous 1.13
Fix compile errors on Freebsd

Revision 1.13 - (view) (annotate) - [select for diffs]
Sun May 19 14:44:36 2002 UTC (22 years, 7 months ago) by pajs
Branch: MAIN
Changes since 1.12: +2 -1 lines
Diff to previous 1.12
Counter was not being incremented so the SEQ no was always 0.

Revision 1.12 - (view) (annotate) - [select for diffs]
Sun May 19 12:03:43 2002 UTC (22 years, 7 months ago) by pajs
Branch: MAIN
Changes since 1.11: +2 -1 lines
Diff to previous 1.11
Better header file (strings to string)

Revision 1.11 - (view) (annotate) - [select for diffs]
Sat May 18 18:15:56 2002 UTC (22 years, 7 months ago) by tdb
Branch: MAIN
Changes since 1.10: +19 -0 lines
Diff to previous 1.10
i-scream is now licensed under the GPL. I've added the GPL headers to every
source file, and put a full copy of the license in the appropriate places.
I think I've covered everything. This is going to be a mad commit ;)

Revision 1.10 - (view) (annotate) - [select for diffs]
Fri May 17 13:43:48 2002 UTC (22 years, 7 months ago) by pajs
Branch: MAIN
Changes since 1.9: +22 -22 lines
Diff to previous 1.9
Bug fix, and a minor change on the way i do things since it was broken :)

Revision 1.9 - (view) (annotate) - [select for diffs]
Fri May 17 11:21:17 2002 UTC (22 years, 7 months ago) by pajs
Branch: MAIN
Changes since 1.8: +132 -20 lines
Diff to previous 1.8
Now basic working version. Only tested on solaris.

Revision 1.8 - (view) (annotate) - [select for diffs]
Mon May 13 11:01:27 2002 UTC (22 years, 7 months ago) by pajs
Branch: MAIN
Changes since 1.7: +8 -8 lines
Diff to previous 1.7
Subtle "nice" changes.

Revision 1.7 - (view) (annotate) - [select for diffs]
Mon May 13 09:22:02 2002 UTC (22 years, 7 months ago) by pajs
Branch: MAIN
Changes since 1.6: +21 -28 lines
Diff to previous 1.6
Make it a little more sane again ;)

Revision 1.6 - (view) (annotate) - [select for diffs]
Sun May 12 17:33:21 2002 UTC (22 years, 7 months ago) by pajs
Branch: MAIN
Changes since 1.5: +50 -15 lines
Diff to previous 1.5
Bug fixes so that heartbeat now works.

Revision 1.5 - (view) (annotate) - [select for diffs]
Sun May 12 14:10:45 2002 UTC (22 years, 7 months ago) by pajs
Branch: MAIN
Changes since 1.4: +19 -1 lines
Diff to previous 1.4
Improved the memory managment.

Revision 1.4 - (view) (annotate) - [select for diffs]
Sun May 12 12:00:33 2002 UTC (22 years, 7 months ago) by pajs
Branch: MAIN
Changes since 1.3: +94 -2 lines
Diff to previous 1.3
Untested heartbeat code added. Changed last_modified to char* as we never
have to do any processing on it, so is easier to store it that way.

Revision 1.3 - (view) (annotate) - [select for diffs]
Fri May 10 21:32:38 2002 UTC (22 years, 7 months ago) by pajs
Branch: MAIN
Changes since 1.2: +8 -4 lines
Diff to previous 1.2
Command line parsring

Revision 1.2 - (view) (annotate) - [select for diffs]
Fri May 10 20:05:05 2002 UTC (22 years, 7 months ago) by pajs
Branch: MAIN
Changes since 1.1: +75 -19 lines
Diff to previous 1.1
Compiles and connects to the iscream server and reads in the config.

Revision 1.1 - (view) (annotate) - [select for diffs]
Fri May 10 17:11:30 2002 UTC (22 years, 7 months ago) by pajs
Branch: MAIN
Start of the c ihost work. May compile, may not. It wont do anything though :)

Convenience Links

Links to HEAD: (view) (annotate)

Compare Revisions

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a