home *** CD-ROM | disk | FTP | other *** search
/ Atari FTP / ATARI_FTP_0693.zip / ATARI_FTP_0693 / Mint / mint104s.zoo / changes next >
Text File  |  1993-03-08  |  89KB  |  2,499 lines

  1. Changes are listed in *reverse* order, most recent changes being
  2. first.
  3.  
  4. version 1.04
  5.  
  6. bios.c:
  7.     Changed the way timeout worked for Bconout() stuff.
  8. proc.h:
  9.     Increased the number of Fsfirst searches that can happen
  10.     simultaneously to 10 from 6 (this is a per-process
  11.     limit, not system wide).
  12.  
  13. version 1.03
  14.  
  15. xbios.c: ++entropy@terminator.rs.itd.umich.edu
  16.     In old versions of TOS
  17. dos.c:
  18.     Changed Psetpgrp so that passing a pgrp of -1 makes it into
  19.     an inquiry call.
  20. filesys.c: ++Martin_Koehling@un.maus.de
  21.     Fixed a bug in Flock (regions were being locked 1 byte too far).
  22. mem.h:
  23.     Changed the memory allocation quantum to 256 bytes, so that
  24.     Srealloc will always work right on ST's.
  25.  
  26. version 1.02
  27.  
  28. main.c:
  29.     Run any AUTO folder programs appearing after MINTNP.PRG
  30.     as well as just plain MINT.PRG.
  31. syscall.spp:
  32.     Pop more stuff off the stack in sig_return, since we
  33.     did push more onto it in handle_sig. (It really shouldn't
  34.     matter, restore_context will restore the stack pointer
  35.     anyway, but better safe than sorry.)
  36. filesys.c,mem.c:
  37.     Made the open file associated with shared text memory
  38.     regions be closed automatically when a media change occurs.
  39. xbios.c:
  40.     Changed the do_usrcall function into an assembly language
  41.     routine which preserves all registers. Apparently some
  42.     programs rely on being able to pass parameters to Supexec
  43.     in registers. We only used to kill register A0, which was
  44.     reserved for BIOS use anyway, but obviously some programmers
  45.     choose not to read the f'ing manual.
  46. dosdir.c: ++entropy@terminator.rs.itd.umich.edu
  47.     Fixed a typo (PATH_MAX where ERANGE should have been).
  48. biosfs.c: ++schwab@lamothe.informatik.uni-dortmund.de
  49.     Check control keys on every newline, so users get quick response
  50.     to their key hits.
  51. tty.c: ++schwab@lamothe.informatik.uni-dortmund.de
  52.     Fixed a typo (t_startc is the character to use to resume terminal
  53.     output, not t_stopc!)
  54. dosdir.c,dosmem.c,filesys.c,tosfs.c: ++schwab@lamothe.informatik.uni-dortmund.de
  55.     Fixed many dup_cookie and release_cookie bugs; the code should be much
  56.     more usable now.
  57. main.c:
  58.     Corrected a flaw in the 68030 only version -- it assumed that
  59.     68030 was synonymous with memory protection. Also: set
  60.     mcpu correctly.
  61. main.c:
  62.     Checked to see if we're called "MINTNP.PRG"; if so, turn off
  63.     memory protection automatically. Commented out the code
  64.     for automatically turning MP off on 1 meg machines.
  65.  
  66. version 1.01
  67.  
  68. main.c,intr.spp:
  69.     Use init_tail for the temporary stack (saves us 128 bytes of bss,
  70.     oh boy).
  71. main.c:
  72.     If less than 1 megabyte is free, turn off memory protection
  73.     automatically.
  74. mem.h:
  75.     If there's no memory protection, do all ROUNDing etc. to
  76.     16 byte boundaries rather than 8K page boundaries.
  77. mem.c:
  78.     Added a check for the ability to move screen RAM; evidently
  79.     some boards use ST RAM but still don't allow Setscreen()
  80.     to work.
  81. all over the place: ++julian@math.uni-muenster.de
  82.     Cleaned up the code for PureC compatibility.
  83. all over the place: ++akiernan@cix.compulink.co.uk
  84.     Cleaned up the code for Lattice compatibility.
  85. fasttext.c: ++hyc@hanauma.jpl.nasa.gov
  86.     Sped up by special casing some of the gotoxy() calls, and
  87.     also allowed 8 pixel high characters in monochrome mode.
  88. dosdir.c: ++schwab@lamothe.informatik.uni-dortmund.de
  89.     Allow Frename() to succeed on symbolic links.
  90. signal.c: ++schwab@lamothe.informatik.uni-dortmund.de
  91.     Save processor context stuf in the reserved BIOS area even for
  92.     bus errors with memory protection on.
  93. dosfile.c: ++schwab@lamothe.informatik.uni-dortmund.de
  94.     Initialize the exception file descriptors to 0, in anticipation
  95.     of future use of this Fselect feature.
  96. dosfile.c: ++schwab@lamothe.informatik.uni-dortmund.de
  97.     Allow pipes to be opened and written to with O_APPEND mode.
  98. version.h:
  99.     Got rid of the PATCHLEVEL define. Now that I've finally
  100.     checked everything into RCS, it's much easier to just bump
  101.     up the version numbers on each release.
  102.  
  103. version 1.00
  104.  
  105. welcome.c,version.h:
  106.     Sigh. This is MultiTOS 1.0's MiNT, so even though I don't
  107.     consider it "finished", I'm changing the version number to
  108.     1.0. At least it's no worse than TOS 1.0 :-).
  109. memprot.c:
  110.     We want to flush the ATC cache, *not* the CPU cache. Thanks
  111.     for pointing this out, Alex.
  112. bios.c:
  113.     Fixed a problem with Speedo GDOS; if the printer's buffer was
  114.     full, Bconout(2,...) would do a context switch, which is not
  115.     a good thing for Speedo.
  116.  
  117. version 0.99
  118.  
  119. PATCHLEVEL 2::
  120.  
  121. main.c:
  122.     Big bug fix -- the do_exec_os routine was being called with a
  123.     basepage that occupied all of memory, so that the Pexec(200) it
  124.     did was failing due to insufficient memory. Now we Mshrink the
  125.     basepage; this also necessitates fixing up the stack pointer.
  126. main.c:
  127.     Handle mint.cnf files that don't end in a carriage return/line feed
  128.     combination.
  129. filesys.c:
  130.     New path parsing code to correct a bug in the way symbolic
  131.     links were being handled on loadable file systems.
  132.  
  133. PATCHLEVEL 1::
  134.  
  135. debug.c:
  136.     Made the default debugging level give ALERT messages.
  137. dosfile.c:
  138.     Corrected a bug in the way global file handles are closed.
  139.  
  140. PATCHLEVEL 0::
  141.  
  142. dosmem.c:
  143.     Made it so that overlay Pexec modes (e.g. 200) set up
  144.     the basepage to preserve the same "parent".
  145. main.c:
  146.     Added in a kludge so that if we're starting GEM from a file
  147.     (e.g. gem.sys) then we do it via the exec_os vector. I hope
  148.     this makes the Codeheads happy :-).
  149. dosmem.c,tty.c:
  150.     Backed out entropy's and schwab's changes. Random programs
  151.     were getting stopped under MultiTOS because of them; I can't
  152.     find the cause, so let's go back to something that worked
  153.     (if suboptimally).
  154. main.c:
  155.     Fixed a silly initialization error: we should not
  156.     assume a default language, we should get it from
  157.     the ROMs.
  158. dosdir.c: ++julian@math.uni-muenster.de
  159.     Extended Dlock: if bit 1 of the mode is set, then the
  160.     process id of the process using the drive is returned
  161.     instead of ELOCKED or EACCDN; this allows for more
  162.     informative error messages.
  163. welcome.c:
  164.     Updated the copyright notice.
  165.  
  166. version 0.98
  167.  
  168. PATCHLEVEL 4::
  169.  
  170. dosmem.c,tty.c: ++entropy@gnu.ai.mit.edu
  171.     Corrected some silliness in the job control code.
  172.  
  173. PATCHLEVEL 3::
  174.  
  175. xbios.c:
  176.     Took out the ONLY030 optimization; it didn't work correctly
  177.     (I can't see any reason why it shouldn't have worked, but
  178.     it didn't; perhaps a compiler bug bit us?)
  179.  
  180. PATCHLEVEL 2::
  181.  
  182. main.c:
  183.     Changed magic shift key to LEFT shift key.
  184. filesys.c:
  185.     Make loaded .XFS files go into supervisor accessible
  186.     memory.
  187. welcome.c,main.c:
  188.     Ask user in her own language whether or not to boot if the
  189.     kernel is a MultiTOS one and she held down the shift key.
  190. filesys.c:
  191.     Relax O_COMPAT mode opens somewhat so that any
  192.     number of processes can open the file for reading,
  193.     as long as no more than 1 has it open for writing.
  194.     ALSO: make sure O_EXEC gets treated the same as O_RDONLY.
  195. dosfile.c:
  196.     Change TRACE() to TRACELOW() on Fread and Fwrite.
  197. tosfs.c:
  198.     Went back to old method of doing tosfs.c; this is
  199.     better tested and safer.
  200. dos.c:
  201.     New system call, Salert(msg), for doing an alert message.
  202. debug.c:
  203.     Terminate messages written to the alert pipe with a 0.
  204.     Also: pour them into alert boxes so that programs like
  205.     sysalert don't have so much to do.
  206.  
  207. PATCHLEVEL 1::
  208.  
  209. fasttext.c: ++shenson
  210.     Corrected the quote_putch function.
  211. dosdir.c:
  212.     Allow Dfree(n) to work if "n" is a big number (e.g. BIOSDRV)
  213.     and the corresponding pseudo-drive is a current or root directory
  214.     of the current process.
  215. pipefs.c: ++schwab@ls5.informatik.uni-dortmund.de
  216.     Return a new error number, EPIPE, for writes to broken pipes.
  217. tty.c: ++schwab@ls5.informatik.uni-dortmund.de
  218.     If a tty loses its owner, the next process to do i/o to it
  219.     will become the owner.
  220. dosfile.c: ++schwab@ls5.informatik.uni-dortmund.de
  221.     FA_RDONLY doesn't mean "read only" on the process file system,
  222.     so allow such processes to be opened for writing.
  223.  
  224. PATCHLEVEL 0::
  225.  
  226. xbios.c:
  227.     Fixed Supexec to pass the function pointer on the stack, too
  228.     (just as TOS does). This is still undocumented behaviour,
  229.     so you rely on it at your own risk.
  230. xbios.c: ++entropy@gnu.ai.mit.edu
  231.     Applied a fix for Rsconf() with TOS 1.04, and made the
  232.     old TOS Rsconf stuff #ifndef ONLY030.
  233. proc.c,dosmem.c:
  234.     Wrap all calls to add_q/rm_q in spl7(), so that the
  235.     wakeselect() function truly can be called from
  236.     interrupt code.
  237. makefile,*.spp:
  238.     Make provisions for compiling an 030/040 only version
  239.     of MiNT; this should be faster and smaller than the
  240.     generic version.
  241. version.h:
  242.     The file system interface changes warrant a new version
  243.     number, so here it is.
  244.  
  245. version 0.97
  246.  
  247. PATCHLEVEL 3::
  248.  
  249. dosdir.c,proc.c:
  250.     Keep a chain of open directories, so that if a program
  251.     terminates without calling closedir() we can still clean
  252.     up after it. Also: allocate directory structures from
  253.     kernel memory rather than user memory, so that we don't
  254.     take an 8K hit on each one. PROBLEM: a bug in the mntlib
  255.     readdir() function causes bus errors if memory protection
  256.     is on. This is a library bug that needs to be fixed
  257.     real soon now.
  258. dosmem.c:
  259.     TSRs now get forced into global memory if they were running
  260.     privately; this should make things easier for users who
  261.     forgot to change prgflags on their TSR programs.
  262. filesys.c:
  263.     New meaning for O_COMPAT mode: deny write access to all other
  264.     processes.
  265. tosfs.c:
  266.     Added a define to turn on/off the RO_FASCISM code. Personally,
  267.     I think it should always be on.
  268. dosdir.c,filesys.c,file.h,*fs.c:
  269.     New file system functions, release() and dupcookie(), so that
  270.     the kernel can inform file systems when it is finished
  271.     with a file cookie; networked file systems will be very
  272.     happy about this.
  273.  
  274. PATCHLEVEL 2::
  275.  
  276. procfs.c:
  277.     Moved the memory protection checks for proc_read and
  278.     proc_write to a separate function in memprot.c.
  279. dosfile.c:
  280.     Remove the old compatibility code for Fcntl(F_SETFL,...).
  281.     (Actually, it's commented out, so we can put it back in
  282.     if we need to.)
  283. signal.c:
  284.     Change default behaviour for SIGFPE (which is raised
  285.     by division by 0) to "ignore", same as TOS.
  286. dosdir.c:
  287.     Made Dgetcwd() use the new size parameter, so that it
  288.     works as advertised.
  289. file.h, *fs.c:
  290.     Provide a "size" parameter for the getname() file system
  291.     function, so that we can do Dgetpath() of arbitrary length
  292.     paths.
  293. util.c:
  294.     BIG_MEM_DUMP is a nasty thing for users to get;
  295.     so we shouldn't do it on all failed mallocs!
  296.  
  297. PATCHLEVEL 1::
  298.  
  299. proc.c:
  300.     Plugged a memory leak (dispose_proc was failing to
  301.     free the process table memory, because fork_proc
  302.     was zeroing that field in the PROC structure).
  303. main.c:
  304.     Fixed MAXMEM= (it was setting the maximum CPU time,
  305.     not the maximum memory -- I thought I tested this!)
  306.  
  307. PATCHLEVEL 0::
  308.  
  309. main.c:
  310.     Added MAXMEM= and SLICES= variables for mint.cnf.
  311. bios.c:
  312.     Fixed Setexc so that if the new vector is in a global
  313.     region, the region is re-marked to be super.
  314. dosmem.c:
  315.     Fixed a race condition with memory protection and
  316.     Pexec(100,...) (if the new process exited early,
  317.     the old process might still try to access it).
  318. realloc.c:
  319.     New file, for doing the Srealloc system call (for
  320.     Falcon TOS).
  321. *.*:
  322.     Merged in Allan's memory protection and debugging
  323.     code. New files: memprot.c, nalloc2.c, welcome.c.
  324.  
  325. version 0.96
  326.  
  327. PATCHLEVEL 14::
  328.  
  329. tosfs.c:
  330.     Aaargh! Just after cutting this patch I discovered
  331.     that I had the test backwards.
  332.  
  333. PATCHLEVEL 13::
  334.  
  335. tosfs.c:
  336.     Changed so that Fsfirst()/Fsnext() always return
  337.     upper case, regardless of domain. (MiNT aware
  338.     programs should use the new directory functions.)
  339. dosdir.c: ++akiernan
  340.     Got rid of the special hack for drive x:, since
  341.     drive x: no longer exists.
  342. asm.y: ++akiernan
  343.     Cleaned up a bit.
  344. *.c: ++julian
  345.     Some minor patches for PureC.
  346. dosdir.c: ++julian
  347.     New system call, Dgetcwd(), with a 'size' parameter;
  348.     this doesn't do anything different from Dgetpath
  349.     now, but it's there for future expansion.
  350.  
  351. PATCHLEVEL 12::
  352.  
  353. version.h:
  354.     Update the patchlevel correctly.
  355. pipefs.c,dosfile.c:
  356.     Keep the Unix style semantics for pipes created with
  357.     Fpipe, but not for other fifo's (which by default will
  358.     continue to read the number of bytes requested).
  359.  
  360. PATCHLEVEL 11::
  361.  
  362. tty.c:    ++schwab
  363.     Support word-erase and quote-next-char.
  364. fasttext.c: ++schwab
  365.     support fgcol/bgcol
  366.     (screen_ioctl): tty_ioctl is now called by parent by default if
  367.     EINVFN
  368. signal.c (check_sigs): ++schwab
  369.     Use an int to index signals, not a long
  370. biosfs.c (bios_getxattr): ++schwab
  371.     u:\dev\stdin, etc., get the attributes of
  372.     the associated files
  373. dos.c (p_setuid, p_setgid): ++schwab
  374.     Allow setting to the current real [gu]id
  375. bios.c (checkkeys): ++schwab@ls5.informatik.uni-dortmund.de
  376.     Keys read by do_func_key should not be
  377.     interpreted (esp. UNDO -> SIGQUIT). also recheck shift status
  378.     since do_func_key may take some time
  379. xbios.c: ++entropy@gnu.ai.mit.edu
  380.     Added code to support old (tos < 1.4) Rsconf()
  381.     semantics.
  382. mem.c:
  383.     Changed so that attempts to execute a shared text program
  384.     which has data/bss references in the text segment will
  385.     get an ENOEXEC error instead of ENSMEM.
  386. *.c: ++julian@math.uni-muenster.de
  387.     Applied Julian's purec patches.
  388.  
  389. PATCHLEVEL 10::
  390.  
  391. pipefs.c:
  392.     Changed so that read() on a pipe will return as
  393.     soon as some data is available; this is how
  394.     all Unixes work.
  395. *.c:
  396.     Applied Julian's patches to allow compilation with
  397.     PureC.
  398. main.c:
  399.     New variable, MAXMEM=, for setting maximum memory
  400.     size (in K).
  401. main.c:
  402.     Removed PSEUDODRIVES= command, since "alias" has
  403.     replaced it.
  404. util.c:
  405.     Changed atoi to atol; it's more generally useful.
  406. asmtrans:
  407.     Applied Howard's patches; in particular, made %ifdef
  408.     apply to other commands (like %define) as well as to
  409.     code generation.
  410.     
  411. PATCHLEVEL 9::
  412.  
  413. asmtrans:
  414.     Cleaned up a bit more for cross-compilation.
  415. intr.spp:
  416.     in_kernel can be set while the process is in user mode
  417.     (if the critical error handler calls GEM)
  418. syscall.spp:
  419.     Get rid of some more magic numbers.
  420. bios.c:
  421.     While fixing the mtt bug, a new bug was introduced. So,
  422.     let's try again :-).
  423.  
  424. PATCHLEVEL 8::
  425.  
  426. bios.c:
  427.     Fixed a particularly silly bug in bios.c: in do_bconin(),
  428.     r was being returned without being initialized. Why didn't
  429.     gcc catch this?
  430. *.c:
  431.     Applied Alex's patches for Lattice, and Julian's patches for
  432.     Pure C.
  433. signal.c:
  434.     Kill programs with p_term() instead of terminate() (except for
  435.     signal SIGKILL) so as to allow them a chance to clean up via
  436.     the term_vec vector.
  437. shmfs.c:
  438.     Allow Fattrib() call to change the read-only
  439.     bit. Made Fxattr() return the correct mode
  440.     for shared memory files.
  441. main.c, fasttext.c:
  442.     Allowed HARDSCROLL=AUTO to set the number of
  443.     lines of scrolling to the current screen size.
  444. syscall.spp, inline.h:
  445.     New functions, callout2() and callout1(), with
  446.     less overhead; used by bios.c to call the
  447.     Bconxxx functions.
  448. bios.c:
  449.     Changed calls to Bconxxx functions into
  450.     jumps through the defined vector table in
  451.     low memory, when this is possible (TOS 1.0
  452.     doesn't have the table).
  453. asmtrans, *.spp:
  454.     Added %ifdef, %else, and %endif commands (for
  455.     future expansion). Removed the requirement that
  456.     macros to be expanded be delimited by % signs,
  457.     and cleaned up the definitions. Changed
  458.     "SECTION FOO" to "FOO". Added -purec compilation
  459.     option.
  460. filesys.c:
  461.     Fixed a bug in changedrv (there was no
  462.     check to see if "d" was a BIOS drive before
  463.     aliasdrv[d] was tested).
  464.  
  465. PATCHLEVEL 7::
  466.  
  467. biosfs.c,fasttext.c:
  468.     Fixed incorrect code that assumed TCURSON
  469.     was 0.
  470. makefile:
  471.     Fixed Makefile to work with older versions
  472.     of gmake, as well as generic make programs.
  473.  
  474. PATCHLEVEL 6::
  475.  
  476. *.s:
  477.     Radical overhaul of how assembly language is
  478.     handled. We now provide 2 utility programs,
  479.     "genmagic" (for producing symbolic names for
  480.     various offsets into structures) and "asmtrans"
  481.     (for processing .spp files, replacing macros
  482.     defined by "genmagic" and optionally translating
  483.     Motorola to MIT syntax). Now we only have to
  484.     maintain the .spp files; the Lattice and gcc
  485.     versions of the .s files are generated automatically,
  486.     and as a side benefit we can get rid of magic
  487.     numbers in the .s files and be sure that if we
  488.     change proc.h, the assembly language will be
  489.     updated properly.
  490. main.c,filesys.c,file.h:
  491.     Added a new command to mint.cnf, "alias", to
  492.     enable aliases for pseudo (and other) drives
  493.     to be created. Also, deleted drives q:, v:, and
  494.     x:. Programs should no longer be using these;
  495.     if they are, users can put things like
  496.     "alias q: u:\pipe" into mint.cnf.
  497. file.h:
  498.     Fixed the definitions for TCURSON and TCURSOFF.
  499. console.c:
  500.     Moved the handle checks in file_* functions into
  501.     separate functions, since for example we *know*
  502.     that handle 0 falls within the legal range; this
  503.     should remove a bit of overhead on BIOS and
  504.     single character GEMDOS I/O.
  505. main.c:
  506.     Got rid of the zeroexit() code; since we now
  507.     allow the whole boot process to be aborted by
  508.     right shift.
  509. pipefs.c:
  510.     Allow Cursconf() to work on TOSWIN pipes.
  511. mem.c:
  512.     Check the date and time of shared text regions
  513.     before re-using them.
  514. bios.c,syscall.s:
  515.     Changed the trap #13 entry point to allow quick
  516.     evaluation of BIOS functions that don't need
  517.     the full context save/restore done.
  518. everywhere:
  519.     Macro-ize TRACE and DEBUG so that it's possible
  520.     to produce a smaller version of MiNT without
  521.     them.
  522. biosfs.c:
  523.     Don't check for keyboard presses after every
  524.     BIOS write, it's too time consuming.
  525.  
  526. PATCHLEVEL 5::
  527.  
  528. mem.c:
  529.     Another bug: we shouldn't do the dLibs Pexec
  530.     hack on the first process we start up, because
  531.     it means messing with the MiNT basepage (which
  532.     is not ours to mess with, it's TOS's).
  533. main.c:
  534.     Fixed bug in enter_kernel (rootproc->base is no
  535.     longer necessarily MiNT's basepage).
  536. various places:
  537.     Tried to remove gcc warnings about constant
  538.     expression overflow.
  539. syscall.s:
  540.     Applied Alex's patch to allow trace mode to work
  541.     with non-MiNT debuggers.
  542. various places:
  543.     Applied Alex's patches to get rid of Lattice warnings
  544.     about unneeded assignments.
  545. mem.c:
  546.     Added extra traces to exec_region() in an effort to
  547.     track down the mysterious crash problems that others
  548.     have had.
  549.  
  550. PATCHLEVEL 4::
  551.  
  552. dosmem.c:
  553.     Made do_vfork not bother to save shared text regions.
  554. bios.c:
  555.     Made Rwabs respect Dlock.
  556. tosfs.c:
  557.     Made the TOS media change routines lazier (actual
  558.     disk access is deferred until the disk is next
  559.     needed).
  560. main.c:
  561.     Applied Alex's patches for setenv.
  562. everywhere:
  563.     Applied Julian's patches for Pure/Turbo C. The
  564.     resulting kernel doesn't actually work yet, but
  565.     at least we don't get so many error messages when
  566.     compiling. (Who needs lint when you have three
  567.     fussy ANSI compilers?)
  568. mint.h:
  569.     Oops; we should have had #include "inline.h" here.
  570. inline.h:
  571.     Applied jrb's GCC patches, and Alex's Lattice patches.
  572.  
  573. PATCHLEVEL 3::
  574.  
  575. bios.c:
  576.     Some optimizations in bflush(). I tried something like
  577.     this before, but messed up the terminal output modes.
  578.     Let's hope I got it right this time. Also:
  579.     removed some dependencies on sizeof(int).
  580. makefile:
  581.     Tried -O2 instead of -O. It seems to work, so let's
  582.     leave it on for now.
  583. inline.h:
  584.     New file to keep short, inlined versions of frequently
  585.     called functions.
  586. intr.s:
  587.     Check the floppy disk locking flag before doing a
  588.     pre-emption. Not really necessary now, but it doesn't
  589.     hurt to be careful.
  590. dosfile.c,*fs.c:
  591.     Applied Alex's F_SETLKW patches. If Alex isn't careful,
  592.     he's going to make MiNT Posix compliant on us :-).
  593. dosmem.c:
  594.     Applied Alex's patches to add a Pwaitpid system call.
  595. main.c:
  596.     If running from the AUTO folder, adjust the basepage
  597.     chains so that MiNT is invisible to programs that
  598.     (incorrectly!) make assumptions about basepages.
  599. proc.c:
  600.     Some optimizations in do_wakeup.
  601. filesys.c:
  602.     Don't call (*fs->dskchng)() twice when a disk
  603.     change is detected.
  604. main.c:
  605.     Make sure the _resvalid system variable has the
  606.     correct magic number in it for indicating that
  607.     we want to catch the reset.
  608.  
  609. PATCHLEVEL 2::
  610.  
  611. dosdir.c:
  612.     Really forbid deleting other process' current
  613.     directories (the actual "return EACCDN" was missing!)
  614. proc.c:
  615.     Inlined the check_time() function, and re-arranged
  616.     do_wakeup_things a bit to be more efficient.
  617. syscall.s:
  618.     Streamlined a bit; things are now kept in registers
  619.     where possible.
  620. filesys.c:
  621.     When loading file systems at startup time, don't
  622.     check the \MINT directory if that's the current one.
  623. filesys.c:
  624.     After a media change, instead of throwing away all
  625.     handles that pointed to the changed drive, make
  626.     them point to /dev/null instead, so that they
  627.     won't be re-used until the user explicitly closes
  628.     them.
  629. dosdir.c:
  630.     Allow Dlock() to succeed even if there is an
  631.     unfinished Fsfirst/Fsnext sequence on the drive.
  632. mem.c:
  633.     Allow relocations outside of the program load area;
  634.     apparently, some programs actually need these.
  635. mem.c:
  636.     Insert some sanity checks on memory addresses.
  637. signal.c:
  638.     Restart check_sigs if the process stopped because of
  639.     a signal, since the parent may reset the set of
  640.     pending signals.
  641. cpu.s:
  642.     New file from Alex, to control caching &c.
  643. various places:
  644.     More debugging patches from Alex, to make attaching
  645.     to existing processes work correctly.
  646.  
  647. PATCHLEVEL 1::
  648.  
  649. various places:
  650.     Cleaned up the debugging stuff a bit. For example, if a
  651.     process does PTRACESFLAGS on itself, it's the same
  652.     as if the parent did; also, if the process does a
  653.     Pexec with overlay (i.e. Unix exec()) then it stops
  654.     before its first instruction. This makes emulating
  655.     the Unix ptrace() system call much easier.
  656.  
  657. PATCHLEVEL 0::
  658.  
  659. biosfs.c:
  660.     Changed Fcntl TIOCISPEED/TIOCOSPEED to return the
  661.     next lowest legal baud rate if an illegal one is
  662.     specified.
  663. filesys.c:
  664.     Fix a bug that would cause an infinite loop if a
  665.     bad .XFS format is encountered.
  666. mem.c,mem.h,dosmem.c:
  667.     Implemented shared text; if the appropriate bit
  668.     (for now, 0x800) in the program header is set, then
  669.     the loader will set up a shared text region for
  670.     the program, and subsequent executions of it will
  671.     run out of the same text segment. Note that this
  672.     does require appropriate compiler support!
  673. filesys.c:
  674.     Fixed bug in the way directory searches are closed
  675.     after a media change.
  676. biosfs.c,intr.s:
  677.     Applied Julian's third mouse button patch for
  678.     /dev/mouse.
  679. *.s:
  680.     Applied Alex's debugging patches. Also: wrote a
  681.     Motorola->MIT syntax converter, so that we only
  682.     have to maintain the stuff in the "asm" directory.
  683. signal.c,proc.h,procfs.c,etc.:
  684.     Applied Alex's debugging patches, with a few
  685.     slight modifications.
  686.  
  687. version 0.95
  688.  
  689. PATCHLEVEL14::
  690.  
  691.  
  692. filesys.c:
  693.     Check for the existence of the \MINT directory before
  694.     trying to load .XFS files from there.
  695.  
  696. --- patchlevel 13 released to the public ---
  697.  
  698. PATCHLEVEL13::
  699.  
  700. proto.h,filesys.c:
  701.     Added Alex's patches for Lattice.
  702.  
  703. PATCHLEVEL12::
  704.  
  705. dosdir.c:
  706.     Fsnext() on symbolic links was broken, because
  707.     relpath2cookie no longer checks drive letters
  708.     unless "depth" is > 0. Fixed this. (why did
  709.     we change relpath2cookie that way?? this is
  710.     changed back in 0.99pl2)
  711. main.c,filesys.c:
  712.     Added support for putting the mint.cnf file
  713.     and any *.XFS files into the directory \mint.
  714. dos.c:
  715.     Added Pgeteuid() and Pgetegid() system calls.
  716. main.c:
  717.     Fixed the "set current directory" code to
  718.     work properly.
  719. main.c:
  720.     Added a sanity check; if GEM is already running,
  721.     don't try to run it again.
  722. procfs.c:
  723.     Added FIONWRITE and FIONREAD ioctl calls.
  724. proc.c,bios.c:
  725.     Fixed the type of the critical error handler.
  726. dosfile.c,file.h,proc.c:
  727.     Added Alex's patches for O_APPEND and O_NOINHERIT.
  728. shmfs.c:
  729.     Fixed lseek() on shared memory segments, and added
  730.     FIONWRITE and FIONREAD ioctl calls.
  731. fasttext.c:
  732.     Tried once again to tame the wild cursor.
  733. dosmem.c,proc.c:
  734.     Modified process startup code so that PROC structures are no
  735.     longer kept forever by the kernel (which should help alleviate
  736.     memory fragmentation problems a bit).
  737.  
  738. PATCHLEVEL11::
  739.  
  740. dosmem.c:
  741.     Applied Alex Kiernan's SIGTRAP bug fix (and kicked myself for
  742.     forgetting C's precedence rules; thanks, Alex!).
  743. filesys.c:
  744.     Fixed relpath2cookie so that names like "C:\Z:" aren't
  745.     interpreted as referring to drive Z:.
  746. fasttext.c:
  747.     Restored the "turn on cursor when opening()" code, because
  748.     without it the fasttext driver and BIOS aren't in sync.
  749. main.c:
  750.     Moved the check for the presence of an already existing MiNT
  751.     cookie to earlier in the initialization process, so that
  752.     the error message can be printed properly.
  753. shmfs.c:
  754.     Fixed Dpathconf() on U:\SHM (filenames are truncated automatically
  755.     on that file system) and corrected the comment there.
  756. syscall.s:
  757.     New function, call_aes, used to check for the presence of GEM
  758.     (so we can tell whether or not we're running from the AUTO folder).
  759. main.c:
  760.     Run any programs which come after mint.prg in the AUTO
  761.     folder.
  762. version.h:
  763.     Changed so that the patchlevel is always printed on boot-up.
  764.  
  765. PATCHLEVEL10::
  766.  
  767. unifs.c:
  768.     Add U:\SHM as an interface for shared memory.
  769. shmfs.c:
  770.     New file system for doing shared memory.
  771. xbios.c:
  772.     Fixed Bconmap() to always return an error if the underlying
  773.     TOS doesn't support Bconmap.
  774. main.c:
  775.     Fixed a bug in the argument parsing code for the "exec"
  776.     command in mint.cnf.
  777. dosdir.c:
  778.     Changed Dlock() to return ELOCKED if an attempt is made to
  779.     lock a drive that's already locked, and ENSLOCK if an attempt
  780.     is made to remove a non-existent lock.
  781. version.h:
  782.     I forgot again to update this. Aargh!
  783.  
  784. PATCHLEVEL9::
  785.  
  786. mem.c,mem.h:
  787.     Align everything on 16 byte boundaries.
  788. mem.c,dosmem.c:
  789.     Actually fix the "memory being allocated twice" bug.
  790.     The problem was that setting m->links to 0 before calling
  791.     attach_region was a no-no.
  792.  
  793. PATCHLEVEL8::
  794.  
  795. mem.c:
  796.     Attempt to fix the strange "memory being allocated
  797.     twice" bug.
  798. tosfs.c:
  799.     Truncating names at 14 characters came *before* the
  800.     8.3 kludge, which meant that long names were being
  801.     interpreted incorrectly (e.g. gcc-cc1plus.ttp was
  802.     becoming "gcc-cc1p.tt"). Temporary kludge: only
  803.     truncate at 32 characters. Long term solution:
  804.     re-write this code to do the 8.3 truncation at the
  805.     same time as the truncation.
  806. main.c, proc.h:
  807.     Provide a more explicit type for criticerr.
  808. proc.c:
  809.     Don't make _logbase per-process if hardware scrolling
  810.     is active, since this makes for all kinds of weirdness!
  811. mem.c:
  812.     Allow NULL commandline to be the same as an empty
  813.     string. (It was acting this way before, due to the MiNT
  814.     library strncpy; now that we use our own strncpy some
  815.     programs were passing funny arguments.)
  816. dosmem.c:
  817.     Provide a more detailed trace of Pexec activity.
  818. mem.c:
  819.     Added a sanity check in get_region().
  820. proc.c:
  821.     Set the time/date stamp of process 0 to the
  822.     date & time when the system was booted.
  823. fasttext.c:
  824.     Commented out the code that turns the cursor
  825.     on when u:\dev\fasttext is opened.
  826. tty.c:
  827.     Unsigned characters are always >= 0, so we
  828.     don't need to check this.
  829.  
  830. PATCHLEVEL7::
  831.  
  832. makefile.lcc,mintlc.prj:
  833.     Added Alex's patches.
  834. assert.h:
  835.     Added Alex's patch to cast the result to void.
  836. filesys.c:
  837.     Make sure the file system media change routine
  838.     is called every time a disk change is forced;
  839.     this corrects the Dlock() bug (it wasn't forcing
  840.     media change as it should have).
  841. version.h:
  842.     Oops! I forgot to increment this for pl6, so
  843.     it jumps by 2 this time.
  844.  
  845. PATCHLEVEL6::
  846.  
  847. biosfs.c,pipefs.c,tty.c:
  848.     New Fcntl calls for controlling terminal baud
  849.     rates and flags such as parity and stop bits.
  850.     These have been integrated with the old TIOC*
  851.     calls where applicable.
  852. dosfile.c:
  853.     Changed Fcntl to make a call to tty_ioctl be the
  854.     default if the device is a terminal and the device
  855.     ioctl routine returns EINVFN.
  856. procfs.c, proc.c:
  857.     The date/time stamp of a process now shows when the
  858.     process was started, rather than being the number
  859.     of seconds of CPU time used.
  860. tosfs.c:
  861.     Degrade an ALERT to a TRACE; there is a circumstance
  862.     in which a root directory can apparently be changed,
  863.     and that's when a program tries to open an empty
  864.     file name. We don't need to warn the user that
  865.     something is wrong in this case; we can just fail
  866.     silently.
  867. proc.c:
  868.     Save the logical screen base for each process.
  869. main.c,bios.c,proc.h:
  870.     Made the critical error handler per-process.
  871. bios.c,syscall.s:
  872.     A cleaner way of saving registers when calling
  873.     functions... this wasn't really necessary, but I
  874.     did it to make tracking a bug down easier.
  875. tty.c:
  876.     New terminal flag, T_NOFLUSH, to suppress flushing of
  877.     input when SIGINT or SIGQUIT is received.
  878. *fs.c, file.h:
  879.     Added a new Dpathconf() option that tells whether or
  880.     not a file system is case sensitive.
  881. dos.c:
  882.     Forbid Prenice() on processes that you don't own.
  883. dosmem.c:
  884.     Correct a typo that was causing terminal process groups
  885.     to be incorrectly set.
  886.  
  887. PATCHLEVEL5::
  888.  
  889. makefile:
  890.     The -DOWN_LIB declaration should have been on (actually,
  891.     it was, in my copy... sorry for the mix-up).
  892. fasttext.c:
  893.     Applied Alex's patch for the disappearing cursor bug.
  894. everywhere:
  895.     Applied Alex's patches to add "const" declarations where
  896.     appropriate, and to get rid of size_t (since if OWN_LIB
  897.     is defined we use "int" instead).
  898. dosmem.c:
  899.     Fixed M_KEEP to attach memory to rootproc *only* at
  900.     process termination.
  901.  
  902.  
  903. PATCHLEVEL4::
  904.  
  905. proto.h:
  906.     Added prototype for do_func_key().
  907. everywhere:
  908.     Applied apratt's debugging/trace patches.
  909.  
  910. PATCHLEVEL3::
  911.  
  912. xbios.c, biosfs.c:
  913.     Change Bconmap to actually do the equivalent of an
  914.     Fforce(-2, foo) call; this way, we don't need the
  915.     ugly DFLTMODM kludge. (On the other hand, we introduce
  916.     some new ugly kludges :-)).
  917. main.c,proc.c:
  918.     Wait until everything is initialized before opening
  919.     devices; this avoids bogus critical error messages from
  920.     AHDI.
  921. util.c, mint.h, ctype.h:
  922.     Add all sorts of utility routines (for string processing,
  923.     character type recognition, and the like). This is
  924.     designed to make sure that MiNT works the same regardless
  925.     of what library is used to compile it. We're not quite
  926.     totally independent of library yet (the startup code and
  927.     <osbind.h> aren't replaced) but we're pretty close.
  928. main.c, proc.c:
  929.     Initialize the current directory for the root
  930.     process *after* file systems have been loaded, since
  931.     otherwise the info is nuked when a new fs is loaded in.
  932. bios.c:
  933.     Allow output to BIOS device 5 to be redirected along
  934.     with BIOS device 2; we do this by using the MW
  935.     ESC-Q control sequence to quote characters. A bit of
  936.     a hack, but then, not many people use device 5.
  937. quickmov.s:
  938.     Fixed two bugs in quickmove: (1) it didn't work for
  939.     regions bigger than 0x00fffe00 bytes in length,
  940.     and (2) it assumed the length was a multiple of 4
  941.     bytes.
  942. fasttext.c:
  943.     Re-arrange things a bit to get rid of a gcc 2.1 warning.
  944. dosmem.c:
  945.     Change flag 0x4000 to mean "don't free the memory
  946.     automatically on process termination"; explicit
  947.     Mfree requests are still allowed, and after
  948.     termination *any* process may Mfree the memory.
  949.  
  950. PATCHLEVEL2::
  951.  
  952. makefile:
  953.     Remove -fcombine-regs from CFLAGS, since gcc 2.1
  954.     doesn't understand it.
  955. bios.c:
  956.     Ignore value returned by Bconout for the screen
  957.     (many text accelerators get this wrong :-( ).
  958. dossig.c, signal.h:
  959.     New system call, Psigaction(), by AGK. 
  960. xbios.c:
  961.     Added support for Bconmap.
  962. bios.c, biosfs.c:
  963.     Rationalized the way biosfs and bios interact;
  964.     no more funny device numbers are needed. Also:
  965.     added support for Bconmap, and a new default
  966.     modem device.
  967. pipefs.c:
  968.     Applied Michael Hohmuth's patch for pipe_close (thanks,
  969.     Michael!)
  970. filesys.c:
  971.     Don't try to initialize all the drives at boot time; path2cookie
  972.     is quite capable of initializing, and it saves having
  973.     to access drive B: (for example) while booting is going
  974.     on.
  975. main.c:
  976.     Allow the user to avoid booting MiNT if the right shift key
  977.     is held down.
  978. main.c:
  979.     Added safety checking, as suggested by AKP.
  980. dosmem.c:
  981.     In Mxalloc, if (mode & 0x4000) is nonzero then allocate non-freeable
  982.     memory (we do this by attaching the memory to the root process).
  983. fasttext.c:
  984.     Tabs should be non-destructive on the ST!
  985. proc.h:
  986.     Re-arranged some things. Note that "slices" was never supposed
  987.     to be visible to users! Also, added a "bconmap" variable to
  988.     give the current Bconmap mapping for the process.
  989. dosdir.c:
  990.     Fail Ddelete of current directories only on the current
  991.     drive; for other drives, reset the current directory
  992.     to the root directory. NOTE: Ddelete of a current directory
  993.     is forbidden only if the directory is someone else's
  994.     current directory; if it's only your current dir., you
  995.     can delete it (and get automatically bumped back to
  996.     root).
  997.  
  998. PATCHLEVEL1::
  999.  
  1000. dosmem.c:
  1001.     Fixed a bug that caused processes with no '.' in their names
  1002.     to have the wrong process name.
  1003. dosmem.c:
  1004.     In Pexec, make sure we yield to the new process so that
  1005.     it gets at least one timeslice to do an Mshrink().
  1006. proc.c:
  1007.     In preempt(), don't punish processes that have buffered
  1008.     BIOS output and are preempted; the process of flushing the
  1009.     buffer may very well put them to sleep, and in any event
  1010.     processes doing I/O should not be considered "hogs".
  1011. tosfs.c:
  1012.     Don't look for volume labels in opendir/readdir/lookup etc.
  1013. main.c:
  1014.     AGK: added DEBUG_LEVEL and DEBUG_DEVNO options to mint.cnf.
  1015. dossig.c:
  1016.     New system call (Psigpause()) courtesy of Alex Kiernan.
  1017. dosmem.c:
  1018.     In Pexec(200,...), don't reset base->p_parent, since the
  1019.     "parent" in an overlay exec is oneself.
  1020. tty.c:
  1021.     Fixed so that RAW mode reads will return all of an
  1022.     extended escape sequence at once, rather than waiting
  1023.     for the next read.
  1024. dosmem.c:
  1025.     When terminating a process, make sure that it's "number of
  1026.     memory regions" is set to 0; otherwise, calls to memused()
  1027.     on the process (e.g. by procfs) can crash the system.
  1028. dosdir.c:
  1029.     When removing directories, make sure that the directory
  1030.     isn't in use as someone's current directory (so that
  1031.     they don't get left in limbo).
  1032. fasttext.c:
  1033.     Screen memory must come from ST RAM -- otherwise hardware
  1034.     scrolling crashes and burns. Fixed thanks to AGK.
  1035. xbios.c:
  1036.     Moved the prototype for midiws to proto.h, and corrected the
  1037.     type of its argument (it should have been "int", not "short").
  1038.  
  1039. PATCHLEVEL0::
  1040.  
  1041. bios.c:
  1042.     Terminal modes weren't being set correctly in Bconout, and also
  1043.     weren't being set in bflush (which should have employed RAW
  1044.     mode output, but didn't).
  1045. everywhere:
  1046.     Merged in Alex Kiernan's latest Lattice C patches.
  1047.  
  1048.  
  1049. version 0.94
  1050.  
  1051. PATCHLEVEL4::
  1052.  
  1053. filesys.c:
  1054.     Use U:\DEV\CON for CON:, instead of V:\CON, since we're
  1055.     going to make drive V: go away soon.
  1056. unifs.c:
  1057.     When looking up a drive, make sure that it has a valid file
  1058.     system attached to it -- otherwise, newly installed ramdisks
  1059.     can cause system crashes :-(.
  1060. fasttext.c:
  1061.     Patches to make the fast text device work correctly on a TT,
  1062.     courtesy of Erling Henanger.
  1063. main.c:
  1064.     Install 16 extra cookies, instead of 8, just to be friendly.
  1065.  
  1066. PATCHLEVEL3::
  1067.  
  1068. main.c:
  1069.     Allow PSEUDODRIVES=MAP to put the extra drives in
  1070.     _drvbits without installing new drivers for them.
  1071. unifs.c:
  1072.     Don't rely on drvmap() to figure out what drives exist;
  1073.     it isn't accurate if PSEUDODRIVES=NO.
  1074.  
  1075. PATCHLEVEL2::
  1076.  
  1077. main.c:
  1078.     Added an option for turning off the BIOS routines for the
  1079.     pseudo-drives.
  1080. filesys.c:
  1081.     Moved the vector set/restore code to main.c (where all the
  1082.     other vector stuff is).
  1083. tosfs.c:
  1084.     If the _FLK cookie was already set when MiNT started, we
  1085.     pass file sharing and locking requests through to GEMDOS.
  1086. main.c:
  1087.     Turn the cursor off when leaving, if we were started from
  1088.     the desktop.
  1089. tosfs.c:
  1090.     Fixed a bug in which tos_chmode was returning an incorrect
  1091.     value.
  1092. debug.c:
  1093.     Added code for octal output to sprintf().
  1094. dosdir.c:
  1095.     Make Fsfirst() with the FA_LABEL bit set work on non-TOS
  1096.     file systems (via the file system readlabel function).
  1097.     (This used to work only when the search was restricted to
  1098.     labels only.)
  1099. various places:
  1100.     Get rid of gcc 2.0 warnings.
  1101.  
  1102. PATCHLEVEL1::
  1103.  
  1104. file.h:
  1105.     Because Fmidipipe and the disk change code can close
  1106.     files other than the files of the current process,
  1107.     the device driver "close" function needs another
  1108.     parameter, namely the process id being closed; this
  1109.     allows device drivers to remove locks properly.
  1110. tosfs.c:
  1111.     Volume labels shouldn't be found by Dreaddir().
  1112. tosfs.c:
  1113.     Added file locking.
  1114. filesys.c, main.c, file.h:
  1115.     New utility routine (denylock) to make implementing file
  1116.     locking easier for file systems.
  1117.  
  1118. PATCHLEVEL0::
  1119.  
  1120. tosfs.c:
  1121.     Canonicalize file names (i.e. convert to 8.3 format).
  1122.     Also, keep track of the value returned from the last
  1123.     readdir() call, so that a subsequent Fxattr() will take
  1124.     place quickly.
  1125. proc.c:
  1126.     In sleep(), make sure interrupts are disabled while queue
  1127.     manipulations are occuring.
  1128. bios.c:
  1129.     Correct a stuttering problem for ^C and similar interrupts.
  1130. dosmem.c:
  1131.     8 character process names weren't terminated properly.
  1132. tty.c:
  1133.     Aaargh! Shift+cursor keys were being interpreted even when
  1134.     they shouldn't have been.
  1135.  
  1136. version 0.93
  1137.  
  1138. PATCHLEVEL6::
  1139.  
  1140. filesys.c:
  1141.     Check for newly installed drives when parsing an
  1142.     absolute path without an explicit drive letter, as
  1143.     well as when looking at ones with drive letters.
  1144.  
  1145. PATCHLEVEL5::
  1146.  
  1147. biosfs.c, fasttext.c:
  1148.     Allow TIOCGWINSZ calls on the console (we use the line A
  1149.     variables to get the number or rows and columns).
  1150. filesys.c:
  1151.     Fix a typo in the file system initialization checking.
  1152. pipefs.c:
  1153.     Make "VIRGIN_PIPE" more obviously a magic value, and
  1154.     document it.
  1155. pipefs.c:
  1156.     Make u:\pipe have a sensible date/time; also, make
  1157.     Dfree on u:\pipe return some useful statistics about
  1158.     the number of pipes in the system.
  1159. procfs.c:
  1160.     u:\proc has a sensible time and date now, namely the
  1161.     time/date of the last process creation or destruction.
  1162. dosfile.c:
  1163.     Fcreate() of a volume label now returns a handle to
  1164.     u:\dev\null.
  1165. dosmem.c:
  1166.     Make sure the BIOSBUF buffer is flushed when terminating.
  1167. main.c:
  1168.     There's a bug in TOS 1.4: GEM seems to assume that all
  1169.     memory is zero initially, and if it isn't (e.g. if a large
  1170.     AUTO folder program like MiNT terminates and leaves behind
  1171.     dirty memory) then having too many (or the wrong kind of)
  1172.     desk accessories can lead to a crash. This was a real bear
  1173.     to track down, and the work-around is very ugly; before
  1174.     MiNT exits we copy a short machine language subroutine into
  1175.     the command line, and then execute it; the routine zeros
  1176.     all of the TPA and then does a Pterm0().
  1177. rendez.c:
  1178.     Change a "short" to "int" for the benefit of gcc 2.0.
  1179. bios.c:
  1180.     Stop process dumps from stuttering.
  1181. console.c:
  1182.     Added support for global file handles.
  1183.  
  1184. PATCHLEVEL4::
  1185.  
  1186. dosfile.c:
  1187.     In Fselect(), we have to re-validate file handles after
  1188.     a sleep() call, since signal handlers may close files.
  1189. proc.c:
  1190.     Pre-allocate more PROC structures (this should help
  1191.     reduce memory fragmentation).
  1192. tty.c, file.h:
  1193.     Allow cursor/function keys to send escape sequences.
  1194. dosdir.c:
  1195.     As suggested by S. Henson: Dsetpath through a symbolic link
  1196.     may also require changing the current drive as well.
  1197. proc.c,dos.c,timeout.c:
  1198.     New process scheduling algorithm, as suggested by A. Pratt.
  1199. dosdir.c:
  1200.     Make only the low bit of Dlock() significant, for future
  1201.     expansion.
  1202. dosfile.c:
  1203.     Allow Fcreate() to create a global file handle.
  1204.  
  1205. PATCHLEVEL3::
  1206.  
  1207. debug.c:
  1208.     Changed TRACE mode output so that not just any keys will
  1209.     start/stop output, but only Help and Undo.
  1210. dosdir.c, filesys.c:
  1211.     Add a Dlock() system call to lock/unlock drives.
  1212. filesys.c:
  1213.     Only initialize drives if the BIOS drive map says that
  1214.     they exist.
  1215. dosmem.c:
  1216.     In Pexec, make a copy of any name we're going to use
  1217.     before freeing memory for overlayed programs; the old
  1218.     way was decidedly incorrect!
  1219. dosfile.c:
  1220.     Allow for global file handles, so that shared libraries
  1221.     can use file handles that are the same for all processes.
  1222. dosmem.c:
  1223.     In Mxalloc, ignore bits that we don't understand, to
  1224.     allow for future expansion.
  1225. syscall.s:
  1226.     Fix a bug that could cause the wrong system call to be
  1227.     made if BIOS buffering is on (!).
  1228. bios.c:
  1229.     Streamline the BIOS buffering mechanism, and make it
  1230.     more conservative about multiple processes doing Bconout
  1231.     output.
  1232. procfs.c:
  1233.     Allow "foo.-1" to stand for the current process, and
  1234.     "foo.-2" to stand for our parent. Also, add new
  1235.     Fcntls for getting/setting memory flags.
  1236. bios.c:
  1237.     In Setexc(), don't actually change any vectors, let the BIOS
  1238.     do it -- some TSR's install trap handlers that look for
  1239.     certain Setexc functions...
  1240. signal.c:
  1241.     Allow nested Supexec() calls, or Supexec()'s from a terminate
  1242.     vector.
  1243. procfs.c:
  1244.     Change the definition of PPROCADDR and add a new Fcntl,
  1245.     PCTXTSIZE.
  1246. mem.c:
  1247.     In exec_region, set the stack based on the value of p_hitpa
  1248.     from the basepage, instead of the size of the memory
  1249.     region -- some programs rely on being able to set the initial
  1250.     stack pointer for a Pexec(4,...) this way.
  1251. main.c, context.s:
  1252.     Avoid using 68020 instructions if we're on a 68010.
  1253.  
  1254. PATCHLEVEL2::
  1255.  
  1256. dos.c,proc.c:
  1257.     More tweaking of the priority code.
  1258. main.c:
  1259.     Change the type of "tosbp" from char ** to BASEPAGE **,
  1260.     since that's what it really is.
  1261. main.c:
  1262.     Add a special case for the Spanish TOS 1.0 act_pd variable.
  1263. pipefs.c:
  1264.     When a writer is waiting to write a small amount of data
  1265.     atomically, remember to wake up readers so that they
  1266.     can clear the pipe!
  1267. debug.c:
  1268.     Add the %u flag to ksprintf() (Fselect uses it, maybe others
  1269.     do too...)
  1270. dosmem.c:
  1271.     In Pterm(), put the exit code onto the stack when calling
  1272.     etv_term. It won't be in the same place as it was for TOS,
  1273.     but c'est la vie. (People asked for this feature...)
  1274. xbios.c:
  1275.     Provide a way to pass arguments to Supexec(). Note that Atari
  1276.     never documented that this was possible, but some people were
  1277.     relying on it anyway :-(. (Don't use this feature, it's only
  1278.     there as a compatibility hack.)
  1279. main.c:
  1280.     In shutdown(), don't bother waiting a second for processes
  1281.     to finish if there are no other processes.
  1282. filesys.c:
  1283.     Make sure that path names are null terminated after strncpy.
  1284. mem.c:
  1285.     Fix the code to zero process registers so that it *only* zeros
  1286.     process registers.
  1287. dosmem.c:
  1288.     Eliminate some redundant code.
  1289. dosfile.c:
  1290.     Open u:\pipe\sys$pipe.xxx rather than q:\sys$pipe.xxx.
  1291. main.c:
  1292.     Change a "malloc" into "kmalloc", and restore the #include
  1293.     of <minimal.h> that was inadvertently deleted.
  1294. main.c:
  1295.     Allow parameters to be passed to the initial program specified
  1296.     by the INIT= string.
  1297.  
  1298. PATCHLEVEL1::
  1299.  
  1300. main.c:
  1301.     Fix a typo in shutdown() that was causing problems when
  1302.     MiNT was shut down while processes were active.
  1303. tosfs.c:
  1304.     Make sure that tfullpath() returns a string less than
  1305.     PATH_MAX characters long.
  1306. everywhere:
  1307.     Replace "sprintf" with "ksprintf".
  1308. debug.c:
  1309.     Add a "ksprintf" function that's like sprintf(), but
  1310.     (a) doesn't have so many features (making it smaller),
  1311.     and more importantly (b) won't try to write more than
  1312.     SPRINTF_MAX characters into a buffer.
  1313. filesys.c:
  1314.     In path2cookie, make sure we don't try to copy more than
  1315.     PATH_MAX characters into the fixed size buffers.
  1316. dosmem.c:
  1317.     The "sleep if no memory available during Malloc" code
  1318.     was causing more problems than it solved, so it was
  1319.     removed. To compensate, we increase the priority of
  1320.     newly Pexec'd processes to make sure that they get
  1321.     to run.
  1322. dosmem.c:
  1323.     Aaaargh! A very serious screw-up in terminate() was
  1324.     causing us to wake up processes sleeping in vfork()
  1325.     even when their children were still using the address
  1326.     space; needless to say, horrible (and mysterious)
  1327.     crashes could ensue. Fix: only force the parent awake
  1328.     if wait_q == WAIT_Q && wait_cond matches the terminating
  1329.     process, otherwise let post_sig() handle waking.
  1330.     While fixing this bug, re-arrange the terminate code
  1331.     to do the waking up at the very end, just in case some
  1332.     of the other code may cause a sleep() temporarily.
  1333. bios.c:
  1334.     Fix the scan code for the UNDO key.
  1335. fasttext.c:
  1336.     Use Setscreen() to set the hardware screen base, since setting
  1337.     the variable at 0x45e causes TOS to keep setting the screen base
  1338.     ad infinitum.
  1339.  
  1340. PATCHLEVEL0::
  1341.  
  1342. rendez.c:
  1343.     When waking a process up from a semaphore, check to see
  1344.     if it's on the WAIT_Q before trying to remove it from
  1345.     that queue (it might have been moved off the wait queue
  1346.     by a signal).
  1347. bios.c:
  1348.     Make sure that Bconout(2,c) always succeeds, to compensate
  1349.     for text accelerators and other programs that don't return
  1350.     sensible values from Bconout. Also, ignore the Bconout
  1351.     return value when flushing the text output buffer.
  1352.  
  1353. version 0.92
  1354.  
  1355. PATCHLEVEL4::
  1356.  
  1357. biosfs.c:
  1358.     Provide devices for the extra Mega STe serial ports.
  1359. biosfs.c:
  1360.     Make the kernel info structure available to device drivers
  1361.     loaded with Dcntl.
  1362. xbios.c:
  1363.     Provide a modified Midiws function so that this is also
  1364.     affected by Fmidipipe and Fforce.
  1365. biosfs.c:
  1366.     Split bios_device into two device drivers; one for
  1367.     terminal devices, and one for plain character devices
  1368.     (the printer and IKBD port fall into this category).
  1369.     Also: provide a new Dcntl call to install plain BIOS
  1370.     devices in U:\DEV.
  1371. tty.c:
  1372.     Check for terminal start/stop keys while reading.
  1373. bios.c:
  1374.     In checkkeys, loop through all keys received since our last
  1375.     interrupt, rather than just checking the last thing in the
  1376.     buffer (as A. Pratt suggested).
  1377. bios.c, tty.c:
  1378.     Made the "disable" character for special terminal functions
  1379.     (e.g. the EOF key) be 0 instead of -1; this matches System V,
  1380.     is more POSIX friendly, and also makes confusing function keys
  1381.     and ^@ less likely. (Thanks to Scott Willingham for this
  1382.     suggestion.)
  1383. file.h, elsewhere as needed:
  1384.     Renamed the O_BIOS flag O_TTY (since that's what it really
  1385.     represents) and renamed the is_bios macro is_terminal.
  1386. dosmem.c:
  1387.     Make Pexec mode 106 cause the child to be truly independent
  1388.     of the parent (i.e. it doesn't get the parent's address space,
  1389.     nor does the parent get the child's).
  1390. biosfs.c:
  1391.     Allow symbolic links from U:\DEV; this lets us do things like
  1392.     Fsymlink("U:\PIPE\SERVERFIFO", "U:\DEV\SERVERDEV").
  1393. main.c:
  1394.     When PRN=d:\foo is specified, create the file foo instead of
  1395.     just trying to open it; this makes no difference to devices,
  1396.     but makes redirecting printer output to a file much more
  1397.     convenient.
  1398. unifs.c:
  1399.     Fix a bug that was causing Dgetpath() to return incorrect
  1400.     information for U:\A.
  1401. timeout.c:
  1402.     Make sure "searchtime" is up-to-date; bconout uses this for
  1403.     the time out.
  1404. biosfs.c:
  1405.     Fix bios_write so that if bconout fails, so does the write.
  1406. bios.c:
  1407.     Fix bconout so that it doesn't hang forever if the device isn't
  1408.     going to be ready (e.g. the printer is off); instead, there's
  1409.     a 10 second timeout.
  1410. main.c:
  1411.     Send all processes SIGTERM when we're shutting down, so that
  1412.     they have a chance to clean up after themselves.
  1413. mint.h:
  1414.     The KBDVEC structure was missing the "clockvec" element (!).
  1415.  
  1416. PATCHLEVEL3::
  1417.  
  1418. biosfs.c:
  1419.     Revised to allow support for loading/removing device drivers
  1420.     dynamically, via a Dcntl() call.
  1421. dosmem.c,mem.c,dosfile.c,file.h:
  1422.     Added support for setuid/setgid. These bits are only checked
  1423.     in Pexec modes 0, 100, and 200, i.e. the "load and go" modes.
  1424. rendez.c:
  1425.     Added new semaphore code from Allan Pratt.
  1426. main.c:
  1427.     New command for mint.cnf: "exec foo.prg bar" runs the program
  1428.     "foo" with argument(s) "bar".
  1429. main.c:
  1430.     Use the XBRA protocol for all interrupt routines that we grab.
  1431. filesys.c:
  1432.     When terminating MiNT, close all open files to make sure data
  1433.     is flushed and devices are nicely shut down.
  1434. main.c:
  1435.     Add some more variables, such as CON and PRN for redirecting
  1436.     those handles, and HARDSCROLL for controlling the fast text
  1437.     output.
  1438. proc.c:
  1439.     Make sure the "links" field for the prn and aux handles is
  1440.     correct.
  1441. syscall.s, bios.c:
  1442.     Special case the BIOS Bconout code to try to speed it up
  1443.     a bit. We allow for buffering of Bconout output; the buffer
  1444.     is flushed on the next non-Bconout system call or context
  1445.     switch. This should usually work OK, but as a precaution
  1446.     we provide for a way to turn it off (BIOSBUF=NO in mint.cnf).
  1447. fasttext.c.fasttext.h:
  1448.     New files for a faster text output device; changes were
  1449.     made to biosfs.c to support this, too.
  1450. tty.c:
  1451.     Streamline writes to terminals by sending data to the
  1452.     tty device in chunks instead of 1 character at a time.
  1453. dosfile.c:
  1454.     In do_open, always return EFILNF, never EPTHNF.
  1455. dosmem.c:
  1456.     Use supexec() to execute the terminate vector code, to
  1457.     avoid duplication of signal 0 faking.
  1458. xbios.c:
  1459.     In Supexec() does leave the kernel, so we have to make
  1460.     appropriate adjustments. We do this by faking a signal
  1461.     (signal 0) and installing the user's function as a signal
  1462.     handler.
  1463. dosdir.c:
  1464.     Make Dfree(x) actually look at free space on the drive which
  1465.     corresponds to the current directory on <x>; this should make
  1466.     Dfree on drive U: much more useful.
  1467. proc.h:
  1468.     Make the "base" field of the PROC structure have type BASEPAGE *
  1469.     (since that's what it is!)
  1470. basepage.h, dosdir.c, dosmem.c:
  1471.     Support some undocumented fields in the basepage a little bit
  1472.     (i.e. they're read only). Programs that try to write to these
  1473.     fields break. Surprise, surprise.
  1474.  
  1475. PATCHLEVEL2::
  1476.  
  1477. dosmem.c, mem.c:
  1478.     The docs say that children started with Pexec(104,...) or
  1479.     Pexec(106,...) share the parent's memory. This was unfortunately
  1480.     not the case; if the parent exited and the child was running
  1481.     in the parent's address space (e.g. see tfork() in mntlib)
  1482.     the child died very soon thereafter (like when the next program
  1483.     comes along and clears the memory the child was running out of).
  1484.     This is now fixed.
  1485. dos.c, proc.c, timeout.c:
  1486.     More tuning of the process scheduler.
  1487. main.c:
  1488.     Added "setenv" function for mint.cnf.
  1489.  
  1490. PATCHLEVEL1::
  1491.  
  1492. filesys.c:
  1493.     In some circumstances, AHDI will keep telling us that a drive
  1494.     has changed, ad infinitum. To avoid this, we stop trying after
  1495.     8 media changes occur in a row.
  1496. util.c:
  1497.     Tuned the kmalloc() strategy to reduce memory fragmentation
  1498.     (every process will be allocating 264 bytes for its
  1499.     memory region maps right after creation, and this should
  1500.     come from kernel memory).
  1501. tty.c:
  1502.     Under TOS, 1 byte writes should always be in raw mode.
  1503. dos.c:
  1504.     In Syield(), we should call sleep() even if no other processes
  1505.     are waiting, just to make sure that signals, alarms, etc.
  1506.     are properly dealt with.
  1507. filesys.c, dosfile.c:
  1508.     The media change code was wedged (actually, the fault was in
  1509.     do_pclose, which sometimes neglected to check to see whether
  1510.     or not the file had a still-valid device driver).
  1511. dosmem.c:
  1512.     In the termination code, close "files" referring to a process
  1513.     *before* freeing all the process memory; that way, we don't
  1514.     have to worry in do_pclose() and other places about what
  1515.     kind of state the process is in.
  1516. mem.h:
  1517.     Round off memory regions only to a word boundary for better
  1518.     TOS compatibility.
  1519.  
  1520. PATCHLEVEL0::
  1521. dos.c,intr.s,syscall.s:
  1522.     Changed s_yield() to actually give up the processor if
  1523.     another process is waiting for it; this means that processes
  1524.     that call Syield() won't be penalized by the priority code.
  1525.     Also: added a new kernel function, preempt(), which does
  1526.     what the old s_yield() did (and hence penalizes CPU hogs).
  1527. makefile:
  1528.     Cleaned up a bit, per suggestions from A. Pratt and D. Gymer.
  1529.  
  1530.  
  1531. version 0.91
  1532.  
  1533. dosmem.c:
  1534.     Only the high 4 bits of the program load flags give memory
  1535.     requirements (we were using 8 bits).
  1536. dosdir.c:
  1537.     Add a hack so that ksh still works (it was using '/' in a
  1538.     path name). THIS HACK WILL GO AWAY SOMEDAY!
  1539. tty.c:
  1540.     CBREAK mode shouldn't do erase, kill, or EOF processing.
  1541. dosdir.c:
  1542.     Freadlink should check first to make sure the file really
  1543.     is a link!
  1544. file.h,tty.c:
  1545.     Change the name "struct winsiz" to "struct winsize" to match
  1546.     what Unix calls it (cosmetic change only).
  1547. unifs.c:
  1548.     Allow renaming of the drives, and allow rmdir() to work
  1549.     like unlink() for symbolic links (since we fake the return
  1550.     value from Fsfirst to look like a directory if the link
  1551.     points to a directory).
  1552. biosfs.c:
  1553.     lseek() on the null device should not return 0 always;
  1554.     otherwise, it will look like a terminal to many programs!
  1555. dosfile.c:
  1556.     If a MiNT domain process closes stdin or stdout, they
  1557.     really do want them closed (for compatibility with
  1558.     MiNT 0.8).
  1559. syscall.s:
  1560.     When returning from traps, don't pre-empt the current process
  1561.     if it's in supervisor mode.
  1562. mem.c:
  1563.     Fake some stuff in the basepage so that programs compiled
  1564.     with dLibs will work some of the time.
  1565. tosfs.c:
  1566.     Make the value returned from Dgetpath() lower case in the MiNT
  1567.     domain. Also, make tosfs a little less verbose when debugging
  1568.     or tracing is on.
  1569. dosmem.c:
  1570.     Try to allocate space for saved fork() memory in the alternate (TT)
  1571.     memory map first, as well as in core (ST) memory.
  1572. mem.h:
  1573.     Round allocation requests up to multiples of 8 bytes instead
  1574.     of 4; this automatically gives us a bit of slush for ill
  1575.     behaved programs, and also means that requests will always
  1576.     be for a multiple of sizeof(double) bytes.
  1577. util.c:
  1578.     Get rid of the extra slush around kmalloc'd regions (which
  1579.     was a lot bigger than originally intended anyway!)
  1580.  
  1581.  
  1582. version 0.9
  1583.  
  1584. PATCHLEVEL21:: released version
  1585.  
  1586. dosmem.c:
  1587.     Make Malloc and Mxalloc try again if there isn't enough memory;
  1588.     maybe the situation is temporary.
  1589. mem.c:
  1590.     Plug a memory leak in load_region(); also make load_region try again
  1591.     if there isn't enough memory to load the program (just in case the
  1592.     situation is temporary).
  1593. dosdir.c:
  1594.     Add a check to Fattrib to make sure that attributes of directories
  1595.     are never changed.
  1596.  
  1597. PATCHLEVEL20::
  1598.  
  1599. dosdir.c:
  1600.     Allow Frenames of processes and other special kinds of files even
  1601.     if they do have the FA_RDONLY bit set.
  1602. dosfile.c:
  1603.     Allow creation of files with the read-only attribute.
  1604. tosfs.c:
  1605.     Change the file deletion code so that an attempt to delete an
  1606.     open file no longer fails, but rather marks the file to be
  1607.     deleted when it is closed.
  1608. file.h:
  1609.     Add some extra space to the tty struct, for future expansion.
  1610. filesys.c,main.c:
  1611.     Make sure the fake BIOS disk routines are available before
  1612.     any of the pseudo-drives are used, by having them set up
  1613.     in init_filesys() instead of init_intr().
  1614. tosfs.c:
  1615.     Remove some debugging output that isn't needed anymore.
  1616.  
  1617. PATCHLEVEL19::
  1618. Beta release.
  1619.  
  1620. intr.s,main.c:
  1621.     provide some fake BIOS disk routines for the pseudo-drives,
  1622.     in hopes of avoiding "drive U: is not responding" types of
  1623.     messages that some have reported
  1624. pipefs.c:
  1625.     half.ttp was failing under mgr, because of a race condition:
  1626.     our select() returns "ready" for a pipe if nobody exists to
  1627.     write to it (since then a read will return immediately). half
  1628.     would make a pipe that would end up being destroyed immediately
  1629.     by mgr before it got attached to a process. Solution: pipes that
  1630.     have *never* been opened yet for writing get a special marker
  1631.     and select doesn't worry about them, only about ones that were
  1632.     once written to.
  1633. pipefs.c:
  1634.     Fixed FIONWRITE to return the correct value.
  1635. dosdir.c:
  1636.     Refuse to Frename a file with the FA_RDONLY attribute.
  1637. biosfs.c:
  1638.     Fixed bios_write to return the number of bytes successfully
  1639.     written.
  1640. bios.c:
  1641.     LAST_DEVICE was inaccurate. This could happen again, so I'm simply
  1642.     getting rid of it and leaving all errors to the BIOS.
  1643. pipefs.c:
  1644.     Make sure the FA_RDONLY attribute is sensible (i.e. unidirectional
  1645.     pipes that don't have a writer can still be written to).
  1646. filesys.c:
  1647.     Fixed relpath2cookie so that it doesn't *always* follow symlinks
  1648.     (it only should when lastname == follow_links)
  1649. dosfile.c:
  1650.     If the FA_RDONLY bit is set on the file, even the superuser should
  1651.     be denied access for writing.
  1652. dosfile.c:
  1653.     Requiring write permission for Fdatime is a Bad Idea, since GEMDOS
  1654.     doesn't; so now MiNT doesn't either.
  1655. tosfs.c, filesys.c:
  1656.     Fixed a bug with media changes (Fsfirst would sometimes try to close a
  1657.     directory that had already been automatically closed by a media change).
  1658.  
  1659. PATCHLEVEL18::
  1660.  
  1661. main.c:
  1662.     Fixed the machine type detection code; it needs to run before
  1663.     biosfs is initialized, i.e. before init_filesys().
  1664. main.c:
  1665.     Provide a configuration file so that users can automatically
  1666.     setup symbolic links and can change their init program.
  1667. biosfs.c:
  1668.     Allow rename on bios devices, so people who want terminals called
  1669.     "ttyX" instead of "modemX" can do so.
  1670. dosdir.c:
  1671.     Flink shouldn't need write permission on the destination
  1672.     directory, only the source.
  1673. dosfile.c:
  1674.     Added FSTAT function for Fcntl, to allow a better version of
  1675.     fstat() for the library.
  1676. dosfile.c:
  1677.     Add code to fcntl to automatically convert MiNT 0.8 O_NDELAY
  1678.     into MiNT 0.9 O_NDELAY. This is a temporary measure only,
  1679.     to let older versions of mgr continue to work for a while.
  1680. filesys.c:
  1681.     Symbolic links with relative paths were always failing with
  1682.     ELOOP. Oops! (Thanks to Stephen Henson for catching this.)
  1683. file.h, tosfs.c, dosfile.c:
  1684.     Added a new flag, FS_NOXBIT, to control whether or not the
  1685.     file system has a sensible notion of execute permission.
  1686.     This removes an ugly check for &tos_filesys.
  1687. mint.h,util.c,mem.c:
  1688.     Added a compile time option, JUNK_MEM, to deliberately fill
  1689.     the memory MiNT acquires with garbage; this is for debugging
  1690.     (to help track down silly failures to initialize memory) and
  1691.     not for production code.
  1692. proc.c:
  1693.     Fixed a typo in init_proc() that was causing memory not to
  1694.     be initialized to 0 correctly. (Thanks are due to Stephen
  1695.     Usher for catching this one.)
  1696. tosfs.c:
  1697.     Added a tos_rewinddir that works.
  1698. file.h:
  1699.     Added blocks and blksize fields to the XATTR structure, and
  1700.     provided a few extra reserved fields for future expansion.
  1701.     (Also: re-arranged some fields to match what the gcc library
  1702.     already has.)
  1703. file.h, main.c:
  1704.     Add sleep, wake, and wakeselect to the kernel info structure;
  1705.     some device drivers will need these.
  1706. biosfs.c:
  1707.     Make nodskchng do a Getbpb on the (non-existent) device; the officially
  1708.     documented way of forcing a disk change requires this.
  1709. file.h,filesys.c,*fs.c:
  1710.     Remove the "flag" argument from the dskchng function, and
  1711.     have the kernel check Rwabs for E_CHNG; this should save
  1712.     a lot of duplication in user file systems, since everyone
  1713.     really has to do this anyways.
  1714. dosdir.c:
  1715.     Make sure that Fsfirst names can be null-terminated.
  1716. filesys.c:
  1717.     Oops: a misplaced bracket in disk_changed was causing
  1718.     write-protected disks to always appear to have changed!
  1719. tosfs.c:
  1720.     Made it illegal to delete or truncate an open file.
  1721.  
  1722. PATCHLEVEL17::
  1723.  
  1724. version.h:
  1725.     I think we can call this version an "alpha" one, now. No more
  1726.     major features remain to be added (fingers crossed, here).
  1727. filesys.c,dosdir.c,*fs.c,file.h:
  1728.     Media change detection code; this is now the kernel's
  1729.     responsibility. This necessitated an additional function
  1730.     for file systems; I hope this is the last one.
  1731. main.c,biosfs.c:
  1732.     Check what kind of machine we're on, and adjust what devices are
  1733.     present accordingly. The rs232 file has been renamed to "modem1".
  1734.     WARNING: This will break existing code that uses the name "rs232".
  1735. filesys.c:
  1736.     Code for loading file systems (finally!)
  1737. bios.c,context.s:
  1738.     Made Rwabs, Getbpb, and Mediach save registers (since device
  1739.     drivers often don't, and loadable file systems will be calling
  1740.     these directly).
  1741. main.c:
  1742.     Implemented the "struct kerinfo" to pass information to loadable
  1743.     file systems.
  1744. filesys.c:
  1745.     Re-wrote path2cookie to provide for symbolic links; a new routine
  1746.     (relpath2cookie) helps us out.
  1747. unifs.c:
  1748.     Code for creating, reading, and deleting symbolic links.
  1749. *fs.c, dosfile.c, file.h:
  1750.     Changed the way file opens and creates are done; the former
  1751.     (*getdev) routine for file systems has been split into
  1752.     (*creat) and (*getdev), both of which are quite a bit simpler.
  1753.     This whole scheme is clearer, less work for the file system,
  1754.     and will support symbolic links much better.
  1755. various places:
  1756.     Add security checks. This is still pretty sad, but at least it
  1757.     can provide one with a modicum of protection against silly
  1758.     mistakes.
  1759. dosfile.c:
  1760.     Require write permission on a file before changing its date via
  1761.     Fdatime.
  1762. tosfs.c:
  1763.     Cleaned up and streamlined a bit, and fixed tos_readlabel.
  1764. *fs.c,dosdir.c,file.h:
  1765.     Changed the file system "getxattr", "chmode", "chown", and
  1766.     "chattr" functions to take a single file cookie instead of a
  1767.     (directory, name) pair. This should make most uses of these
  1768.     functions (e.g. in name lookups) more efficient. Also,
  1769.     changed the readdir() function to return a file cookie to go
  1770.     along with the newly read file name.
  1771. main.c:
  1772.     If "init.prg" isn't found, try starting GEM instead.
  1773. unifs.c:
  1774.     Re-arranged to allow for symbolic links.
  1775. filesys.c:
  1776.     Implemented some media change routines.
  1777. dosdir.c:
  1778.     Added Fchown and Fchmod system calls.
  1779. dosdir.c:
  1780.     Added security check for Fattrib().
  1781.  
  1782. PATCHLEVEL16::
  1783.  
  1784. lots of places:
  1785.     Try to make TRACE() and DEBUG() messages more useful for people
  1786.     who don't know the internals of the kernel, and who just want to
  1787.     debug their own programs.
  1788. dosdir.c:
  1789.     Added Flink, Fsymlink, Freadlink, and Dcntl system calls.
  1790. *fs.c,file.h:
  1791.     Added a new mode to Dpathconf() to determine whether the
  1792.     file system uses DOS type file naming conventions, ordinary
  1793.     Unix type, or _POSIX_NO_TRUNC type.
  1794. file.h:
  1795.     Add an "fscntl" field to the file system structure.
  1796. tosfs.c:
  1797.     Fix the mode values returned from getxattr() (regular files
  1798.     have type S_IFREG, not S_IFMT).
  1799. proc.c:
  1800.     Zero the child's srchdta field after fork_proc(); otherwise,
  1801.     the accounting for Fsfirst/Fsnext can get messed up. Thanks
  1802.     again to S. Henson.
  1803. mem.c:
  1804.     As Steve Henson pointed out, resetting the effective user and
  1805.     group id's in exec_region is probably a Bad Idea.
  1806. dosdir.c:
  1807.     Change Dopendir/Dclosedir to use umalloc and ufree instead of
  1808.     kmalloc and kfree.
  1809.  
  1810. PATCHLEVEL15::
  1811.  
  1812. dosdir.c:
  1813.     When terminating, clean up after any Fsfirst/Fsnext sequences that
  1814.     didn't go to completion.
  1815. tosfs.c:
  1816.     Streamlined garbage collection code, and also corrected a bug in
  1817.     which file indices used in directory searches could be garbage
  1818.     collected.
  1819. file.h, *fs.c:
  1820.     Add symlink and hard link functions.
  1821. pipefs.c:
  1822.     Make FIONWRITE work again (a line was accidentally deleted).
  1823.     Make sure that Fselect() will select any pipes that have been
  1824.     closed.
  1825. dossig.c:
  1826.     Put back the user id check in Pkill.
  1827. dos.c, proc.c:
  1828.     Make sure that the "euid" and "egid" fields are set with
  1829.     the Psetuid and Psetgid calls. Also, make sure the fields
  1830.     are reset after an exec.
  1831. mem.c:
  1832.     Make exec_region shrink the process 'mem' and 'addr' tables
  1833.     to the default again if extra regions had been allocated.
  1834. dosmem.c:
  1835.     Get rid of the magic number "100", and introduce a maximum user
  1836.     settable priority MAX_NICE so that the kernel can make sure
  1837.     that a process that needs to run (e.g. an aborted vfork) will
  1838.     run first by setting its priority to MAX_NICE+1.
  1839. proc.c:
  1840.     Make sure the initial process memory tables are zeroed.
  1841. proc.c:
  1842.     Adjust the process scheduling algorithm (yet again!). Also,
  1843.     rename "nice_count" to "curpri".
  1844. dosdir.c,dos.c:
  1845.     Added Dopendir, Dreaddir, Drewinddir, Dclosedir system calls.
  1846. *fs.c:
  1847.     Made readdir return a file index (inode number) if it's not
  1848.     doing a TOS mode search.
  1849. biosfs.c:
  1850.     PHYSCONS is such an ugly name; CONSOLE makes more sense.
  1851.  
  1852. PATCHLEVEL14::
  1853.  
  1854. mem.c:
  1855.     Allow the kernel to dynamically allocate memory region
  1856.     descriptors if it runs out; also, increase the number that
  1857.     it starts with by default.
  1858. util.c:
  1859.     Made it harmless to call kfree with a NULL argument.
  1860. proc.h,mem.c,dosmem.c,proc.c:
  1861.     Eliminate the 64 region per process limit, by making the "mem"
  1862.     and "addr" arrays dynamically allocated.
  1863. proc.c:
  1864.     Change the code for selecting which process to run next; if more
  1865.     than one process is on the ready queue, we use a per-process
  1866.     counter to prevent high priority processes from hogging all the
  1867.     time.
  1868. dosmem.c:
  1869.     Release a process' controlling terminal (by setting it's process
  1870.     group back to 0) if the process is a process group leader and
  1871.     is exiting.
  1872. dosfile.c,tty.c,*fs.c:
  1873.     Made do_open set terminals up correctly on open/close, and
  1874.     handle assigning process groups to them. Also, made the terminal's
  1875.     process group be set automatically on Fforce(-1,...).
  1876. main.c,timeout.c:
  1877.     Added AKP's code for better resolution of time usage.
  1878. DELETED FILES:
  1879.     xlate.c, xlate32.s, newdisk.s
  1880. everywhere:
  1881.     Removed all references to NEED_TRANSLATION. This is getting to be a
  1882.     pain to maintain, and nobody seems to actually use it.
  1883. *fs.c:
  1884.     Fixed the ENAMETOOLONG detection code in readdir (thanks, Steve!).
  1885. timeout.c:
  1886.     New function, nap, for processes that are in busy loops waiting for
  1887.     an event that probably won't happen for a while (e.g. waiting for
  1888.     the user to hit a key); use e.g. nap(60) to sleep for 60 milliseconds
  1889.     instead of yield().
  1890. mem.c:
  1891.     create_env() should use the value from the current process' basepage,
  1892.     since this may *not* be the same as the environment the process
  1893.     was actually started with
  1894. dosfile.c:
  1895.     Make Fcntl(fh, arg, F_SETFL) leave the file sharing mode alone as well
  1896.     as the read/write mode.
  1897. unifs.c:
  1898.     Change the name "fifo" to "pipe"; change "drva", "drvb" etc. into just
  1899.     "a", "b" etc.
  1900. dosmem.c:
  1901.     Make it possible to provide a name with Pexec mode 104. Provide a new
  1902.     mode 106 that starts a process in the background and automatically
  1903.     detaches the process TPA from the parent's memory.
  1904.  
  1905. PATCHLEVEL13::
  1906.  
  1907. biosfs.c:
  1908.     Made sure that tty_getchar() won't see (long) negative values
  1909.     returned from a successful read, by clearing the high bit
  1910.     of read values.
  1911. *fs.c,atarierr.h:
  1912.     Made file systems responsible for dealing with "." and "..";
  1913.     introduced a new (fake) EMOUNT error to indicate when ".." is
  1914.     found in a root directory (this is for the benefit of the
  1915.     unified file system code)
  1916. dosdir.c,filesys.c:
  1917.     Changes to allow for the unified file system.
  1918. unifs.c, makefile:
  1919.     New file, for a "unified" file system.
  1920. filesys.c, *fs.c:
  1921.     Renamed denyaccess() to denyshare().
  1922. dosdir.c:
  1923.     Changed getname() to work from the root down instead of from
  1924.     the directory up; this should work better for mounting and
  1925.     symbolic links.
  1926. dosdir.c:
  1927.     Moved the check for a drive specifier (A:\FOO) in Dsetpath to
  1928.     where it should have been, namely before any use of the drive.
  1929. biosfs.c,pipefs.c:
  1930.     In opendir, make sure the directory structure is properly
  1931.     initialized.
  1932. dos.c:
  1933.     Changed snice and srenice to pnice and prenice; also modified the
  1934.     return values to be 16 bit (for the normal case), and 32 bit
  1935.     negative for errors, so that low priority processes can be
  1936.     distinguished from errors.
  1937. debug*.c:
  1938.     The Bconstat() check for the printer should be applied to device
  1939.     0, not 1.
  1940.  
  1941. PATCHLEVEL12::
  1942.  
  1943. dosdir.c,filesys.c:
  1944.     Re-wrote Fsfirst/next to use opendir/readdir/closedir. Re-wrote
  1945.     the pat_match function to work correctly (at least, according
  1946.     to the TOS rules :-).
  1947. *fs.c, file.h:
  1948.     Added opendir/readdir/closedir calls to file systems to allow
  1949.     more general file systems; also changed getattr into getxattr
  1950.     (again, to allow file systems with extra goodies), setattr into
  1951.     chattr, and added chown and chmod calls. Deleted sfirst/snext
  1952.     file system entry points, and the Xsfirst/Xsnext system calls.
  1953. *fs.c,file.h,dosfile.c,dosdir.c:
  1954.     Changed file systems to have separate calls for reading/writing
  1955.     volume labels. Added checks to Fattrib and Fcreate to avoid creating
  1956.     files with bad attributes (e.g. FA_LABEL or FA_DIR and anything
  1957.     else).
  1958. main.c:
  1959.     Change the definition of tosvers so that TOS 1.0 corresponds
  1960.     to tosvers == 0x100, not tosvers == 0. Also, clean up the
  1961.     code for testing TOS versions.
  1962.     WARNING: This may break RAM TOS versions. I doubt it matters.
  1963. bios.c,main.c:
  1964.     Always set the kbshft variable, so that kbshift is more
  1965.     efficient.
  1966. dos.c:
  1967.     Eliminated the old code that allowed Super(-1L) to work (GEMDOS
  1968.     doesn't support this, so why should MiNT?)
  1969. dos.c:
  1970.     Added GEMDOS date and time routines, and made sure that
  1971.     datestamp and timestamp are initialized properly when
  1972.     MiNT is started.
  1973. mem.c:
  1974.     Increased the size of the buffer used for reading relocation
  1975.     information in load_region.
  1976. *fs.c, dosfile.c:
  1977.     Changed the filesystem getdev call to return a file cookie
  1978.     (this saves a call to lookup on every open).
  1979. *fs.c, filesys.c:
  1980.     Eliminated static variables, changed all routines that used to
  1981.     return pointers to cookies to take an extra argument (a pointer
  1982.     to the place to put the result).
  1983. tosfs.c:
  1984.     Turn O_COMPAT sharing mode into O_DENYNONE (after making other
  1985.     appropriate changes to the access modes).
  1986. debugold.c:
  1987.     Updated to reflect changes in debug.c.
  1988. debug.c:
  1989.     Added calls to va_end where appropriate.
  1990. debug.c:
  1991.     Before, hitting a key paused debugging output; now, debug_ws
  1992.     checks the device that output is going to, so that e.g. if it's
  1993.     going to the MIDI port, the output is paused when a character
  1994.     arrives on the MIDI port.
  1995. mem.c:
  1996.     Made exec_region use O_DENYNONE sharing mode instead of O_DENYW
  1997.  
  1998. PATCHLEVEL11::
  1999.  
  2000. dosfile.c:
  2001.     Forbid closing file handles < 0; this will prevent accidental
  2002.     destruction of the BIOS handles.
  2003. dosfile.c:
  2004.     Change Fbiosdev to be MIDI specific, rename it to Fmidipipe, and
  2005.     move it to dosfile.c. The semantics are a bit different, too;
  2006.     see the comments in dosfile.c.
  2007. bios.c:
  2008.     Really fix the MIDI output routines, this time. (sigh)
  2009.  
  2010. PATCHLEVEL10::
  2011.  
  2012. signal.c:
  2013.     Fixed a typo in the message printed when bombs occur. Also,
  2014.     removed the copying of data from the supervisor stack to the
  2015.     BIOS area -- this was causing very strange problems, and it's
  2016.     not clear that the info would be useful under MiNT anyway.
  2017.     Finally, all this is only supposed to happen for certain
  2018.     signals, not for any random killings.
  2019.  
  2020. PATCHLEVEL9::
  2021.  
  2022. file.h, *fs.c:
  2023.     Changed the definition of the DTA buffer to free up space for
  2024.     user/group id fields and an extended attributes field. Made
  2025.     sfirst/snext use the 'aux' field of the directory cookie
  2026.     as an index.
  2027. dos.c:
  2028.     Fixed Talarm() to return the number of seconds left before an
  2029.     alarm, not the number of milliseconds.
  2030. dosdir.c:
  2031.     New system calls, Xsfirst/Xsnext, for accessing file systems
  2032.     with long (>12 character) names.
  2033. signal.c:
  2034.     Fill in the BIOS post-mortem dump error correctly after
  2035.     bus errors, address errors, etc. Also, made the "bomb" replacement
  2036.     routine give the process basepage address and program counter,
  2037.     as suggested by AKP.
  2038. tosfs.c:
  2039.     Fixed the tos_lookup bug that was causing bus errors during file
  2040.     opens.
  2041.  
  2042. PATCHLEVEL8::
  2043.  
  2044. tosfs.c:
  2045.     Made opens with O_COMPAT sharing mode always open for both reading
  2046.     and writing; this is so broken TOS programs that write to read-only
  2047.     handles will continue to work.
  2048. file.h, tty.c:
  2049.     Added TIOCGWINSZ/TIOCSWINSZ and the appropriate window size
  2050.     fields to the tty structure to support them.
  2051. dossig.c:
  2052.     Remove user id checks (for now). Make it impossible to catch
  2053.     SIGSTOP.
  2054. bios.c:
  2055.     Fix so Bconout returns a value (it really should, at least for
  2056.     the printer).
  2057. mem.c:
  2058.     Don't context switch and retry alloc_region; file systems and some
  2059.     parts of the kernel aren't expecting the context switch, and besides
  2060.     the previous change makes this tactic less likely to be helpful.
  2061. mem.c:
  2062.     Don't allocate *all* of the memory to the basepage, leave some for
  2063.     the kernel and other programs.
  2064. pipefs.c:
  2065.     Add a check for broken pipes when a program is trying to write
  2066.     atomically.
  2067. dosmem.c:
  2068.     Block job control signals during a vfork instead of ignoring
  2069.     them; this will result in the "right" thing happening after
  2070.     the exec (since the blocked signals will then be unblocked).
  2071. tosfs.c:
  2072.     Eeek! Fixed a very serious bug in the garbage collection
  2073.     routines ("i" was used where "j" should have been in a loop:
  2074.     result: things could be garbage collected that shouldn't
  2075.     have been!)
  2076. procfs.c:
  2077.     changed the return value from "dfree" to more accurately indicate
  2078.     the free memory in the system, and to also provide information
  2079.     about the smallest unit of allocable memory (currently a longword)
  2080. *fs.c,dosfile.c,dosdir.c,filesys.c:
  2081.     instead of passing fcookies to file systems, pass pointers to
  2082.     them; this should slightly improve efficiency, and greatly
  2083.     improve portability (otherwise, compilers used to make
  2084.     installable file systems would have to have the same structure
  2085.     passing/return conventions as the one that compiled the kernel)
  2086. dos.c:
  2087.     new system call, Srenice(), to change priority of a different
  2088.     process
  2089. dos.c:
  2090.     change Fbiosdev() system call to take a pid argument
  2091. proc.h, dosfile.c:
  2092.     add per-file descriptor flags for things like "close on exec"
  2093. file.h, mem.c, *fs.c:
  2094.     new file open mode, O_EXEC, for the kernel to use in Pexec
  2095. rendez.c, dos.c:
  2096.     new file from AKP to implement a simple and fast message based
  2097.     IPC; the new system call is Pmsg. Also note that the syscall number
  2098.     of Pmsg is 0x125, which used to be used by Fbiosdev; Fbiosdev has
  2099.     been moved to 0x126.
  2100. filesys.c:
  2101.     applied Steve Henson's patches to improve path2cookie's handling of
  2102.     repeated slashes
  2103. proc.h:
  2104.     MAX_OPEN should be 32, not 20!
  2105. mem.c:
  2106.     Ignore "close on exec" flag for the standard handles (for some
  2107.     reason, bash manages to set these for 0,1,2; this is probably a bug
  2108.     in the port of bash, but on the other hand it's unlikely that
  2109.     anyone would really want to close the standard handles when doing
  2110.     an exec, anyway)
  2111. tty.c:
  2112.     Fixed RAW mode reads on terminals so that they're no longer
  2113.     terminated by '\r' or '\n' (and so that pty slaves aren't forced
  2114.     to read just 1 character at a time). Thanks to AKP for catching
  2115.     this.
  2116.  
  2117. PATCHLEVEL7::
  2118.  
  2119. *fs.c:
  2120.     Cleaned up the Dpathconf() return values to better reflect
  2121.     reality, and made the code a little easier to understand.
  2122. bios.c:
  2123.     Adjust bcostat() parameters so that V:\MIDI and V:\KBD call
  2124.     the right (wrong) device (BIOS devices 3 and 4 are mixed
  2125.     up for Bcostat).
  2126. dosmem.c:
  2127.     Made sure that Malloc(0L) always returns a NULL pointer.
  2128. dosfile.c:
  2129.     Made Fclose() of handles 0, 1, 2, and 3 restore the default
  2130.     mappings. (Apparently TOS _does_ do this, after all.)
  2131. bios.c:
  2132.     AHDI 3.1 added a new parameter to Rwabs; we now pass that
  2133.     along too.
  2134. timeout.c:
  2135.     Make canceltimeout() free the memory used by the time out
  2136.     descriptor. (another Fselect bug)
  2137. signal.h:
  2138.     Removed ABORT and ALARM from list of signals that are reported
  2139.     by the kernel.
  2140. proc.c:
  2141.     Moved checkalarms() to do_wakeup_things() so that short time outs
  2142.     will be properly recognized; this fixes a nasty bug in Fselect.
  2143.  
  2144. PATCHLEVEL6::
  2145.  
  2146. pipefs.c:
  2147.     Make writes of 1024 or fewer bytes atomic. Also, increase pipe
  2148.     buffer size to 4096.
  2149. tosfs.c:
  2150.     Make O_EXCL and O_TRUNC bits useful.
  2151. tosfs.c,pipefs.c,filesys.c:
  2152.     Fully implement file sharing modes for tosfs and pipefs. A new
  2153.     routine (denyaccess) is provided in filesys.c for checking
  2154.     file open modes and determining conflicts (if any).
  2155. pipefs.c:
  2156.     If a process writes on a broken pipe while ignoring SIGPIPE,
  2157.     the write now returns -1. (Thanks, Stephen)
  2158. debug.c, bios.c:
  2159.     Applied bammi's patches to PATCHLEVEL 5 to fix some typos.
  2160.  
  2161. PATCHLEVEL5::
  2162.  
  2163. debug.c, bios.c:
  2164.     Applied AKP's debugging output patches, to allow TRACE and
  2165.     DEBUG output to go to serial ports as well as the printer.
  2166.  
  2167. PATCHLEVEL4::
  2168.  
  2169. dos.c:
  2170.     NEW SYSTEM CALL: Fbiosdev() to control redirection of BIOS
  2171.     devices.
  2172. bios.c, proc.h:
  2173.     Added binput and boutput arrays to allow for per-process redirection
  2174.     of BIOS device input and output to GEMDOS file handles.
  2175. biosfs.c:
  2176.     Changed "mdi" to "midi".
  2177.     WARNING: this change could (I suppose) break existing code.
  2178. util.c:
  2179.     Added a umalloc() function to allocate memory in user space,
  2180.     and modified the various sfirst routines to use this to
  2181.     allocate space for patterns instead of kmalloc.
  2182. dosdir.c,file.h:
  2183.     Added an FS_CASESENSITIVE flag to control conversion of file
  2184.     names to upper case for TOS domain processes.
  2185. dosdir.c, *fs.c:
  2186.     Made sfirst/snext functions take an extra argument, the length
  2187.     of the file name field in the DTA buffer (so that we can provide
  2188.     Xsfirst/Xsnext functions that can work with longer names)
  2189. mem.c:
  2190.     Fixed exec_region so that the close-on-exec flag works.
  2191. filesys.c:
  2192.     Made path2cookie take the name of the place to store the last
  2193.     component of the path name as an argument (instead of always
  2194.     storing it in the global variable temp1).
  2195. biosfs.c:
  2196.     Added code for O_NDELAY on bios devices.
  2197. tosfs.c:
  2198.     Cleaned up garbage collection a bit -- I hope this fixes the
  2199.     problems with running out of indices.
  2200. filesys.c:
  2201.     Returned the special parsing code for CON:, AUX:, etc.
  2202. file.h:
  2203.     OOPS! The flock structure was missing an element (l_whence). It
  2204.     was added.
  2205.     WARNING: This change may break existing code.
  2206. util.c:
  2207.     Made kmalloc take a long parameter, just in case installable
  2208.     file systems need lots of memory.
  2209. file.h, atarierr.h, pipefs.c:
  2210.     Made file modes compatible with _FLK specification. Also
  2211.     added the ELOCKED and ENSLOCK errors to atarierr.h, and made
  2212.     pipefs.c use ELOCKED instead of EACCDN.
  2213.     WARNING: this *will* break existing programs. In particular, mgr
  2214.     no longer works :-( because O_NDELAY has changed. (this was
  2215.     temporarily patched)
  2216. dos.c,dosfile.c:
  2217.     Added Flock() system call.
  2218. mem.c:
  2219.     Made the initial user stack pointer low enough so that syscall.s
  2220.     won't run into the end of memory if the user makes a system call
  2221.     right away and doesn't push many parameters (the code in syscall
  2222.     always tries to copy a large chunk of the caller's stack).
  2223. dosmem.c:
  2224.     Made vfork'd processes ignore job control signals (thanks to
  2225.     Stephen for pointing out how some shells rely on BSD's similar
  2226.     behaviour).
  2227.  
  2228. PATCHLEVEL3::
  2229.  
  2230. dosfile.c, file.h, *fs.c, bios.c:
  2231.     Changed f_select to use the new timeout mechanism, and provided
  2232.     routines in device drivers to wake up selecting processes.
  2233. proc.h:
  2234.     New queue, SELECT_Q, for processes doing "select", to match above
  2235.     changes
  2236. dos.c:
  2237.     Changed t_alarm to use the new timeout mechanism.
  2238. timeout.c,proc.h:
  2239.     Added a new "timeout" mechanism, so that processes can specify
  2240.     an action to be taken when a counter expires.
  2241. various places:
  2242.     Cleaned up TRACE and DEBUG output
  2243. proc.c:
  2244.     Set current directory based on the TOS current directory
  2245.     when MiNT is starting up.
  2246. debug.c:
  2247.     Added AKP's "trace" mode patch
  2248. filesys.c:
  2249.     Replaced strcmp() for . and .. with direct comparisons, again
  2250.     per AKP.
  2251. tosfs.c:
  2252.     Improved search performance a bit (indicies are now allocated
  2253.     at the beginning of the list, instead of at the end)
  2254. main.c, version.h:
  2255.     Introduced PATCHLEVEL for alpha and beta test versions    
  2256. util.c:
  2257.     Made kmalloc() try the kernel memory region first for small
  2258.     regions, to cut down fragmentation of the user's memory space
  2259. proc.h:
  2260.     Made the system stacks bigger, to compensate for the bigger
  2261.     contexts now that there's FPU support
  2262. dosmem.c:
  2263.     Fixed bug with Pexec mode 6 (thanks again, AKP)
  2264. biosfs.c:
  2265.     Changed FD0 to STDIN, FD1 to STDOUT, etc.
  2266.     WARNING: this change could break existing code
  2267. filesys.c:
  2268.     '/' is no longer a directory separator for MiNT domain processes
  2269.     (few were using it, and it simplifies things to be able to
  2270.     assume '\' is the only such separator).
  2271.     WARNING: this change could break existing code
  2272. all over the place:
  2273.     Changed the way directories/files are stored. We now have
  2274.     "file cookies" for directories, instead of strings. We
  2275.     also now have two directories per drive per process
  2276.     (a root and current).
  2277. minixfs.c:
  2278.     Removed from the main compile, and MINIX_FS symbol was also
  2279.     removed -- this will be a loadable file system someday
  2280.     (soon, I hope).
  2281. various places:
  2282.     Added Alex Kiernan's patches to support compilation under
  2283.     Lattice C v5
  2284. proc.h, context.s:
  2285.     Added Alex Kiernan's FPU co-processor patches. WARNING: this
  2286.     changes the layout of the proc structure in memory, and so
  2287.     breaks "ps" and similar programs.
  2288. proc.c:
  2289.     Changed sleep() to take the wait condition as an argument; this
  2290.     means that fewer things need to know the internals of the
  2291.     PROC structure
  2292. various places:
  2293.     Added AKP's T_TOSTOP flag changes
  2294. minixfs.c:
  2295.     Changed the 8K buffer in do_change to a static variable; our
  2296.     stacks aren't *that* big!
  2297. intr.s:
  2298.     Fixed a typo that was causing serious problems with the bus
  2299.     error and other exception codes on the TT (thanks for
  2300.     catching this, Allan).
  2301. dosmem.c,signal.c:
  2302.     Corrected the GEMDOS termination vector code (the system stack
  2303.     was being corrupted if the user's code returned). Thanks to
  2304.     Julian Reschke for catching this error.
  2305. ===========================================================================
  2306. version 0.8
  2307.  
  2308. biosfs.c, pipefs.c:
  2309.     fix ^C and ^Y to send the signals to the whole process group,
  2310.     and also to make sure processes don't read these keys if
  2311.     they're turned into signals
  2312. intr.s,dossig.c:
  2313.     fix exception handlers to be more careful about the distinction
  2314.     between being in or out of the kernel
  2315. intr.s, syscall.s, main.c:
  2316.     make sure interrupts are off before changing any vectors
  2317. bios.c:
  2318.     fixed the annoying problems with CTRL-ALT-Fx sometimes leaving
  2319.     keys in the buffer
  2320. signal.c:
  2321.     forced p_sigreturn() with no signal pending to unwind the
  2322.     *whole* signal stack, in case there were multiple signals
  2323.     pending at the time the user did a longjmp() (or whatever
  2324.     prompted the Psigreturn())
  2325. dosmem.c:
  2326.     p_wait3 now supports the WUNTRACED bit; if this isn't set,
  2327.     processes stopped due to job control are *not* returned
  2328. dosmem.c:
  2329.     removed dLibs kludge -- some programs rely on p_parent being
  2330.     non-zero to tell them that they're not accessories
  2331. various places:
  2332.     cleaned up job control stuff to be more Unix like
  2333. mem.c,util.c:
  2334.     added a new memory map for the kernel -- this should ease
  2335.     the problems with programs grabbing all of available memory
  2336. mem.c,dosmem.c:
  2337.     incorporated Allan's bugfixes; alternative RAM should work now
  2338. signal.c, main.c, intr.s:
  2339.     integrated signals with normal exceptions, so that e.g.
  2340.     a bus error raises SIGBUS. This improves the survivability
  2341.     of the kernel, so that a bus error resulting from a bad
  2342.     system call parameter won't kill MiNT, just the offending
  2343.     process.
  2344. proc.c:
  2345.     kludge to let low priority processes run every so often, even
  2346.     in the presence of a high priority process that is ready to run
  2347. atarierr.h:
  2348.     ENMFIL is -49, not -47 -- so much for Abacus' docs :-)
  2349. procfs.c:
  2350.     changes to allow read/write from process space
  2351. minixfs.[ch]:
  2352.     changed lots of function parameter types to avoid promotion and
  2353.     prototype problems with 32 bit code
  2354. bios.c:
  2355.     changed IOREC to IOREC_T to avoid name conflicts with some osbind.h
  2356. biosfs.c:
  2357.     made mouse driver change the line A mouse position variables, so MGR
  2358.     will work with bigscrn and similar large screen emulators
  2359. minixfs.c:
  2360.     new version from Stephen, now supports floppies and other removable
  2361.     media
  2362. mem.c, dosmem.c, dos.c:
  2363.     added code to support new TT TOS calls Mxalloc and Maddalt, plus
  2364.     program flags for loading/mallocing in alternate memory
  2365. bios.c,biosfs.c,dosfile.c:
  2366.     changed so that bios handles 0 and 1 can be redirected just like
  2367.     handle 2 (via the new file handles -3 and -2 respectively; AUX:
  2368.     and PRN: now refer to these files, and RS232 and CENTR to the
  2369.     physical devices)
  2370. dosdir.c:
  2371.     Dsetdrv() fixed to return an error indication when one happens
  2372. dos.c:
  2373.     fixed Super() bug (thanks Stephen)
  2374. minixfs.c:
  2375.     incorporated changes to handle 1K sector sizes
  2376.  
  2377. =============================================================================
  2378. version 0.7
  2379.  
  2380. minixfs.c:
  2381.     new file, courtesy of Stephen N. Henson (olorin@tardis.cs.ed.ac.uk)
  2382.     this is still "under construction"; see minixfs.doc for more details
  2383. bios.c:
  2384.     CTRL-ALT-UNDO now raises SIGQUIT, for the benefit of people with
  2385.     foreign ROMs (some have trouble with ^\)
  2386. filesys.c:
  2387.     changed pathname resolution code so that multiple slashes in a file
  2388.     name have the same effect as single slashes. POSIX mandates this,
  2389.     and some Unix programs expect it, too
  2390. dosmem.c:
  2391.     changed do_vfork() code so that the text segment of processes is
  2392.     *not* saved in a fork() if the process has separate text, data, and
  2393.     bss segments; this saves a fair bit of memory
  2394. proc.c:
  2395.     changed the process initialization code to better deal with job
  2396.     control; also changed handle 2 to be AUX: (as under TOS) rather
  2397.     than PRN:
  2398. bios.c:
  2399.     added CTRL-ALT-F5 (show memory usage) and CTRL-ALT-F6
  2400.     (show processes)
  2401. filesys.c:
  2402.     make explicit the fact the individual file names are limited to
  2403.     14 characters
  2404. everywhere:
  2405.     change FILENAME_MAX to PATH_MAX
  2406. mem.c:
  2407.     fixed up comments and debugging/trace info for load_region
  2408. dossig.c:
  2409.     NEW SYSTEM CALL: Psigpending() returns the set of signals that
  2410.     have been sent to the process, but not yet delivered.
  2411. dos.c, dosdir.c:
  2412.     NEW SYSTEM CALLS:
  2413.     Sysconf(n) returns information about the global limits of the
  2414.     currently running version of MiNT
  2415.     Dpathconf(name, n) returns information about the file system that
  2416.     the file "name" is located on
  2417. bios.c:
  2418.     allow CTRL-ALT-C, CTRL-ALT-\, and CTRL-ALT-Z to force a SIGINT,
  2419.     SIGQUIT, or SIGTSTP, respectively, even if the terminal is in raw
  2420.     mode
  2421. various places:
  2422.     call zero() instead of bzero()
  2423. context.s,intr.s:
  2424.     changes to make MiNT TT compatible. Thanks to Allan Pratt for this!
  2425. biosfs.c, tosfs.c, pipefs.c, procfs.c:
  2426.     fsfirst/fsnext return all upper case in TOS domain now, but
  2427.     lower case (or mixed) in MiNT domain; this is to try to wean
  2428.     programmers off of the habit of assuming everything is upper case
  2429.     (and converting accordingly)
  2430. biosfs.c:
  2431.     made mouse compatible with TOS ALT-cursor keys (the Y direction was
  2432.     wrong before)
  2433. intr.s:
  2434.     IPL 7 before reboot (thanks, Allan)
  2435. version.h, main.c:
  2436.     made version numbering a bit easier (big deal)
  2437. main.c:
  2438.     AARGH! The cookie jar stuff was plain wrong (the last cookie should
  2439.     have the total number of slots, not just the ones that are free).
  2440. main.c:
  2441.     pass current environment along to init.prg, instead of forcing an
  2442.     empty environment
  2443. signal.c:
  2444.     corrected killpg() bug (wasn't checking signals, so the current
  2445.     process didn't get the signal until later)
  2446. mem.c, dosmem.c:
  2447.     made sure that all sizes would always be rounded to the nearest
  2448.     longword. Just in case they aren't, Malloc(-1L) rounds down to the
  2449.         next smallest longword.
  2450. lots of places:
  2451.     memory handling was overhauled completely; kmalloc now allocates
  2452.     memory from the same space as do m_alloc and p_exec, so there is
  2453.     no artificial constraint on the number of processes
  2454. ===========================================================================
  2455. version 0.6
  2456.  
  2457. dos.c:
  2458.     added Talarm() and Pause() system calls
  2459. bios.c, tty.c, pipefs.c:
  2460.     added real tty structures that programs can manipulate
  2461. proc.c:
  2462.     added some sanity checks for things like stack overflow
  2463. signal.c:
  2464.     revamped signal handling so that Psigreturn() no longer needs an
  2465.     argument.
  2466. dosmem.c:
  2467.     made Pexec'ing processes immune to SIGINT, SIGHUP, and SIGTSTP
  2468. intr.s:
  2469.     fixed the Psigreturn race condition bug
  2470. biosfs.c, pipefs.c, filesys.c, util.c:
  2471.     added case-insensitive string comparison routine, and modified the
  2472.     file systems to use it
  2473. bios.c, console.c:
  2474.     changed return values of status calls from 1 to -1, to be TOS
  2475.     compatible
  2476. dos.c:
  2477.     added new calls to get resource usage, and set resource limits
  2478. dosfile.c:
  2479.     added new call, f_select
  2480. signal.c:
  2481.     changed so stopped processes always have a return code of 0177
  2482. biosfs.c:
  2483.     added a fake "third button" on the mouse (you get it by holding down
  2484.     a shift key and a mouse button)
  2485.     made mouse_read return at least 1 byte
  2486. bios.c, proc.c, biosfs.c:
  2487.     added code to check for CTRL-ALT-key combinations on every
  2488.     process switch; thus, debugging, rebooting, etc. do not require
  2489.     waiting for a read from the keyboard. Also, ^C sends a SIGINT
  2490.     immediately, and ^Z (SIGTSTP) and ^\ (SIGQUIT) take effect
  2491.     right away, too.
  2492.     CTRL-ALT-DEL supported for TOS < 1.4
  2493.  
  2494. =========================================================================
  2495. version 0.5
  2496.  
  2497. First publically released version (made available for FTP as a beta test)
  2498.  
  2499.