]> git.pond.sub.org Git - empserver/log
empserver
18 years ago(EFF_OWNER): The assertion that EFF_OWNER implies ef_read() sets
Markus Armbruster [Sun, 29 May 2005 14:14:33 +0000 (14:14 +0000)]
(EFF_OWNER): The assertion that EFF_OWNER implies ef_read() sets
player->owner is no longer used.  Use it to indicate that owner can be
accessed through struct genitem, similar to EFF_XY and EFF_GROUP.
(xdump): Fix ownership checking.  Old version worked only when
nxtitem() set player->owner.

(empfile): Set EFF_OWNER for EF_LOST.  This fixes `xdump lost'
disclosing other countries' losses.
(loststr): Document implications of EFF_OWNER.

(empfile): Set EFF_OWNER for EF_NATION.
(natstr): Rearrange members for EFF_OWNER, document.
(nat_ca): Unused so far.  Clean it up, add most missing selectors.
(fileinit): Use it.  This implements `xdump nation'.

(fileinit): Simplify setting map file size.

18 years ago(nxtitem): Skipped unowned sectors (could not occur), ships, planes,
Markus Armbruster [Sun, 29 May 2005 13:15:56 +0000 (13:15 +0000)]
(nxtitem): Skipped unowned sectors (could not occur), ships, planes,
land units and nukes for selection type NS_LIST.  Thus, unowned items
explicitly selected by item number are skipped, while the same items
selected implicitely by group, area or whatever are not.  This makes
no sense.  Some callers break the nstr_item abstraction to prevent the
skipping, so they get all items regardless of how they were selected.
All other callers filter out unowned items.  This skipping misfeature
dates back to the very oldest known versions of Empire.  Remove it.
Also remove skipping prevention hacks from callers.

(tend_nxtitem): Now identical to nxtitem(), except it lacks some extra
normalization of item coordinates, which should have no effect.
Replace by nxtitem().

18 years ago(findlost): Static linkage.
Markus Armbruster [Sat, 28 May 2005 16:04:08 +0000 (16:04 +0000)]
(findlost): Static linkage.

18 years ago(LIBS, NTLIBS): Remove libsubs.a.
Markus Armbruster [Sat, 28 May 2005 16:02:46 +0000 (16:02 +0000)]
(LIBS, NTLIBS): Remove libsubs.a.

18 years ago(main): Fix checking of ef_open()'s value. Fixes program exit status
Markus Armbruster [Sat, 28 May 2005 15:57:17 +0000 (15:57 +0000)]
(main): Fix checking of ef_open()'s value.  Fixes program exit status
when files can't be opened.

(logerror): The version from libcommon.a does the right thing since
log.c rev. 1.17.  Use it, remove local version.

(log_last_commands): No longer referenced by library code, remove.

18 years ago(ef_write): Don't call log_last_commands() directly, use oops(). If
Markus Armbruster [Sat, 28 May 2005 15:52:29 +0000 (15:52 +0000)]
(ef_write): Don't call log_last_commands() directly, use oops().  If
it's worth logging commands, then it's worth dumping core.

18 years ago(debug): Move to log.c, so other programs don't have to define debug
Markus Armbruster [Sat, 28 May 2005 15:34:21 +0000 (15:34 +0000)]
(debug): Move to log.c, so other programs don't have to define debug
themselves just to use logerror().

18 years agoClean up the previous revision; no functional changes.
Markus Armbruster [Sat, 28 May 2005 08:46:33 +0000 (08:46 +0000)]
Clean up the previous revision; no functional changes.

18 years agoUpdate patch for some minor offset changes.
Marc Olzheim [Sat, 28 May 2005 08:44:57 +0000 (08:44 +0000)]
Update patch for some minor offset changes.

18 years agoUpdate patch for pr.c:1.12
Marc Olzheim [Sat, 28 May 2005 08:44:09 +0000 (08:44 +0000)]
Update patch for pr.c:1.12

18 years agoRemove some redundant casts.
Markus Armbruster [Sat, 28 May 2005 08:37:52 +0000 (08:37 +0000)]
Remove some redundant casts.

18 years agoClean up the previous revision. No functional changes.
Markus Armbruster [Sat, 28 May 2005 08:25:28 +0000 (08:25 +0000)]
Clean up the previous revision.  No functional changes.

18 years ago(nxtitemp): Remove last parameter. Non-zero argument doesn't make
Markus Armbruster [Sat, 28 May 2005 08:22:42 +0000 (08:22 +0000)]
(nxtitemp): Remove last parameter.  Non-zero argument doesn't make
sense and is never passed.  Callers changed.

18 years agoDocument implications of EFF_OWNER.
Markus Armbruster [Sat, 28 May 2005 08:20:07 +0000 (08:20 +0000)]
Document implications of EFF_OWNER.

18 years agoDocument struct equivalence hack and implications of EFF_XY and
Markus Armbruster [Sat, 28 May 2005 08:03:31 +0000 (08:03 +0000)]
Document struct equivalence hack and implications of EFF_XY and
EFF_GROUP.

18 years agoClient UTF-8 support.
Markus Armbruster [Fri, 27 May 2005 17:00:25 +0000 (17:00 +0000)]
Client UTF-8 support.
(login): New parameter utf8.  If set, request option utf-8 from
server.
(expect, recvline): Split recvline() out of expect().  Replace or
remove some unhelpful diagnostics.
(eight_bit_clean): New.
(screen): If eight_bit_clean is set, highlighting is switched with
SO/SI.  Else characters with MSB set are highlighted.
(main): New option -u to request UTF-8 and set eight_bit_clean.

18 years agoLogin options.
Markus Armbruster [Fri, 27 May 2005 16:31:19 +0000 (16:31 +0000)]
Login options.
(player): New member flags.
(PF_UTF8, NF_UTF8): New PF_UTF8 replaces NF_UTF8.  Users changed.
(options_cmd): New.
(login_coms): New command `options'.
(toggle): Revert to the previous rev.

18 years ago(coun_cmd): Fix return value when country doesn't exist. No
Markus Armbruster [Fri, 27 May 2005 16:24:55 +0000 (16:24 +0000)]
(coun_cmd): Fix return value when country doesn't exist.  No
functional change, as caller treats old and fixed value the same.

18 years ago(uprmtrd): Remove the unsigned char cast for cp, not necessary.
Ron Koenderink [Fri, 27 May 2005 12:16:57 +0000 (12:16 +0000)]
(uprmtrd): Remove the unsigned char cast for cp, not necessary.

18 years ago(sendcmd): Change argument cmd to string. Callers changed.
Markus Armbruster [Thu, 26 May 2005 13:18:58 +0000 (13:18 +0000)]
(sendcmd): Change argument cmd to string.  Callers changed.
(fnlist, fn, USER, COUN, QUIT, PASS, PLAY, LIST, CMD, CTLD, KILL):
Unused, remove.

18 years ago(getele): ~p printed user text as normal text.
Markus Armbruster [Thu, 26 May 2005 12:50:08 +0000 (12:50 +0000)]
(getele): ~p printed user text as normal text.

18 years agoSupport UTF-8 encoded Unicode for user communications.
Ron Koenderink [Thu, 26 May 2005 01:58:48 +0000 (01:58 +0000)]
Support UTF-8 encoded Unicode for user communications.
(NF_UTF8, togg): New client flag.
(flash, wall): User text input filtering.
(parse, prmptrd): Normal text input filtering.
(uprmptrd, ugetstring): New, to get user text.
(getele, flash, wall): Use them.
(getele): No need to filter out funny characters; input filtering
takes care of them.
(sendmessage, ufindbreak): Work on user text.
(uprnf): New, to print user text.
(rea, gamedown, show_motd): Use it.
(prnf): Unused, remove.
(pr, upr_player): Normal text output filtering (with highlighting).
(pr_flash): User text output filtering.

18 years ago(lnd_support): New parameter defending, to report defensive support in
Markus Armbruster [Tue, 24 May 2005 18:38:36 +0000 (18:38 +0000)]
(lnd_support): New parameter defending, to report defensive support in
the news correctly, like dd() and sd() do.  Reported by Doug Wescott.

18 years agoInitial Release.
Ron Koenderink [Sun, 22 May 2005 00:52:43 +0000 (00:52 +0000)]
Initial Release.

18 years agoUpdate for Make.sysdefs:1.9: Get rid of -DPOSIXSIGNALS.
Marc Olzheim [Mon, 16 May 2005 23:45:39 +0000 (23:45 +0000)]
Update for Make.sysdefs:1.9: Get rid of -DPOSIXSIGNALS.

18 years agoUse NULL instead of 0 where appropriate. No functional changes.
Marc Olzheim [Mon, 16 May 2005 22:24:21 +0000 (22:24 +0000)]
Use NULL instead of 0 where appropriate.  No functional changes.

18 years ago(nstr_comp): Interpret identifiers as strings only when the
Markus Armbruster [Sat, 14 May 2005 18:07:48 +0000 (18:07 +0000)]
(nstr_comp): Interpret identifiers as strings only when the
other operand is a string-value selector.
(nstr_comp_val): Don't interpret identifiers as strings.
(nstr_resolve_id): New parameter string_ok.

18 years ago(build_bridge,build_tower,retreat_ship1): Mark "X" on sector
Ron Koenderink [Sun, 8 May 2005 18:39:09 +0000 (18:39 +0000)]
(build_bridge,build_tower,retreat_ship1): Mark "X" on sector
where mines were found when retreating.  Remove "X" when the
bridge span or tower is built.  Closes #1149809.
The bmap is now updated when the bridge span or tower is built.
A bulletin was added for when mines were swept when
retreating.

18 years ago(ship_ca): Selector mobquota clashes with mobil, rename to mquota.
Markus Armbruster [Sun, 8 May 2005 15:25:11 +0000 (15:25 +0000)]
(ship_ca): Selector mobquota clashes with mobil, rename to mquota.

(land_ca): There are two selectors rad: radioactive materials and
reaction range limit.  Rename the latter to rmax.

18 years ago(MINES_MAX): Change to 32767. MINES_MAX was not adjusted from 65535
Ron Koenderink [Sat, 7 May 2005 19:49:04 +0000 (19:49 +0000)]
(MINES_MAX): Change to 32767.  MINES_MAX was not adjusted from 65535
when sct_mines was changed from unsigned short to short in rev. 1.15.

18 years ago(servercmd): Parsed BTUs into nmin and minutes into nbtu. Fix. No
Markus Armbruster [Sat, 7 May 2005 08:47:32 +0000 (08:47 +0000)]
(servercmd): Parsed BTUs into nmin and minutes into nbtu.  Fix.  No
functional change.

19 years ago(main,install_service) [_WIN32]: Move the construction of full path names
Ron Koenderink [Tue, 3 May 2005 00:06:10 +0000 (00:06 +0000)]
(main,install_service) [_WIN32]: Move the construction of full path names
for program file and econfig file for installing a service to main()
instead of install_service(). This is because current directory
information is lost because of the use of chdir() to move the current
directory to the datadir.  This change also fixed the setting of a
relative directory for the econfig file.  The service starts in an
arbitrary directory so a relative path can not used by the service.

19 years ago(ship_grow_scale, plane_grow_scale, land_grow_scale): Change from int
Ron Koenderink [Tue, 5 Apr 2005 03:00:35 +0000 (03:00 +0000)]
(ship_grow_scale, plane_grow_scale, land_grow_scale): Change from int
to float.  This allows more control of the max. efficiency gain, and
makes it similiar to ship_mob_scale etc.  Closes #1025600.

19 years ago(prod): All sectors produce when efficiency >=60%, not only enlistment
Markus Armbruster [Mon, 4 Apr 2005 18:54:14 +0000 (18:54 +0000)]
(prod): All sectors produce when efficiency >=60%, not only enlistment
centers.

19 years ago(xdprval): Only use of prnf() that is not for telegram text.
Ron Koenderink [Sat, 26 Mar 2005 17:21:23 +0000 (17:21 +0000)]
(xdprval): Only use of prnf() that is not for telegram text.
Replace by pr() in preparation of output conversion of telegram text
for the UTF-8 option.

19 years ago(): Improve the explaination of the options in wire command.
Ron Koenderink [Sat, 26 Mar 2005 17:17:42 +0000 (17:17 +0000)]
(): Improve the explaination of the options in wire command.
Make wire.t similiar to the read.t and incorporate the
improvements from #1010010.

19 years agoUpdate for 4.2.21.
Markus Armbruster [Sat, 26 Mar 2005 05:29:27 +0000 (05:29 +0000)]
Update for 4.2.21.

19 years ago(wu,typed_wu): close() a sent telegram before waking up other threads.
Marc Olzheim [Sat, 26 Mar 2005 00:23:25 +0000 (00:23 +0000)]
(wu,typed_wu): close() a sent telegram before waking up other threads.
Remove s_char and register on the way.

19 years ago(turn): Check whether fclose() succeeds.
Marc Olzheim [Fri, 25 Mar 2005 23:59:48 +0000 (23:59 +0000)]
(turn): Check whether fclose() succeeds.

19 years ago(): Remove -e from the list of no parameter options in the fairland
Ron Koenderink [Fri, 25 Mar 2005 21:28:25 +0000 (21:28 +0000)]
(): Remove -e from the list of no parameter options in the fairland
manual page.  There is not -e without parameter option.
There is -e with parameter option and it is properly
documented.

19 years ago(rea): Set parameters for read to [yes|no|<CNUM/CNAME>].
Ron Koenderink [Fri, 25 Mar 2005 21:04:39 +0000 (21:04 +0000)]
(rea): Set parameters for read to [yes|no|<CNUM/CNAME>].
Add parameters for read in the command list and the info pages.
Closes #1010010.

19 years agoDocument Windows usage. Since this is useless and confusing on other v4.2.20
Markus Armbruster [Fri, 25 Mar 2005 08:45:41 +0000 (08:45 +0000)]
Document Windows usage.  Since this is useless and confusing on other
platforms, it is only included in if number register w is non-zero.

19 years agoRewrite.
Markus Armbruster [Fri, 25 Mar 2005 08:34:51 +0000 (08:34 +0000)]
Rewrite.

19 years agoMore 4.2.20 changes.
Markus Armbruster [Tue, 22 Mar 2005 21:10:44 +0000 (21:10 +0000)]
More 4.2.20 changes.

19 years agoRemove .UC; we're not be part of BSD.
Markus Armbruster [Tue, 22 Mar 2005 20:56:41 +0000 (20:56 +0000)]
Remove .UC; we're not be part of BSD.

19 years ago(lnd_mar_one_sector): When units in different sectors march, only
Markus Armbruster [Tue, 22 Mar 2005 20:49:54 +0000 (20:49 +0000)]
(lnd_mar_one_sector): When units in different sectors march, only
units in the sector with the highest-numbered unit were interdicted.
A marching non-spy made all marching spies visible to interdiction
regardless of location.  Interdict sector by sector, similar to
shp_nav_one_sector().  Interdict spies only if they are together with
non-spies in the same sector.

19 years ago(shp_nav_one_sector): When shp_interdict() removed the second ship in
Markus Armbruster [Mon, 21 Mar 2005 21:05:08 +0000 (21:05 +0000)]
(shp_nav_one_sector): When shp_interdict() removed the second ship in
a sector, interdiction loop followed dangling pointer and crashed.
Simplify & fix.
(mlist): Member done no longer used, remove.

19 years agoFix the previous rev.
Markus Armbruster [Mon, 21 Mar 2005 19:31:46 +0000 (19:31 +0000)]
Fix the previous rev.

19 years ago[_WIN32]: Add #define WIN32 whereever winsock2.h is used. There is bug
Ron Koenderink [Sun, 20 Mar 2005 11:07:45 +0000 (11:07 +0000)]
[_WIN32]: Add #define WIN32 whereever winsock2.h is used. There is bug
in the VC7 version of winsock2.h.  In version VC7, the #pragma
pack(push) and pack(pop) have an #ifdef !WIN32 add to them.  However,
if WIN32 is not defined at the beginning, the push is done but by the
time the pop is reach something else has set WIN32 define so the pop
is not done, and it changes the default pack from /Zp2 to /Zp4, which
makes the data structures incompatible between objects with winsock2.h
and without winsock2.h.  By adding the WIN32 both the push and pop are
not done.

19 years ago(nstr_parse_val): strtod() recognizes a few strings as numbers that we
Markus Armbruster [Sat, 19 Mar 2005 17:16:29 +0000 (17:16 +0000)]
(nstr_parse_val): strtod() recognizes a few strings as numbers that we
want to recognize as identifiers, notably "inf".  Recognize
identifiers starting with letters before numbers.

19 years agoFix the previous rev.
Markus Armbruster [Sat, 19 Mar 2005 17:04:20 +0000 (17:04 +0000)]
Fix the previous rev.

19 years ago(produce): When player->simulation, level production executed item
Markus Armbruster [Sat, 19 Mar 2005 16:50:22 +0000 (16:50 +0000)]
(produce): When player->simulation, level production executed item
production code for item I_NONE.  This tries to put products into
vec[I_NONE].  Until item.h rev. 1.12, vec[I_NONE] was unused and zero,
so it worked.  Since then, it's a subscript out of bounds, clobbering
two bytes of stack.  The (unpredictable) stack contents could make the
code believe that there's not enough space for the `products', which
then reduced predicted production, typically to zero.

19 years ago(guerrilla): Fix saturation of civilians (new in rev. 1.9). It
Markus Armbruster [Sat, 19 Mar 2005 15:57:41 +0000 (15:57 +0000)]
(guerrilla): Fix saturation of civilians (new in rev. 1.9).  It
created anti-uw, which made the next checksect() oops.

19 years ago(_c_copyright_header, _ipglob_copyright_header, copyright_header):
Markus Armbruster [Fri, 18 Mar 2005 20:51:39 +0000 (20:51 +0000)]
(_c_copyright_header, _ipglob_copyright_header, copyright_header):
_c_copyright_header and _ipglob_copyright_header are almost identical.
Replace by copyright_header, interpolate variable parts with printf.

(wrmakesrc, wrauth, wrgamesdef): Make generated file comments match
our usual style a bit more closely.

(wrgamesdef): Fix generated comment on overwrite.

19 years agoUpdate to match current prod.c.
Markus Armbruster [Fri, 18 Mar 2005 20:09:53 +0000 (20:09 +0000)]
Update to match current prod.c.

19 years agoUpdate for 4.2.20.
Markus Armbruster [Thu, 17 Mar 2005 21:49:59 +0000 (21:49 +0000)]
Update for 4.2.20.

19 years agoIndentation fix.
Markus Armbruster [Thu, 17 Mar 2005 21:47:42 +0000 (21:47 +0000)]
Indentation fix.

19 years agoGet version from version.h.
Markus Armbruster [Thu, 17 Mar 2005 19:33:50 +0000 (19:33 +0000)]
Get version from version.h.

19 years agoUpdate patch to contain proper headers of file versions.
Marc Olzheim [Thu, 17 Mar 2005 10:11:11 +0000 (10:11 +0000)]
Update patch to contain proper headers of file versions.

19 years ago(prod): New column `avail'. Narrow column `will make' (amount and
Markus Armbruster [Wed, 16 Mar 2005 22:12:31 +0000 (22:12 +0000)]
(prod): New column `avail'.  Narrow column `will make' (amount and
short product name) to `make' (amount and, if product is an item,
product mnemonic).

19 years agoUpdate copyright notice.
Markus Armbruster [Wed, 16 Mar 2005 22:03:16 +0000 (22:03 +0000)]
Update copyright notice.

19 years agoFix the previous rev.
Markus Armbruster [Wed, 16 Mar 2005 20:57:21 +0000 (20:57 +0000)]
Fix the previous rev.

19 years ago(main): Rev. 1.43 broke option -D. Its meaning in presence of -e is
Markus Armbruster [Wed, 16 Mar 2005 20:53:27 +0000 (20:53 +0000)]
(main): Rev. 1.43 broke option -D.  Its meaning in presence of -e is
unclear.  Other programs only support -e.  Remove -D.
(install_service): Remove argument datadir_set.

(main): New option -v.

(main): Exit successfully after -h.

(main): Don't print usage on unknown options, just point to -h.

(print_usage): Rewrite.  Deprecate use of non-option arguments.

19 years ago(main): Fix -p to imply -d as documented, not just !daemonize.
Markus Armbruster [Wed, 16 Mar 2005 18:41:44 +0000 (18:41 +0000)]
(main): Fix -p to imply -d as documented, not just !daemonize.

(main): -s no longer implies -p.
(main) [_WIN32]: Recognize -s.  ntthread.c ignores it.

19 years ago(lwpStatus): Fix potential buffer overflow.
Markus Armbruster [Wed, 16 Mar 2005 18:08:39 +0000 (18:08 +0000)]
(lwpStatus): Fix potential buffer overflow.

19 years ago(lwpInitSystem): Stack checking doesn't work and is not necessary for
Markus Armbruster [Wed, 16 Mar 2005 18:06:03 +0000 (18:06 +0000)]
(lwpInitSystem): Stack checking doesn't work and is not necessary for
main thread; clear LWP_STACKCHECK.
(lwpStackCheck): Log stack overflow/underflow and abort.

19 years agoRemove useless cast. No funtional changes.
Marc Olzheim [Wed, 16 Mar 2005 09:13:48 +0000 (09:13 +0000)]
Remove useless cast.  No funtional changes.

19 years agoFix comment line breaks.
Markus Armbruster [Wed, 16 Mar 2005 07:19:07 +0000 (07:19 +0000)]
Fix comment line breaks.

19 years agoFix the previous rev.
Markus Armbruster [Wed, 16 Mar 2005 06:27:15 +0000 (06:27 +0000)]
Fix the previous rev.

19 years ago(loc_Ctrl_C_Handler,loc_Exit_Handler) [_WIN32]: Process other
Ron Koenderink [Wed, 16 Mar 2005 02:39:51 +0000 (02:39 +0000)]
(loc_Ctrl_C_Handler,loc_Exit_Handler) [_WIN32]: Process other
exit methods in the same way as ctrl-c.  Change loc_Ctrl_C_Handler()
to loc_Exit_Handler() to reflect changed functionality.

19 years ago(main) [_WIN32]: Remove second break from -i option.
Ron Koenderink [Wed, 16 Mar 2005 02:01:34 +0000 (02:01 +0000)]
(main) [_WIN32]: Remove second break from -i option.

19 years ago(main) [_WIN32]: Add check to command line checks to ensure
Ron Koenderink [Wed, 16 Mar 2005 01:51:22 +0000 (01:51 +0000)]
(main) [_WIN32]: Add check to command line checks to ensure
-p is not used with install or remove sevice options.

(main) [_WIN32]: Improve error messages for errors found
duing the command line checks.

19 years agoGet rid of "s_char", "register" and 0 used instead of NULL in the
Marc Olzheim [Tue, 15 Mar 2005 21:47:41 +0000 (21:47 +0000)]
Get rid of "s_char", "register" and 0 used instead of NULL in the
client source.  No functional changes.

19 years agoGet rid of "s_char" in the client source. No functional changes.
Marc Olzheim [Tue, 15 Mar 2005 21:43:39 +0000 (21:43 +0000)]
Get rid of "s_char" in the client source.  No functional changes.

19 years ago(shutdwn): Rev. 1.51 broke the Linux pthread hack. It is unclear what
Markus Armbruster [Tue, 15 Mar 2005 20:58:00 +0000 (20:58 +0000)]
(shutdwn): Rev. 1.51 broke the Linux pthread hack.  It is unclear what
this hack is trying to achieve.  It never worked without -d, because
mainpid got assigned the wrong pid.  It doesn't make sense with recent
versions of Linux pthreads, which use the same PID for all threads, as
required by POSIX.  Remove.  Closes #1161397.

19 years agoGet rid of "s_char". No functional changes.
Marc Olzheim [Tue, 15 Mar 2005 20:24:50 +0000 (20:24 +0000)]
Get rid of "s_char".  No functional changes.

19 years agoAdd a pre_update_hook default in src/lib/global/constants.c, so that
Marc Olzheim [Tue, 15 Mar 2005 19:58:41 +0000 (19:58 +0000)]
Add a pre_update_hook default in src/lib/global/constants.c, so that
we won't have to patch the econfig file later on.

19 years agoNote that patches could influence each other.
Marc Olzheim [Tue, 15 Mar 2005 19:49:07 +0000 (19:49 +0000)]
Note that patches could influence each other.

19 years agoGet rid of "s_char". No functional changes.
Marc Olzheim [Tue, 15 Mar 2005 18:59:24 +0000 (18:59 +0000)]
Get rid of "s_char".  No functional changes.

19 years ago(run_hook): Add fflush(NULL) to flush the stdio files before
Ron Koenderink [Tue, 15 Mar 2005 18:23:21 +0000 (18:23 +0000)]
(run_hook): Add fflush(NULL) to flush the stdio files before
starting the backup.

19 years ago(service_stoppped,stop_service,loc_Ctrl_C_Handler,
Ron Koenderink [Tue, 15 Mar 2005 18:19:07 +0000 (18:19 +0000)]
(service_stoppped,stop_service,loc_Ctrl_C_Handler,
empth_request_shutdown,loc_BlockMainThread,empth_init,
service_ctrl_handler) [_WIN32]: Remove the Windows Build UI and
replace with Ctrl-c signal trap.  The shutdown event that was used for
STOPPING the service is now used for both foreground and background
(service) modes of operation. Also move the shutdown event from service
code to empth_t library.

19 years agoDon't try running 'cvs co' more than 5 times, since it might be a local
Marc Olzheim [Tue, 15 Mar 2005 18:05:16 +0000 (18:05 +0000)]
Don't try running 'cvs co' more than 5 times, since it might be a local
problem as well.  Document NIGHTLY_SKIP_STEP=PATCH.  Update to the currently
running script.

19 years agoUpdate for markus's prng patches.
Marc Olzheim [Tue, 15 Mar 2005 17:58:33 +0000 (17:58 +0000)]
Update for markus's prng patches.

19 years ago(main,print_usage) [_WIN32]: Add the ability to enable
Ron Koenderink [Sun, 13 Mar 2005 21:53:23 +0000 (21:53 +0000)]
(main,print_usage) [_WIN32]: Add the ability to enable
empire thread debugging for Windows build.

(empth_select) [_WIN32]: Fix empth_select() so can be aborted.
The bug was that a command would not be aborted during an update.
The problem was select() was not interrupt by the setting of the
signalling wakeup event.  Fix by replacing the select() with
WSAEventSelect().

(empth_exit) [_WIN32]:
Fix the shutdown sequence for Windows build to be running in
empth_t context.  Add a loc_RunThisThread() in empth_exit()
before starting the shutdown() sequence.

19 years ago(log_error) [_WIN32]: Remove ; from the #define for vsnprintf.
Ron Koenderink [Sat, 12 Mar 2005 19:33:18 +0000 (19:33 +0000)]
(log_error) [_WIN32]: Remove ; from the #define for vsnprintf.
This part of the for changes to logerror().

19 years agoDoc fix.
Markus Armbruster [Sat, 12 Mar 2005 18:06:31 +0000 (18:06 +0000)]
Doc fix.

19 years agoRemove files that no longer exist, add missing files, fix filenames.
Markus Armbruster [Sat, 12 Mar 2005 18:03:02 +0000 (18:03 +0000)]
Remove files that no longer exist, add missing files, fix filenames.

19 years agoDon't suggest to run make in the background.
Markus Armbruster [Sat, 12 Mar 2005 18:01:05 +0000 (18:01 +0000)]
Don't suggest to run make in the background.

19 years agoRemove advice on stuff that vanished from the distribution years ago.
Markus Armbruster [Sat, 12 Mar 2005 17:59:57 +0000 (17:59 +0000)]
Remove advice on stuff that vanished from the distribution years ago.

19 years ago(log_error) [_WIN32]: Add #define for vsnprintf to pick up
Ron Koenderink [Sat, 12 Mar 2005 17:52:29 +0000 (17:52 +0000)]
(log_error) [_WIN32]: Add #define for vsnprintf to pick up
_vsnprintf from the WIN32 library for changes to logerror().

(main) [_WIN32]: Add typedef for pid_t to match WIN32 definition
for getpid().  This is required for the create_pidfile() changes.

19 years agoFix the previous rev.
Markus Armbruster [Sat, 12 Mar 2005 17:34:11 +0000 (17:34 +0000)]
Fix the previous rev.

19 years agoA backup script for pre_update_hook.
Markus Armbruster [Sat, 12 Mar 2005 17:31:55 +0000 (17:31 +0000)]
A backup script for pre_update_hook.

19 years ago(pre_update_hook): New configuration key.
Markus Armbruster [Sat, 12 Mar 2005 17:24:57 +0000 (17:24 +0000)]
(pre_update_hook): New configuration key.
(update_wait): Implement it.
(run_hook): New.

19 years agoWrite pid file, like a good daemon. Thanks to Daniel O'Connor for the
Markus Armbruster [Sat, 12 Mar 2005 16:45:43 +0000 (16:45 +0000)]
Write pid file, like a good daemon.  Thanks to Daniel O'Connor for the
initial patch.
(create_pidfile, pidfname): New.
(start_server): Create pid file.
(finish_server): Remove pid file.

(main) [__linux__ && _EMPTH_POSIX]: Don't hack pid into argv[0].
Recent versions of Linux pthreads no longer show multiple PIDs, and
deities can get the PID fro the pid file anyway.

19 years ago(finish_server): New, factored out of termination code. Fixes two
Markus Armbruster [Sat, 12 Mar 2005 16:28:28 +0000 (16:28 +0000)]
(finish_server): New, factored out of termination code.  Fixes two
places in service_main() that lacked close_files().
(close_files, loc_NTTerm): Static linkage.

19 years ago(start_server) [_WIN32]: Put #ifndef _WIN32 around act.
Ron Koenderink [Sat, 12 Mar 2005 16:10:49 +0000 (16:10 +0000)]
(start_server) [_WIN32]: Put #ifndef _WIN32 around act.
This was missed with the [!POSIXSIGNALS]: changes.

19 years agoIndentation fixes.
Markus Armbruster [Sat, 12 Mar 2005 15:05:23 +0000 (15:05 +0000)]
Indentation fixes.

19 years ago(init_server, start_server): Move start log message to start_server(),
Markus Armbruster [Sat, 12 Mar 2005 15:04:37 +0000 (15:04 +0000)]
(init_server, start_server): Move start log message to start_server(),
where it belongs.

19 years ago(logerror): Log to stderr as well. Fix potential buffer overflows.
Markus Armbruster [Sat, 12 Mar 2005 15:03:31 +0000 (15:03 +0000)]
(logerror): Log to stderr as well.  Fix potential buffer overflows.

(oops): Let logerror() supply the newline.

19 years ago[DO_EFF_MEM_CHECKING]: Dead for some ten years. Bury.
Markus Armbruster [Sat, 12 Mar 2005 13:40:24 +0000 (13:40 +0000)]
[DO_EFF_MEM_CHECKING]: Dead for some ten years.  Bury.