CVS log for epic5/source/logfiles.c

Epicsol.org
(back) Up to [Epic CVS] / epic5 / source

Request diff between arbitrary revisions


Default branch: MAIN
Bookmark a link to: HEAD / (download)

Revision 1.36 / (view) - annotate - [select for diffs] , Fri Sep 21 02:36:28 2007 UTC (12 months, 2 weeks ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_3_9, epic5-0_3_8, epic5-0_3_7, epic5-0_3_6, HEAD
Changes since 1.35: +4 -2 lines
Diff to previous 1.35
* Add a "rejects" variable to str_to_mask()
* Make str_to_mask() shut up.  Callers should handle error output
* Create a standard_level_warning() handler callers can use.
* Make the consumers of str_to_mask() handle their own error messages. yay!

Revision 1.35 / (view) - annotate - [select for diffs] , Fri May 18 04:30:43 2007 UTC (16 months, 2 weeks ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_3_5, epic5-0_3_4
Changes since 1.34: +2 -2 lines
Diff to previous 1.34
* Add mask_to_(positive|negative)_str to convert masks to shorter strings
* So now mask_to_str() returns strings like "ALL -DCC" if it's shorter!

Revision 1.34 / (view) - annotate - [select for diffs] , Fri Oct 13 20:58:02 2006 UTC (23 months, 3 weeks ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_3_3, epic5-0_3_2
Changes since 1.33: +11 -11 lines
Diff to previous 1.33
This is the start of a major project to normalize the behavior of word
handling in built in functions.  The project involves stipulating that every
place that handles a "word list" define what a "word" is and use it
consistenly, and to output the same type of "words" that it accepts as
input.  This leverages /xdebug dword to control optional support for dwords
in many built in functions.

Revision 1.33 / (view) - annotate - [select for diffs] , Sat May 27 17:45:59 2006 UTC (2 years, 4 months ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_3_1
Changes since 1.32: +25 -1 lines
Diff to previous 1.32
* Add provisional support for renumbering windows with channels/logs/timers

Revision 1.32 / (view) - annotate - [select for diffs] , Mon Mar 14 02:49:37 2005 UTC (3 years, 6 months ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_2_0, epic5-0_0_8, epic5-0_0_7, epic5-0_0_6, epic5-0_0_5, epic5-0_0_4
Changes since 1.31: +1 -2 lines
Diff to previous 1.31
Fix brain-o in previous commit.

Revision 1.31 / (view) - annotate - [select for diffs] , Sat Mar 12 01:40:22 2005 UTC (3 years, 6 months ago) by jnelson
Branch: MAIN
Changes since 1.30: +12 -3 lines
Diff to previous 1.30
* Add $hookctl(SET LIST <type> IMPLIED <string>) though it's off by default.
* If you do turn it on, it shows up as 'h' in $info(o)
* Sort logfiles by refnum, so new refnums always go at the end of the list.
* Fix up 338 again, oops!

Revision 1.30 / (view) - annotate - [select for diffs] , Fri Mar 11 05:02:22 2005 UTC (3 years, 6 months ago) by jnelson
Branch: MAIN
Changes since 1.29: +2 -2 lines
Diff to previous 1.29
* Fix compile error for #define UNAME_HACK
* Fix crash when you do $open(/file/doesnt/exist R)
* Add an /on 338 default handler.
* Fix integer underflow with log file refnums
* Rename STATUS_USER0 to STATUS_USER for backwards compat. oops!
* Whack BRACE_LOAD_HACK, it's been unsupported for a while.  PF loader rules!
* Don't allow /botmode if #define NO_BOTS
* Fix DCC connections instantly "timing out"? (Check on this)
* Whack FLOATING_POINT_SUPPORT and depend only on /set floating_point_math

Revision 1.29 / (view) - annotate - [select for diffs] , Thu Jan 13 16:06:06 2005 UTC (3 years, 8 months ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_0_3
Changes since 1.28: +6 -4 lines
Diff to previous 1.28
Add $logctl(CURRENT) which returns the current operative logfile.
For zlonix.

Revision 1.28 / (view) - annotate - [select for diffs] , Tue Nov 2 23:17:34 2004 UTC (3 years, 11 months ago) by jnelson
Branch: MAIN
Changes since 1.27: +5 -5 lines
Diff to previous 1.27
* Fix $logctl() from epic4.
* ALL/ALL_OFF fix from epic4.

Revision 1.27 / (view) - annotate - [select for diffs] , Tue Aug 24 22:27:24 2004 UTC (4 years, 1 month ago) by jnelson
Branch: MAIN
Changes since 1.26: +2 -2 lines
Diff to previous 1.26
* Nix calls to dcc_connected(<fd>, 0) which were always bogus.
* Create print_arglist() for printing alias arglists, natch.
* Fix crash from /queue -del <name> <num> for <num> = <items> + 1 (rb black)
* Show arglist when creating and listing aliases.
* Fix memory leaks of buckets when user grabs /on set.
* Add a "alternate names" bucket to server data.
* Create a whole new api for querying and creating server refnums.
* Fix crash with /dump on (/dump all)
* Add $serverctl(GET|SET <refnum> ALIAS) get and set server alternate desigs
* Add $serverctl(GET|SET <refnum> ALIASES) get and set entire list.
* Fix memory leak with /on set

Revision 1.26 / (view) - annotate - [select for diffs] , Wed Jun 23 16:57:02 2004 UTC (4 years, 3 months ago) by jnelson
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25
* Fix typo with $logctl(REFNUM <x>), rb Zlonix

Revision 1.25 / (view) - annotate - [select for diffs] , Mon Mar 15 03:24:51 2004 UTC (4 years, 6 months ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_0_2
Changes since 1.24: +9 -9 lines
Diff to previous 1.24
Well, at least it compiles again, but I think i still need at least one
or two sweeps of the code to make sure I got everything proper.

Revision 1.24 / (view) - annotate - [select for diffs] , Fri Mar 12 22:22:00 2004 UTC (4 years, 6 months ago) by jnelson
Branch: MAIN
Changes since 1.23: +7 -6 lines
Diff to previous 1.23
*********** DONT RUN THIS -- IT'S WORK IN PROGRESS -- DONT RUN THIS ***********
* Import epic4 commits 674 through 692, inclusive.
* Import epic4 commits 693 through 710, inclusive (epic4-2.0 final)
* Change _X and _Y macros to LEVEL and LEVELMASK for linux (sigh)
* Add a searchbuf() 8 bit clean byte-finder for future use.
* Convert flood checking, ignore checking, lastlog, logfiles to int masks.
* Convert message_from to int masks.
*********** DONT RUN THIS -- IT'S WORK IN PROGRESS -- DONT RUN THIS ***********

Revision 1.23 / (view) - annotate - [select for diffs] , Tue Dec 16 23:25:45 2003 UTC (4 years, 9 months ago) by jnelson
Branch: MAIN
CVS Tags: epic5-0_0_1
Changes since 1.22: +9 -9 lines
Diff to previous 1.22
EPIC5-0.0.1!  Huzzah!

Revision 1.22 / (view) - annotate - [select for diffs] , Tue Oct 28 05:53:57 2003 UTC (4 years, 11 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_2_5, epic4-1_2_4, epic4-1_2_3, epic4-1_2_2, epic4-1_2_1, epic4-1_2_0, epic4-1_1_17, epic4-1_1_16, epic4-1_1_15, epic4-1_1_14
Changes since 1.21: +2 -2 lines
Diff to previous 1.21
* Add /set wserv_type, either "xterm" or "screen".
* Add malloc_strcat_word_c, add a single word to word list, with "" support
* Convert a bunch of stuff to use malloc_strcat_word_c to honor ""s right.
* GC a bunch of unused code.

Revision 1.21 / (view) - annotate - [select for diffs] , Tue Sep 23 20:49:47 2003 UTC (5 years ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_13
Changes since 1.20: +1 -3 lines
Diff to previous 1.20
* Revert all uses of LOG_CURRENT to LOG_CRAP
* Change all uses of message_to(0) to message_to(-1)
* Fix show_help() to not change to_window, it doesn't need to care about that.
* Fix help_put_it() to not change message_from, doesn't need to care about it.
* Fix /lastlog to use message_to(0) to send all output to current window.
* Don't make output of /log go to current window -- no point to that.
* Teach add_to_screen() to honor from_server's current window for LOG_CURRENT
* And for /set current_window_level as well
* Fix message_from() not to save/restore lastlog level, doesn't need to care.
* All of this pretty much nukes LOG_CURRENT except for /window, HUZZAH!

Revision 1.20 / (view) - annotate - [select for diffs] , Thu Jul 10 12:08:57 2003 UTC (5 years, 2 months ago) by jnelson
Branch: MAIN
Changes since 1.19: +4 -4 lines
Diff to previous 1.19
Overhaul of malloced string handling functions:
* Convert m_[s]c3cat[_s]() to malloc_strcat_wordlist_c()
* Nix m_e3cat(), m_s3cat(), m_s3cat_s(), m_3cat()
* Nix m_ec3cat(), m_sc3cat(), m_sc3cat_s(), m_c3cat().
* Convert m_dupchar() to malloc_dupchar().
* Convert m_strndup() to malloc_strndup().
* Make malloc_strcpy/malloc_strcat/malloc_strcat2/malloc_strcat_wordlist macros
* Convert m_2dup() to malloc_strdup2().
* Convert m_3cat() to malloc_strcat2[_c]().
* Convert m_3dup() to malloc_strdup3().
* Convert m_ec3cat() to malloc_strcat2_c()
* Use strlcat_c() in $repeat() instead of strlcpy(). whee!
* Sanity check first arg to $regcomp(), to avoid crashes.
* Don't pass NULL to bsearch(), even if 'nmem' is 0 [$remws()]
* Nix the original malloc_strcpy (supplanted by malloc_strcpy_c)
* Comment out all the deprecated functions

Revision 1.19 / (view) - annotate - [select for diffs] , Wed Jul 9 20:10:25 2003 UTC (5 years, 2 months ago) by jnelson
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18
Convert m_strdup() to malloc_strdup().

Revision 1.18 / (view) - annotate - [select for diffs] , Wed Jul 9 04:45:22 2003 UTC (5 years, 3 months ago) by jnelson
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17
Cut over m_sprintf() to malloc_sprintf().

Revision 1.17 / (view) - annotate - [select for diffs] , Fri May 9 03:29:52 2003 UTC (5 years, 5 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_12
Changes since 1.16: +10 -10 lines
Diff to previous 1.16
* Rename 'dcc()' to 'dcc_cmd()' so we can use dcc as variable
* Garbage collect unused 'irc_path' global variable.
* Add --with-warns to configure to do FreeBSD "WARNS" like compiler checks
* Many hundreds of changes to improve the "quality of code" in epic, including:
* - Treat all literal strings as (const char *) and fix const correctness.
* - Mopping up all remaining const-correctness issues
* - Do not "launder" a (const char *) to a (char *) in string searches, (ala
    strchr) but rather return a ssize_t offset value.
* - Particular, MatchingBracket() returns (ssize_t) and not (char *).
* - Eliminate all "shadow" variable names by changing them to something else.
* - Eliminate most function decls that do not include a prototype list.
* - Add prototypes for all extern functions that are missing them.
* - Ensure most function pointers include a prototype list.
* - In term.c, most of those (char *)'s are really (const char *)'s.
* - Explicitly specify 'static' functions as 'static'
* - Ensure every function is either 'static' or has a prototype.
* - Eliminate (unsigned) < (signed) type comparisons.
* Hopefully you should not notice any changes!

Revision 1.9.2.2 / (view) - annotate - [select for diffs] , Mon Mar 24 17:53:01 2003 UTC (5 years, 6 months ago) by wd
Branch: wd-devel
Changes since 1.9.2.1: +2 -2 lines
Diff to previous 1.9.2.1 to branch point 1.9 to next main 1.10
Another merge.

Revision 1.16 / (view) - annotate - [select for diffs] , Sun Mar 23 19:44:17 2003 UTC (5 years, 6 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_11
Changes since 1.15: +2 -2 lines
Diff to previous 1.15
* Explicitly set "mask" to 0 in cs_alist_hash(), so it is initialized
* Change type() to typecmd() to avoid name conflicts.
* Change 'dot' to 'dotlocl' to avoid name conflicts.
* Change 'op' to 'reduce' to avoid name conflicts.
* Fix a typo in the error message from /window kill.
* Add a panic to detect larne's recent bug that I fixed, just in case.
* Constify the "path" argument to uzfopen().
* Make sure return value of strlen() is assigned to a 'size_t' not an 'int'.
* Split load() into load() and load1(), load1() reads a file opened by load().
* Now load() is "interpretation-free", and load1() can be replaced.
* Fix various minor compile-time issues.
* Change %P status line expando to give more useful information.

Revision 1.9.2.1 / (view) - annotate - [select for diffs] , Thu Feb 27 15:29:56 2003 UTC (5 years, 7 months ago) by wd
Branch: wd-devel
Changes since 1.9: +66 -19 lines
Diff to previous 1.9
Yikes.  Merged to become consistent with HEAD.  Sorry for all the commits,
I'll be quiet again soon. :)
-wd

Revision 1.15 / (view) - annotate - [select for diffs] , Wed Feb 12 03:44:19 2003 UTC (5 years, 7 months ago) by jnelson
Branch: MAIN
Changes since 1.14: +7 -1 lines
Diff to previous 1.14
Commit 459
* Add back support for $mychannels(#winref)
* Fix null deref with /LOG KILL
* Ignore KICKS based on the victim as well as the kicker.

Revision 1.14 / (view) - annotate - [select for diffs] , Tue Feb 4 02:29:43 2003 UTC (5 years, 8 months ago) by jnelson
Branch: MAIN
Changes since 1.13: +51 -4 lines
Diff to previous 1.13
Commit 451
* Add $logctl(REFNUMS [ACTIVE|INACTIVE|ALL]), return all log refnums, for wd.
* Add an "activity timer" to logfiles to indicate last time written to.
* Add /LOG <refnum> ACTIVITY which updates activity timer w/o writing to log.
* Add $logctl([GET|SET] <refnum> ACTIVITY) to get or set the activity timer.

Revision 1.13 / (view) - annotate - [select for diffs] , Mon Dec 23 15:11:27 2002 UTC (5 years, 9 months ago) by jnelson
Branch: MAIN
CVS Tags: epic4-1_1_9, epic4-1_1_8, epic4-1_1_10
Changes since 1.12: +5 -16 lines
Diff to previous 1.12
* Remove colon at end of RETURN_MSTR so it is like others.
* Unify dgets() and SSL_dgets()
* Add a 4th argument to dgets(), an (SSL *) for ssl reads, NULL for normals
* Integrate SSL stuff more tightly by removing unecessary #ifdef's
* Change 'enable_ssl' to 'try_ssl' to avoid confusion with 'ssl_enabled'
* Remove uneccesary members of (Window)
* #include "functions.h" in any file implementing built in functions.
* panic if ssl op attempted on non-ssl connection.
* Don't call functions in RETURN_* macros. (they're evaled twice)
* Nuke #ifdef 0'd uses of 'ceiling_of_display'

Revision 1.12 / (view) - annotate - [select for diffs] , Thu Dec 19 03:22:59 2002 UTC (5 years, 9 months ago) by jnelson
Branch: MAIN
Changes since 1.11: +3 -3 lines
Diff to previous 1.11
* Use server_list_size() and not number_of_servers outside of server.c
* Use NOSERV and not -1 for "no server"
* Use (Timeval) and not (struct timeval)
* Fix (get|set)_server_sent_*() et al to take server refnum.
* Use parse_server_index() and not my_atol() to parse server refnums
* re-indent quotecmd
* Rename is_server_connected() to is_server_registered
* Make /quote work as long as server is open (not registered)
* Use send_to_aserver() when it can avoid setting from_server unecessarily
* Change sent_to_server and clear_sent_to_server to (set|get)server_sent().
* Change doing_* to get_server_doing_*.
* Use (unsigned short) and not (u_short)
* Use (unsigned long) and not (u_long)
* Make output_reject_ctcp() take a refnum
* Lock a dcc while we are connecting it, just in case. ;-)
* Fix /dcc send -p <port>
* Store protocol enforcements as (get|set)_server_protocol_state().
* Use (Stat) and not (struct stat)
* Rewrite $timerctl() so it works like $logctl()
* Rename is_server_connected() to is_server_registered()
* Fix an off-by-one error with /FOR ... IN ...
* Keep track of both readable and writable fd's with newio stuff.
* Convert server_list to an array of pointers
* When user /server -delete's, leave a gap, don't change refnums around.
* Nix code that handles deleting server refnums.
* New function, new_open_for_writing(), for when we do nonblocking connects.
* Change new_open() to deregister fd as "writable"
* Renovate the notify stuff to take refnums and not just use from_server.
* Renovate /WHO, /ISON, /USERHOST to take refnums and not just use from_server.
* Make everything that uses server_list[] use get_server() instead.
* Make everything capable of dealing with "gaps" in server_list[].
* Use a bunch of macros, to handle with getting and setting server attrs.
* Make as much as possible use refnums as params and not from_server.
* And a lot of other stuff...

Revision 1.11 / (view) - annotate - [select for diffs] , Wed Dec 11 19:20:23 2002 UTC (5 years, 9 months ago) by crazyed
Branch: MAIN
Changes since 1.10: +4 -1 lines
Diff to previous 1.10
* Added functions $asciiq() $chrq() $exec() $timerctl() $tcl() $winline()
  and $floodinfo().
* Altered the two argument version of $read() to ctcp quote the strings it
  returns.
* Added sets FLOOD_RATE_PER and FLOOD_MASKUSER.
* Altered the "accept" mode of the dcc_raw and dcc_connect hooks to refer
  to the local port instead of the remote port.
* Added a "-closein %proc" switch to /exec.
* Altered the arg list mode of /alias to use extractw instead of next_arg.
* Added the documented "words" argument to the above.
* Tuned autoget, mudirc, tabkey.ce and commandqueues.
* Altered /pretend to not chop the string.
* Set about rewriting the flood detection and then decided that it's better
  off being a script.
* Moved the function macros to their own file (functions.h) and replaced
  all the copies that are strewn throughout the source with an #include.
  The exception is array.c which broke when I tried it.
* Moved the ctcp enquoting/dequoting functions to ircaux.c.
* Added some command/function ordering checks to funcs/regress, and a check
  for all the functions that are undocumented.
* Rewrote function chanmodetype() so that it doesn't have all those flakey
  buffering things.  Hopefully it's readable now.  The significant change
  is that if a mode character appears twice in CHANMODES, the first one is
  returned instead of the last.
* Added EPIC::call() in the perl routines and an equivalent under tcl.
  this is designed to call a $function() directly, but it isn't really that
  fast, so I might rip them out again.
* The /wait internals used to store a few other settings, which were taken
  out, so I put them back.
* Fixed a few problems with normalize_filename() around the place.
* Fixed a bug with /timer in which it would never show the timers after a
  callback.

Revision 1.10 / (view) - annotate - [select for diffs] , Thu Nov 28 00:17:09 2002 UTC (5 years, 10 months ago) by jnelson
Branch: MAIN
Changes since 1.9: +3 -1 lines
Diff to previous 1.9
Fix bug where /window delete caused 100% cpu usage
Add /log level which I overlooked.  Oops.

Revision 1.9 / (view) - annotate - [select for diffs] , Fri Oct 18 20:10:23 2002 UTC (5 years, 11 months ago) by jnelson
Branch: MAIN
Branch point for: wd-devel
Changes since 1.8: +14 -12 lines
Diff to previous 1.8
* Change expand_twiddle(), path_search() to take results as params, int retval
* Add normalize_filename(), to do job expand_twiddle() used to do.
* Add isdir(), just because
* Change /CD, /LOAD, /SAVE, /DCC SEND, /DCC GET, to use normalize_filename.
* Change /DCC RESUME, $open(), $which(), $unlink() to use normalize_filename.
* Change $rename(), $rmdir(), $fexist(), $fsize() to use normalize_filename.
* Change $glob(), $globi(), $mkdir(), $chmod() to use normalize_filename.
* Change $ftime(), $randread(), and uzfopen() to use normalize_filename.
* Change /LOG, /SET LOGFILE, servers file to use normalize_filename.
* Fix /LOG so maximum number of targets per log is a compile time #define.
* Revamp expand_twiddle() and uzfopen().
* Fix uzfopen() to look for 'bunzip2' in addition to 'bunzip'.
* Fix bug with /QUEUE -delete
* Remove unused variable in window_scroll().

Revision 1.8 / (view) - annotate - [select for diffs] , Fri Sep 27 16:06:39 2002 UTC (6 years ago) by jnelson
Branch: MAIN
Changes since 1.7: +9 -1 lines
Diff to previous 1.7
Document $logctl() in UPDATES, allow setting/getting of TYPE in $logctl().

Revision 1.7 / (view) - annotate - [select for diffs] , Fri Sep 6 18:38:12 2002 UTC (6 years, 1 month ago) by jnelson
Branch: MAIN
Changes since 1.6: +4 -4 lines
Diff to previous 1.6
Fix /log not logging anything due to botched test.

Revision 1.6 / (view) - annotate - [select for diffs] , Fri Sep 6 18:28:29 2002 UTC (6 years, 1 month ago) by jnelson
Branch: MAIN
Changes since 1.5: +4 -2 lines
Diff to previous 1.5
Add server refnum to /log list and /log describe.

Revision 1.5 / (view) - annotate - [select for diffs] , Fri Sep 6 03:01:42 2002 UTC (6 years, 1 month ago) by jnelson
Branch: MAIN
Changes since 1.4: +5 -2 lines
Diff to previous 1.4
Fix add_to_logfiles to handle target == NULL properly. Doh!

Revision 1.4 / (view) - annotate - [select for diffs] , Tue Sep 3 12:31:31 2002 UTC (6 years, 1 month ago) by jnelson
Branch: MAIN
Changes since 1.3: +2 -1 lines
Diff to previous 1.3
Definitely gotta make sure every log defaults to ALL by default.

Revision 1.3 / (view) - annotate - [select for diffs] , Tue Sep 3 11:45:07 2002 UTC (6 years, 1 month ago) by jnelson
Branch: MAIN
Changes since 1.2: +103 -45 lines
Diff to previous 1.2
Ok.  I think this is ready to be tested now.
Please be patient with me while i debug this!

Revision 1.2 / (view) - annotate - [select for diffs] , Tue Sep 3 11:10:02 2002 UTC (6 years, 1 month ago) by jnelson
Branch: MAIN
Changes since 1.1: +151 -17 lines
Diff to previous 1.1
More work on the /LOG command.  DON'T BE USING THIS YET!

Revision 1.1 / (view) - annotate - [select for diffs] , Tue Sep 3 10:43:12 2002 UTC (6 years, 1 month ago) by jnelson
Branch: MAIN
Commit the current /LOG command and $logctl() function.
These are nowhere near ready to be used at this point.  I am still working
on them, but this is good enough if you want to take a look at it.

THINGS WILL STILL CHANGE FROM THIS POINT.  DON'T BE USING THIS YET.

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Diffs between and
Type of Diff should be a

View only Branch:
Sort log by:

CVS Admin
Powered by
ViewCVS 0.9.2