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