Annotation of MiNT/src/changes, revision 1.1.1.3

1.1       root        1: Changes are listed in *reverse* order, most recent changes being
                      2: 
                      3: first.
                      4: 
                      5: 
                      6: 
1.1.1.3 ! root        7: version 1.08
        !             8: 
        !             9: 
        !            10: 
        !            11: dosfile.c,dosdir.c,filesys.c:
        !            12: 
        !            13:        Made the file and directory operations re-entrant, by replacing
        !            14: 
        !            15:        the global variable "temp1" with local variables (where needed).
        !            16: 
        !            17: dosdir.c,filesys.c: [email protected]
        !            18: 
        !            19:        Cleaned up the directory closing functions.
        !            20: 
        !            21: dosmem.c: [email protected]
        !            22: 
        !            23:        Fixed a bug in do_vfork (the child's PROC structure could be
        !            24: 
        !            25:        freed when signals are checked for, and the old code wasn't
        !            26: 
        !            27:        prepared for that).
        !            28: 
        !            29: purec\*.*: [email protected]
        !            30: 
        !            31:        Updated for the new version of MiNT.
        !            32: 
        !            33: *.*: [email protected]
        !            34: 
        !            35:        Lots of fixes to get rid of warnings and some small optimizations.
        !            36: 
        !            37: dosmem.c,procfs.c: [email protected]
        !            38: 
        !            39:        In Pexec, save the name and arguments a process was started with
        !            40: 
        !            41:        into the PROC structure, so that they can be recovered at run time.
        !            42: 
        !            43: filesys.c,main.c,unifs.c: ++Ulrich Kuehn
        !            44: 
        !            45:        At boot time, load files called *.xdd which contain external
        !            46: 
        !            47:        device drivers.
        !            48: 
        !            49:        Also, provide Dcntl calls for drive U: to allow installing and
        !            50: 
        !            51:        de-installing file systems at run time.
        !            52: 
        !            53: bios.c: [email protected]
        !            54: 
        !            55:        Only busy-wait for the parallel port, not for serial ports.
        !            56: 
        !            57: unifs.c: [email protected]
        !            58: 
        !            59:        Pass Dcntl commands along to file systems.
        !            60: 
        !            61: signal.c: [email protected]
        !            62: 
        !            63:        Make Fselect interruptable.
        !            64: 
        !            65: procfs.c: [email protected]
        !            66: 
        !            67:        Check for illegal signal numbers in ioctl(PTRACEGO,...).
        !            68: 
        !            69: dosdir.c:
        !            70: 
        !            71:        Fattrib should have been following links.
        !            72: 
        !            73: *.spp: ++Claus Brod and Uwe Seimet
        !            74: 
        !            75:        Various optimizations
        !            76: 
        !            77: 
        !            78: 
        !            79: version 1.07
        !            80: 
        !            81: 
        !            82: 
        !            83: debug.c: [email protected]
        !            84: 
        !            85:        Translated the German "FATAL ERROR" message.
        !            86: 
        !            87: intr.spp:
        !            88: 
        !            89:        The bus error handler shouldn't use 68030 MMU instructions unless
        !            90: 
        !            91:        it is on a 68030. (Thanks to Stephen Henson for catching this.)
        !            92: 
        !            93: 
        !            94: 
        !            95: version 1.06
        !            96: 
        !            97: 
        !            98: 
        !            99: bios.c: [email protected]
        !           100: 
        !           101:        Fixed a bug with Bconout and TOS 1.02.
        !           102: 
        !           103: dosmem.c:
        !           104: 
        !           105:        Bug fix: Pexec mode 4 should cause the child to inherit its parent's
        !           106: 
        !           107:        memory.
        !           108: 
        !           109: filesys.c:
        !           110: 
        !           111:        if disk_changed() detects an invalid drive, return EDRIVE from
        !           112: 
        !           113:        it and also from path2cookie().
        !           114: 
        !           115: main.c:
        !           116: 
        !           117:        Fixed the PRN= line in mint.cnf (it was redirecting AUX:, not
        !           118: 
        !           119:        PRN:).
        !           120: 
        !           121: xbios.c:
        !           122: 
        !           123:        Made Dosound() automatically grant supervisor access to the
        !           124: 
        !           125:        region the sound is in.
        !           126: 
        !           127: debug.c:
        !           128: 
        !           129:        Make the "FATAL ERROR" message multilingual, and also less
        !           130: 
        !           131:        confusing if debugging information is not provided.
        !           132: 
        !           133: timeout.c,main.c:
        !           134: 
        !           135:        Make the addtimeout() and canceltimeout() functions available
        !           136: 
        !           137:        for device drivers.
        !           138: 
        !           139: signal.c: [email protected]
        !           140: 
        !           141:        Reduce the amount of space needed for signal calls (we were
        !           142: 
        !           143:        being overly cautious on that),
        !           144: 
        !           145: dosmem.c: [email protected]
        !           146: 
        !           147:        Make sure that the text segment in which a process will be
        !           148: 
        !           149:        executing is attached to that process when it is started with
        !           150: 
        !           151:        a Pexec (4,...).
        !           152: 
        !           153: asmtrans: [email protected]
        !           154: 
        !           155:        Enhanced to accept some 68030 specific addressing modes.
        !           156: 
        !           157: proc.c:
        !           158: 
        !           159:        Removed the save/restore of the logical screen pointer for the
        !           160: 
        !           161:        MultiTOS kernel (this causes problems on a Falcon, since if the
        !           162: 
        !           163:        AES changes resolution its parent process may be left with a
        !           164: 
        !           165:        logical screen pointer pointing at invalid memory). 
        !           166: 
        !           167: bios.c: [email protected]
        !           168: 
        !           169:        Some small optimizations.
        !           170: 
        !           171: biosfs.c:
        !           172: 
        !           173:        Fcntl() was not interacting properly with rsconf(), so that
        !           174: 
        !           175:        setting baud rates via Fcntl didn't work.
        !           176: 
        !           177: dosfile.c:
        !           178: 
        !           179:        Fforce() should return 0 on success.
        !           180: 
        !           181: context.spp,cpu.spp: [email protected]
        !           182: 
        !           183:        Patches for PureC.
        !           184: 
        !           185: intr.spp: [email protected]
        !           186: 
        !           187:        Small optimization: no return value is needed for spl().
        !           188: 
        !           189: 
        !           190: 
        !           191: version 1.05
        !           192: 
        !           193: 
        !           194: 
        !           195: main.c: [email protected]
        !           196: 
        !           197:        A better Falcon BIOS fix: if we're on a broken Falcon, turn
        !           198: 
        !           199:        off Bconmap completely.
        !           200: 
        !           201: various places: [email protected]
        !           202: 
        !           203:        Applied Michael's patch to make MiNT compile with PureC and
        !           204: 
        !           205:        the MiNT library.
        !           206: 
        !           207: memprot.c: [email protected]
        !           208: 
        !           209:        Fixed a bug in prot_temp (the cookie values weren't being
        !           210: 
        !           211:        parsed out correctly). Also, added "const" where appropriate.
        !           212: 
        !           213: dosfile.c: [email protected]
        !           214: 
        !           215:        Fixed some places where the fdflags[] for file handles
        !           216: 
        !           217:        wasn't be set up correctly (default is 0 for std handles,
        !           218: 
        !           219:        FD_CLOEXEC for non-std).
        !           220: 
        !           221: cpu.spp,main.c: [email protected]
        !           222: 
        !           223:        Saved the MMU context when starting MiNT, so that we can
        !           224: 
        !           225:        restore it again afterwards (and thus exit MiNT gracefully).
        !           226: 
        !           227: main.c: [email protected]
        !           228: 
        !           229:        Supplied a PMMU cookie if memory protection is on; if a PMMU
        !           230: 
        !           231:        cookie already exists, don't do memory protection.
        !           232: 
        !           233: fasttext.c: [email protected]
        !           234: 
        !           235:        Added ESC-t support to the fasttext device.
        !           236: 
        !           237: bios.c: [email protected]
        !           238: 
        !           239:        Some modem port TSRs also don't return the correct value from
        !           240: 
        !           241:        Bconout.
        !           242: 
        !           243: dos.c:
        !           244: 
        !           245:        Made Tsettime() and Tsetdate() available only to the super user.
        !           246: 
        !           247: various places: [email protected],[email protected]
        !           248: 
        !           249:        Portability fixes to make the code compile with PureC and
        !           250: 
        !           251:        Lattice C; also, Alex fixed up the cache clearing code.
        !           252: 
        !           253: tosfs.c: [email protected]
        !           254: 
        !           255:        Fixed a bug in the NEWWAY code (during disk change, don't
        !           256: 
        !           257:        free file cookies that may be in use).
        !           258: 
        !           259: context.spp: [email protected]
        !           260: 
        !           261:        In the restore context code, touch the page containing the
        !           262: 
        !           263:        (new) supervisor stack pointer before switching stack pointers.
        !           264: 
        !           265:        Otherwise, if the page is not resident (a 3rd party virtual
        !           266: 
        !           267:        memory system has swapped it out) then the resulting
        !           268: 
        !           269:        bus error is fatal.
        !           270: 
        !           271: tosfs.c: [email protected]
        !           272: 
        !           273:        Fixed a bug that could cause crashes on disk changes (the
        !           274: 
        !           275:        'open' field was an integer for directories).
        !           276: 
        !           277: rendez.c, mem.c: [email protected]
        !           278: 
        !           279:        Fixed some memory leaks (semaphores weren't freed after being
        !           280: 
        !           281:        destroyed, and if load_and_reloc failed then the memory
        !           282: 
        !           283:        allocated for the shared text region wasn't freed).
        !           284: 
        !           285: procfs.c:
        !           286: 
        !           287:        When tracing is cancelled for a process with PTRACESFLAGS,
        !           288: 
        !           289:        start the process again by sending it SIGCONT.
        !           290: 
        !           291: procfs.c: [email protected]
        !           292: 
        !           293:        Don't allow processes to be removed by a different user.
        !           294: 
        !           295: signal.c:
        !           296: 
        !           297:        Fixed the debug tracing code so that SIGCONT doesn't stop
        !           298: 
        !           299:        a process, even if it is being traced.
        !           300: 
        !           301: procfs.c:
        !           302: 
        !           303:        Dpathconf was returning the wrong value (8 instead of 12 -- it
        !           304: 
        !           305:        wasn't taking the pid number extension into account).
        !           306: 
        !           307: 
        !           308: 
        !           309: version 1.04
        !           310: 
        !           311: 
        !           312: 
        !           313: bios.c:
        !           314: 
        !           315:        Changed the way timeout worked for Bconout() stuff (basically,
        !           316: 
        !           317:        rewrote the code so that it really does work -- the old code
        !           318: 
        !           319:        used the system clock in timeout.c, which doesn't get updated
        !           320: 
        !           321:        if no context switches are happening; the new code uses the
        !           322: 
        !           323:        200hz counter, which is always updated).
        !           324: 
        !           325: proc.h:
        !           326: 
        !           327:        Increased the number of Fsfirst searches that can happen
        !           328: 
        !           329:        simultaneously to 10 from 6 (this is a per-process
        !           330: 
        !           331:        limit, not system wide).
        !           332: 
        !           333: 
        !           334: 
        !           335: version 1.03
        !           336: 
        !           337: 
        !           338: 
        !           339: xbios.c: [email protected]
        !           340: 
        !           341:        In old versions of TOS, Rsconf could get stuck waiting for the
        !           342: 
        !           343:        transmit buffer to empty if flow control was on. Added a timeout.
        !           344: 
        !           345: dos.c:
        !           346: 
        !           347:        Changed Psetpgrp so that passing a pgrp of -1 makes it into
        !           348: 
        !           349:        an inquiry call.
        !           350: 
        !           351: filesys.c: [email protected]
        !           352: 
        !           353:        Fixed a bug in Flock (regions were being locked 1 byte too far).
        !           354: 
        !           355: mem.h:
        !           356: 
        !           357:        Changed the memory allocation quantum to 256 bytes, so that
        !           358: 
        !           359:        Srealloc will always work right on ST's.
        !           360: 
        !           361: 
        !           362: 
        !           363: version 1.02
        !           364: 
        !           365: 
        !           366: 
        !           367: main.c:
        !           368: 
        !           369:        Run any AUTO folder programs appearing after MINTNP.PRG
        !           370: 
        !           371:        as well as just plain MINT.PRG.
        !           372: 
        !           373: syscall.spp:
        !           374: 
        !           375:        Pop more stuff off the stack in sig_return, since we
        !           376: 
        !           377:        did push more onto it in handle_sig. (It really shouldn't
        !           378: 
        !           379:        matter, restore_context will restore the stack pointer
        !           380: 
        !           381:        anyway, but better safe than sorry.)
        !           382: 
        !           383: filesys.c,mem.c:
        !           384: 
        !           385:        Made the open file associated with shared text memory
        !           386: 
        !           387:        regions be closed automatically when a media change occurs.
        !           388: 
        !           389: xbios.c:
        !           390: 
        !           391:        Changed the do_usrcall function into an assembly language
        !           392: 
        !           393:        routine which preserves all registers. Apparently some
        !           394: 
        !           395:        programs rely on being able to pass parameters to Supexec
        !           396: 
        !           397:        in registers. We only used to kill register A0, which was
        !           398: 
        !           399:        reserved for BIOS use anyway, but obviously some programmers
        !           400: 
        !           401:        choose not to read the f'ing manual.
        !           402: 
        !           403: dosdir.c: [email protected]
        !           404: 
        !           405:        Fixed a typo (PATH_MAX where ERANGE should have been).
        !           406: 
        !           407: biosfs.c: [email protected]
        !           408: 
        !           409:        Check control keys on every newline, so users get quick response
        !           410: 
        !           411:        to their key hits.
        !           412: 
        !           413: tty.c: [email protected]
        !           414: 
        !           415:        Fixed a typo (t_startc is the character to use to resume terminal
        !           416: 
        !           417:        output, not t_stopc!)
        !           418: 
        !           419: dosdir.c,dosmem.c,filesys.c,tosfs.c: [email protected]
        !           420: 
        !           421:        Fixed many dup_cookie and release_cookie bugs; the code should be much
        !           422: 
        !           423:        more usable now.
        !           424: 
        !           425: main.c:
        !           426: 
        !           427:        Corrected a flaw in the 68030 only version -- it assumed that
        !           428: 
        !           429:        68030 was synonymous with memory protection. Also: set
        !           430: 
        !           431:        mcpu correctly.
        !           432: 
        !           433: main.c:
        !           434: 
        !           435:        Checked to see if we're called "MINTNP.PRG"; if so, turn off
        !           436: 
        !           437:        memory protection automatically. Commented out the code
        !           438: 
        !           439:        for automatically turning MP off on 1 meg machines.
        !           440: 
        !           441: 
        !           442: 
        !           443: version 1.01
        !           444: 
        !           445: 
        !           446: 
        !           447: main.c,intr.spp:
        !           448: 
        !           449:        Use init_tail for the temporary stack (saves us 128 bytes of bss,
        !           450: 
        !           451:        oh boy).
        !           452: 
        !           453: main.c:
        !           454: 
        !           455:        If less than 1 megabyte is free, turn off memory protection
        !           456: 
        !           457:        automatically.
        !           458: 
        !           459: mem.h:
        !           460: 
        !           461:        If there's no memory protection, do all ROUNDing etc. to
        !           462: 
        !           463:        16 byte boundaries rather than 8K page boundaries.
        !           464: 
        !           465: mem.c:
        !           466: 
        !           467:        Added a check for the ability to move screen RAM; evidently
        !           468: 
        !           469:        some boards use ST RAM but still don't allow Setscreen()
        !           470: 
        !           471:        to work.
        !           472: 
        !           473: all over the place: [email protected]
        !           474: 
        !           475:        Cleaned up the code for PureC compatibility.
        !           476: 
        !           477: all over the place: [email protected]
        !           478: 
        !           479:        Cleaned up the code for Lattice compatibility.
        !           480: 
        !           481: fasttext.c: [email protected]
        !           482: 
        !           483:        Sped up by special casing some of the gotoxy() calls, and
        !           484: 
        !           485:        also allowed 8 pixel high characters in monochrome mode.
        !           486: 
        !           487: dosdir.c: [email protected]
        !           488: 
        !           489:        Allow Frename() to succeed on symbolic links.
        !           490: 
        !           491: signal.c: [email protected]
        !           492: 
        !           493:        Save processor context stuf in the reserved BIOS area even for
        !           494: 
        !           495:        bus errors with memory protection on.
        !           496: 
        !           497: dosfile.c: [email protected]
        !           498: 
        !           499:        Initialize the exception file descriptors to 0, in anticipation
        !           500: 
        !           501:        of future use of this Fselect feature.
        !           502: 
        !           503: dosfile.c: [email protected]
        !           504: 
        !           505:        Allow pipes to be opened and written to with O_APPEND mode.
        !           506: 
        !           507: version.h:
        !           508: 
        !           509:        Got rid of the PATCHLEVEL define. Now that I've finally
        !           510: 
        !           511:        checked everything into RCS, it's much easier to just bump
        !           512: 
        !           513:        up the version numbers on each release.
        !           514: 
        !           515: 
        !           516: 
        !           517: version 1.00
        !           518: 
        !           519: 
        !           520: 
        !           521: welcome.c,version.h:
        !           522: 
        !           523:        Sigh. This is MultiTOS 1.0's MiNT, so even though I don't
        !           524: 
        !           525:        consider it "finished", I'm changing the version number to
        !           526: 
        !           527:        1.0. At least it's no worse than TOS 1.0 :-).
        !           528: 
        !           529: memprot.c:
        !           530: 
        !           531:        We want to flush the ATC cache, *not* the CPU cache. Thanks
        !           532: 
        !           533:        for pointing this out, Alex.
        !           534: 
        !           535: bios.c:
        !           536: 
        !           537:        Fixed a problem with Speedo GDOS; if the printer's buffer was
        !           538: 
        !           539:        full, Bconout(2,...) would do a context switch, which is not
        !           540: 
        !           541:        a good thing for Speedo.
        !           542: 
        !           543: 
        !           544: 
        !           545: version 0.99
        !           546: 
        !           547: 
        !           548: 
        !           549: PATCHLEVEL 2::
        !           550: 
        !           551: 
        !           552: 
        !           553: main.c:
        !           554: 
        !           555:        Big bug fix -- the do_exec_os routine was being called with a
        !           556: 
        !           557:        basepage that occupied all of memory, so that the Pexec(200) it
        !           558: 
        !           559:        did was failing due to insufficient memory. Now we Mshrink the
        !           560: 
        !           561:        basepage; this also necessitates fixing up the stack pointer.
        !           562: 
        !           563: main.c:
        !           564: 
        !           565:        Handle mint.cnf files that don't end in a carriage return/line feed
        !           566: 
        !           567:        combination.
        !           568: 
        !           569: filesys.c:
        !           570: 
        !           571:        New path parsing code to correct a bug in the way symbolic
        !           572: 
        !           573:        links were being handled on loadable file systems.
        !           574: 
        !           575: 
        !           576: 
        !           577: PATCHLEVEL 1::
        !           578: 
        !           579: 
        !           580: 
        !           581: debug.c:
        !           582: 
        !           583:        Made the default debugging level give ALERT messages.
        !           584: 
        !           585: dosfile.c:
        !           586: 
        !           587:        Corrected a bug in the way global file handles are closed.
        !           588: 
        !           589: 
        !           590: 
        !           591: PATCHLEVEL 0::
        !           592: 
        !           593: 
        !           594: 
        !           595: dosmem.c:
        !           596: 
        !           597:        Made it so that overlay Pexec modes (e.g. 200) set up
        !           598: 
        !           599:        the basepage to preserve the same "parent".
        !           600: 
        !           601: main.c:
        !           602: 
        !           603:        Added in a kludge so that if we're starting GEM from a file
        !           604: 
        !           605:        (e.g. gem.sys) then we do it via the exec_os vector. I hope
        !           606: 
        !           607:        this makes the Codeheads happy :-).
        !           608: 
        !           609: dosmem.c,tty.c:
        !           610: 
        !           611:        Backed out entropy's and schwab's changes. Random programs
        !           612: 
        !           613:        were getting stopped under MultiTOS because of them; I can't
        !           614: 
        !           615:        find the cause, so let's go back to something that worked
        !           616: 
        !           617:        (if suboptimally).
        !           618: 
        !           619: main.c:
        !           620: 
        !           621:        Fixed a silly initialization error: we should not
        !           622: 
        !           623:        assume a default language, we should get it from
        !           624: 
        !           625:        the ROMs.
        !           626: 
        !           627: dosdir.c: [email protected]
        !           628: 
        !           629:        Extended Dlock: if bit 1 of the mode is set, then the
        !           630: 
        !           631:        process id of the process using the drive is returned
        !           632: 
        !           633:        instead of ELOCKED or EACCDN; this allows for more
        !           634: 
        !           635:        informative error messages.
        !           636: 
        !           637: welcome.c:
        !           638: 
        !           639:        Updated the copyright notice.
        !           640: 
        !           641: 
        !           642: 
        !           643: version 0.98
        !           644: 
        !           645: 
        !           646: 
        !           647: PATCHLEVEL 4::
        !           648: 
        !           649: 
        !           650: 
        !           651: dosmem.c,tty.c: [email protected]
        !           652: 
        !           653:        Corrected some silliness in the job control code.
        !           654: 
        !           655: 
        !           656: 
        !           657: PATCHLEVEL 3::
        !           658: 
        !           659: 
        !           660: 
        !           661: xbios.c:
        !           662: 
        !           663:        Took out the ONLY030 optimization; it didn't work correctly
        !           664: 
        !           665:        (I can't see any reason why it shouldn't have worked, but
        !           666: 
        !           667:        it didn't; perhaps a compiler bug bit us?)
        !           668: 
        !           669: 
        !           670: 
        !           671: PATCHLEVEL 2::
        !           672: 
        !           673: 
        !           674: 
        !           675: main.c:
        !           676: 
        !           677:        Changed magic shift key to LEFT shift key.
        !           678: 
        !           679: filesys.c:
        !           680: 
        !           681:        Make loaded .XFS files go into supervisor accessible
        !           682: 
        !           683:        memory.
        !           684: 
        !           685: welcome.c,main.c:
        !           686: 
        !           687:        Ask user in her own language whether or not to boot if the
        !           688: 
        !           689:        kernel is a MultiTOS one and she held down the shift key.
        !           690: 
        !           691: filesys.c:
        !           692: 
        !           693:        Relax O_COMPAT mode opens somewhat so that any
        !           694: 
        !           695:        number of processes can open the file for reading,
        !           696: 
        !           697:        as long as no more than 1 has it open for writing.
        !           698: 
        !           699:        ALSO: make sure O_EXEC gets treated the same as O_RDONLY.
        !           700: 
        !           701: dosfile.c:
        !           702: 
        !           703:        Change TRACE() to TRACELOW() on Fread and Fwrite.
        !           704: 
        !           705: tosfs.c:
        !           706: 
        !           707:        Went back to old method of doing tosfs.c; this is
        !           708: 
        !           709:        better tested and safer.
        !           710: 
        !           711: dos.c:
        !           712: 
        !           713:        New system call, Salert(msg), for doing an alert message.
        !           714: 
        !           715: debug.c:
        !           716: 
        !           717:        Terminate messages written to the alert pipe with a 0.
        !           718: 
        !           719:        Also: pour them into alert boxes so that programs like
        !           720: 
        !           721:        sysalert don't have so much to do.
        !           722: 
        !           723: 
        !           724: 
        !           725: PATCHLEVEL 1::
        !           726: 
        !           727: 
        !           728: 
        !           729: fasttext.c: ++shenson
        !           730: 
        !           731:        Corrected the quote_putch function.
        !           732: 
        !           733: dosdir.c:
        !           734: 
        !           735:        Allow Dfree(n) to work if "n" is a big number (e.g. BIOSDRV)
        !           736: 
        !           737:        and the corresponding pseudo-drive is a current or root directory
        !           738: 
        !           739:        of the current process.
        !           740: 
        !           741: pipefs.c: [email protected]
        !           742: 
        !           743:        Return a new error number, EPIPE, for writes to broken pipes.
        !           744: 
        !           745: tty.c: [email protected]
        !           746: 
        !           747:        If a tty loses its owner, the next process to do i/o to it
        !           748: 
        !           749:        will become the owner.
        !           750: 
        !           751: dosfile.c: [email protected]
        !           752: 
        !           753:        FA_RDONLY doesn't mean "read only" on the process file system,
        !           754: 
        !           755:        so allow such processes to be opened for writing.
        !           756: 
        !           757: 
        !           758: 
        !           759: PATCHLEVEL 0::
        !           760: 
        !           761: 
        !           762: 
        !           763: xbios.c:
        !           764: 
        !           765:        Fixed Supexec to pass the function pointer on the stack, too
        !           766: 
        !           767:        (just as TOS does). This is still undocumented behaviour,
        !           768: 
        !           769:        so you rely on it at your own risk.
        !           770: 
        !           771: xbios.c: [email protected]
        !           772: 
        !           773:        Applied a fix for Rsconf() with TOS 1.04, and made the
        !           774: 
        !           775:        old TOS Rsconf stuff #ifndef ONLY030.
        !           776: 
        !           777: proc.c,dosmem.c:
        !           778: 
        !           779:        Wrap all calls to add_q/rm_q in spl7(), so that the
        !           780: 
        !           781:        wakeselect() function truly can be called from
        !           782: 
        !           783:        interrupt code.
        !           784: 
        !           785: makefile,*.spp:
        !           786: 
        !           787:        Make provisions for compiling an 030/040 only version
        !           788: 
        !           789:        of MiNT; this should be faster and smaller than the
        !           790: 
        !           791:        generic version.
        !           792: 
        !           793: version.h:
        !           794: 
        !           795:        The file system interface changes warrant a new version
        !           796: 
        !           797:        number, so here it is.
        !           798: 
        !           799: 
        !           800: 
        !           801: version 0.97
        !           802: 
        !           803: 
        !           804: 
        !           805: PATCHLEVEL 3::
        !           806: 
        !           807: 
        !           808: 
        !           809: dosdir.c,proc.c:
        !           810: 
        !           811:        Keep a chain of open directories, so that if a program
        !           812: 
        !           813:        terminates without calling closedir() we can still clean
        !           814: 
        !           815:        up after it. Also: allocate directory structures from
        !           816: 
        !           817:        kernel memory rather than user memory, so that we don't
        !           818: 
        !           819:        take an 8K hit on each one. PROBLEM: a bug in the mntlib
        !           820: 
        !           821:        readdir() function causes bus errors if memory protection
        !           822: 
        !           823:        is on. This is a library bug that needs to be fixed
        !           824: 
        !           825:        real soon now.
        !           826: 
        !           827: dosmem.c:
        !           828: 
        !           829:        TSRs now get forced into global memory if they were running
        !           830: 
        !           831:        privately; this should make things easier for users who
        !           832: 
        !           833:        forgot to change prgflags on their TSR programs.
        !           834: 
        !           835: filesys.c:
        !           836: 
        !           837:        New meaning for O_COMPAT mode: deny write access to all other
        !           838: 
        !           839:        processes.
        !           840: 
        !           841: tosfs.c:
        !           842: 
        !           843:        Added a define to turn on/off the RO_FASCISM code. Personally,
        !           844: 
        !           845:        I think it should always be on.
        !           846: 
        !           847: dosdir.c,filesys.c,file.h,*fs.c:
        !           848: 
        !           849:        New file system functions, release() and dupcookie(), so that
        !           850: 
        !           851:        the kernel can inform file systems when it is finished
        !           852: 
        !           853:        with a file cookie; networked file systems will be very
        !           854: 
        !           855:        happy about this.
        !           856: 
        !           857: 
        !           858: 
        !           859: PATCHLEVEL 2::
        !           860: 
        !           861: 
        !           862: 
        !           863: procfs.c:
        !           864: 
        !           865:        Moved the memory protection checks for proc_read and
        !           866: 
        !           867:        proc_write to a separate function in memprot.c.
        !           868: 
        !           869: dosfile.c:
        !           870: 
        !           871:        Remove the old compatibility code for Fcntl(F_SETFL,...).
        !           872: 
        !           873:        (Actually, it's commented out, so we can put it back in
        !           874: 
        !           875:        if we need to.)
        !           876: 
        !           877: signal.c:
        !           878: 
        !           879:        Change default behaviour for SIGFPE (which is raised
        !           880: 
        !           881:        by division by 0) to "ignore", same as TOS.
        !           882: 
        !           883: dosdir.c:
        !           884: 
        !           885:        Made Dgetcwd() use the new size parameter, so that it
        !           886: 
        !           887:        works as advertised.
        !           888: 
        !           889: file.h, *fs.c:
        !           890: 
        !           891:        Provide a "size" parameter for the getname() file system
        !           892: 
        !           893:        function, so that we can do Dgetpath() of arbitrary length
        !           894: 
        !           895:        paths.
        !           896: 
        !           897: util.c:
        !           898: 
        !           899:        BIG_MEM_DUMP is a nasty thing for users to get;
        !           900: 
        !           901:        so we shouldn't do it on all failed mallocs!
        !           902: 
        !           903: 
        !           904: 
        !           905: PATCHLEVEL 1::
        !           906: 
        !           907: 
        !           908: 
        !           909: proc.c:
        !           910: 
        !           911:        Plugged a memory leak (dispose_proc was failing to
        !           912: 
        !           913:        free the process table memory, because fork_proc
        !           914: 
        !           915:        was zeroing that field in the PROC structure).
        !           916: 
        !           917: main.c:
        !           918: 
        !           919:        Fixed MAXMEM= (it was setting the maximum CPU time,
        !           920: 
        !           921:        not the maximum memory -- I thought I tested this!)
        !           922: 
        !           923: 
        !           924: 
        !           925: PATCHLEVEL 0::
        !           926: 
        !           927: 
        !           928: 
        !           929: main.c:
        !           930: 
        !           931:        Added MAXMEM= and SLICES= variables for mint.cnf.
        !           932: 
        !           933: bios.c:
        !           934: 
        !           935:        Fixed Setexc so that if the new vector is in a global
        !           936: 
        !           937:        region, the region is re-marked to be super.
        !           938: 
        !           939: dosmem.c:
        !           940: 
        !           941:        Fixed a race condition with memory protection and
        !           942: 
        !           943:        Pexec(100,...) (if the new process exited early,
        !           944: 
        !           945:        the old process might still try to access it).
        !           946: 
        !           947: realloc.c:
        !           948: 
        !           949:        New file, for doing the Srealloc system call (for
        !           950: 
        !           951:        Falcon TOS).
        !           952: 
        !           953: *.*:
        !           954: 
        !           955:        Merged in Allan's memory protection and debugging
        !           956: 
        !           957:        code. New files: memprot.c, nalloc2.c, welcome.c.
        !           958: 
        !           959: 
        !           960: 
1.1.1.2   root      961: version 0.96
                    962: 
                    963: 
                    964: 
                    965: PATCHLEVEL 14::
                    966: 
                    967: 
                    968: 
                    969: tosfs.c:
                    970: 
                    971:        Aaargh! Just after cutting this patch I discovered
                    972: 
                    973:        that I had the test backwards.
                    974: 
                    975: 
                    976: 
                    977: PATCHLEVEL 13::
                    978: 
                    979: 
                    980: 
                    981: tosfs.c:
                    982: 
                    983:        Changed so that Fsfirst()/Fsnext() always return
                    984: 
                    985:        upper case, regardless of domain. (MiNT aware
                    986: 
                    987:        programs should use the new directory functions.)
                    988: 
                    989: dosdir.c: ++akiernan
                    990: 
                    991:        Got rid of the special hack for drive x:, since
                    992: 
                    993:        drive x: no longer exists.
                    994: 
                    995: asm.y: ++akiernan
                    996: 
                    997:        Cleaned up a bit.
                    998: 
                    999: *.c: ++julian
                   1000: 
                   1001:        Some minor patches for PureC.
                   1002: 
                   1003: dosdir.c: ++julian
                   1004: 
                   1005:        New system call, Dgetcwd(), with a 'size' parameter;
                   1006: 
                   1007:        this doesn't do anything different from Dgetpath
                   1008: 
                   1009:        now, but it's there for future expansion.
                   1010: 
                   1011: 
                   1012: 
                   1013: PATCHLEVEL 12::
                   1014: 
                   1015: 
                   1016: 
                   1017: version.h:
                   1018: 
                   1019:        Update the patchlevel correctly.
                   1020: 
                   1021: pipefs.c,dosfile.c:
                   1022: 
                   1023:        Keep the Unix style semantics for pipes created with
                   1024: 
                   1025:        Fpipe, but not for other fifo's (which by default will
                   1026: 
                   1027:        continue to read the number of bytes requested).
                   1028: 
                   1029: 
                   1030: 
                   1031: PATCHLEVEL 11::
                   1032: 
                   1033: 
                   1034: 
                   1035: tty.c: ++schwab
                   1036: 
                   1037:        Support word-erase and quote-next-char.
                   1038: 
                   1039: fasttext.c: ++schwab
                   1040: 
                   1041:        support fgcol/bgcol
                   1042: 
                   1043:        (screen_ioctl): tty_ioctl is now called by parent by default if
                   1044: 
                   1045:        EINVFN
                   1046: 
                   1047: signal.c (check_sigs): ++schwab
                   1048: 
                   1049:        Use an int to index signals, not a long
                   1050: 
                   1051: biosfs.c (bios_getxattr): ++schwab
                   1052: 
                   1053:        u:\dev\stdin, etc., get the attributes of
                   1054: 
                   1055:        the associated files
                   1056: 
                   1057: dos.c (p_setuid, p_setgid): ++schwab
                   1058: 
                   1059:        Allow setting to the current real [gu]id
                   1060: 
                   1061: bios.c (checkkeys): [email protected]
                   1062: 
                   1063:        Keys read by do_func_key should not be
                   1064: 
                   1065:        interpreted (esp. UNDO -> SIGQUIT). also recheck shift status
                   1066: 
                   1067:        since do_func_key may take some time
                   1068: 
                   1069: xbios.c: [email protected]
                   1070: 
                   1071:        Added code to support old (tos < 1.4) Rsconf()
                   1072: 
                   1073:        semantics.
                   1074: 
                   1075: mem.c:
                   1076: 
                   1077:        Changed so that attempts to execute a shared text program
                   1078: 
                   1079:        which has data/bss references in the text segment will
                   1080: 
                   1081:        get an ENOEXEC error instead of ENSMEM.
                   1082: 
                   1083: *.c: [email protected]
                   1084: 
                   1085:        Applied Julian's purec patches.
                   1086: 
                   1087: 
                   1088: 
                   1089: PATCHLEVEL 10::
                   1090: 
                   1091: 
                   1092: 
                   1093: pipefs.c:
                   1094: 
                   1095:        Changed so that read() on a pipe will return as
                   1096: 
                   1097:        soon as some data is available; this is how
                   1098: 
                   1099:        all Unixes work.
                   1100: 
                   1101: *.c:
                   1102: 
                   1103:        Applied Julian's patches to allow compilation with
                   1104: 
                   1105:        PureC.
                   1106: 
                   1107: main.c:
                   1108: 
                   1109:        New variable, MAXMEM=, for setting maximum memory
                   1110: 
                   1111:        size (in K).
                   1112: 
                   1113: main.c:
                   1114: 
                   1115:        Removed PSEUDODRIVES= command, since "alias" has
                   1116: 
                   1117:        replaced it.
                   1118: 
                   1119: util.c:
                   1120: 
                   1121:        Changed atoi to atol; it's more generally useful.
                   1122: 
                   1123: asmtrans:
                   1124: 
                   1125:        Applied Howard's patches; in particular, made %ifdef
                   1126: 
                   1127:        apply to other commands (like %define) as well as to
                   1128: 
                   1129:        code generation.
                   1130: 
                   1131:        
                   1132: 
                   1133: PATCHLEVEL 9::
                   1134: 
                   1135: 
                   1136: 
                   1137: asmtrans:
                   1138: 
                   1139:        Cleaned up a bit more for cross-compilation.
                   1140: 
                   1141: intr.spp:
                   1142: 
                   1143:        in_kernel can be set while the process is in user mode
                   1144: 
                   1145:        (if the critical error handler calls GEM)
                   1146: 
                   1147: syscall.spp:
                   1148: 
                   1149:        Get rid of some more magic numbers.
                   1150: 
                   1151: bios.c:
                   1152: 
                   1153:        While fixing the mtt bug, a new bug was introduced. So,
                   1154: 
                   1155:        let's try again :-).
                   1156: 
                   1157: 
                   1158: 
                   1159: PATCHLEVEL 8::
                   1160: 
                   1161: 
                   1162: 
                   1163: bios.c:
                   1164: 
                   1165:        Fixed a particularly silly bug in bios.c: in do_bconin(),
                   1166: 
                   1167:        r was being returned without being initialized. Why didn't
                   1168: 
                   1169:        gcc catch this?
                   1170: 
                   1171: *.c:
                   1172: 
                   1173:        Applied Alex's patches for Lattice, and Julian's patches for
                   1174: 
                   1175:        Pure C.
                   1176: 
                   1177: signal.c:
                   1178: 
                   1179:        Kill programs with p_term() instead of terminate() (except for
                   1180: 
                   1181:        signal SIGKILL) so as to allow them a chance to clean up via
                   1182: 
                   1183:        the term_vec vector.
                   1184: 
                   1185: shmfs.c:
                   1186: 
                   1187:        Allow Fattrib() call to change the read-only
                   1188: 
                   1189:        bit. Made Fxattr() return the correct mode
                   1190: 
                   1191:        for shared memory files.
                   1192: 
                   1193: main.c, fasttext.c:
                   1194: 
                   1195:        Allowed HARDSCROLL=AUTO to set the number of
                   1196: 
                   1197:        lines of scrolling to the current screen size.
                   1198: 
                   1199: syscall.spp, inline.h:
                   1200: 
                   1201:        New functions, callout2() and callout1(), with
                   1202: 
                   1203:        less overhead; used by bios.c to call the
                   1204: 
                   1205:        Bconxxx functions.
                   1206: 
                   1207: bios.c:
                   1208: 
                   1209:        Changed calls to Bconxxx functions into
                   1210: 
                   1211:        jumps through the defined vector table in
                   1212: 
                   1213:        low memory, when this is possible (TOS 1.0
                   1214: 
                   1215:        doesn't have the table).
                   1216: 
                   1217: asmtrans, *.spp:
                   1218: 
                   1219:        Added %ifdef, %else, and %endif commands (for
                   1220: 
                   1221:        future expansion). Removed the requirement that
                   1222: 
                   1223:        macros to be expanded be delimited by % signs,
                   1224: 
                   1225:        and cleaned up the definitions. Changed
                   1226: 
                   1227:        "SECTION FOO" to "FOO". Added -purec compilation
                   1228: 
                   1229:        option.
                   1230: 
                   1231: filesys.c:
                   1232: 
                   1233:        Fixed a bug in changedrv (there was no
                   1234: 
                   1235:        check to see if "d" was a BIOS drive before
                   1236: 
                   1237:        aliasdrv[d] was tested).
                   1238: 
                   1239: 
                   1240: 
                   1241: PATCHLEVEL 7::
                   1242: 
                   1243: 
                   1244: 
                   1245: biosfs.c,fasttext.c:
                   1246: 
                   1247:        Fixed incorrect code that assumed TCURSON
                   1248: 
                   1249:        was 0.
                   1250: 
                   1251: makefile:
                   1252: 
                   1253:        Fixed Makefile to work with older versions
                   1254: 
                   1255:        of gmake, as well as generic make programs.
                   1256: 
                   1257: 
                   1258: 
                   1259: PATCHLEVEL 6::
                   1260: 
                   1261: 
                   1262: 
                   1263: *.s:
                   1264: 
                   1265:        Radical overhaul of how assembly language is
                   1266: 
                   1267:        handled. We now provide 2 utility programs,
                   1268: 
                   1269:        "genmagic" (for producing symbolic names for
                   1270: 
                   1271:        various offsets into structures) and "asmtrans"
                   1272: 
                   1273:        (for processing .spp files, replacing macros
                   1274: 
                   1275:        defined by "genmagic" and optionally translating
                   1276: 
                   1277:        Motorola to MIT syntax). Now we only have to
                   1278: 
                   1279:        maintain the .spp files; the Lattice and gcc
                   1280: 
                   1281:        versions of the .s files are generated automatically,
                   1282: 
                   1283:        and as a side benefit we can get rid of magic
                   1284: 
                   1285:        numbers in the .s files and be sure that if we
                   1286: 
                   1287:        change proc.h, the assembly language will be
                   1288: 
                   1289:        updated properly.
                   1290: 
                   1291: main.c,filesys.c,file.h:
                   1292: 
                   1293:        Added a new command to mint.cnf, "alias", to
                   1294: 
                   1295:        enable aliases for pseudo (and other) drives
                   1296: 
                   1297:        to be created. Also, deleted drives q:, v:, and
                   1298: 
                   1299:        x:. Programs should no longer be using these;
                   1300: 
                   1301:        if they are, users can put things like
                   1302: 
                   1303:        "alias q: u:\pipe" into mint.cnf.
                   1304: 
                   1305: file.h:
                   1306: 
                   1307:        Fixed the definitions for TCURSON and TCURSOFF.
                   1308: 
                   1309: console.c:
                   1310: 
                   1311:        Moved the handle checks in file_* functions into
                   1312: 
                   1313:        separate functions, since for example we *know*
                   1314: 
                   1315:        that handle 0 falls within the legal range; this
                   1316: 
                   1317:        should remove a bit of overhead on BIOS and
                   1318: 
                   1319:        single character GEMDOS I/O.
                   1320: 
                   1321: main.c:
                   1322: 
                   1323:        Got rid of the zeroexit() code; since we now
                   1324: 
                   1325:        allow the whole boot process to be aborted by
                   1326: 
                   1327:        right shift.
                   1328: 
                   1329: pipefs.c:
                   1330: 
                   1331:        Allow Cursconf() to work on TOSWIN pipes.
                   1332: 
                   1333: mem.c:
                   1334: 
                   1335:        Check the date and time of shared text regions
                   1336: 
                   1337:        before re-using them.
                   1338: 
                   1339: bios.c,syscall.s:
                   1340: 
                   1341:        Changed the trap #13 entry point to allow quick
                   1342: 
                   1343:        evaluation of BIOS functions that don't need
                   1344: 
                   1345:        the full context save/restore done.
                   1346: 
                   1347: everywhere:
                   1348: 
                   1349:        Macro-ize TRACE and DEBUG so that it's possible
                   1350: 
                   1351:        to produce a smaller version of MiNT without
                   1352: 
                   1353:        them.
                   1354: 
                   1355: biosfs.c:
                   1356: 
                   1357:        Don't check for keyboard presses after every
                   1358: 
                   1359:        BIOS write, it's too time consuming.
                   1360: 
                   1361: 
                   1362: 
                   1363: PATCHLEVEL 5::
                   1364: 
                   1365: 
                   1366: 
                   1367: mem.c:
                   1368: 
                   1369:        Another bug: we shouldn't do the dLibs Pexec
                   1370: 
                   1371:        hack on the first process we start up, because
                   1372: 
                   1373:        it means messing with the MiNT basepage (which
                   1374: 
                   1375:        is not ours to mess with, it's TOS's).
                   1376: 
                   1377: main.c:
                   1378: 
                   1379:        Fixed bug in enter_kernel (rootproc->base is no
                   1380: 
                   1381:        longer necessarily MiNT's basepage).
                   1382: 
                   1383: various places:
                   1384: 
                   1385:        Tried to remove gcc warnings about constant
                   1386: 
                   1387:        expression overflow.
                   1388: 
                   1389: syscall.s:
                   1390: 
                   1391:        Applied Alex's patch to allow trace mode to work
                   1392: 
                   1393:        with non-MiNT debuggers.
                   1394: 
                   1395: various places:
                   1396: 
                   1397:        Applied Alex's patches to get rid of Lattice warnings
                   1398: 
                   1399:        about unneeded assignments.
                   1400: 
                   1401: mem.c:
                   1402: 
                   1403:        Added extra traces to exec_region() in an effort to
                   1404: 
                   1405:        track down the mysterious crash problems that others
                   1406: 
                   1407:        have had.
                   1408: 
                   1409: 
                   1410: 
                   1411: PATCHLEVEL 4::
                   1412: 
                   1413: 
                   1414: 
                   1415: dosmem.c:
                   1416: 
                   1417:        Made do_vfork not bother to save shared text regions.
                   1418: 
                   1419: bios.c:
                   1420: 
                   1421:        Made Rwabs respect Dlock.
                   1422: 
                   1423: tosfs.c:
                   1424: 
                   1425:        Made the TOS media change routines lazier (actual
                   1426: 
                   1427:        disk access is deferred until the disk is next
                   1428: 
                   1429:        needed).
                   1430: 
                   1431: main.c:
                   1432: 
                   1433:        Applied Alex's patches for setenv.
                   1434: 
                   1435: everywhere:
                   1436: 
                   1437:        Applied Julian's patches for Pure/Turbo C. The
                   1438: 
                   1439:        resulting kernel doesn't actually work yet, but
                   1440: 
                   1441:        at least we don't get so many error messages when
                   1442: 
                   1443:        compiling. (Who needs lint when you have three
                   1444: 
                   1445:        fussy ANSI compilers?)
                   1446: 
                   1447: mint.h:
                   1448: 
                   1449:        Oops; we should have had #include "inline.h" here.
                   1450: 
                   1451: inline.h:
                   1452: 
                   1453:        Applied jrb's GCC patches, and Alex's Lattice patches.
                   1454: 
                   1455: 
                   1456: 
                   1457: PATCHLEVEL 3::
                   1458: 
                   1459: 
                   1460: 
                   1461: bios.c:
                   1462: 
                   1463:        Some optimizations in bflush(). I tried something like
                   1464: 
                   1465:        this before, but messed up the terminal output modes.
                   1466: 
                   1467:        Let's hope I got it right this time. Also:
                   1468: 
                   1469:        removed some dependencies on sizeof(int).
                   1470: 
                   1471: makefile:
                   1472: 
                   1473:        Tried -O2 instead of -O. It seems to work, so let's
                   1474: 
                   1475:        leave it on for now.
                   1476: 
                   1477: inline.h:
                   1478: 
                   1479:        New file to keep short, inlined versions of frequently
                   1480: 
                   1481:        called functions.
                   1482: 
                   1483: intr.s:
                   1484: 
                   1485:        Check the floppy disk locking flag before doing a
                   1486: 
                   1487:        pre-emption. Not really necessary now, but it doesn't
                   1488: 
                   1489:        hurt to be careful.
                   1490: 
                   1491: dosfile.c,*fs.c:
                   1492: 
                   1493:        Applied Alex's F_SETLKW patches. If Alex isn't careful,
                   1494: 
                   1495:        he's going to make MiNT Posix compliant on us :-).
                   1496: 
                   1497: dosmem.c:
                   1498: 
                   1499:        Applied Alex's patches to add a Pwaitpid system call.
                   1500: 
                   1501: main.c:
                   1502: 
                   1503:        If running from the AUTO folder, adjust the basepage
                   1504: 
                   1505:        chains so that MiNT is invisible to programs that
                   1506: 
                   1507:        (incorrectly!) make assumptions about basepages.
                   1508: 
                   1509: proc.c:
                   1510: 
                   1511:        Some optimizations in do_wakeup.
                   1512: 
                   1513: filesys.c:
                   1514: 
                   1515:        Don't call (*fs->dskchng)() twice when a disk
                   1516: 
                   1517:        change is detected.
                   1518: 
                   1519: main.c:
                   1520: 
                   1521:        Make sure the _resvalid system variable has the
                   1522: 
                   1523:        correct magic number in it for indicating that
                   1524: 
                   1525:        we want to catch the reset.
                   1526: 
                   1527: 
                   1528: 
                   1529: PATCHLEVEL 2::
                   1530: 
                   1531: 
                   1532: 
                   1533: dosdir.c:
                   1534: 
                   1535:        Really forbid deleting other process' current
                   1536: 
                   1537:        directories (the actual "return EACCDN" was missing!)
                   1538: 
                   1539: proc.c:
                   1540: 
                   1541:        Inlined the check_time() function, and re-arranged
                   1542: 
                   1543:        do_wakeup_things a bit to be more efficient.
                   1544: 
                   1545: syscall.s:
                   1546: 
                   1547:        Streamlined a bit; things are now kept in registers
                   1548: 
                   1549:        where possible.
                   1550: 
                   1551: filesys.c:
                   1552: 
                   1553:        When loading file systems at startup time, don't
                   1554: 
                   1555:        check the \MINT directory if that's the current one.
                   1556: 
                   1557: filesys.c:
                   1558: 
                   1559:        After a media change, instead of throwing away all
                   1560: 
                   1561:        handles that pointed to the changed drive, make
                   1562: 
                   1563:        them point to /dev/null instead, so that they
                   1564: 
                   1565:        won't be re-used until the user explicitly closes
                   1566: 
                   1567:        them.
                   1568: 
                   1569: dosdir.c:
                   1570: 
                   1571:        Allow Dlock() to succeed even if there is an
                   1572: 
                   1573:        unfinished Fsfirst/Fsnext sequence on the drive.
                   1574: 
                   1575: mem.c:
                   1576: 
                   1577:        Allow relocations outside of the program load area;
                   1578: 
                   1579:        apparently, some programs actually need these.
                   1580: 
                   1581: mem.c:
                   1582: 
                   1583:        Insert some sanity checks on memory addresses.
                   1584: 
                   1585: signal.c:
                   1586: 
                   1587:        Restart check_sigs if the process stopped because of
                   1588: 
                   1589:        a signal, since the parent may reset the set of
                   1590: 
                   1591:        pending signals.
                   1592: 
                   1593: cpu.s:
                   1594: 
                   1595:        New file from Alex, to control caching &c.
                   1596: 
                   1597: various places:
                   1598: 
                   1599:        More debugging patches from Alex, to make attaching
                   1600: 
                   1601:        to existing processes work correctly.
                   1602: 
                   1603: 
                   1604: 
                   1605: PATCHLEVEL 1::
                   1606: 
                   1607: 
                   1608: 
                   1609: various places:
                   1610: 
                   1611:        Cleaned up the debugging stuff a bit. For example, if a
                   1612: 
                   1613:        process does PTRACESFLAGS on itself, it's the same
                   1614: 
                   1615:        as if the parent did; also, if the process does a
                   1616: 
                   1617:        Pexec with overlay (i.e. Unix exec()) then it stops
                   1618: 
                   1619:        before its first instruction. This makes emulating
                   1620: 
                   1621:        the Unix ptrace() system call much easier.
                   1622: 
                   1623: 
                   1624: 
                   1625: PATCHLEVEL 0::
                   1626: 
                   1627: 
                   1628: 
                   1629: biosfs.c:
                   1630: 
                   1631:        Changed Fcntl TIOCISPEED/TIOCOSPEED to return the
                   1632: 
                   1633:        next lowest legal baud rate if an illegal one is
                   1634: 
                   1635:        specified.
                   1636: 
                   1637: filesys.c:
                   1638: 
                   1639:        Fix a bug that would cause an infinite loop if a
                   1640: 
                   1641:        bad .XFS format is encountered.
                   1642: 
                   1643: mem.c,mem.h,dosmem.c:
                   1644: 
                   1645:        Implemented shared text; if the appropriate bit
                   1646: 
                   1647:        (for now, 0x800) in the program header is set, then
                   1648: 
                   1649:        the loader will set up a shared text region for
                   1650: 
                   1651:        the program, and subsequent executions of it will
                   1652: 
                   1653:        run out of the same text segment. Note that this
                   1654: 
                   1655:        does require appropriate compiler support!
                   1656: 
                   1657: filesys.c:
                   1658: 
                   1659:        Fixed bug in the way directory searches are closed
                   1660: 
                   1661:        after a media change.
                   1662: 
                   1663: biosfs.c,intr.s:
                   1664: 
                   1665:        Applied Julian's third mouse button patch for
                   1666: 
                   1667:        /dev/mouse.
                   1668: 
                   1669: *.s:
                   1670: 
                   1671:        Applied Alex's debugging patches. Also: wrote a
                   1672: 
                   1673:        Motorola->MIT syntax converter, so that we only
                   1674: 
                   1675:        have to maintain the stuff in the "asm" directory.
                   1676: 
                   1677: signal.c,proc.h,procfs.c,etc.:
                   1678: 
                   1679:        Applied Alex's debugging patches, with a few
                   1680: 
                   1681:        slight modifications.
                   1682: 
                   1683: 
                   1684: 
1.1       root     1685: version 0.95
                   1686: 
                   1687: 
                   1688: 
1.1.1.2   root     1689: PATCHLEVEL14::
                   1690: 
                   1691: 
                   1692: 
                   1693: 
                   1694: 
                   1695: filesys.c:
                   1696: 
                   1697:        Check for the existence of the \MINT directory before
                   1698: 
                   1699:        trying to load .XFS files from there.
                   1700: 
                   1701: 
                   1702: 
                   1703: --- patchlevel 13 released to the public ---
                   1704: 
                   1705: 
                   1706: 
1.1       root     1707: PATCHLEVEL13::
                   1708: 
                   1709: 
                   1710: 
                   1711: proto.h,filesys.c:
                   1712: 
                   1713:        Added Alex's patches for Lattice.
                   1714: 
                   1715: 
                   1716: 
                   1717: PATCHLEVEL12::
                   1718: 
                   1719: 
                   1720: 
                   1721: dosdir.c:
                   1722: 
                   1723:        Fsnext() on symbolic links was broken, because
                   1724: 
                   1725:        relpath2cookie no longer checks drive letters
                   1726: 
1.1.1.3 ! root     1727:        unless "depth" is > 0. Fixed this. (why did
        !          1728: 
        !          1729:        we change relpath2cookie that way?? this is
        !          1730: 
        !          1731:        changed back in 0.99pl2)
1.1       root     1732: 
                   1733: main.c,filesys.c:
                   1734: 
                   1735:        Added support for putting the mint.cnf file
                   1736: 
                   1737:        and any *.XFS files into the directory \mint.
                   1738: 
                   1739: dos.c:
                   1740: 
                   1741:        Added Pgeteuid() and Pgetegid() system calls.
                   1742: 
                   1743: main.c:
                   1744: 
                   1745:        Fixed the "set current directory" code to
                   1746: 
                   1747:        work properly.
                   1748: 
                   1749: main.c:
                   1750: 
                   1751:        Added a sanity check; if GEM is already running,
                   1752: 
                   1753:        don't try to run it again.
                   1754: 
                   1755: procfs.c:
                   1756: 
                   1757:        Added FIONWRITE and FIONREAD ioctl calls.
                   1758: 
                   1759: proc.c,bios.c:
                   1760: 
                   1761:        Fixed the type of the critical error handler.
                   1762: 
                   1763: dosfile.c,file.h,proc.c:
                   1764: 
                   1765:        Added Alex's patches for O_APPEND and O_NOINHERIT.
                   1766: 
                   1767: shmfs.c:
                   1768: 
                   1769:        Fixed lseek() on shared memory segments, and added
                   1770: 
                   1771:        FIONWRITE and FIONREAD ioctl calls.
                   1772: 
                   1773: fasttext.c:
                   1774: 
                   1775:        Tried once again to tame the wild cursor.
                   1776: 
                   1777: dosmem.c,proc.c:
                   1778: 
                   1779:        Modified process startup code so that PROC structures are no
                   1780: 
                   1781:        longer kept forever by the kernel (which should help alleviate
                   1782: 
                   1783:        memory fragmentation problems a bit).
                   1784: 
                   1785: 
                   1786: 
                   1787: PATCHLEVEL11::
                   1788: 
                   1789: 
                   1790: 
                   1791: dosmem.c:
                   1792: 
                   1793:        Applied Alex Kiernan's SIGTRAP bug fix (and kicked myself for
                   1794: 
                   1795:        forgetting C's precedence rules; thanks, Alex!).
                   1796: 
                   1797: filesys.c:
                   1798: 
                   1799:        Fixed relpath2cookie so that names like "C:\Z:" aren't
                   1800: 
                   1801:        interpreted as referring to drive Z:.
                   1802: 
                   1803: fasttext.c:
                   1804: 
                   1805:        Restored the "turn on cursor when opening()" code, because
                   1806: 
                   1807:        without it the fasttext driver and BIOS aren't in sync.
                   1808: 
                   1809: main.c:
                   1810: 
                   1811:        Moved the check for the presence of an already existing MiNT
                   1812: 
                   1813:        cookie to earlier in the initialization process, so that
                   1814: 
                   1815:        the error message can be printed properly.
                   1816: 
                   1817: shmfs.c:
                   1818: 
                   1819:        Fixed Dpathconf() on U:\SHM (filenames are truncated automatically
                   1820: 
                   1821:        on that file system) and corrected the comment there.
                   1822: 
                   1823: syscall.s:
                   1824: 
                   1825:        New function, call_aes, used to check for the presence of GEM
                   1826: 
                   1827:        (so we can tell whether or not we're running from the AUTO folder).
                   1828: 
                   1829: main.c:
                   1830: 
                   1831:        Run any programs which come after mint.prg in the AUTO
                   1832: 
                   1833:        folder.
                   1834: 
                   1835: version.h:
                   1836: 
                   1837:        Changed so that the patchlevel is always printed on boot-up.
                   1838: 
                   1839: 
                   1840: 
                   1841: PATCHLEVEL10::
                   1842: 
                   1843: 
                   1844: 
                   1845: unifs.c:
                   1846: 
                   1847:        Add U:\SHM as an interface for shared memory.
                   1848: 
                   1849: shmfs.c:
                   1850: 
                   1851:        New file system for doing shared memory.
                   1852: 
                   1853: xbios.c:
                   1854: 
                   1855:        Fixed Bconmap() to always return an error if the underlying
                   1856: 
                   1857:        TOS doesn't support Bconmap.
                   1858: 
                   1859: main.c:
                   1860: 
                   1861:        Fixed a bug in the argument parsing code for the "exec"
                   1862: 
                   1863:        command in mint.cnf.
                   1864: 
                   1865: dosdir.c:
                   1866: 
                   1867:        Changed Dlock() to return ELOCKED if an attempt is made to
                   1868: 
                   1869:        lock a drive that's already locked, and ENSLOCK if an attempt
                   1870: 
                   1871:        is made to remove a non-existent lock.
                   1872: 
                   1873: version.h:
                   1874: 
                   1875:        I forgot again to update this. Aargh!
                   1876: 
                   1877: 
                   1878: 
                   1879: PATCHLEVEL9::
                   1880: 
                   1881: 
                   1882: 
                   1883: mem.c,mem.h:
                   1884: 
                   1885:        Align everything on 16 byte boundaries.
                   1886: 
                   1887: mem.c,dosmem.c:
                   1888: 
                   1889:        Actually fix the "memory being allocated twice" bug.
                   1890: 
                   1891:        The problem was that setting m->links to 0 before calling
                   1892: 
                   1893:        attach_region was a no-no.
                   1894: 
                   1895: 
                   1896: 
                   1897: PATCHLEVEL8::
                   1898: 
                   1899: 
                   1900: 
                   1901: mem.c:
                   1902: 
                   1903:        Attempt to fix the strange "memory being allocated
                   1904: 
                   1905:        twice" bug.
                   1906: 
                   1907: tosfs.c:
                   1908: 
                   1909:        Truncating names at 14 characters came *before* the
                   1910: 
                   1911:        8.3 kludge, which meant that long names were being
                   1912: 
                   1913:        interpreted incorrectly (e.g. gcc-cc1plus.ttp was
                   1914: 
                   1915:        becoming "gcc-cc1p.tt"). Temporary kludge: only
                   1916: 
                   1917:        truncate at 32 characters. Long term solution:
                   1918: 
                   1919:        re-write this code to do the 8.3 truncation at the
                   1920: 
                   1921:        same time as the truncation.
                   1922: 
                   1923: main.c, proc.h:
                   1924: 
                   1925:        Provide a more explicit type for criticerr.
                   1926: 
                   1927: proc.c:
                   1928: 
                   1929:        Don't make _logbase per-process if hardware scrolling
                   1930: 
                   1931:        is active, since this makes for all kinds of weirdness!
                   1932: 
                   1933: mem.c:
                   1934: 
                   1935:        Allow NULL commandline to be the same as an empty
                   1936: 
                   1937:        string. (It was acting this way before, due to the MiNT
                   1938: 
                   1939:        library strncpy; now that we use our own strncpy some
                   1940: 
                   1941:        programs were passing funny arguments.)
                   1942: 
                   1943: dosmem.c:
                   1944: 
                   1945:        Provide a more detailed trace of Pexec activity.
                   1946: 
                   1947: mem.c:
                   1948: 
                   1949:        Added a sanity check in get_region().
                   1950: 
                   1951: proc.c:
                   1952: 
                   1953:        Set the time/date stamp of process 0 to the
                   1954: 
                   1955:        date & time when the system was booted.
                   1956: 
                   1957: fasttext.c:
                   1958: 
                   1959:        Commented out the code that turns the cursor
                   1960: 
                   1961:        on when u:\dev\fasttext is opened.
                   1962: 
                   1963: tty.c:
                   1964: 
                   1965:        Unsigned characters are always >= 0, so we
                   1966: 
                   1967:        don't need to check this.
                   1968: 
                   1969: 
                   1970: 
                   1971: PATCHLEVEL7::
                   1972: 
                   1973: 
                   1974: 
                   1975: makefile.lcc,mintlc.prj:
                   1976: 
                   1977:        Added Alex's patches.
                   1978: 
                   1979: assert.h:
                   1980: 
                   1981:        Added Alex's patch to cast the result to void.
                   1982: 
                   1983: filesys.c:
                   1984: 
                   1985:        Make sure the file system media change routine
                   1986: 
                   1987:        is called every time a disk change is forced;
                   1988: 
                   1989:        this corrects the Dlock() bug (it wasn't forcing
                   1990: 
                   1991:        media change as it should have).
                   1992: 
                   1993: version.h:
                   1994: 
                   1995:        Oops! I forgot to increment this for pl6, so
                   1996: 
                   1997:        it jumps by 2 this time.
                   1998: 
                   1999: 
                   2000: 
                   2001: PATCHLEVEL6::
                   2002: 
                   2003: 
                   2004: 
                   2005: biosfs.c,pipefs.c,tty.c:
                   2006: 
                   2007:        New Fcntl calls for controlling terminal baud
                   2008: 
                   2009:        rates and flags such as parity and stop bits.
                   2010: 
                   2011:        These have been integrated with the old TIOC*
                   2012: 
                   2013:        calls where applicable.
                   2014: 
                   2015: dosfile.c:
                   2016: 
                   2017:        Changed Fcntl to make a call to tty_ioctl be the
                   2018: 
                   2019:        default if the device is a terminal and the device
                   2020: 
                   2021:        ioctl routine returns EINVFN.
                   2022: 
                   2023: procfs.c, proc.c:
                   2024: 
                   2025:        The date/time stamp of a process now shows when the
                   2026: 
                   2027:        process was started, rather than being the number
                   2028: 
                   2029:        of seconds of CPU time used.
                   2030: 
                   2031: tosfs.c:
                   2032: 
                   2033:        Degrade an ALERT to a TRACE; there is a circumstance
                   2034: 
                   2035:        in which a root directory can apparently be changed,
                   2036: 
                   2037:        and that's when a program tries to open an empty
                   2038: 
                   2039:        file name. We don't need to warn the user that
                   2040: 
                   2041:        something is wrong in this case; we can just fail
                   2042: 
                   2043:        silently.
                   2044: 
                   2045: proc.c:
                   2046: 
                   2047:        Save the logical screen base for each process.
                   2048: 
                   2049: main.c,bios.c,proc.h:
                   2050: 
                   2051:        Made the critical error handler per-process.
                   2052: 
                   2053: bios.c,syscall.s:
                   2054: 
                   2055:        A cleaner way of saving registers when calling
                   2056: 
                   2057:        functions... this wasn't really necessary, but I
                   2058: 
                   2059:        did it to make tracking a bug down easier.
                   2060: 
                   2061: tty.c:
                   2062: 
                   2063:        New terminal flag, T_NOFLUSH, to suppress flushing of
                   2064: 
                   2065:        input when SIGINT or SIGQUIT is received.
                   2066: 
                   2067: *fs.c, file.h:
                   2068: 
                   2069:        Added a new Dpathconf() option that tells whether or
                   2070: 
                   2071:        not a file system is case sensitive.
                   2072: 
                   2073: dos.c:
                   2074: 
                   2075:        Forbid Prenice() on processes that you don't own.
                   2076: 
                   2077: dosmem.c:
                   2078: 
                   2079:        Correct a typo that was causing terminal process groups
                   2080: 
                   2081:        to be incorrectly set.
                   2082: 
                   2083: 
                   2084: 
                   2085: PATCHLEVEL5::
                   2086: 
                   2087: 
                   2088: 
                   2089: makefile:
                   2090: 
                   2091:        The -DOWN_LIB declaration should have been on (actually,
                   2092: 
                   2093:        it was, in my copy... sorry for the mix-up).
                   2094: 
                   2095: fasttext.c:
                   2096: 
                   2097:        Applied Alex's patch for the disappearing cursor bug.
                   2098: 
                   2099: everywhere:
                   2100: 
                   2101:        Applied Alex's patches to add "const" declarations where
                   2102: 
                   2103:        appropriate, and to get rid of size_t (since if OWN_LIB
                   2104: 
                   2105:        is defined we use "int" instead).
                   2106: 
                   2107: dosmem.c:
                   2108: 
                   2109:        Fixed M_KEEP to attach memory to rootproc *only* at
                   2110: 
                   2111:        process termination.
                   2112: 
                   2113: 
                   2114: 
                   2115: 
                   2116: 
                   2117: PATCHLEVEL4::
                   2118: 
                   2119: 
                   2120: 
                   2121: proto.h:
                   2122: 
                   2123:        Added prototype for do_func_key().
                   2124: 
                   2125: everywhere:
                   2126: 
                   2127:        Applied apratt's debugging/trace patches.
                   2128: 
                   2129: 
                   2130: 
                   2131: PATCHLEVEL3::
                   2132: 
                   2133: 
                   2134: 
                   2135: xbios.c, biosfs.c:
                   2136: 
                   2137:        Change Bconmap to actually do the equivalent of an
                   2138: 
                   2139:        Fforce(-2, foo) call; this way, we don't need the
                   2140: 
                   2141:        ugly DFLTMODM kludge. (On the other hand, we introduce
                   2142: 
                   2143:        some new ugly kludges :-)).
                   2144: 
                   2145: main.c,proc.c:
                   2146: 
                   2147:        Wait until everything is initialized before opening
                   2148: 
                   2149:        devices; this avoids bogus critical error messages from
                   2150: 
                   2151:        AHDI.
                   2152: 
                   2153: util.c, mint.h, ctype.h:
                   2154: 
                   2155:        Add all sorts of utility routines (for string processing,
                   2156: 
                   2157:        character type recognition, and the like). This is
                   2158: 
                   2159:        designed to make sure that MiNT works the same regardless
                   2160: 
                   2161:        of what library is used to compile it. We're not quite
                   2162: 
                   2163:        totally independent of library yet (the startup code and
                   2164: 
                   2165:        <osbind.h> aren't replaced) but we're pretty close.
                   2166: 
                   2167: main.c, proc.c:
                   2168: 
                   2169:        Initialize the current directory for the root
                   2170: 
                   2171:        process *after* file systems have been loaded, since
                   2172: 
                   2173:        otherwise the info is nuked when a new fs is loaded in.
                   2174: 
                   2175: bios.c:
                   2176: 
                   2177:        Allow output to BIOS device 5 to be redirected along
                   2178: 
                   2179:        with BIOS device 2; we do this by using the MW
                   2180: 
                   2181:        ESC-Q control sequence to quote characters. A bit of
                   2182: 
                   2183:        a hack, but then, not many people use device 5.
                   2184: 
                   2185: quickmov.s:
                   2186: 
                   2187:        Fixed two bugs in quickmove: (1) it didn't work for
                   2188: 
                   2189:        regions bigger than 0x00fffe00 bytes in length,
                   2190: 
                   2191:        and (2) it assumed the length was a multiple of 4
                   2192: 
                   2193:        bytes.
                   2194: 
                   2195: fasttext.c:
                   2196: 
                   2197:        Re-arrange things a bit to get rid of a gcc 2.1 warning.
                   2198: 
                   2199: dosmem.c:
                   2200: 
                   2201:        Change flag 0x4000 to mean "don't free the memory
                   2202: 
                   2203:        automatically on process termination"; explicit
                   2204: 
                   2205:        Mfree requests are still allowed, and after
                   2206: 
                   2207:        termination *any* process may Mfree the memory.
                   2208: 
                   2209: 
                   2210: 
                   2211: PATCHLEVEL2::
                   2212: 
                   2213: 
                   2214: 
                   2215: makefile:
                   2216: 
                   2217:        Remove -fcombine-regs from CFLAGS, since gcc 2.1
                   2218: 
                   2219:        doesn't understand it.
                   2220: 
                   2221: bios.c:
                   2222: 
                   2223:        Ignore value returned by Bconout for the screen
                   2224: 
                   2225:        (many text accelerators get this wrong :-( ).
                   2226: 
                   2227: dossig.c, signal.h:
                   2228: 
                   2229:        New system call, Psigaction(), by AGK. 
                   2230: 
                   2231: xbios.c:
                   2232: 
                   2233:        Added support for Bconmap.
                   2234: 
                   2235: bios.c, biosfs.c:
                   2236: 
                   2237:        Rationalized the way biosfs and bios interact;
                   2238: 
                   2239:        no more funny device numbers are needed. Also:
                   2240: 
                   2241:        added support for Bconmap, and a new default
                   2242: 
                   2243:        modem device.
                   2244: 
                   2245: pipefs.c:
                   2246: 
                   2247:        Applied Michael Hohmuth's patch for pipe_close (thanks,
                   2248: 
                   2249:        Michael!)
                   2250: 
                   2251: filesys.c:
                   2252: 
                   2253:        Don't try to initialize all the drives at boot time; path2cookie
                   2254: 
                   2255:        is quite capable of initializing, and it saves having
                   2256: 
                   2257:        to access drive B: (for example) while booting is going
                   2258: 
                   2259:        on.
                   2260: 
                   2261: main.c:
                   2262: 
                   2263:        Allow the user to avoid booting MiNT if the right shift key
                   2264: 
                   2265:        is held down.
                   2266: 
                   2267: main.c:
                   2268: 
                   2269:        Added safety checking, as suggested by AKP.
                   2270: 
                   2271: dosmem.c:
                   2272: 
                   2273:        In Mxalloc, if (mode & 0x4000) is nonzero then allocate non-freeable
                   2274: 
                   2275:        memory (we do this by attaching the memory to the root process).
                   2276: 
                   2277: fasttext.c:
                   2278: 
                   2279:        Tabs should be non-destructive on the ST!
                   2280: 
                   2281: proc.h:
                   2282: 
                   2283:        Re-arranged some things. Note that "slices" was never supposed
                   2284: 
                   2285:        to be visible to users! Also, added a "bconmap" variable to
                   2286: 
                   2287:        give the current Bconmap mapping for the process.
                   2288: 
                   2289: dosdir.c:
                   2290: 
                   2291:        Fail Ddelete of current directories only on the current
                   2292: 
                   2293:        drive; for other drives, reset the current directory
                   2294: 
                   2295:        to the root directory. NOTE: Ddelete of a current directory
                   2296: 
                   2297:        is forbidden only if the directory is someone else's
                   2298: 
                   2299:        current directory; if it's only your current dir., you
                   2300: 
                   2301:        can delete it (and get automatically bumped back to
                   2302: 
                   2303:        root).
                   2304: 
                   2305: 
                   2306: 
                   2307: PATCHLEVEL1::
                   2308: 
                   2309: 
                   2310: 
                   2311: dosmem.c:
                   2312: 
                   2313:        Fixed a bug that caused processes with no '.' in their names
                   2314: 
                   2315:        to have the wrong process name.
                   2316: 
                   2317: dosmem.c:
                   2318: 
                   2319:        In Pexec, make sure we yield to the new process so that
                   2320: 
                   2321:        it gets at least one timeslice to do an Mshrink().
                   2322: 
                   2323: proc.c:
                   2324: 
                   2325:        In preempt(), don't punish processes that have buffered
                   2326: 
                   2327:        BIOS output and are preempted; the process of flushing the
                   2328: 
                   2329:        buffer may very well put them to sleep, and in any event
                   2330: 
                   2331:        processes doing I/O should not be considered "hogs".
                   2332: 
                   2333: tosfs.c:
                   2334: 
                   2335:        Don't look for volume labels in opendir/readdir/lookup etc.
                   2336: 
                   2337: main.c:
                   2338: 
                   2339:        AGK: added DEBUG_LEVEL and DEBUG_DEVNO options to mint.cnf.
                   2340: 
                   2341: dossig.c:
                   2342: 
                   2343:        New system call (Psigpause()) courtesy of Alex Kiernan.
                   2344: 
                   2345: dosmem.c:
                   2346: 
                   2347:        In Pexec(200,...), don't reset base->p_parent, since the
                   2348: 
                   2349:        "parent" in an overlay exec is oneself.
                   2350: 
                   2351: tty.c:
                   2352: 
                   2353:        Fixed so that RAW mode reads will return all of an
                   2354: 
                   2355:        extended escape sequence at once, rather than waiting
                   2356: 
                   2357:        for the next read.
                   2358: 
                   2359: dosmem.c:
                   2360: 
                   2361:        When terminating a process, make sure that it's "number of
                   2362: 
                   2363:        memory regions" is set to 0; otherwise, calls to memused()
                   2364: 
                   2365:        on the process (e.g. by procfs) can crash the system.
                   2366: 
                   2367: dosdir.c:
                   2368: 
                   2369:        When removing directories, make sure that the directory
                   2370: 
                   2371:        isn't in use as someone's current directory (so that
                   2372: 
                   2373:        they don't get left in limbo).
                   2374: 
                   2375: fasttext.c:
                   2376: 
                   2377:        Screen memory must come from ST RAM -- otherwise hardware
                   2378: 
                   2379:        scrolling crashes and burns. Fixed thanks to AGK.
                   2380: 
                   2381: xbios.c:
                   2382: 
                   2383:        Moved the prototype for midiws to proto.h, and corrected the
                   2384: 
                   2385:        type of its argument (it should have been "int", not "short").
                   2386: 
                   2387: 
                   2388: 
                   2389: PATCHLEVEL0::
                   2390: 
                   2391: 
                   2392: 
                   2393: bios.c:
                   2394: 
                   2395:        Terminal modes weren't being set correctly in Bconout, and also
                   2396: 
                   2397:        weren't being set in bflush (which should have employed RAW
                   2398: 
                   2399:        mode output, but didn't).
                   2400: 
                   2401: everywhere:
                   2402: 
                   2403:        Merged in Alex Kiernan's latest Lattice C patches.
                   2404: 
                   2405: 
                   2406: 
                   2407: 
                   2408: 
                   2409: version 0.94
                   2410: 
                   2411: 
                   2412: 
                   2413: PATCHLEVEL4::
                   2414: 
                   2415: 
                   2416: 
                   2417: filesys.c:
                   2418: 
                   2419:        Use U:\DEV\CON for CON:, instead of V:\CON, since we're
                   2420: 
                   2421:        going to make drive V: go away soon.
                   2422: 
                   2423: unifs.c:
                   2424: 
                   2425:        When looking up a drive, make sure that it has a valid file
                   2426: 
                   2427:        system attached to it -- otherwise, newly installed ramdisks
                   2428: 
                   2429:        can cause system crashes :-(.
                   2430: 
                   2431: fasttext.c:
                   2432: 
                   2433:        Patches to make the fast text device work correctly on a TT,
                   2434: 
                   2435:        courtesy of Erling Henanger.
                   2436: 
                   2437: main.c:
                   2438: 
                   2439:        Install 16 extra cookies, instead of 8, just to be friendly.
                   2440: 
                   2441: 
                   2442: 
                   2443: PATCHLEVEL3::
                   2444: 
                   2445: 
                   2446: 
                   2447: main.c:
                   2448: 
                   2449:        Allow PSEUDODRIVES=MAP to put the extra drives in
                   2450: 
                   2451:        _drvbits without installing new drivers for them.
                   2452: 
                   2453: unifs.c:
                   2454: 
                   2455:        Don't rely on drvmap() to figure out what drives exist;
                   2456: 
                   2457:        it isn't accurate if PSEUDODRIVES=NO.
                   2458: 
                   2459: 
                   2460: 
                   2461: PATCHLEVEL2::
                   2462: 
                   2463: 
                   2464: 
                   2465: main.c:
                   2466: 
                   2467:        Added an option for turning off the BIOS routines for the
                   2468: 
                   2469:        pseudo-drives.
                   2470: 
                   2471: filesys.c:
                   2472: 
                   2473:        Moved the vector set/restore code to main.c (where all the
                   2474: 
                   2475:        other vector stuff is).
                   2476: 
                   2477: tosfs.c:
                   2478: 
                   2479:        If the _FLK cookie was already set when MiNT started, we
                   2480: 
                   2481:        pass file sharing and locking requests through to GEMDOS.
                   2482: 
                   2483: main.c:
                   2484: 
                   2485:        Turn the cursor off when leaving, if we were started from
                   2486: 
                   2487:        the desktop.
                   2488: 
                   2489: tosfs.c:
                   2490: 
                   2491:        Fixed a bug in which tos_chmode was returning an incorrect
                   2492: 
                   2493:        value.
                   2494: 
                   2495: debug.c:
                   2496: 
                   2497:        Added code for octal output to sprintf().
                   2498: 
                   2499: dosdir.c:
                   2500: 
                   2501:        Make Fsfirst() with the FA_LABEL bit set work on non-TOS
                   2502: 
                   2503:        file systems (via the file system readlabel function).
                   2504: 
                   2505:        (This used to work only when the search was restricted to
                   2506: 
                   2507:        labels only.)
                   2508: 
                   2509: various places:
                   2510: 
                   2511:        Get rid of gcc 2.0 warnings.
                   2512: 
                   2513: 
                   2514: 
                   2515: PATCHLEVEL1::
                   2516: 
                   2517: 
                   2518: 
                   2519: file.h:
                   2520: 
                   2521:        Because Fmidipipe and the disk change code can close
                   2522: 
                   2523:        files other than the files of the current process,
                   2524: 
                   2525:        the device driver "close" function needs another
                   2526: 
                   2527:        parameter, namely the process id being closed; this
                   2528: 
                   2529:        allows device drivers to remove locks properly.
                   2530: 
                   2531: tosfs.c:
                   2532: 
                   2533:        Volume labels shouldn't be found by Dreaddir().
                   2534: 
                   2535: tosfs.c:
                   2536: 
                   2537:        Added file locking.
                   2538: 
                   2539: filesys.c, main.c, file.h:
                   2540: 
                   2541:        New utility routine (denylock) to make implementing file
                   2542: 
                   2543:        locking easier for file systems.
                   2544: 
                   2545: 
                   2546: 
                   2547: PATCHLEVEL0::
                   2548: 
                   2549: 
                   2550: 
                   2551: tosfs.c:
                   2552: 
                   2553:        Canonicalize file names (i.e. convert to 8.3 format).
                   2554: 
                   2555:        Also, keep track of the value returned from the last
                   2556: 
                   2557:        readdir() call, so that a subsequent Fxattr() will take
                   2558: 
                   2559:        place quickly.
                   2560: 
                   2561: proc.c:
                   2562: 
                   2563:        In sleep(), make sure interrupts are disabled while queue
                   2564: 
                   2565:        manipulations are occuring.
                   2566: 
                   2567: bios.c:
                   2568: 
                   2569:        Correct a stuttering problem for ^C and similar interrupts.
                   2570: 
                   2571: dosmem.c:
                   2572: 
                   2573:        8 character process names weren't terminated properly.
                   2574: 
                   2575: tty.c:
                   2576: 
                   2577:        Aaargh! Shift+cursor keys were being interpreted even when
                   2578: 
                   2579:        they shouldn't have been.
                   2580: 
                   2581: 
                   2582: 
                   2583: version 0.93
                   2584: 
                   2585: 
                   2586: 
                   2587: PATCHLEVEL6::
                   2588: 
                   2589: 
                   2590: 
                   2591: filesys.c:
                   2592: 
                   2593:        Check for newly installed drives when parsing an
                   2594: 
                   2595:        absolute path without an explicit drive letter, as
                   2596: 
                   2597:        well as when looking at ones with drive letters.
                   2598: 
                   2599: 
                   2600: 
                   2601: PATCHLEVEL5::
                   2602: 
                   2603: 
                   2604: 
                   2605: biosfs.c, fasttext.c:
                   2606: 
                   2607:        Allow TIOCGWINSZ calls on the console (we use the line A
                   2608: 
                   2609:        variables to get the number or rows and columns).
                   2610: 
                   2611: filesys.c:
                   2612: 
                   2613:        Fix a typo in the file system initialization checking.
                   2614: 
                   2615: pipefs.c:
                   2616: 
                   2617:        Make "VIRGIN_PIPE" more obviously a magic value, and
                   2618: 
                   2619:        document it.
                   2620: 
                   2621: pipefs.c:
                   2622: 
                   2623:        Make u:\pipe have a sensible date/time; also, make
                   2624: 
                   2625:        Dfree on u:\pipe return some useful statistics about
                   2626: 
                   2627:        the number of pipes in the system.
                   2628: 
                   2629: procfs.c:
                   2630: 
                   2631:        u:\proc has a sensible time and date now, namely the
                   2632: 
                   2633:        time/date of the last process creation or destruction.
                   2634: 
                   2635: dosfile.c:
                   2636: 
                   2637:        Fcreate() of a volume label now returns a handle to
                   2638: 
                   2639:        u:\dev\null.
                   2640: 
                   2641: dosmem.c:
                   2642: 
                   2643:        Make sure the BIOSBUF buffer is flushed when terminating.
                   2644: 
                   2645: main.c:
                   2646: 
                   2647:        There's a bug in TOS 1.4: GEM seems to assume that all
                   2648: 
                   2649:        memory is zero initially, and if it isn't (e.g. if a large
                   2650: 
                   2651:        AUTO folder program like MiNT terminates and leaves behind
                   2652: 
                   2653:        dirty memory) then having too many (or the wrong kind of)
                   2654: 
                   2655:        desk accessories can lead to a crash. This was a real bear
                   2656: 
                   2657:        to track down, and the work-around is very ugly; before
                   2658: 
                   2659:        MiNT exits we copy a short machine language subroutine into
                   2660: 
                   2661:        the command line, and then execute it; the routine zeros
                   2662: 
                   2663:        all of the TPA and then does a Pterm0().
                   2664: 
                   2665: rendez.c:
                   2666: 
                   2667:        Change a "short" to "int" for the benefit of gcc 2.0.
                   2668: 
                   2669: bios.c:
                   2670: 
                   2671:        Stop process dumps from stuttering.
                   2672: 
                   2673: console.c:
                   2674: 
                   2675:        Added support for global file handles.
                   2676: 
                   2677: 
                   2678: 
                   2679: PATCHLEVEL4::
                   2680: 
                   2681: 
                   2682: 
                   2683: dosfile.c:
                   2684: 
                   2685:        In Fselect(), we have to re-validate file handles after
                   2686: 
                   2687:        a sleep() call, since signal handlers may close files.
                   2688: 
                   2689: proc.c:
                   2690: 
                   2691:        Pre-allocate more PROC structures (this should help
                   2692: 
                   2693:        reduce memory fragmentation).
                   2694: 
                   2695: tty.c, file.h:
                   2696: 
                   2697:        Allow cursor/function keys to send escape sequences.
                   2698: 
                   2699: dosdir.c:
                   2700: 
                   2701:        As suggested by S. Henson: Dsetpath through a symbolic link
                   2702: 
                   2703:        may also require changing the current drive as well.
                   2704: 
                   2705: proc.c,dos.c,timeout.c:
                   2706: 
                   2707:        New process scheduling algorithm, as suggested by A. Pratt.
                   2708: 
                   2709: dosdir.c:
                   2710: 
                   2711:        Make only the low bit of Dlock() significant, for future
                   2712: 
                   2713:        expansion.
                   2714: 
                   2715: dosfile.c:
                   2716: 
                   2717:        Allow Fcreate() to create a global file handle.
                   2718: 
                   2719: 
                   2720: 
                   2721: PATCHLEVEL3::
                   2722: 
                   2723: 
                   2724: 
                   2725: debug.c:
                   2726: 
                   2727:        Changed TRACE mode output so that not just any keys will
                   2728: 
                   2729:        start/stop output, but only Help and Undo.
                   2730: 
                   2731: dosdir.c, filesys.c:
                   2732: 
                   2733:        Add a Dlock() system call to lock/unlock drives.
                   2734: 
                   2735: filesys.c:
                   2736: 
                   2737:        Only initialize drives if the BIOS drive map says that
                   2738: 
                   2739:        they exist.
                   2740: 
                   2741: dosmem.c:
                   2742: 
                   2743:        In Pexec, make a copy of any name we're going to use
                   2744: 
                   2745:        before freeing memory for overlayed programs; the old
                   2746: 
                   2747:        way was decidedly incorrect!
                   2748: 
                   2749: dosfile.c:
                   2750: 
                   2751:        Allow for global file handles, so that shared libraries
                   2752: 
                   2753:        can use file handles that are the same for all processes.
                   2754: 
                   2755: dosmem.c:
                   2756: 
                   2757:        In Mxalloc, ignore bits that we don't understand, to
                   2758: 
                   2759:        allow for future expansion.
                   2760: 
                   2761: syscall.s:
                   2762: 
                   2763:        Fix a bug that could cause the wrong system call to be
                   2764: 
                   2765:        made if BIOS buffering is on (!).
                   2766: 
                   2767: bios.c:
                   2768: 
                   2769:        Streamline the BIOS buffering mechanism, and make it
                   2770: 
                   2771:        more conservative about multiple processes doing Bconout
                   2772: 
                   2773:        output.
                   2774: 
                   2775: procfs.c:
                   2776: 
                   2777:        Allow "foo.-1" to stand for the current process, and
                   2778: 
                   2779:        "foo.-2" to stand for our parent. Also, add new
                   2780: 
                   2781:        Fcntls for getting/setting memory flags.
                   2782: 
                   2783: bios.c:
                   2784: 
                   2785:        In Setexc(), don't actually change any vectors, let the BIOS
                   2786: 
                   2787:        do it -- some TSR's install trap handlers that look for
                   2788: 
                   2789:        certain Setexc functions...
                   2790: 
                   2791: signal.c:
                   2792: 
                   2793:        Allow nested Supexec() calls, or Supexec()'s from a terminate
                   2794: 
                   2795:        vector.
                   2796: 
                   2797: procfs.c:
                   2798: 
                   2799:        Change the definition of PPROCADDR and add a new Fcntl,
                   2800: 
                   2801:        PCTXTSIZE.
                   2802: 
                   2803: mem.c:
                   2804: 
                   2805:        In exec_region, set the stack based on the value of p_hitpa
                   2806: 
                   2807:        from the basepage, instead of the size of the memory
                   2808: 
                   2809:        region -- some programs rely on being able to set the initial
                   2810: 
                   2811:        stack pointer for a Pexec(4,...) this way.
                   2812: 
                   2813: main.c, context.s:
                   2814: 
                   2815:        Avoid using 68020 instructions if we're on a 68010.
                   2816: 
                   2817: 
                   2818: 
                   2819: PATCHLEVEL2::
                   2820: 
                   2821: 
                   2822: 
                   2823: dos.c,proc.c:
                   2824: 
                   2825:        More tweaking of the priority code.
                   2826: 
                   2827: main.c:
                   2828: 
                   2829:        Change the type of "tosbp" from char ** to BASEPAGE **,
                   2830: 
                   2831:        since that's what it really is.
                   2832: 
                   2833: main.c:
                   2834: 
                   2835:        Add a special case for the Spanish TOS 1.0 act_pd variable.
                   2836: 
                   2837: pipefs.c:
                   2838: 
                   2839:        When a writer is waiting to write a small amount of data
                   2840: 
                   2841:        atomically, remember to wake up readers so that they
                   2842: 
                   2843:        can clear the pipe!
                   2844: 
                   2845: debug.c:
                   2846: 
                   2847:        Add the %u flag to ksprintf() (Fselect uses it, maybe others
                   2848: 
                   2849:        do too...)
                   2850: 
                   2851: dosmem.c:
                   2852: 
                   2853:        In Pterm(), put the exit code onto the stack when calling
                   2854: 
                   2855:        etv_term. It won't be in the same place as it was for TOS,
                   2856: 
                   2857:        but c'est la vie. (People asked for this feature...)
                   2858: 
                   2859: xbios.c:
                   2860: 
                   2861:        Provide a way to pass arguments to Supexec(). Note that Atari
                   2862: 
                   2863:        never documented that this was possible, but some people were
                   2864: 
                   2865:        relying on it anyway :-(. (Don't use this feature, it's only
                   2866: 
                   2867:        there as a compatibility hack.)
                   2868: 
                   2869: main.c:
                   2870: 
                   2871:        In shutdown(), don't bother waiting a second for processes
                   2872: 
                   2873:        to finish if there are no other processes.
                   2874: 
                   2875: filesys.c:
                   2876: 
                   2877:        Make sure that path names are null terminated after strncpy.
                   2878: 
                   2879: mem.c:
                   2880: 
                   2881:        Fix the code to zero process registers so that it *only* zeros
                   2882: 
                   2883:        process registers.
                   2884: 
                   2885: dosmem.c:
                   2886: 
                   2887:        Eliminate some redundant code.
                   2888: 
                   2889: dosfile.c:
                   2890: 
                   2891:        Open u:\pipe\sys$pipe.xxx rather than q:\sys$pipe.xxx.
                   2892: 
                   2893: main.c:
                   2894: 
                   2895:        Change a "malloc" into "kmalloc", and restore the #include
                   2896: 
                   2897:        of <minimal.h> that was inadvertently deleted.
                   2898: 
                   2899: main.c:
                   2900: 
                   2901:        Allow parameters to be passed to the initial program specified
                   2902: 
                   2903:        by the INIT= string.
                   2904: 
                   2905: 
                   2906: 
                   2907: PATCHLEVEL1::
                   2908: 
                   2909: 
                   2910: 
                   2911: main.c:
                   2912: 
                   2913:        Fix a typo in shutdown() that was causing problems when
                   2914: 
                   2915:        MiNT was shut down while processes were active.
                   2916: 
                   2917: tosfs.c:
                   2918: 
                   2919:        Make sure that tfullpath() returns a string less than
                   2920: 
                   2921:        PATH_MAX characters long.
                   2922: 
                   2923: everywhere:
                   2924: 
                   2925:        Replace "sprintf" with "ksprintf".
                   2926: 
                   2927: debug.c:
                   2928: 
                   2929:        Add a "ksprintf" function that's like sprintf(), but
                   2930: 
                   2931:        (a) doesn't have so many features (making it smaller),
                   2932: 
                   2933:        and more importantly (b) won't try to write more than
                   2934: 
                   2935:        SPRINTF_MAX characters into a buffer.
                   2936: 
                   2937: filesys.c:
                   2938: 
                   2939:        In path2cookie, make sure we don't try to copy more than
                   2940: 
                   2941:        PATH_MAX characters into the fixed size buffers.
                   2942: 
                   2943: dosmem.c:
                   2944: 
                   2945:        The "sleep if no memory available during Malloc" code
                   2946: 
                   2947:        was causing more problems than it solved, so it was
                   2948: 
                   2949:        removed. To compensate, we increase the priority of
                   2950: 
                   2951:        newly Pexec'd processes to make sure that they get
                   2952: 
                   2953:        to run.
                   2954: 
                   2955: dosmem.c:
                   2956: 
                   2957:        Aaaargh! A very serious screw-up in terminate() was
                   2958: 
                   2959:        causing us to wake up processes sleeping in vfork()
                   2960: 
                   2961:        even when their children were still using the address
                   2962: 
                   2963:        space; needless to say, horrible (and mysterious)
                   2964: 
                   2965:        crashes could ensue. Fix: only force the parent awake
                   2966: 
                   2967:        if wait_q == WAIT_Q && wait_cond matches the terminating
                   2968: 
                   2969:        process, otherwise let post_sig() handle waking.
                   2970: 
                   2971:        While fixing this bug, re-arrange the terminate code
                   2972: 
                   2973:        to do the waking up at the very end, just in case some
                   2974: 
                   2975:        of the other code may cause a sleep() temporarily.
                   2976: 
                   2977: bios.c:
                   2978: 
                   2979:        Fix the scan code for the UNDO key.
                   2980: 
                   2981: fasttext.c:
                   2982: 
                   2983:        Use Setscreen() to set the hardware screen base, since setting
                   2984: 
                   2985:        the variable at 0x45e causes TOS to keep setting the screen base
                   2986: 
                   2987:        ad infinitum.
                   2988: 
                   2989: 
                   2990: 
                   2991: PATCHLEVEL0::
                   2992: 
                   2993: 
                   2994: 
                   2995: rendez.c:
                   2996: 
                   2997:        When waking a process up from a semaphore, check to see
                   2998: 
                   2999:        if it's on the WAIT_Q before trying to remove it from
                   3000: 
                   3001:        that queue (it might have been moved off the wait queue
                   3002: 
                   3003:        by a signal).
                   3004: 
                   3005: bios.c:
                   3006: 
                   3007:        Make sure that Bconout(2,c) always succeeds, to compensate
                   3008: 
                   3009:        for text accelerators and other programs that don't return
                   3010: 
                   3011:        sensible values from Bconout. Also, ignore the Bconout
                   3012: 
                   3013:        return value when flushing the text output buffer.
                   3014: 
                   3015: 
                   3016: 
                   3017: version 0.92
                   3018: 
                   3019: 
                   3020: 
                   3021: PATCHLEVEL4::
                   3022: 
                   3023: 
                   3024: 
                   3025: biosfs.c:
                   3026: 
                   3027:        Provide devices for the extra Mega STe serial ports.
                   3028: 
                   3029: biosfs.c:
                   3030: 
                   3031:        Make the kernel info structure available to device drivers
                   3032: 
                   3033:        loaded with Dcntl.
                   3034: 
                   3035: xbios.c:
                   3036: 
                   3037:        Provide a modified Midiws function so that this is also
                   3038: 
                   3039:        affected by Fmidipipe and Fforce.
                   3040: 
                   3041: biosfs.c:
                   3042: 
                   3043:        Split bios_device into two device drivers; one for
                   3044: 
                   3045:        terminal devices, and one for plain character devices
                   3046: 
                   3047:        (the printer and IKBD port fall into this category).
                   3048: 
                   3049:        Also: provide a new Dcntl call to install plain BIOS
                   3050: 
                   3051:        devices in U:\DEV.
                   3052: 
                   3053: tty.c:
                   3054: 
                   3055:        Check for terminal start/stop keys while reading.
                   3056: 
                   3057: bios.c:
                   3058: 
                   3059:        In checkkeys, loop through all keys received since our last
                   3060: 
                   3061:        interrupt, rather than just checking the last thing in the
                   3062: 
                   3063:        buffer (as A. Pratt suggested).
                   3064: 
                   3065: bios.c, tty.c:
                   3066: 
                   3067:        Made the "disable" character for special terminal functions
                   3068: 
                   3069:        (e.g. the EOF key) be 0 instead of -1; this matches System V,
                   3070: 
                   3071:        is more POSIX friendly, and also makes confusing function keys
                   3072: 
                   3073:        and ^@ less likely. (Thanks to Scott Willingham for this
                   3074: 
                   3075:        suggestion.)
                   3076: 
                   3077: file.h, elsewhere as needed:
                   3078: 
                   3079:        Renamed the O_BIOS flag O_TTY (since that's what it really
                   3080: 
                   3081:        represents) and renamed the is_bios macro is_terminal.
                   3082: 
                   3083: dosmem.c:
                   3084: 
                   3085:        Make Pexec mode 106 cause the child to be truly independent
                   3086: 
                   3087:        of the parent (i.e. it doesn't get the parent's address space,
                   3088: 
                   3089:        nor does the parent get the child's).
                   3090: 
                   3091: biosfs.c:
                   3092: 
                   3093:        Allow symbolic links from U:\DEV; this lets us do things like
                   3094: 
                   3095:        Fsymlink("U:\PIPE\SERVERFIFO", "U:\DEV\SERVERDEV").
                   3096: 
                   3097: main.c:
                   3098: 
                   3099:        When PRN=d:\foo is specified, create the file foo instead of
                   3100: 
                   3101:        just trying to open it; this makes no difference to devices,
                   3102: 
                   3103:        but makes redirecting printer output to a file much more
                   3104: 
                   3105:        convenient.
                   3106: 
                   3107: unifs.c:
                   3108: 
                   3109:        Fix a bug that was causing Dgetpath() to return incorrect
                   3110: 
                   3111:        information for U:\A.
                   3112: 
                   3113: timeout.c:
                   3114: 
                   3115:        Make sure "searchtime" is up-to-date; bconout uses this for
                   3116: 
                   3117:        the time out.
                   3118: 
                   3119: biosfs.c:
                   3120: 
                   3121:        Fix bios_write so that if bconout fails, so does the write.
                   3122: 
                   3123: bios.c:
                   3124: 
                   3125:        Fix bconout so that it doesn't hang forever if the device isn't
                   3126: 
                   3127:        going to be ready (e.g. the printer is off); instead, there's
                   3128: 
                   3129:        a 10 second timeout.
                   3130: 
                   3131: main.c:
                   3132: 
                   3133:        Send all processes SIGTERM when we're shutting down, so that
                   3134: 
                   3135:        they have a chance to clean up after themselves.
                   3136: 
                   3137: mint.h:
                   3138: 
                   3139:        The KBDVEC structure was missing the "clockvec" element (!).
                   3140: 
                   3141: 
                   3142: 
                   3143: PATCHLEVEL3::
                   3144: 
                   3145: 
                   3146: 
                   3147: biosfs.c:
                   3148: 
                   3149:        Revised to allow support for loading/removing device drivers
                   3150: 
                   3151:        dynamically, via a Dcntl() call.
                   3152: 
                   3153: dosmem.c,mem.c,dosfile.c,file.h:
                   3154: 
                   3155:        Added support for setuid/setgid. These bits are only checked
                   3156: 
                   3157:        in Pexec modes 0, 100, and 200, i.e. the "load and go" modes.
                   3158: 
                   3159: rendez.c:
                   3160: 
                   3161:        Added new semaphore code from Allan Pratt.
                   3162: 
                   3163: main.c:
                   3164: 
                   3165:        New command for mint.cnf: "exec foo.prg bar" runs the program
                   3166: 
                   3167:        "foo" with argument(s) "bar".
                   3168: 
                   3169: main.c:
                   3170: 
                   3171:        Use the XBRA protocol for all interrupt routines that we grab.
                   3172: 
                   3173: filesys.c:
                   3174: 
                   3175:        When terminating MiNT, close all open files to make sure data
                   3176: 
                   3177:        is flushed and devices are nicely shut down.
                   3178: 
                   3179: main.c:
                   3180: 
                   3181:        Add some more variables, such as CON and PRN for redirecting
                   3182: 
                   3183:        those handles, and HARDSCROLL for controlling the fast text
                   3184: 
                   3185:        output.
                   3186: 
                   3187: proc.c:
                   3188: 
                   3189:        Make sure the "links" field for the prn and aux handles is
                   3190: 
                   3191:        correct.
                   3192: 
                   3193: syscall.s, bios.c:
                   3194: 
                   3195:        Special case the BIOS Bconout code to try to speed it up
                   3196: 
                   3197:        a bit. We allow for buffering of Bconout output; the buffer
                   3198: 
                   3199:        is flushed on the next non-Bconout system call or context
                   3200: 
                   3201:        switch. This should usually work OK, but as a precaution
                   3202: 
                   3203:        we provide for a way to turn it off (BIOSBUF=NO in mint.cnf).
                   3204: 
                   3205: fasttext.c.fasttext.h:
                   3206: 
                   3207:        New files for a faster text output device; changes were
                   3208: 
                   3209:        made to biosfs.c to support this, too.
                   3210: 
                   3211: tty.c:
                   3212: 
                   3213:        Streamline writes to terminals by sending data to the
                   3214: 
                   3215:        tty device in chunks instead of 1 character at a time.
                   3216: 
                   3217: dosfile.c:
                   3218: 
                   3219:        In do_open, always return EFILNF, never EPTHNF.
                   3220: 
                   3221: dosmem.c:
                   3222: 
                   3223:        Use supexec() to execute the terminate vector code, to
                   3224: 
                   3225:        avoid duplication of signal 0 faking.
                   3226: 
                   3227: xbios.c:
                   3228: 
                   3229:        In Supexec() does leave the kernel, so we have to make
                   3230: 
                   3231:        appropriate adjustments. We do this by faking a signal
                   3232: 
                   3233:        (signal 0) and installing the user's function as a signal
                   3234: 
                   3235:        handler.
                   3236: 
                   3237: dosdir.c:
                   3238: 
                   3239:        Make Dfree(x) actually look at free space on the drive which
                   3240: 
                   3241:        corresponds to the current directory on <x>; this should make
                   3242: 
                   3243:        Dfree on drive U: much more useful.
                   3244: 
                   3245: proc.h:
                   3246: 
                   3247:        Make the "base" field of the PROC structure have type BASEPAGE *
                   3248: 
                   3249:        (since that's what it is!)
                   3250: 
                   3251: basepage.h, dosdir.c, dosmem.c:
                   3252: 
                   3253:        Support some undocumented fields in the basepage a little bit
                   3254: 
                   3255:        (i.e. they're read only). Programs that try to write to these
                   3256: 
                   3257:        fields break. Surprise, surprise.
                   3258: 
                   3259: 
                   3260: 
                   3261: PATCHLEVEL2::
                   3262: 
                   3263: 
                   3264: 
                   3265: dosmem.c, mem.c:
                   3266: 
                   3267:        The docs say that children started with Pexec(104,...) or
                   3268: 
                   3269:        Pexec(106,...) share the parent's memory. This was unfortunately
                   3270: 
                   3271:        not the case; if the parent exited and the child was running
                   3272: 
                   3273:        in the parent's address space (e.g. see tfork() in mntlib)
                   3274: 
                   3275:        the child died very soon thereafter (like when the next program
                   3276: 
                   3277:        comes along and clears the memory the child was running out of).
                   3278: 
                   3279:        This is now fixed.
                   3280: 
                   3281: dos.c, proc.c, timeout.c:
                   3282: 
                   3283:        More tuning of the process scheduler.
                   3284: 
                   3285: main.c:
                   3286: 
                   3287:        Added "setenv" function for mint.cnf.
                   3288: 
                   3289: 
                   3290: 
                   3291: PATCHLEVEL1::
                   3292: 
                   3293: 
                   3294: 
                   3295: filesys.c:
                   3296: 
                   3297:        In some circumstances, AHDI will keep telling us that a drive
                   3298: 
                   3299:        has changed, ad infinitum. To avoid this, we stop trying after
                   3300: 
                   3301:        8 media changes occur in a row.
                   3302: 
                   3303: util.c:
                   3304: 
                   3305:        Tuned the kmalloc() strategy to reduce memory fragmentation
                   3306: 
                   3307:        (every process will be allocating 264 bytes for its
                   3308: 
                   3309:        memory region maps right after creation, and this should
                   3310: 
                   3311:        come from kernel memory).
                   3312: 
                   3313: tty.c:
                   3314: 
                   3315:        Under TOS, 1 byte writes should always be in raw mode.
                   3316: 
                   3317: dos.c:
                   3318: 
                   3319:        In Syield(), we should call sleep() even if no other processes
                   3320: 
                   3321:        are waiting, just to make sure that signals, alarms, etc.
                   3322: 
                   3323:        are properly dealt with.
                   3324: 
                   3325: filesys.c, dosfile.c:
                   3326: 
                   3327:        The media change code was wedged (actually, the fault was in
                   3328: 
                   3329:        do_pclose, which sometimes neglected to check to see whether
                   3330: 
                   3331:        or not the file had a still-valid device driver).
                   3332: 
                   3333: dosmem.c:
                   3334: 
                   3335:        In the termination code, close "files" referring to a process
                   3336: 
                   3337:        *before* freeing all the process memory; that way, we don't
                   3338: 
                   3339:        have to worry in do_pclose() and other places about what
                   3340: 
                   3341:        kind of state the process is in.
                   3342: 
                   3343: mem.h:
                   3344: 
                   3345:        Round off memory regions only to a word boundary for better
                   3346: 
                   3347:        TOS compatibility.
                   3348: 
                   3349: 
                   3350: 
                   3351: PATCHLEVEL0::
                   3352: 
                   3353: dos.c,intr.s,syscall.s:
                   3354: 
                   3355:        Changed s_yield() to actually give up the processor if
                   3356: 
                   3357:        another process is waiting for it; this means that processes
                   3358: 
                   3359:        that call Syield() won't be penalized by the priority code.
                   3360: 
                   3361:        Also: added a new kernel function, preempt(), which does
                   3362: 
                   3363:        what the old s_yield() did (and hence penalizes CPU hogs).
                   3364: 
                   3365: makefile:
                   3366: 
                   3367:        Cleaned up a bit, per suggestions from A. Pratt and D. Gymer.
                   3368: 
                   3369: 
                   3370: 
                   3371: 
                   3372: 
                   3373: version 0.91
                   3374: 
                   3375: 
                   3376: 
                   3377: dosmem.c:
                   3378: 
                   3379:        Only the high 4 bits of the program load flags give memory
                   3380: 
                   3381:        requirements (we were using 8 bits).
                   3382: 
                   3383: dosdir.c:
                   3384: 
                   3385:        Add a hack so that ksh still works (it was using '/' in a
                   3386: 
                   3387:        path name). THIS HACK WILL GO AWAY SOMEDAY!
                   3388: 
                   3389: tty.c:
                   3390: 
                   3391:        CBREAK mode shouldn't do erase, kill, or EOF processing.
                   3392: 
                   3393: dosdir.c:
                   3394: 
                   3395:        Freadlink should check first to make sure the file really
                   3396: 
                   3397:        is a link!
                   3398: 
                   3399: file.h,tty.c:
                   3400: 
                   3401:        Change the name "struct winsiz" to "struct winsize" to match
                   3402: 
                   3403:        what Unix calls it (cosmetic change only).
                   3404: 
                   3405: unifs.c:
                   3406: 
                   3407:        Allow renaming of the drives, and allow rmdir() to work
                   3408: 
                   3409:        like unlink() for symbolic links (since we fake the return
                   3410: 
                   3411:        value from Fsfirst to look like a directory if the link
                   3412: 
                   3413:        points to a directory).
                   3414: 
                   3415: biosfs.c:
                   3416: 
                   3417:        lseek() on the null device should not return 0 always;
                   3418: 
                   3419:        otherwise, it will look like a terminal to many programs!
                   3420: 
                   3421: dosfile.c:
                   3422: 
                   3423:        If a MiNT domain process closes stdin or stdout, they
                   3424: 
                   3425:        really do want them closed (for compatibility with
                   3426: 
                   3427:        MiNT 0.8).
                   3428: 
                   3429: syscall.s:
                   3430: 
                   3431:        When returning from traps, don't pre-empt the current process
                   3432: 
                   3433:        if it's in supervisor mode.
                   3434: 
                   3435: mem.c:
                   3436: 
                   3437:        Fake some stuff in the basepage so that programs compiled
                   3438: 
                   3439:        with dLibs will work some of the time.
                   3440: 
                   3441: tosfs.c:
                   3442: 
                   3443:        Make the value returned from Dgetpath() lower case in the MiNT
                   3444: 
                   3445:        domain. Also, make tosfs a little less verbose when debugging
                   3446: 
                   3447:        or tracing is on.
                   3448: 
                   3449: dosmem.c:
                   3450: 
                   3451:        Try to allocate space for saved fork() memory in the alternate (TT)
                   3452: 
                   3453:        memory map first, as well as in core (ST) memory.
                   3454: 
                   3455: mem.h:
                   3456: 
                   3457:        Round allocation requests up to multiples of 8 bytes instead
                   3458: 
                   3459:        of 4; this automatically gives us a bit of slush for ill
                   3460: 
                   3461:        behaved programs, and also means that requests will always
                   3462: 
                   3463:        be for a multiple of sizeof(double) bytes.
                   3464: 
                   3465: util.c:
                   3466: 
                   3467:        Get rid of the extra slush around kmalloc'd regions (which
                   3468: 
                   3469:        was a lot bigger than originally intended anyway!)
                   3470: 
                   3471: 
                   3472: 
                   3473: 
                   3474: 
                   3475: version 0.9
                   3476: 
                   3477: 
                   3478: 
                   3479: PATCHLEVEL21:: released version
                   3480: 
                   3481: 
                   3482: 
                   3483: dosmem.c:
                   3484: 
                   3485:        Make Malloc and Mxalloc try again if there isn't enough memory;
                   3486: 
                   3487:        maybe the situation is temporary.
                   3488: 
                   3489: mem.c:
                   3490: 
                   3491:        Plug a memory leak in load_region(); also make load_region try again
                   3492: 
                   3493:        if there isn't enough memory to load the program (just in case the
                   3494: 
                   3495:        situation is temporary).
                   3496: 
                   3497: dosdir.c:
                   3498: 
                   3499:        Add a check to Fattrib to make sure that attributes of directories
                   3500: 
                   3501:        are never changed.
                   3502: 
                   3503: 
                   3504: 
                   3505: PATCHLEVEL20::
                   3506: 
                   3507: 
                   3508: 
                   3509: dosdir.c:
                   3510: 
                   3511:        Allow Frenames of processes and other special kinds of files even
                   3512: 
                   3513:        if they do have the FA_RDONLY bit set.
                   3514: 
                   3515: dosfile.c:
                   3516: 
                   3517:        Allow creation of files with the read-only attribute.
                   3518: 
                   3519: tosfs.c:
                   3520: 
                   3521:        Change the file deletion code so that an attempt to delete an
                   3522: 
                   3523:        open file no longer fails, but rather marks the file to be
                   3524: 
                   3525:        deleted when it is closed.
                   3526: 
                   3527: file.h:
                   3528: 
                   3529:        Add some extra space to the tty struct, for future expansion.
                   3530: 
                   3531: filesys.c,main.c:
                   3532: 
                   3533:        Make sure the fake BIOS disk routines are available before
                   3534: 
                   3535:        any of the pseudo-drives are used, by having them set up
                   3536: 
                   3537:        in init_filesys() instead of init_intr().
                   3538: 
                   3539: tosfs.c:
                   3540: 
                   3541:        Remove some debugging output that isn't needed anymore.
                   3542: 
                   3543: 
                   3544: 
                   3545: PATCHLEVEL19::
                   3546: 
                   3547: Beta release.
                   3548: 
                   3549: 
                   3550: 
                   3551: intr.s,main.c:
                   3552: 
                   3553:        provide some fake BIOS disk routines for the pseudo-drives,
                   3554: 
                   3555:        in hopes of avoiding "drive U: is not responding" types of
                   3556: 
                   3557:        messages that some have reported
                   3558: 
                   3559: pipefs.c:
                   3560: 
                   3561:        half.ttp was failing under mgr, because of a race condition:
                   3562: 
                   3563:        our select() returns "ready" for a pipe if nobody exists to
                   3564: 
                   3565:        write to it (since then a read will return immediately). half
                   3566: 
                   3567:        would make a pipe that would end up being destroyed immediately
                   3568: 
                   3569:        by mgr before it got attached to a process. Solution: pipes that
                   3570: 
                   3571:        have *never* been opened yet for writing get a special marker
                   3572: 
                   3573:        and select doesn't worry about them, only about ones that were
                   3574: 
                   3575:        once written to.
                   3576: 
                   3577: pipefs.c:
                   3578: 
                   3579:        Fixed FIONWRITE to return the correct value.
                   3580: 
                   3581: dosdir.c:
                   3582: 
                   3583:        Refuse to Frename a file with the FA_RDONLY attribute.
                   3584: 
                   3585: biosfs.c:
                   3586: 
                   3587:        Fixed bios_write to return the number of bytes successfully
                   3588: 
                   3589:        written.
                   3590: 
                   3591: bios.c:
                   3592: 
                   3593:        LAST_DEVICE was inaccurate. This could happen again, so I'm simply
                   3594: 
                   3595:        getting rid of it and leaving all errors to the BIOS.
                   3596: 
                   3597: pipefs.c:
                   3598: 
                   3599:        Make sure the FA_RDONLY attribute is sensible (i.e. unidirectional
                   3600: 
                   3601:        pipes that don't have a writer can still be written to).
                   3602: 
                   3603: filesys.c:
                   3604: 
                   3605:        Fixed relpath2cookie so that it doesn't *always* follow symlinks
                   3606: 
                   3607:        (it only should when lastname == follow_links)
                   3608: 
                   3609: dosfile.c:
                   3610: 
                   3611:        If the FA_RDONLY bit is set on the file, even the superuser should
                   3612: 
                   3613:        be denied access for writing.
                   3614: 
                   3615: dosfile.c:
                   3616: 
                   3617:        Requiring write permission for Fdatime is a Bad Idea, since GEMDOS
                   3618: 
                   3619:        doesn't; so now MiNT doesn't either.
                   3620: 
                   3621: tosfs.c, filesys.c:
                   3622: 
                   3623:        Fixed a bug with media changes (Fsfirst would sometimes try to close a
                   3624: 
                   3625:        directory that had already been automatically closed by a media change).
                   3626: 
                   3627: 
                   3628: 
                   3629: PATCHLEVEL18::
                   3630: 
                   3631: 
                   3632: 
                   3633: main.c:
                   3634: 
                   3635:        Fixed the machine type detection code; it needs to run before
                   3636: 
                   3637:        biosfs is initialized, i.e. before init_filesys().
                   3638: 
                   3639: main.c:
                   3640: 
                   3641:        Provide a configuration file so that users can automatically
                   3642: 
                   3643:        setup symbolic links and can change their init program.
                   3644: 
                   3645: biosfs.c:
                   3646: 
                   3647:        Allow rename on bios devices, so people who want terminals called
                   3648: 
                   3649:        "ttyX" instead of "modemX" can do so.
                   3650: 
                   3651: dosdir.c:
                   3652: 
                   3653:        Flink shouldn't need write permission on the destination
                   3654: 
                   3655:        directory, only the source.
                   3656: 
                   3657: dosfile.c:
                   3658: 
                   3659:        Added FSTAT function for Fcntl, to allow a better version of
                   3660: 
                   3661:        fstat() for the library.
                   3662: 
                   3663: dosfile.c:
                   3664: 
                   3665:        Add code to fcntl to automatically convert MiNT 0.8 O_NDELAY
                   3666: 
                   3667:        into MiNT 0.9 O_NDELAY. This is a temporary measure only,
                   3668: 
                   3669:        to let older versions of mgr continue to work for a while.
                   3670: 
                   3671: filesys.c:
                   3672: 
                   3673:        Symbolic links with relative paths were always failing with
                   3674: 
                   3675:        ELOOP. Oops! (Thanks to Stephen Henson for catching this.)
                   3676: 
                   3677: file.h, tosfs.c, dosfile.c:
                   3678: 
                   3679:        Added a new flag, FS_NOXBIT, to control whether or not the
                   3680: 
                   3681:        file system has a sensible notion of execute permission.
                   3682: 
                   3683:        This removes an ugly check for &tos_filesys.
                   3684: 
                   3685: mint.h,util.c,mem.c:
                   3686: 
                   3687:        Added a compile time option, JUNK_MEM, to deliberately fill
                   3688: 
                   3689:        the memory MiNT acquires with garbage; this is for debugging
                   3690: 
                   3691:        (to help track down silly failures to initialize memory) and
                   3692: 
                   3693:        not for production code.
                   3694: 
                   3695: proc.c:
                   3696: 
                   3697:        Fixed a typo in init_proc() that was causing memory not to
                   3698: 
                   3699:        be initialized to 0 correctly. (Thanks are due to Stephen
                   3700: 
                   3701:        Usher for catching this one.)
                   3702: 
                   3703: tosfs.c:
                   3704: 
                   3705:        Added a tos_rewinddir that works.
                   3706: 
                   3707: file.h:
                   3708: 
                   3709:        Added blocks and blksize fields to the XATTR structure, and
                   3710: 
                   3711:        provided a few extra reserved fields for future expansion.
                   3712: 
                   3713:        (Also: re-arranged some fields to match what the gcc library
                   3714: 
                   3715:        already has.)
                   3716: 
                   3717: file.h, main.c:
                   3718: 
                   3719:        Add sleep, wake, and wakeselect to the kernel info structure;
                   3720: 
                   3721:        some device drivers will need these.
                   3722: 
                   3723: biosfs.c:
                   3724: 
                   3725:        Make nodskchng do a Getbpb on the (non-existent) device; the officially
                   3726: 
                   3727:        documented way of forcing a disk change requires this.
                   3728: 
                   3729: file.h,filesys.c,*fs.c:
                   3730: 
                   3731:        Remove the "flag" argument from the dskchng function, and
                   3732: 
                   3733:        have the kernel check Rwabs for E_CHNG; this should save
                   3734: 
                   3735:        a lot of duplication in user file systems, since everyone
                   3736: 
                   3737:        really has to do this anyways.
                   3738: 
                   3739: dosdir.c:
                   3740: 
                   3741:        Make sure that Fsfirst names can be null-terminated.
                   3742: 
                   3743: filesys.c:
                   3744: 
                   3745:        Oops: a misplaced bracket in disk_changed was causing
                   3746: 
                   3747:        write-protected disks to always appear to have changed!
                   3748: 
                   3749: tosfs.c:
                   3750: 
                   3751:        Made it illegal to delete or truncate an open file.
                   3752: 
                   3753: 
                   3754: 
                   3755: PATCHLEVEL17::
                   3756: 
                   3757: 
                   3758: 
                   3759: version.h:
                   3760: 
                   3761:        I think we can call this version an "alpha" one, now. No more
                   3762: 
                   3763:        major features remain to be added (fingers crossed, here).
                   3764: 
                   3765: filesys.c,dosdir.c,*fs.c,file.h:
                   3766: 
                   3767:        Media change detection code; this is now the kernel's
                   3768: 
                   3769:        responsibility. This necessitated an additional function
                   3770: 
                   3771:        for file systems; I hope this is the last one.
                   3772: 
                   3773: main.c,biosfs.c:
                   3774: 
                   3775:        Check what kind of machine we're on, and adjust what devices are
                   3776: 
                   3777:        present accordingly. The rs232 file has been renamed to "modem1".
                   3778: 
                   3779:        WARNING: This will break existing code that uses the name "rs232".
                   3780: 
                   3781: filesys.c:
                   3782: 
                   3783:        Code for loading file systems (finally!)
                   3784: 
                   3785: bios.c,context.s:
                   3786: 
                   3787:        Made Rwabs, Getbpb, and Mediach save registers (since device
                   3788: 
                   3789:        drivers often don't, and loadable file systems will be calling
                   3790: 
                   3791:        these directly).
                   3792: 
                   3793: main.c:
                   3794: 
                   3795:        Implemented the "struct kerinfo" to pass information to loadable
                   3796: 
                   3797:        file systems.
                   3798: 
                   3799: filesys.c:
                   3800: 
                   3801:        Re-wrote path2cookie to provide for symbolic links; a new routine
                   3802: 
                   3803:        (relpath2cookie) helps us out.
                   3804: 
                   3805: unifs.c:
                   3806: 
                   3807:        Code for creating, reading, and deleting symbolic links.
                   3808: 
                   3809: *fs.c, dosfile.c, file.h:
                   3810: 
                   3811:        Changed the way file opens and creates are done; the former
                   3812: 
                   3813:        (*getdev) routine for file systems has been split into
                   3814: 
                   3815:        (*creat) and (*getdev), both of which are quite a bit simpler.
                   3816: 
                   3817:        This whole scheme is clearer, less work for the file system,
                   3818: 
                   3819:        and will support symbolic links much better.
                   3820: 
                   3821: various places:
                   3822: 
                   3823:        Add security checks. This is still pretty sad, but at least it
                   3824: 
                   3825:        can provide one with a modicum of protection against silly
                   3826: 
                   3827:        mistakes.
                   3828: 
                   3829: dosfile.c:
                   3830: 
                   3831:        Require write permission on a file before changing its date via
                   3832: 
                   3833:        Fdatime.
                   3834: 
                   3835: tosfs.c:
                   3836: 
                   3837:        Cleaned up and streamlined a bit, and fixed tos_readlabel.
                   3838: 
                   3839: *fs.c,dosdir.c,file.h:
                   3840: 
                   3841:        Changed the file system "getxattr", "chmode", "chown", and
                   3842: 
                   3843:        "chattr" functions to take a single file cookie instead of a
                   3844: 
                   3845:        (directory, name) pair. This should make most uses of these
                   3846: 
                   3847:        functions (e.g. in name lookups) more efficient. Also,
                   3848: 
                   3849:        changed the readdir() function to return a file cookie to go
                   3850: 
                   3851:        along with the newly read file name.
                   3852: 
                   3853: main.c:
                   3854: 
                   3855:        If "init.prg" isn't found, try starting GEM instead.
                   3856: 
                   3857: unifs.c:
                   3858: 
                   3859:        Re-arranged to allow for symbolic links.
                   3860: 
                   3861: filesys.c:
                   3862: 
                   3863:        Implemented some media change routines.
                   3864: 
                   3865: dosdir.c:
                   3866: 
                   3867:        Added Fchown and Fchmod system calls.
                   3868: 
                   3869: dosdir.c:
                   3870: 
                   3871:        Added security check for Fattrib().
                   3872: 
                   3873: 
                   3874: 
                   3875: PATCHLEVEL16::
                   3876: 
                   3877: 
                   3878: 
                   3879: lots of places:
                   3880: 
                   3881:        Try to make TRACE() and DEBUG() messages more useful for people
                   3882: 
                   3883:        who don't know the internals of the kernel, and who just want to
                   3884: 
                   3885:        debug their own programs.
                   3886: 
                   3887: dosdir.c:
                   3888: 
                   3889:        Added Flink, Fsymlink, Freadlink, and Dcntl system calls.
                   3890: 
                   3891: *fs.c,file.h:
                   3892: 
                   3893:        Added a new mode to Dpathconf() to determine whether the
                   3894: 
                   3895:        file system uses DOS type file naming conventions, ordinary
                   3896: 
                   3897:        Unix type, or _POSIX_NO_TRUNC type.
                   3898: 
                   3899: file.h:
                   3900: 
                   3901:        Add an "fscntl" field to the file system structure.
                   3902: 
                   3903: tosfs.c:
                   3904: 
                   3905:        Fix the mode values returned from getxattr() (regular files
                   3906: 
                   3907:        have type S_IFREG, not S_IFMT).
                   3908: 
                   3909: proc.c:
                   3910: 
                   3911:        Zero the child's srchdta field after fork_proc(); otherwise,
                   3912: 
                   3913:        the accounting for Fsfirst/Fsnext can get messed up. Thanks
                   3914: 
                   3915:        again to S. Henson.
                   3916: 
                   3917: mem.c:
                   3918: 
                   3919:        As Steve Henson pointed out, resetting the effective user and
                   3920: 
                   3921:        group id's in exec_region is probably a Bad Idea.
                   3922: 
                   3923: dosdir.c:
                   3924: 
                   3925:        Change Dopendir/Dclosedir to use umalloc and ufree instead of
                   3926: 
                   3927:        kmalloc and kfree.
                   3928: 
                   3929: 
                   3930: 
                   3931: PATCHLEVEL15::
                   3932: 
                   3933: 
                   3934: 
                   3935: dosdir.c:
                   3936: 
                   3937:        When terminating, clean up after any Fsfirst/Fsnext sequences that
                   3938: 
                   3939:        didn't go to completion.
                   3940: 
                   3941: tosfs.c:
                   3942: 
                   3943:        Streamlined garbage collection code, and also corrected a bug in
                   3944: 
                   3945:        which file indices used in directory searches could be garbage
                   3946: 
                   3947:        collected.
                   3948: 
                   3949: file.h, *fs.c:
                   3950: 
                   3951:        Add symlink and hard link functions.
                   3952: 
                   3953: pipefs.c:
                   3954: 
                   3955:        Make FIONWRITE work again (a line was accidentally deleted).
                   3956: 
                   3957:        Make sure that Fselect() will select any pipes that have been
                   3958: 
                   3959:        closed.
                   3960: 
                   3961: dossig.c:
                   3962: 
                   3963:        Put back the user id check in Pkill.
                   3964: 
                   3965: dos.c, proc.c:
                   3966: 
                   3967:        Make sure that the "euid" and "egid" fields are set with
                   3968: 
                   3969:        the Psetuid and Psetgid calls. Also, make sure the fields
                   3970: 
                   3971:        are reset after an exec.
                   3972: 
                   3973: mem.c:
                   3974: 
                   3975:        Make exec_region shrink the process 'mem' and 'addr' tables
                   3976: 
                   3977:        to the default again if extra regions had been allocated.
                   3978: 
                   3979: dosmem.c:
                   3980: 
                   3981:        Get rid of the magic number "100", and introduce a maximum user
                   3982: 
                   3983:        settable priority MAX_NICE so that the kernel can make sure
                   3984: 
                   3985:        that a process that needs to run (e.g. an aborted vfork) will
                   3986: 
                   3987:        run first by setting its priority to MAX_NICE+1.
                   3988: 
                   3989: proc.c:
                   3990: 
                   3991:        Make sure the initial process memory tables are zeroed.
                   3992: 
                   3993: proc.c:
                   3994: 
                   3995:        Adjust the process scheduling algorithm (yet again!). Also,
                   3996: 
                   3997:        rename "nice_count" to "curpri".
                   3998: 
                   3999: dosdir.c,dos.c:
                   4000: 
                   4001:        Added Dopendir, Dreaddir, Drewinddir, Dclosedir system calls.
                   4002: 
                   4003: *fs.c:
                   4004: 
                   4005:        Made readdir return a file index (inode number) if it's not
                   4006: 
                   4007:        doing a TOS mode search.
                   4008: 
                   4009: biosfs.c:
                   4010: 
                   4011:        PHYSCONS is such an ugly name; CONSOLE makes more sense.
                   4012: 
                   4013: 
                   4014: 
                   4015: PATCHLEVEL14::
                   4016: 
                   4017: 
                   4018: 
                   4019: mem.c:
                   4020: 
                   4021:        Allow the kernel to dynamically allocate memory region
                   4022: 
                   4023:        descriptors if it runs out; also, increase the number that
                   4024: 
                   4025:        it starts with by default.
                   4026: 
                   4027: util.c:
                   4028: 
                   4029:        Made it harmless to call kfree with a NULL argument.
                   4030: 
                   4031: proc.h,mem.c,dosmem.c,proc.c:
                   4032: 
                   4033:        Eliminate the 64 region per process limit, by making the "mem"
                   4034: 
                   4035:        and "addr" arrays dynamically allocated.
                   4036: 
                   4037: proc.c:
                   4038: 
                   4039:        Change the code for selecting which process to run next; if more
                   4040: 
                   4041:        than one process is on the ready queue, we use a per-process
                   4042: 
                   4043:        counter to prevent high priority processes from hogging all the
                   4044: 
                   4045:        time.
                   4046: 
                   4047: dosmem.c:
                   4048: 
                   4049:        Release a process' controlling terminal (by setting it's process
                   4050: 
                   4051:        group back to 0) if the process is a process group leader and
                   4052: 
                   4053:        is exiting.
                   4054: 
                   4055: dosfile.c,tty.c,*fs.c:
                   4056: 
                   4057:        Made do_open set terminals up correctly on open/close, and
                   4058: 
                   4059:        handle assigning process groups to them. Also, made the terminal's
                   4060: 
                   4061:        process group be set automatically on Fforce(-1,...).
                   4062: 
                   4063: main.c,timeout.c:
                   4064: 
                   4065:        Added AKP's code for better resolution of time usage.
                   4066: 
                   4067: DELETED FILES:
                   4068: 
                   4069:        xlate.c, xlate32.s, newdisk.s
                   4070: 
                   4071: everywhere:
                   4072: 
                   4073:        Removed all references to NEED_TRANSLATION. This is getting to be a
                   4074: 
                   4075:        pain to maintain, and nobody seems to actually use it.
                   4076: 
                   4077: *fs.c:
                   4078: 
                   4079:        Fixed the ENAMETOOLONG detection code in readdir (thanks, Steve!).
                   4080: 
                   4081: timeout.c:
                   4082: 
                   4083:        New function, nap, for processes that are in busy loops waiting for
                   4084: 
                   4085:        an event that probably won't happen for a while (e.g. waiting for
                   4086: 
                   4087:        the user to hit a key); use e.g. nap(60) to sleep for 60 milliseconds
                   4088: 
                   4089:        instead of yield().
                   4090: 
                   4091: mem.c:
                   4092: 
                   4093:        create_env() should use the value from the current process' basepage,
                   4094: 
                   4095:        since this may *not* be the same as the environment the process
                   4096: 
                   4097:        was actually started with
                   4098: 
                   4099: dosfile.c:
                   4100: 
                   4101:        Make Fcntl(fh, arg, F_SETFL) leave the file sharing mode alone as well
                   4102: 
                   4103:        as the read/write mode.
                   4104: 
                   4105: unifs.c:
                   4106: 
                   4107:        Change the name "fifo" to "pipe"; change "drva", "drvb" etc. into just
                   4108: 
                   4109:        "a", "b" etc.
                   4110: 
                   4111: dosmem.c:
                   4112: 
                   4113:        Make it possible to provide a name with Pexec mode 104. Provide a new
                   4114: 
                   4115:        mode 106 that starts a process in the background and automatically
                   4116: 
                   4117:        detaches the process TPA from the parent's memory.
                   4118: 
                   4119: 
                   4120: 
                   4121: PATCHLEVEL13::
                   4122: 
                   4123: 
                   4124: 
                   4125: biosfs.c:
                   4126: 
                   4127:        Made sure that tty_getchar() won't see (long) negative values
                   4128: 
                   4129:        returned from a successful read, by clearing the high bit
                   4130: 
                   4131:        of read values.
                   4132: 
                   4133: *fs.c,atarierr.h:
                   4134: 
                   4135:        Made file systems responsible for dealing with "." and "..";
                   4136: 
                   4137:        introduced a new (fake) EMOUNT error to indicate when ".." is
                   4138: 
                   4139:        found in a root directory (this is for the benefit of the
                   4140: 
                   4141:        unified file system code)
                   4142: 
                   4143: dosdir.c,filesys.c:
                   4144: 
                   4145:        Changes to allow for the unified file system.
                   4146: 
                   4147: unifs.c, makefile:
                   4148: 
                   4149:        New file, for a "unified" file system.
                   4150: 
                   4151: filesys.c, *fs.c:
                   4152: 
                   4153:        Renamed denyaccess() to denyshare().
                   4154: 
                   4155: dosdir.c:
                   4156: 
                   4157:        Changed getname() to work from the root down instead of from
                   4158: 
                   4159:        the directory up; this should work better for mounting and
                   4160: 
                   4161:        symbolic links.
                   4162: 
                   4163: dosdir.c:
                   4164: 
                   4165:        Moved the check for a drive specifier (A:\FOO) in Dsetpath to
                   4166: 
                   4167:        where it should have been, namely before any use of the drive.
                   4168: 
                   4169: biosfs.c,pipefs.c:
                   4170: 
                   4171:        In opendir, make sure the directory structure is properly
                   4172: 
                   4173:        initialized.
                   4174: 
                   4175: dos.c:
                   4176: 
                   4177:        Changed snice and srenice to pnice and prenice; also modified the
                   4178: 
                   4179:        return values to be 16 bit (for the normal case), and 32 bit
                   4180: 
                   4181:        negative for errors, so that low priority processes can be
                   4182: 
                   4183:        distinguished from errors.
                   4184: 
                   4185: debug*.c:
                   4186: 
                   4187:        The Bconstat() check for the printer should be applied to device
                   4188: 
                   4189:        0, not 1.
                   4190: 
                   4191: 
                   4192: 
                   4193: PATCHLEVEL12::
                   4194: 
                   4195: 
                   4196: 
                   4197: dosdir.c,filesys.c:
                   4198: 
                   4199:        Re-wrote Fsfirst/next to use opendir/readdir/closedir. Re-wrote
                   4200: 
                   4201:        the pat_match function to work correctly (at least, according
                   4202: 
                   4203:        to the TOS rules :-).
                   4204: 
                   4205: *fs.c, file.h:
                   4206: 
                   4207:        Added opendir/readdir/closedir calls to file systems to allow
                   4208: 
                   4209:        more general file systems; also changed getattr into getxattr
                   4210: 
                   4211:        (again, to allow file systems with extra goodies), setattr into
                   4212: 
                   4213:        chattr, and added chown and chmod calls. Deleted sfirst/snext
                   4214: 
                   4215:        file system entry points, and the Xsfirst/Xsnext system calls.
                   4216: 
                   4217: *fs.c,file.h,dosfile.c,dosdir.c:
                   4218: 
                   4219:        Changed file systems to have separate calls for reading/writing
                   4220: 
                   4221:        volume labels. Added checks to Fattrib and Fcreate to avoid creating
                   4222: 
                   4223:        files with bad attributes (e.g. FA_LABEL or FA_DIR and anything
                   4224: 
                   4225:        else).
                   4226: 
                   4227: main.c:
                   4228: 
                   4229:        Change the definition of tosvers so that TOS 1.0 corresponds
                   4230: 
                   4231:        to tosvers == 0x100, not tosvers == 0. Also, clean up the
                   4232: 
                   4233:        code for testing TOS versions.
                   4234: 
                   4235:        WARNING: This may break RAM TOS versions. I doubt it matters.
                   4236: 
                   4237: bios.c,main.c:
                   4238: 
                   4239:        Always set the kbshft variable, so that kbshift is more
                   4240: 
                   4241:        efficient.
                   4242: 
                   4243: dos.c:
                   4244: 
                   4245:        Eliminated the old code that allowed Super(-1L) to work (GEMDOS
                   4246: 
                   4247:        doesn't support this, so why should MiNT?)
                   4248: 
                   4249: dos.c:
                   4250: 
                   4251:        Added GEMDOS date and time routines, and made sure that
                   4252: 
                   4253:        datestamp and timestamp are initialized properly when
                   4254: 
                   4255:        MiNT is started.
                   4256: 
                   4257: mem.c:
                   4258: 
                   4259:        Increased the size of the buffer used for reading relocation
                   4260: 
                   4261:        information in load_region.
                   4262: 
                   4263: *fs.c, dosfile.c:
                   4264: 
                   4265:        Changed the filesystem getdev call to return a file cookie
                   4266: 
                   4267:        (this saves a call to lookup on every open).
                   4268: 
                   4269: *fs.c, filesys.c:
                   4270: 
                   4271:        Eliminated static variables, changed all routines that used to
                   4272: 
                   4273:        return pointers to cookies to take an extra argument (a pointer
                   4274: 
                   4275:        to the place to put the result).
                   4276: 
                   4277: tosfs.c:
                   4278: 
                   4279:        Turn O_COMPAT sharing mode into O_DENYNONE (after making other
                   4280: 
                   4281:        appropriate changes to the access modes).
                   4282: 
                   4283: debugold.c:
                   4284: 
                   4285:        Updated to reflect changes in debug.c.
                   4286: 
                   4287: debug.c:
                   4288: 
                   4289:        Added calls to va_end where appropriate.
                   4290: 
                   4291: debug.c:
                   4292: 
                   4293:        Before, hitting a key paused debugging output; now, debug_ws
                   4294: 
                   4295:        checks the device that output is going to, so that e.g. if it's
                   4296: 
                   4297:        going to the MIDI port, the output is paused when a character
                   4298: 
                   4299:        arrives on the MIDI port.
                   4300: 
                   4301: mem.c:
                   4302: 
                   4303:        Made exec_region use O_DENYNONE sharing mode instead of O_DENYW
                   4304: 
                   4305: 
                   4306: 
                   4307: PATCHLEVEL11::
                   4308: 
                   4309: 
                   4310: 
                   4311: dosfile.c:
                   4312: 
                   4313:        Forbid closing file handles < 0; this will prevent accidental
                   4314: 
                   4315:        destruction of the BIOS handles.
                   4316: 
                   4317: dosfile.c:
                   4318: 
                   4319:        Change Fbiosdev to be MIDI specific, rename it to Fmidipipe, and
                   4320: 
                   4321:        move it to dosfile.c. The semantics are a bit different, too;
                   4322: 
                   4323:        see the comments in dosfile.c.
                   4324: 
                   4325: bios.c:
                   4326: 
                   4327:        Really fix the MIDI output routines, this time. (sigh)
                   4328: 
                   4329: 
                   4330: 
                   4331: PATCHLEVEL10::
                   4332: 
                   4333: 
                   4334: 
                   4335: signal.c:
                   4336: 
                   4337:        Fixed a typo in the message printed when bombs occur. Also,
                   4338: 
                   4339:        removed the copying of data from the supervisor stack to the
                   4340: 
                   4341:        BIOS area -- this was causing very strange problems, and it's
                   4342: 
                   4343:        not clear that the info would be useful under MiNT anyway.
                   4344: 
                   4345:        Finally, all this is only supposed to happen for certain
                   4346: 
                   4347:        signals, not for any random killings.
                   4348: 
                   4349: 
                   4350: 
                   4351: PATCHLEVEL9::
                   4352: 
                   4353: 
                   4354: 
                   4355: file.h, *fs.c:
                   4356: 
                   4357:        Changed the definition of the DTA buffer to free up space for
                   4358: 
                   4359:        user/group id fields and an extended attributes field. Made
                   4360: 
                   4361:        sfirst/snext use the 'aux' field of the directory cookie
                   4362: 
                   4363:        as an index.
                   4364: 
                   4365: dos.c:
                   4366: 
                   4367:        Fixed Talarm() to return the number of seconds left before an
                   4368: 
                   4369:        alarm, not the number of milliseconds.
                   4370: 
                   4371: dosdir.c:
                   4372: 
                   4373:        New system calls, Xsfirst/Xsnext, for accessing file systems
                   4374: 
                   4375:        with long (>12 character) names.
                   4376: 
                   4377: signal.c:
                   4378: 
                   4379:        Fill in the BIOS post-mortem dump error correctly after
                   4380: 
                   4381:        bus errors, address errors, etc. Also, made the "bomb" replacement
                   4382: 
                   4383:        routine give the process basepage address and program counter,
                   4384: 
                   4385:        as suggested by AKP.
                   4386: 
                   4387: tosfs.c:
                   4388: 
                   4389:        Fixed the tos_lookup bug that was causing bus errors during file
                   4390: 
                   4391:        opens.
                   4392: 
                   4393: 
                   4394: 
                   4395: PATCHLEVEL8::
                   4396: 
                   4397: 
                   4398: 
                   4399: tosfs.c:
                   4400: 
                   4401:        Made opens with O_COMPAT sharing mode always open for both reading
                   4402: 
                   4403:        and writing; this is so broken TOS programs that write to read-only
                   4404: 
                   4405:        handles will continue to work.
                   4406: 
                   4407: file.h, tty.c:
                   4408: 
                   4409:        Added TIOCGWINSZ/TIOCSWINSZ and the appropriate window size
                   4410: 
                   4411:        fields to the tty structure to support them.
                   4412: 
                   4413: dossig.c:
                   4414: 
                   4415:        Remove user id checks (for now). Make it impossible to catch
                   4416: 
                   4417:        SIGSTOP.
                   4418: 
                   4419: bios.c:
                   4420: 
                   4421:        Fix so Bconout returns a value (it really should, at least for
                   4422: 
                   4423:        the printer).
                   4424: 
                   4425: mem.c:
                   4426: 
                   4427:        Don't context switch and retry alloc_region; file systems and some
                   4428: 
                   4429:        parts of the kernel aren't expecting the context switch, and besides
                   4430: 
                   4431:        the previous change makes this tactic less likely to be helpful.
                   4432: 
                   4433: mem.c:
                   4434: 
                   4435:        Don't allocate *all* of the memory to the basepage, leave some for
                   4436: 
                   4437:        the kernel and other programs.
                   4438: 
                   4439: pipefs.c:
                   4440: 
                   4441:        Add a check for broken pipes when a program is trying to write
                   4442: 
                   4443:        atomically.
                   4444: 
                   4445: dosmem.c:
                   4446: 
                   4447:        Block job control signals during a vfork instead of ignoring
                   4448: 
                   4449:        them; this will result in the "right" thing happening after
                   4450: 
                   4451:        the exec (since the blocked signals will then be unblocked).
                   4452: 
                   4453: tosfs.c:
                   4454: 
                   4455:        Eeek! Fixed a very serious bug in the garbage collection
                   4456: 
                   4457:        routines ("i" was used where "j" should have been in a loop:
                   4458: 
                   4459:        result: things could be garbage collected that shouldn't
                   4460: 
                   4461:        have been!)
                   4462: 
                   4463: procfs.c:
                   4464: 
                   4465:        changed the return value from "dfree" to more accurately indicate
                   4466: 
                   4467:        the free memory in the system, and to also provide information
                   4468: 
                   4469:        about the smallest unit of allocable memory (currently a longword)
                   4470: 
                   4471: *fs.c,dosfile.c,dosdir.c,filesys.c:
                   4472: 
                   4473:        instead of passing fcookies to file systems, pass pointers to
                   4474: 
                   4475:        them; this should slightly improve efficiency, and greatly
                   4476: 
                   4477:        improve portability (otherwise, compilers used to make
                   4478: 
                   4479:        installable file systems would have to have the same structure
                   4480: 
                   4481:        passing/return conventions as the one that compiled the kernel)
                   4482: 
                   4483: dos.c:
                   4484: 
                   4485:        new system call, Srenice(), to change priority of a different
                   4486: 
                   4487:        process
                   4488: 
                   4489: dos.c:
                   4490: 
                   4491:        change Fbiosdev() system call to take a pid argument
                   4492: 
                   4493: proc.h, dosfile.c:
                   4494: 
                   4495:        add per-file descriptor flags for things like "close on exec"
                   4496: 
                   4497: file.h, mem.c, *fs.c:
                   4498: 
                   4499:        new file open mode, O_EXEC, for the kernel to use in Pexec
                   4500: 
                   4501: rendez.c, dos.c:
                   4502: 
                   4503:        new file from AKP to implement a simple and fast message based
                   4504: 
                   4505:        IPC; the new system call is Pmsg. Also note that the syscall number
                   4506: 
                   4507:        of Pmsg is 0x125, which used to be used by Fbiosdev; Fbiosdev has
                   4508: 
                   4509:        been moved to 0x126.
                   4510: 
                   4511: filesys.c:
                   4512: 
                   4513:        applied Steve Henson's patches to improve path2cookie's handling of
                   4514: 
                   4515:        repeated slashes
                   4516: 
                   4517: proc.h:
                   4518: 
                   4519:        MAX_OPEN should be 32, not 20!
                   4520: 
                   4521: mem.c:
                   4522: 
                   4523:        Ignore "close on exec" flag for the standard handles (for some
                   4524: 
                   4525:        reason, bash manages to set these for 0,1,2; this is probably a bug
                   4526: 
                   4527:        in the port of bash, but on the other hand it's unlikely that
                   4528: 
                   4529:        anyone would really want to close the standard handles when doing
                   4530: 
                   4531:        an exec, anyway)
                   4532: 
                   4533: tty.c:
                   4534: 
                   4535:        Fixed RAW mode reads on terminals so that they're no longer
                   4536: 
                   4537:        terminated by '\r' or '\n' (and so that pty slaves aren't forced
                   4538: 
                   4539:        to read just 1 character at a time). Thanks to AKP for catching
                   4540: 
                   4541:        this.
                   4542: 
                   4543: 
                   4544: 
                   4545: PATCHLEVEL7::
                   4546: 
                   4547: 
                   4548: 
                   4549: *fs.c:
                   4550: 
                   4551:        Cleaned up the Dpathconf() return values to better reflect
                   4552: 
                   4553:        reality, and made the code a little easier to understand.
                   4554: 
                   4555: bios.c:
                   4556: 
                   4557:        Adjust bcostat() parameters so that V:\MIDI and V:\KBD call
                   4558: 
                   4559:        the right (wrong) device (BIOS devices 3 and 4 are mixed
                   4560: 
                   4561:        up for Bcostat).
                   4562: 
                   4563: dosmem.c:
                   4564: 
                   4565:        Made sure that Malloc(0L) always returns a NULL pointer.
                   4566: 
                   4567: dosfile.c:
                   4568: 
                   4569:        Made Fclose() of handles 0, 1, 2, and 3 restore the default
                   4570: 
                   4571:        mappings. (Apparently TOS _does_ do this, after all.)
                   4572: 
                   4573: bios.c:
                   4574: 
                   4575:        AHDI 3.1 added a new parameter to Rwabs; we now pass that
                   4576: 
                   4577:        along too.
                   4578: 
                   4579: timeout.c:
                   4580: 
                   4581:        Make canceltimeout() free the memory used by the time out
                   4582: 
                   4583:        descriptor. (another Fselect bug)
                   4584: 
                   4585: signal.h:
                   4586: 
                   4587:        Removed ABORT and ALARM from list of signals that are reported
                   4588: 
                   4589:        by the kernel.
                   4590: 
                   4591: proc.c:
                   4592: 
                   4593:        Moved checkalarms() to do_wakeup_things() so that short time outs
                   4594: 
                   4595:        will be properly recognized; this fixes a nasty bug in Fselect.
                   4596: 
                   4597: 
                   4598: 
                   4599: PATCHLEVEL6::
                   4600: 
                   4601: 
                   4602: 
                   4603: pipefs.c:
                   4604: 
                   4605:        Make writes of 1024 or fewer bytes atomic. Also, increase pipe
                   4606: 
                   4607:        buffer size to 4096.
                   4608: 
                   4609: tosfs.c:
                   4610: 
                   4611:        Make O_EXCL and O_TRUNC bits useful.
                   4612: 
                   4613: tosfs.c,pipefs.c,filesys.c:
                   4614: 
                   4615:        Fully implement file sharing modes for tosfs and pipefs. A new
                   4616: 
                   4617:        routine (denyaccess) is provided in filesys.c for checking
                   4618: 
                   4619:        file open modes and determining conflicts (if any).
                   4620: 
                   4621: pipefs.c:
                   4622: 
                   4623:        If a process writes on a broken pipe while ignoring SIGPIPE,
                   4624: 
                   4625:        the write now returns -1. (Thanks, Stephen)
                   4626: 
                   4627: debug.c, bios.c:
                   4628: 
                   4629:        Applied bammi's patches to PATCHLEVEL 5 to fix some typos.
                   4630: 
                   4631: 
                   4632: 
                   4633: PATCHLEVEL5::
                   4634: 
                   4635: 
                   4636: 
                   4637: debug.c, bios.c:
                   4638: 
                   4639:        Applied AKP's debugging output patches, to allow TRACE and
                   4640: 
                   4641:        DEBUG output to go to serial ports as well as the printer.
                   4642: 
                   4643: 
                   4644: 
                   4645: PATCHLEVEL4::
                   4646: 
                   4647: 
                   4648: 
                   4649: dos.c:
                   4650: 
                   4651:        NEW SYSTEM CALL: Fbiosdev() to control redirection of BIOS
                   4652: 
                   4653:        devices.
                   4654: 
                   4655: bios.c, proc.h:
                   4656: 
                   4657:        Added binput and boutput arrays to allow for per-process redirection
                   4658: 
                   4659:        of BIOS device input and output to GEMDOS file handles.
                   4660: 
                   4661: biosfs.c:
                   4662: 
                   4663:        Changed "mdi" to "midi".
                   4664: 
                   4665:        WARNING: this change could (I suppose) break existing code.
                   4666: 
                   4667: util.c:
                   4668: 
                   4669:        Added a umalloc() function to allocate memory in user space,
                   4670: 
                   4671:        and modified the various sfirst routines to use this to
                   4672: 
                   4673:        allocate space for patterns instead of kmalloc.
                   4674: 
                   4675: dosdir.c,file.h:
                   4676: 
                   4677:        Added an FS_CASESENSITIVE flag to control conversion of file
                   4678: 
                   4679:        names to upper case for TOS domain processes.
                   4680: 
                   4681: dosdir.c, *fs.c:
                   4682: 
                   4683:        Made sfirst/snext functions take an extra argument, the length
                   4684: 
                   4685:        of the file name field in the DTA buffer (so that we can provide
                   4686: 
                   4687:        Xsfirst/Xsnext functions that can work with longer names)
                   4688: 
                   4689: mem.c:
                   4690: 
                   4691:        Fixed exec_region so that the close-on-exec flag works.
                   4692: 
                   4693: filesys.c:
                   4694: 
                   4695:        Made path2cookie take the name of the place to store the last
                   4696: 
                   4697:        component of the path name as an argument (instead of always
                   4698: 
                   4699:        storing it in the global variable temp1).
                   4700: 
                   4701: biosfs.c:
                   4702: 
                   4703:        Added code for O_NDELAY on bios devices.
                   4704: 
                   4705: tosfs.c:
                   4706: 
                   4707:        Cleaned up garbage collection a bit -- I hope this fixes the
                   4708: 
                   4709:        problems with running out of indices.
                   4710: 
                   4711: filesys.c:
                   4712: 
                   4713:        Returned the special parsing code for CON:, AUX:, etc.
                   4714: 
                   4715: file.h:
                   4716: 
                   4717:        OOPS! The flock structure was missing an element (l_whence). It
                   4718: 
                   4719:        was added.
                   4720: 
                   4721:        WARNING: This change may break existing code.
                   4722: 
                   4723: util.c:
                   4724: 
                   4725:        Made kmalloc take a long parameter, just in case installable
                   4726: 
                   4727:        file systems need lots of memory.
                   4728: 
                   4729: file.h, atarierr.h, pipefs.c:
                   4730: 
                   4731:        Made file modes compatible with _FLK specification. Also
                   4732: 
                   4733:        added the ELOCKED and ENSLOCK errors to atarierr.h, and made
                   4734: 
                   4735:        pipefs.c use ELOCKED instead of EACCDN.
                   4736: 
                   4737:        WARNING: this *will* break existing programs. In particular, mgr
                   4738: 
                   4739:        no longer works :-( because O_NDELAY has changed. (this was
                   4740: 
                   4741:        temporarily patched)
                   4742: 
                   4743: dos.c,dosfile.c:
                   4744: 
                   4745:        Added Flock() system call.
                   4746: 
                   4747: mem.c:
                   4748: 
                   4749:        Made the initial user stack pointer low enough so that syscall.s
                   4750: 
                   4751:        won't run into the end of memory if the user makes a system call
                   4752: 
                   4753:        right away and doesn't push many parameters (the code in syscall
                   4754: 
                   4755:        always tries to copy a large chunk of the caller's stack).
                   4756: 
                   4757: dosmem.c:
                   4758: 
                   4759:        Made vfork'd processes ignore job control signals (thanks to
                   4760: 
                   4761:        Stephen for pointing out how some shells rely on BSD's similar
                   4762: 
                   4763:        behaviour).
                   4764: 
                   4765: 
                   4766: 
                   4767: PATCHLEVEL3::
                   4768: 
                   4769: 
                   4770: 
                   4771: dosfile.c, file.h, *fs.c, bios.c:
                   4772: 
                   4773:        Changed f_select to use the new timeout mechanism, and provided
                   4774: 
                   4775:        routines in device drivers to wake up selecting processes.
                   4776: 
                   4777: proc.h:
                   4778: 
                   4779:        New queue, SELECT_Q, for processes doing "select", to match above
                   4780: 
                   4781:        changes
                   4782: 
                   4783: dos.c:
                   4784: 
                   4785:        Changed t_alarm to use the new timeout mechanism.
                   4786: 
                   4787: timeout.c,proc.h:
                   4788: 
                   4789:        Added a new "timeout" mechanism, so that processes can specify
                   4790: 
                   4791:        an action to be taken when a counter expires.
                   4792: 
                   4793: various places:
                   4794: 
                   4795:        Cleaned up TRACE and DEBUG output
                   4796: 
                   4797: proc.c:
                   4798: 
                   4799:        Set current directory based on the TOS current directory
                   4800: 
                   4801:        when MiNT is starting up.
                   4802: 
                   4803: debug.c:
                   4804: 
                   4805:        Added AKP's "trace" mode patch
                   4806: 
                   4807: filesys.c:
                   4808: 
                   4809:        Replaced strcmp() for . and .. with direct comparisons, again
                   4810: 
                   4811:        per AKP.
                   4812: 
                   4813: tosfs.c:
                   4814: 
                   4815:        Improved search performance a bit (indicies are now allocated
                   4816: 
                   4817:        at the beginning of the list, instead of at the end)
                   4818: 
                   4819: main.c, version.h:
                   4820: 
                   4821:        Introduced PATCHLEVEL for alpha and beta test versions  
                   4822: 
                   4823: util.c:
                   4824: 
                   4825:        Made kmalloc() try the kernel memory region first for small
                   4826: 
                   4827:        regions, to cut down fragmentation of the user's memory space
                   4828: 
                   4829: proc.h:
                   4830: 
                   4831:        Made the system stacks bigger, to compensate for the bigger
                   4832: 
                   4833:        contexts now that there's FPU support
                   4834: 
                   4835: dosmem.c:
                   4836: 
                   4837:        Fixed bug with Pexec mode 6 (thanks again, AKP)
                   4838: 
                   4839: biosfs.c:
                   4840: 
                   4841:        Changed FD0 to STDIN, FD1 to STDOUT, etc.
                   4842: 
                   4843:        WARNING: this change could break existing code
                   4844: 
                   4845: filesys.c:
                   4846: 
                   4847:        '/' is no longer a directory separator for MiNT domain processes
                   4848: 
                   4849:        (few were using it, and it simplifies things to be able to
                   4850: 
                   4851:        assume '\' is the only such separator).
                   4852: 
                   4853:        WARNING: this change could break existing code
                   4854: 
                   4855: all over the place:
                   4856: 
                   4857:        Changed the way directories/files are stored. We now have
                   4858: 
                   4859:        "file cookies" for directories, instead of strings. We
                   4860: 
                   4861:        also now have two directories per drive per process
                   4862: 
                   4863:        (a root and current).
                   4864: 
                   4865: minixfs.c:
                   4866: 
                   4867:        Removed from the main compile, and MINIX_FS symbol was also
                   4868: 
                   4869:        removed -- this will be a loadable file system someday
                   4870: 
                   4871:        (soon, I hope).
                   4872: 
                   4873: various places:
                   4874: 
                   4875:        Added Alex Kiernan's patches to support compilation under
                   4876: 
                   4877:        Lattice C v5
                   4878: 
                   4879: proc.h, context.s:
                   4880: 
                   4881:        Added Alex Kiernan's FPU co-processor patches. WARNING: this
                   4882: 
                   4883:        changes the layout of the proc structure in memory, and so
                   4884: 
                   4885:        breaks "ps" and similar programs.
                   4886: 
                   4887: proc.c:
                   4888: 
                   4889:        Changed sleep() to take the wait condition as an argument; this
                   4890: 
                   4891:        means that fewer things need to know the internals of the
                   4892: 
                   4893:        PROC structure
                   4894: 
                   4895: various places:
                   4896: 
                   4897:        Added AKP's T_TOSTOP flag changes
                   4898: 
                   4899: minixfs.c:
                   4900: 
                   4901:        Changed the 8K buffer in do_change to a static variable; our
                   4902: 
                   4903:        stacks aren't *that* big!
                   4904: 
                   4905: intr.s:
                   4906: 
                   4907:        Fixed a typo that was causing serious problems with the bus
                   4908: 
                   4909:        error and other exception codes on the TT (thanks for
                   4910: 
                   4911:        catching this, Allan).
                   4912: 
                   4913: dosmem.c,signal.c:
                   4914: 
                   4915:        Corrected the GEMDOS termination vector code (the system stack
                   4916: 
                   4917:        was being corrupted if the user's code returned). Thanks to
                   4918: 
                   4919:        Julian Reschke for catching this error.
                   4920: 
                   4921: ===========================================================================
                   4922: 
                   4923: version 0.8
                   4924: 
                   4925: 
                   4926: 
                   4927: biosfs.c, pipefs.c:
                   4928: 
                   4929:        fix ^C and ^Y to send the signals to the whole process group,
                   4930: 
                   4931:        and also to make sure processes don't read these keys if
                   4932: 
                   4933:        they're turned into signals
                   4934: 
                   4935: intr.s,dossig.c:
                   4936: 
                   4937:        fix exception handlers to be more careful about the distinction
                   4938: 
                   4939:        between being in or out of the kernel
                   4940: 
                   4941: intr.s, syscall.s, main.c:
                   4942: 
                   4943:        make sure interrupts are off before changing any vectors
                   4944: 
                   4945: bios.c:
                   4946: 
                   4947:        fixed the annoying problems with CTRL-ALT-Fx sometimes leaving
                   4948: 
                   4949:        keys in the buffer
                   4950: 
                   4951: signal.c:
                   4952: 
                   4953:        forced p_sigreturn() with no signal pending to unwind the
                   4954: 
                   4955:        *whole* signal stack, in case there were multiple signals
                   4956: 
                   4957:        pending at the time the user did a longjmp() (or whatever
                   4958: 
                   4959:        prompted the Psigreturn())
                   4960: 
                   4961: dosmem.c:
                   4962: 
                   4963:        p_wait3 now supports the WUNTRACED bit; if this isn't set,
                   4964: 
                   4965:        processes stopped due to job control are *not* returned
                   4966: 
                   4967: dosmem.c:
                   4968: 
                   4969:        removed dLibs kludge -- some programs rely on p_parent being
                   4970: 
                   4971:        non-zero to tell them that they're not accessories
                   4972: 
                   4973: various places:
                   4974: 
                   4975:        cleaned up job control stuff to be more Unix like
                   4976: 
                   4977: mem.c,util.c:
                   4978: 
                   4979:        added a new memory map for the kernel -- this should ease
                   4980: 
                   4981:        the problems with programs grabbing all of available memory
                   4982: 
                   4983: mem.c,dosmem.c:
                   4984: 
                   4985:        incorporated Allan's bugfixes; alternative RAM should work now
                   4986: 
                   4987: signal.c, main.c, intr.s:
                   4988: 
                   4989:        integrated signals with normal exceptions, so that e.g.
                   4990: 
                   4991:        a bus error raises SIGBUS. This improves the survivability
                   4992: 
                   4993:        of the kernel, so that a bus error resulting from a bad
                   4994: 
                   4995:        system call parameter won't kill MiNT, just the offending
                   4996: 
                   4997:        process.
                   4998: 
                   4999: proc.c:
                   5000: 
                   5001:        kludge to let low priority processes run every so often, even
                   5002: 
                   5003:        in the presence of a high priority process that is ready to run
                   5004: 
                   5005: atarierr.h:
                   5006: 
                   5007:        ENMFIL is -49, not -47 -- so much for Abacus' docs :-)
                   5008: 
                   5009: procfs.c:
                   5010: 
                   5011:        changes to allow read/write from process space
                   5012: 
                   5013: minixfs.[ch]:
                   5014: 
                   5015:        changed lots of function parameter types to avoid promotion and
                   5016: 
                   5017:        prototype problems with 32 bit code
                   5018: 
                   5019: bios.c:
                   5020: 
                   5021:        changed IOREC to IOREC_T to avoid name conflicts with some osbind.h
                   5022: 
                   5023: biosfs.c:
                   5024: 
                   5025:        made mouse driver change the line A mouse position variables, so MGR
                   5026: 
                   5027:        will work with bigscrn and similar large screen emulators
                   5028: 
                   5029: minixfs.c:
                   5030: 
                   5031:        new version from Stephen, now supports floppies and other removable
                   5032: 
                   5033:        media
                   5034: 
                   5035: mem.c, dosmem.c, dos.c:
                   5036: 
                   5037:        added code to support new TT TOS calls Mxalloc and Maddalt, plus
                   5038: 
                   5039:        program flags for loading/mallocing in alternate memory
                   5040: 
                   5041: bios.c,biosfs.c,dosfile.c:
                   5042: 
                   5043:        changed so that bios handles 0 and 1 can be redirected just like
                   5044: 
                   5045:        handle 2 (via the new file handles -3 and -2 respectively; AUX:
                   5046: 
                   5047:        and PRN: now refer to these files, and RS232 and CENTR to the
                   5048: 
                   5049:        physical devices)
                   5050: 
                   5051: dosdir.c:
                   5052: 
                   5053:        Dsetdrv() fixed to return an error indication when one happens
                   5054: 
                   5055: dos.c:
                   5056: 
                   5057:        fixed Super() bug (thanks Stephen)
                   5058: 
                   5059: minixfs.c:
                   5060: 
                   5061:        incorporated changes to handle 1K sector sizes
                   5062: 
                   5063: 
                   5064: 
                   5065: =============================================================================
                   5066: 
                   5067: version 0.7
                   5068: 
                   5069: 
                   5070: 
                   5071: minixfs.c:
                   5072: 
                   5073:        new file, courtesy of Stephen N. Henson ([email protected])
                   5074: 
                   5075:        this is still "under construction"; see minixfs.doc for more details
                   5076: 
                   5077: bios.c:
                   5078: 
                   5079:        CTRL-ALT-UNDO now raises SIGQUIT, for the benefit of people with
                   5080: 
                   5081:        foreign ROMs (some have trouble with ^\)
                   5082: 
                   5083: filesys.c:
                   5084: 
                   5085:        changed pathname resolution code so that multiple slashes in a file
                   5086: 
                   5087:        name have the same effect as single slashes. POSIX mandates this,
                   5088: 
                   5089:        and some Unix programs expect it, too
                   5090: 
                   5091: dosmem.c:
                   5092: 
                   5093:        changed do_vfork() code so that the text segment of processes is
                   5094: 
                   5095:        *not* saved in a fork() if the process has separate text, data, and
                   5096: 
                   5097:        bss segments; this saves a fair bit of memory
                   5098: 
                   5099: proc.c:
                   5100: 
                   5101:        changed the process initialization code to better deal with job
                   5102: 
                   5103:        control; also changed handle 2 to be AUX: (as under TOS) rather
                   5104: 
                   5105:        than PRN:
                   5106: 
                   5107: bios.c:
                   5108: 
                   5109:        added CTRL-ALT-F5 (show memory usage) and CTRL-ALT-F6
                   5110: 
                   5111:        (show processes)
                   5112: 
                   5113: filesys.c:
                   5114: 
                   5115:        make explicit the fact the individual file names are limited to
                   5116: 
                   5117:        14 characters
                   5118: 
                   5119: everywhere:
                   5120: 
                   5121:        change FILENAME_MAX to PATH_MAX
                   5122: 
                   5123: mem.c:
                   5124: 
                   5125:        fixed up comments and debugging/trace info for load_region
                   5126: 
                   5127: dossig.c:
                   5128: 
                   5129:        NEW SYSTEM CALL: Psigpending() returns the set of signals that
                   5130: 
                   5131:        have been sent to the process, but not yet delivered.
                   5132: 
                   5133: dos.c, dosdir.c:
                   5134: 
                   5135:        NEW SYSTEM CALLS:
                   5136: 
                   5137:        Sysconf(n) returns information about the global limits of the
                   5138: 
                   5139:        currently running version of MiNT
                   5140: 
                   5141:        Dpathconf(name, n) returns information about the file system that
                   5142: 
                   5143:        the file "name" is located on
                   5144: 
                   5145: bios.c:
                   5146: 
                   5147:        allow CTRL-ALT-C, CTRL-ALT-\, and CTRL-ALT-Z to force a SIGINT,
                   5148: 
                   5149:        SIGQUIT, or SIGTSTP, respectively, even if the terminal is in raw
                   5150: 
                   5151:        mode
                   5152: 
                   5153: various places:
                   5154: 
                   5155:        call zero() instead of bzero()
                   5156: 
                   5157: context.s,intr.s:
                   5158: 
                   5159:        changes to make MiNT TT compatible. Thanks to Allan Pratt for this!
                   5160: 
                   5161: biosfs.c, tosfs.c, pipefs.c, procfs.c:
                   5162: 
                   5163:        fsfirst/fsnext return all upper case in TOS domain now, but
                   5164: 
                   5165:        lower case (or mixed) in MiNT domain; this is to try to wean
                   5166: 
                   5167:        programmers off of the habit of assuming everything is upper case
                   5168: 
                   5169:        (and converting accordingly)
                   5170: 
                   5171: biosfs.c:
                   5172: 
                   5173:        made mouse compatible with TOS ALT-cursor keys (the Y direction was
                   5174: 
                   5175:        wrong before)
                   5176: 
                   5177: intr.s:
                   5178: 
                   5179:        IPL 7 before reboot (thanks, Allan)
                   5180: 
                   5181: version.h, main.c:
                   5182: 
                   5183:        made version numbering a bit easier (big deal)
                   5184: 
                   5185: main.c:
                   5186: 
                   5187:        AARGH! The cookie jar stuff was plain wrong (the last cookie should
                   5188: 
                   5189:        have the total number of slots, not just the ones that are free).
                   5190: 
                   5191: main.c:
                   5192: 
                   5193:        pass current environment along to init.prg, instead of forcing an
                   5194: 
                   5195:        empty environment
                   5196: 
                   5197: signal.c:
                   5198: 
                   5199:        corrected killpg() bug (wasn't checking signals, so the current
                   5200: 
                   5201:        process didn't get the signal until later)
                   5202: 
                   5203: mem.c, dosmem.c:
                   5204: 
                   5205:        made sure that all sizes would always be rounded to the nearest
                   5206: 
                   5207:        longword. Just in case they aren't, Malloc(-1L) rounds down to the
                   5208: 
                   5209:         next smallest longword.
                   5210: 
                   5211: lots of places:
                   5212: 
                   5213:        memory handling was overhauled completely; kmalloc now allocates
                   5214: 
                   5215:        memory from the same space as do m_alloc and p_exec, so there is
                   5216: 
                   5217:        no artificial constraint on the number of processes
                   5218: 
                   5219: ===========================================================================
                   5220: 
                   5221: version 0.6
                   5222: 
                   5223: 
                   5224: 
                   5225: dos.c:
                   5226: 
                   5227:        added Talarm() and Pause() system calls
                   5228: 
                   5229: bios.c, tty.c, pipefs.c:
                   5230: 
                   5231:        added real tty structures that programs can manipulate
                   5232: 
                   5233: proc.c:
                   5234: 
                   5235:        added some sanity checks for things like stack overflow
                   5236: 
                   5237: signal.c:
                   5238: 
                   5239:        revamped signal handling so that Psigreturn() no longer needs an
                   5240: 
                   5241:        argument.
                   5242: 
                   5243: dosmem.c:
                   5244: 
                   5245:        made Pexec'ing processes immune to SIGINT, SIGHUP, and SIGTSTP
                   5246: 
                   5247: intr.s:
                   5248: 
                   5249:        fixed the Psigreturn race condition bug
                   5250: 
                   5251: biosfs.c, pipefs.c, filesys.c, util.c:
                   5252: 
                   5253:        added case-insensitive string comparison routine, and modified the
                   5254: 
                   5255:        file systems to use it
                   5256: 
                   5257: bios.c, console.c:
                   5258: 
                   5259:        changed return values of status calls from 1 to -1, to be TOS
                   5260: 
                   5261:        compatible
                   5262: 
                   5263: dos.c:
                   5264: 
                   5265:        added new calls to get resource usage, and set resource limits
                   5266: 
                   5267: dosfile.c:
                   5268: 
                   5269:        added new call, f_select
                   5270: 
                   5271: signal.c:
                   5272: 
                   5273:        changed so stopped processes always have a return code of 0177
                   5274: 
                   5275: biosfs.c:
                   5276: 
                   5277:        added a fake "third button" on the mouse (you get it by holding down
                   5278: 
                   5279:        a shift key and a mouse button)
                   5280: 
                   5281:        made mouse_read return at least 1 byte
                   5282: 
                   5283: bios.c, proc.c, biosfs.c:
                   5284: 
                   5285:        added code to check for CTRL-ALT-key combinations on every
                   5286: 
                   5287:        process switch; thus, debugging, rebooting, etc. do not require
                   5288: 
                   5289:        waiting for a read from the keyboard. Also, ^C sends a SIGINT
                   5290: 
                   5291:        immediately, and ^Z (SIGTSTP) and ^\ (SIGQUIT) take effect
                   5292: 
                   5293:        right away, too.
                   5294: 
                   5295:        CTRL-ALT-DEL supported for TOS < 1.4
                   5296: 
                   5297: 
                   5298: 
                   5299: =========================================================================
                   5300: 
                   5301: version 0.5
                   5302: 
                   5303: 
                   5304: 
                   5305: First publically released version (made available for FTP as a beta test)
                   5306: 
                   5307: 
                   5308: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.