]> git.pond.sub.org Git - empserver/log
empserver
18 years ago(mkdir): Parenthesize macro parameter in expansion.
Markus Armbruster [Fri, 30 Dec 2005 17:21:42 +0000 (17:21 +0000)]
(mkdir): Parenthesize macro parameter in expansion.

18 years ago(opt_UPDATESCHED): Remove nooption UPDATESCHED. It had no effect on
Markus Armbruster [Thu, 29 Dec 2005 13:38:57 +0000 (13:38 +0000)]
(opt_UPDATESCHED): Remove nooption UPDATESCHED.  It had no effect on
the actual update, only on the update command.  Believed to be broken
since Empire2.

18 years agoFix spelling of The_Scum's name.
Markus Armbruster [Thu, 29 Dec 2005 10:26:41 +0000 (10:26 +0000)]
Fix spelling of The_Scum's name.

18 years agoNormalize inclusion guards: use NAME_H for name.h. Some headers
Markus Armbruster [Thu, 29 Dec 2005 10:16:01 +0000 (10:16 +0000)]
Normalize inclusion guards: use NAME_H for name.h.  Some headers
lacked them, others used reserved identifiers.

18 years agoAutoconfigure whether char is unsigned.
Markus Armbruster [Wed, 28 Dec 2005 23:10:26 +0000 (23:10 +0000)]
Autoconfigure whether char is unsigned.

18 years agoFix the previous revision.
Markus Armbruster [Wed, 28 Dec 2005 23:07:24 +0000 (23:07 +0000)]
Fix the previous revision.

18 years agoFix rev. 1.29.
Markus Armbruster [Wed, 28 Dec 2005 23:06:14 +0000 (23:06 +0000)]
Fix rev. 1.29.

18 years agosrc/lib/commands/sona.c rev. 1.6 changed first argument of
Markus Armbruster [Wed, 28 Dec 2005 22:43:39 +0000 (22:43 +0000)]
src/lib/commands/sona.c rev. 1.6 changed first argument of
line_of_sight() to char *.  The changeset failed to change callers.
Fix.

18 years ago(att_mode, xyas, ownxy, prbuf): Get rid of s_char. Users changed.
Markus Armbruster [Wed, 28 Dec 2005 22:30:52 +0000 (22:30 +0000)]
(att_mode, xyas, ownxy, prbuf): Get rid of s_char.  Users changed.

(ATTRIBUTE): Don't disable use of gcc __attribute__ when s_char is
signed char.  All format strings are now char *.

18 years agoplayer.h rev. 1.9 changed struct player member argp to char *. The
Markus Armbruster [Wed, 28 Dec 2005 22:21:42 +0000 (22:21 +0000)]
player.h rev. 1.9 changed struct player member argp to char *.  The
changeset failed to adapt some s_char * operands.  Fix.

18 years agoRemove superflous includes.
Markus Armbruster [Wed, 28 Dec 2005 21:26:30 +0000 (21:26 +0000)]
Remove superflous includes.

18 years agoThere's no reason to include <time.h> in empio.h, except it's missing
Markus Armbruster [Wed, 28 Dec 2005 21:25:39 +0000 (21:25 +0000)]
There's no reason to include <time.h> in empio.h, except it's missing
in a couple of other files.  Include it where it's needed.

18 years ago(PP_MAIN, PP_UPDATE, PP_SHUTDOWN, PP_SCHED, PP_TIMESTAMP, PP_PLAYER)
Markus Armbruster [Wed, 28 Dec 2005 21:21:15 +0000 (21:21 +0000)]
(PP_MAIN, PP_UPDATE, PP_SHUTDOWN, PP_SCHED, PP_TIMESTAMP, PP_PLAYER)
(PP_ACCEPT, PP_KILLIDLE): Move from player.h to empthread.h and turn
into enumeration constants.

18 years agoQuiet the noise about files created and removed.
Markus Armbruster [Wed, 28 Dec 2005 19:36:17 +0000 (19:36 +0000)]
Quiet the noise about files created and removed.

18 years agoUpdate for 4.3.0.
Markus Armbruster [Wed, 28 Dec 2005 19:21:09 +0000 (19:21 +0000)]
Update for 4.3.0.

18 years ago(login): Fix error messages.
Markus Armbruster [Wed, 28 Dec 2005 19:03:29 +0000 (19:03 +0000)]
(login): Fix error messages.

18 years agoSupport for IPv6:
Markus Armbruster [Wed, 28 Dec 2005 18:50:08 +0000 (18:50 +0000)]
Support for IPv6:
(tcp_listen, player_addrlen): New.  IPv4-only code factored out of
player_init().
(player_init): Use them.
(player_accept): Address family independence.
(tcp_connect): New.
(main): Use it.
(hostaddr, hostconnect, hostport): Internal linkage.

18 years ago(main, intr) [!_WIN32]: signal() is a portability headache. Switch to
Markus Armbruster [Wed, 28 Dec 2005 16:59:20 +0000 (16:59 +0000)]
(main, intr) [!_WIN32]: signal() is a portability headache.  Switch to
sigaction().

18 years agoFix the previous revision.
Markus Armbruster [Wed, 28 Dec 2005 16:38:19 +0000 (16:38 +0000)]
Fix the previous revision.

18 years ago(handleintr): Move to main.c. Internal linkage. Remove empty
Markus Armbruster [Wed, 28 Dec 2005 16:16:41 +0000 (16:16 +0000)]
(handleintr): Move to main.c.  Internal linkage.  Remove empty
handle.c
(interrupt): Internal linkage.

(interrupt): Use proper type for access from signal handler.
(intr): Don't increment to set, it's unobvious and it could overflow.

18 years ago(UCONTEXT): Move to config.h.
Markus Armbruster [Wed, 28 Dec 2005 15:01:42 +0000 (15:01 +0000)]
(UCONTEXT): Move to config.h.

18 years ago(EMPTH_LWP, EMPTH_POSIX, EMPTH_W32): Define in config.h instead of
Markus Armbruster [Wed, 28 Dec 2005 14:27:15 +0000 (14:27 +0000)]
(EMPTH_LWP, EMPTH_POSIX, EMPTH_W32): Define in config.h instead of
compiler command line.  Don't bother to conditionalize code in .c
files that are only compiled when their thread package is used.

(_EMPTH_LWP, EMPTH_LWP, _EMPTH_POSIX, EMPTH_POSIX, _EMPTH_WIN32)
(EMPTH_W32): Identifiers beginning with an underscore and an uppercase
letter are reserved for any use.  Rename.

18 years ago(MAXNOC): Move to config.h. Remove empty options.h.
Markus Armbruster [Wed, 28 Dec 2005 13:08:26 +0000 (13:08 +0000)]
(MAXNOC): Move to config.h.  Remove empty options.h.

18 years ago(lwpInitSelect): The code to query the system's limit on file
Markus Armbruster [Tue, 27 Dec 2005 19:22:07 +0000 (19:22 +0000)]
(lwpInitSelect): The code to query the system's limit on file
descriptors was not portable.  Simply use FD_SETSIZE instead.  The
lower of the two applies, so this wastes storage if the system's limit
is significantly below FD_SETSIZE.  Not an issue, as FD_SETSIZE is
fairly small.
(lwpSleepFd): Return if fd is too large.  Returning isn't nice,
but better than the buffer overruns in the old code.
(lwpSelect): Member nfile unused, remove.

18 years agoInclude config.h.
Markus Armbruster [Tue, 27 Dec 2005 18:04:19 +0000 (18:04 +0000)]
Include config.h.

18 years agoFix missing include.
Markus Armbruster [Tue, 27 Dec 2005 17:56:57 +0000 (17:56 +0000)]
Fix missing include.

18 years ago(player_new, player_accept, update_wait, market_update) [_WIN32]:
Ron Koenderink [Mon, 26 Dec 2005 03:53:21 +0000 (03:53 +0000)]
(player_new, player_accept, update_wait, market_update) [_WIN32]:
Move assignment of hostaddr and hostname from player_new() to
player_accept().  This solves the necessary of adding the socket include
file to prototypes.h for player_new().  The socket include file creates
a namespace conflict for WIN32.

18 years ago[_WIN32]: Add #ifndef __GNUC__ around the pragma as pragma is not
Ron Koenderink [Mon, 26 Dec 2005 02:53:23 +0000 (02:53 +0000)]
[_WIN32]: Add #ifndef __GNUC__ around the pragma as pragma is not
supported by gcc.

18 years ago(opt_ALL_BLEED, opt_BIG_CITY, opt_BLITZ, opt_BRIDGETOWERS)
Markus Armbruster [Sun, 25 Dec 2005 14:53:29 +0000 (14:53 +0000)]
(opt_ALL_BLEED, opt_BIG_CITY, opt_BLITZ, opt_BRIDGETOWERS)
(opt_DEFENSE_INFRA, opt_DEMANDUPDATE, opt_DRNUKE, opt_EASY_BRIDGES)
(opt_FALLOUT, opt_FUEL, opt_GODNEWS, opt_GO_RENEW, opt_GUINEA_PIGS)
(opt_HIDDEN, opt_INTERDICT_ATT, opt_LANDSPIES, opt_LOANS)
(opt_LOSE_CONTACT, opt_MARKET, opt_MOB_ACCESS, opt_NOFOOD)
(opt_NOMOBCOST, opt_NO_FORT_FIRE, opt_NO_PLAGUE, opt_PINPOINTMISSILE)
(opt_RES_POP, opt_SAIL, opt_SHOWPLANE, opt_SLOW_WAR, opt_SUPER_BARS)
(opt_TECH_POP, opt_TRADESHIPS, opt_TREATIES, opt_UPDATESCHED):
Remove conditional initialization.  Values unchanged.
(ALL_BLEED, BIG_CITY, BLITZ, BRIDGETOWERS, DEFENSE_INFRA)
(DEMANDUPDATE, DRNUKE, EASY_BRIDGES, FALLOUT, FUEL, GODNEWS, GO_RENEW)
(GUINEA_PIGS, HIDDEN, INTERDICT_ATT, LANDSPIES, LOANS, LOSE_CONTACT)
(MARKET, MOB_ACCESS, NOFOOD, NOMOBCOST, NO_FORT_FIRE, NO_PLAGUE)
(PINPOINTMISSILE, RES_POP, SAIL, SHOWPLANE, SLOW_WAR, SUPER_BARS)
(TECH_POP, TRADESHIPS, TREATIES, UPDATESCHED): Unused, remove.

18 years agoTurn options into ordinary econfig keys:
Markus Armbruster [Sun, 25 Dec 2005 10:32:50 +0000 (10:32 +0000)]
Turn options into ordinary econfig keys:
(configkeys): Add options.
(KM_OPTION): New.
(vers): Find options in configkeys[] instead of Options[].
(xdump): Remove xdump opt syntax.
(xdopt): Remove.
(emp_config, print_config): Remove option special case.
(option_list, Options, setoption): Remove.

18 years ago(min, max) [_WIN32]: Change WIN32 to use windef.h.
Ron Koenderink [Sun, 25 Dec 2005 00:59:57 +0000 (00:59 +0000)]
(min, max) [_WIN32]: Change WIN32 to use windef.h.
It is present in both MSVC and MinGW environments.

(F_OK, W_OK, R_OK) [_WIN32]: Add #ifndef to allow
to operation in both MSVC and MinGW environments.

18 years ago(hStdIn) [_WIN32]: Add extern to declaration.
Ron Koenderink [Sun, 25 Dec 2005 00:51:55 +0000 (00:51 +0000)]
(hStdIn) [_WIN32]: Add extern to declaration.

18 years agoFix rev. 1.4.
Markus Armbruster [Sat, 24 Dec 2005 14:36:41 +0000 (14:36 +0000)]
Fix rev. 1.4.

18 years ago(drop): A mining mission targeting land called pln_dropoff() instead
Markus Armbruster [Fri, 23 Dec 2005 19:37:52 +0000 (19:37 +0000)]
(drop): A mining mission targeting land called pln_dropoff() instead
of pln_mine().  pln_dropoff() happens to do pretty much the right
thing, but...
(pln_mine): Refuse to mine land.

18 years ago(CPPFLAGS): Add -I., to find config.h. Remove -Iinclude, it's unused.
Markus Armbruster [Fri, 23 Dec 2005 18:47:41 +0000 (18:47 +0000)]
(CPPFLAGS): Add -I., to find config.h.  Remove -Iinclude, it's unused.

18 years ago(install, install-html): Implement. Closes #913154.
Markus Armbruster [Fri, 23 Dec 2005 17:58:19 +0000 (17:58 +0000)]
(install, install-html): Implement.  Closes #913154.
(installdirs): New.

18 years ago(info): TOP was missing.
Markus Armbruster [Fri, 23 Dec 2005 17:53:28 +0000 (17:53 +0000)]
(info): TOP was missing.

18 years agoBelatedly remove NUKEFAILDETONATE, NONUKES, NEUTRON, ORBIT, NO_LCMS,
Markus Armbruster [Fri, 23 Dec 2005 13:24:45 +0000 (13:24 +0000)]
Belatedly remove NUKEFAILDETONATE, NONUKES, NEUTRON, ORBIT, NO_LCMS,
NO_HCMS, NO_OIL.

Don't claim BLITZ implies NOFOOD.

18 years ago(START_CASH, start_cash): Replace START_CASH by new econfig key
Markus Armbruster [Fri, 23 Dec 2005 11:16:23 +0000 (11:16 +0000)]
(START_CASH, start_cash): Replace START_CASH by new econfig key
start_cash.

18 years agoRemove superflous #include "options.h".
Markus Armbruster [Fri, 23 Dec 2005 11:04:56 +0000 (11:04 +0000)]
Remove superflous #include "options.h".

18 years agoFix rev. 1.1 for how_to_dep = depcomp.
Markus Armbruster [Fri, 23 Dec 2005 09:06:29 +0000 (09:06 +0000)]
Fix rev. 1.1 for how_to_dep = depcomp.

18 years ago(nat_cap, status): Use the new function influx() to determine
Ron Koenderink [Fri, 23 Dec 2005 01:10:07 +0000 (01:10 +0000)]
(nat_cap, status): Use the new function influx() to determine
if a valid capital is present or not.

18 years agoFix the previous revision.
Markus Armbruster [Thu, 22 Dec 2005 21:28:37 +0000 (21:28 +0000)]
Fix the previous revision.

18 years ago(pln_equip): New mission argument 'm' for mining. 'd' is now for
Markus Armbruster [Thu, 22 Dec 2005 19:48:33 +0000 (19:48 +0000)]
(pln_equip): New mission argument 'm' for mining.  'd' is now for
cargo drops only.  Callers changed.

18 years agoPrevious rev. assumes would_abandon() returns 0 or 1. Correct, but
Markus Armbruster [Thu, 22 Dec 2005 19:27:26 +0000 (19:27 +0000)]
Previous rev. assumes would_abandon() returns 0 or 1.  Correct, but
unmodular.  Don't.

18 years agoAvoid compiler warnings in rev. 1.23 code.
Markus Armbruster [Thu, 22 Dec 2005 17:57:16 +0000 (17:57 +0000)]
Avoid compiler warnings in rev. 1.23 code.

18 years ago(nat_cap): Scale BTU production by capital's work.
Ron Koenderink [Thu, 22 Dec 2005 17:26:54 +0000 (17:26 +0000)]
(nat_cap): Scale BTU production by capital's work.
Closes #101189.

18 years agoChapters Introduction and Server are also subjects, and all pages in
Markus Armbruster [Thu, 22 Dec 2005 12:23:38 +0000 (12:23 +0000)]
Chapters Introduction and Server are also subjects, and all pages in
those chapters should refer to their chapter-subject.  Check & fix.

18 years ago(info, html): Implement.
Markus Armbruster [Thu, 22 Dec 2005 10:09:17 +0000 (10:09 +0000)]
(info, html): Implement.
(all): Depend on info.

Flatten info directory.  This undoes the move to one subdirectory per
chapter, which was done during Empire 2.  The structure doesn't buy us
much, as the info name space is flat, and it complicates makefiles.

Overhaul info.pl:
- It now wants to run in the root of the build tree.
- Information on source files and subjects is now stored in makefiles,
  thus info.pl no longer picks up random junk from the file system.
- Clean up Perl anachronisms, in particular use subroutine arguments and
  results rather than global variables where convenient.
- Change format of diagnostics to the common format used by GNU tools,
  so that Emacs and the like can parse it.
- Catch missing .SA.
- When creating a new subject file, cowardly refuse to overwrite an
  existing file.
- Subject files contain topics sorted by chapter, then by name.  The
  order of chapters used to depend on how Perl sorts hash keys.  Fix
  it.

18 years agoShould have been removed in yesterday's build process commit.
Markus Armbruster [Thu, 22 Dec 2005 08:44:27 +0000 (08:44 +0000)]
Should have been removed in yesterday's build process commit.

18 years agoProvide and document means to set up a fresh source tree from CVS.
Markus Armbruster [Wed, 21 Dec 2005 09:19:33 +0000 (09:19 +0000)]
Provide and document means to set up a fresh source tree from CVS.

18 years ago(nat_cap): Remove redundant max_btus checks.
Ron Koenderink [Tue, 20 Dec 2005 22:50:06 +0000 (22:50 +0000)]
(nat_cap): Remove redundant max_btus checks.
Remove deities and opt_BLITZ calculations
as dispatch() will not let you run out of BTU's.

18 years agoReplace the build process. The new one requires GNU Make, Autoconf
Markus Armbruster [Tue, 20 Dec 2005 20:25:35 +0000 (20:25 +0000)]
Replace the build process.  The new one requires GNU Make, Autoconf
and Autoconf macros that come with Automake.  It supports multiple
separate builds of the same source tree, and updates dependencies
automatically.  Targets info, html, install, install-html, uninstall
and dist are not yet implemented.

System configuration is now automatic.  Previously, you had to choose
one of several canned system configurations, defined in Make.sysdefs.
Currently, system configuration always uses UCONTEXT for LWP, and
chooses LWP only if its requirements are met.

Feature configuration changed: instead of editing build.conf (further
processed by doconfig), you pass arguments to configure.  Note that
build.conf settings that can be overridden in econfig have no
configure equivalent; just edit econfig instead.

Because generated headers complicate makefiles, fold gamesdef.h into
its users: path.c and ipglob.c become path.c.in and ipglob.c.in,
constants.c, vers.c, options.h simply hardcode defaults (most of them
are run-time configurable).

Call the client empire instead of emp_client.  This matches what the
old standalone build did.

18 years ago(nati, player_coms): Add ability for deities to request a nation report for any country.
Ron Koenderink [Tue, 20 Dec 2005 17:06:47 +0000 (17:06 +0000)]
(nati, player_coms): Add ability for deities to request a nation report for any country.
Closes #1083167.

18 years ago(natstate): Add STAT_SANCT case so the nation report properly
Ron Koenderink [Tue, 20 Dec 2005 01:49:55 +0000 (01:49 +0000)]
(natstate): Add STAT_SANCT case so the nation report properly
shows SANCTUARY instead of VISITOR for countries in sanctuary.

18 years ago(capi): Do not check capital location if the country
Ron Koenderink [Mon, 19 Dec 2005 01:52:13 +0000 (01:52 +0000)]
(capi): Do not check capital location if the country
is has NF_SACKED set.

18 years ago(caploss): Remove the moving of a sacked capital.
Ron Koenderink [Sun, 18 Dec 2005 19:54:44 +0000 (19:54 +0000)]
(caploss): Remove the moving of a sacked capital.
This corrects the incorrect display of the old capital in the nation output.

(caploss): Remove unnecessary include files.

18 years ago(nati): Fix the grammer for No capital output.
Ron Koenderink [Sun, 18 Dec 2005 15:43:56 +0000 (15:43 +0000)]
(nati): Fix the grammer for No capital output.

18 years ago(shp_nav_one_sector, mchr[], ship_chr_flags[], Ship-types, Sector-types):
Ron Koenderink [Sun, 18 Dec 2005 15:16:52 +0000 (15:16 +0000)]
(shp_nav_one_sector, mchr[], ship_chr_flags[], Ship-types, Sector-types):
Add M_CANAL flag to indicate which ships can navigate a canal
in a big city.  Remove the hard code values for canal from
shp_nav_one_sector() for which ships can navigate a canal.
Set M_CANAL flag in ship_chr_flags[] to match the hard
coding in shp_nav_one_sector().
Update Ship-types.t with new canal flag.
Update Sector-types.t to indicate that cities have canals.

18 years ago(influx): Remove carriage return.
Ron Koenderink [Sun, 18 Dec 2005 03:53:52 +0000 (03:53 +0000)]
(influx): Remove carriage return.

18 years ago(zdon): Do not allow a country that is in-flux to request an update.
Ron Koenderink [Sat, 17 Dec 2005 20:27:08 +0000 (20:27 +0000)]
(zdon): Do not allow a country that is in-flux to request an update.
Closes #1025597.

18 years ago(coun_list, repo_list, nati): Replace in-flux determination code with influx().
Ron Koenderink [Sat, 17 Dec 2005 20:18:54 +0000 (20:18 +0000)]
(coun_list, repo_list, nati): Replace in-flux determination code with influx().

(influx): New.

18 years ago(repo_list): Remove unreachable state (STAT_NORM | STAT_SANCT).
Ron Koenderink [Sat, 17 Dec 2005 19:55:52 +0000 (19:55 +0000)]
(repo_list): Remove unreachable state (STAT_NORM | STAT_SANCT).

18 years ago(xundump): Eat whitespace after table, so that caller can check for
Markus Armbruster [Sat, 17 Dec 2005 15:09:43 +0000 (15:09 +0000)]
(xundump): Eat whitespace after table, so that caller can check for
trailing junk more easily.  This fixes that check in ef_load().

18 years ago(gen_power): Do not include land units with spy capability in the
Ron Koenderink [Sat, 17 Dec 2005 12:41:39 +0000 (12:41 +0000)]
(gen_power): Do not include land units with spy capability in the
land unit count. Closes #910398.

18 years ago(xundump): Fix table row counting, broken by rev. 1.23.
Markus Armbruster [Sat, 17 Dec 2005 08:25:57 +0000 (08:25 +0000)]
(xundump): Fix table row counting, broken by rev. 1.23.

18 years ago(lwpNewContext): Fix the previous revision.
Markus Armbruster [Mon, 12 Dec 2005 07:34:52 +0000 (07:34 +0000)]
(lwpNewContext): Fix the previous revision.

18 years agoRemove superflous include.
Markus Armbruster [Sun, 11 Dec 2005 10:09:09 +0000 (10:09 +0000)]
Remove superflous include.

18 years ago(lwpNewContext) [MAKECONTEXT_SP_HIGH]: Work around makecontext()
Markus Armbruster [Sun, 11 Dec 2005 08:18:15 +0000 (08:18 +0000)]
(lwpNewContext) [MAKECONTEXT_SP_HIGH]: Work around makecontext()
lossage.
(IRIX5CFLAGS, SOLCFLAGS): Define MAKECONTEXT_SP_HIGH.  This is wrong
for Solaris 10.

18 years ago(lwpCreate): Check for lwpNewContext() success.
Markus Armbruster [Sat, 10 Dec 2005 20:42:42 +0000 (20:42 +0000)]
(lwpCreate): Check for lwpNewContext() success.

18 years ago(lwpNewContext) [UCONTEXT]: Fix the previous revision.
Markus Armbruster [Sat, 10 Dec 2005 20:41:44 +0000 (20:41 +0000)]
(lwpNewContext) [UCONTEXT]: Fix the previous revision.

18 years agoRedesign interface to machine-dependent code to cleanse lwp.c of
Markus Armbruster [Sat, 10 Dec 2005 19:28:24 +0000 (19:28 +0000)]
Redesign interface to machine-dependent code to cleanse lwp.c of
machine-dependencies:
(lwpNewContext): New, factored out of lwpCreate().
(lwpSwitchContext): New, factored out of lwpReschedule().
(LWP_EXTRASTACK, STKALIGN, lwpInitContext, lwpSave, lwpRestore): Move
to arch.c.  Remove for UCONTEXT, else static linkage unless macro or
AIX32.

(lwpReschedule): Skip lwpStatus() when not actually switching.

(LwpStackGrowsDown): New.
(lwpInitSystem): Initialize it.
(lwpStackCheck, lwpStackCheckUsed): Use it.

18 years ago(lwpProc): Members lowmark and himark are confusing, replace by
Markus Armbruster [Sat, 10 Dec 2005 17:26:22 +0000 (17:26 +0000)]
(lwpProc): Members lowmark and himark are confusing, replace by
ustack, usize.
(lwpCreate): Initialize them.
(lwpStackCheckInit, lwpStackCheck, lwpStackCheckUsed): Rewrite using
them.  lwpStackCheckUsed() was off by LWP_REDZONE when stack grows
down.

(lwpDestroy): Don't bother to clear memory to be freed.

18 years agoClean up the move of lwpProc (lwpint.h rev. 1.11, lwp.h rev. 1.8).
Markus Armbruster [Sat, 10 Dec 2005 16:55:38 +0000 (16:55 +0000)]
Clean up the move of lwpProc (lwpint.h rev. 1.11, lwp.h rev. 1.8).

18 years ago(lwpInitContext) [UCONTEXT]: Failed to initialized uc_stack.ss_flags.
Markus Armbruster [Sat, 10 Dec 2005 15:03:11 +0000 (15:03 +0000)]
(lwpInitContext) [UCONTEXT]: Failed to initialized uc_stack.ss_flags.

18 years agoClean up the move of lwpProc (lwpint.h rev. 1.11, lwp.h rev. 1.8).
Markus Armbruster [Sat, 10 Dec 2005 15:00:35 +0000 (15:00 +0000)]
Clean up the move of lwpProc (lwpint.h rev. 1.11, lwp.h rev. 1.8).

18 years ago(empth_start, empth_init, empth_alarm) [_EMPTH_POSIX]: We do raise
Markus Armbruster [Fri, 9 Dec 2005 20:52:30 +0000 (20:52 +0000)]
(empth_start, empth_init, empth_alarm) [_EMPTH_POSIX]: We do raise
SIGALRM!  Revert rev. 1.21.

(empth_alarm): Internal linkage.

18 years ago(lwpCreate) [UCONTEXT]: ss_sp is the (base) address of the stack area,
Markus Armbruster [Wed, 7 Dec 2005 20:39:55 +0000 (20:39 +0000)]
(lwpCreate) [UCONTEXT]: ss_sp is the (base) address of the stack area,
not the initial stack pointer.  Fix.  ss_size was wrong as well.
Amazing that this ever worked.

18 years ago[UCONTEXT] (lwpInitContext): Failed to initialize context.uc_link as
Markus Armbruster [Wed, 7 Dec 2005 20:32:25 +0000 (20:32 +0000)]
[UCONTEXT] (lwpInitContext): Failed to initialize context.uc_link as
required by the API.

18 years ago(lwpCreate): Check STKALIGN is sane.
Markus Armbruster [Wed, 7 Dec 2005 20:28:12 +0000 (20:28 +0000)]
(lwpCreate): Check STKALIGN is sane.

(lwpCreate): Used to allocate one byte more than necessary.  The fix
won't save memory (malloc() will add the byte back), it's just clearer
this way.

(lwpCreate): Clean up computation of sp.  Rename parameter size to
stacksz.

(lwpCreate): Always compute newp->lowmark and newp->highmark from sp,
not from s.  Old code misaligned newp->himark for stacks growing
upward when stack size argument wasn't aligned.

18 years ago(stkalign_t, STKALIGN): Replace.
Markus Armbruster [Wed, 7 Dec 2005 19:47:26 +0000 (19:47 +0000)]
(stkalign_t, STKALIGN): Replace.

18 years ago(lwpProc, lwpSem): Declare as incomplete type in include/lwp.h. Move
Markus Armbruster [Wed, 7 Dec 2005 19:15:37 +0000 (19:15 +0000)]
(lwpProc, lwpSem): Declare as incomplete type in include/lwp.h.  Move
complete declaration to src/lib/lwp/lwpint.h.
(lwpQueue): Move to src/lib/lwp/lwpint.h.
(empth_main, empth_flags): New.
(empth_init): Initialize them.
(empth_create, empth_exit): Use them instead of lwpProc members.

18 years ago(lwpReschedule): Fix the previous revision.
Markus Armbruster [Tue, 6 Dec 2005 00:12:34 +0000 (00:12 +0000)]
(lwpReschedule): Fix the previous revision.

18 years ago[BOUNDS_CHECK]: Defunct, remove.
Markus Armbruster [Mon, 5 Dec 2005 22:58:23 +0000 (22:58 +0000)]
[BOUNDS_CHECK]: Defunct, remove.
(lwpReschedule): Fix potential crash bug that crept in with
BOUNDS_CHECK years ago.

18 years ago(lwpSleepFd): More information in debug output.
Markus Armbruster [Mon, 5 Dec 2005 22:38:58 +0000 (22:38 +0000)]
(lwpSleepFd): More information in debug output.

(lwpSelect): Fix use of uninitialized variable in debug output.

18 years agoFix the previous revision.
Markus Armbruster [Mon, 5 Dec 2005 22:34:22 +0000 (22:34 +0000)]
Fix the previous revision.

18 years agoClean up includes.
Markus Armbruster [Mon, 5 Dec 2005 22:31:45 +0000 (22:31 +0000)]
Clean up includes.

18 years agoDoc fix.
Markus Armbruster [Mon, 5 Dec 2005 22:28:52 +0000 (22:28 +0000)]
Doc fix.

18 years ago(oops): Move declaration to misc.h, to make CANT_HAPPEN() usable
Markus Armbruster [Mon, 5 Dec 2005 22:13:35 +0000 (22:13 +0000)]
(oops): Move declaration to misc.h, to make CANT_HAPPEN() usable
with just misc.h included.

18 years ago(lwpSave, lwpReschedule) [hpc]: Move machine-dependent code to arch.c,
Markus Armbruster [Mon, 5 Dec 2005 21:38:03 +0000 (21:38 +0000)]
(lwpSave, lwpReschedule) [hpc]: Move machine-dependent code to arch.c,
where it belongs.  Code looks fishy.  Untested.
(initcontext, startpoint): Internal linkage.

18 years agoRemove LWP code for targets we no longer support: VAX/MIPS Ultrix
Markus Armbruster [Mon, 5 Dec 2005 21:07:24 +0000 (21:07 +0000)]
Remove LWP code for targets we no longer support: VAX/MIPS Ultrix
(dropped in Make.sysdefs rev. 1.12), 386 USL/Unixware (unclear, long
ago), 386BSD (never been?)

18 years agoClean up the incomprehensible #ifdef jungle a bit. Didn't compile if
Markus Armbruster [Mon, 5 Dec 2005 20:30:29 +0000 (20:30 +0000)]
Clean up the incomprehensible #ifdef jungle a bit.  Didn't compile if
both UCONTEXT and one of the other recognized preprocessor symbols was
defined; fix to prefer UCONTEXT.

18 years ago(lwpCreate): Clean up the incomprehensible #ifdef jungle. No
Markus Armbruster [Mon, 5 Dec 2005 19:16:59 +0000 (19:16 +0000)]
(lwpCreate): Clean up the incomprehensible #ifdef jungle.  No
functional changes.

18 years agoRemove silly superflous parenthesis.
Markus Armbruster [Sat, 3 Dec 2005 21:14:26 +0000 (21:14 +0000)]
Remove silly superflous parenthesis.

18 years ago(peek): Old owner is not hidden, remove column.
Markus Armbruster [Sat, 3 Dec 2005 21:04:00 +0000 (21:04 +0000)]
(peek): Old owner is not hidden, remove column.

18 years ago(peek, empmod): Remove obsolete command hidden.
Markus Armbruster [Sat, 3 Dec 2005 21:02:31 +0000 (21:02 +0000)]
(peek, empmod): Remove obsolete command hidden.

18 years agoDoc fix.
Markus Armbruster [Sat, 3 Dec 2005 20:59:07 +0000 (20:59 +0000)]
Doc fix.

18 years ago(xundump): Fix rev. 1.19.
Markus Armbruster [Sat, 3 Dec 2005 16:15:16 +0000 (16:15 +0000)]
(xundump): Fix rev. 1.19.

18 years ago(xuflds, xunsymbol, xuloadrow): Symbol sets.
Markus Armbruster [Sat, 3 Dec 2005 14:14:44 +0000 (14:14 +0000)]
(xuflds, xunsymbol, xuloadrow): Symbol sets.
(VAL_SYMBOL_SET, getid, xunsymbol1): New.

(xunsymbol): New argument n for more useful diagnostics.

(xuloadrow): Remove redundant semantic check.

18 years ago(xunsymbol): Fix design flaw: negative symbol values were interpreted
Markus Armbruster [Sat, 3 Dec 2005 13:38:52 +0000 (13:38 +0000)]
(xunsymbol): Fix design flaw: negative symbol values were interpreted
as failure.