1. 17 Apr, 2001 1 commit
  2. 11 Apr, 2001 1 commit
    • Stewart Brodie's avatar
      strcmp() fix was broken. · 534e1478
      Stewart Brodie authored
      Detail:
        This alternate implementation returned non-zero for equal strings,
          because the tidyup routine failed to stop examining the differing
          words when it found matching zero bytes.
      Admin:
        Tested in softload C library, and in Lazarus ROM image.  strcmp()
          appears to be working per spec now.
      
      Version 5.31. Tagged as 'RISC_OSLib-5_31'
      534e1478
  3. 06 Apr, 2001 1 commit
    • Stewart Brodie's avatar
      Fix for strcmp(). · 9d5bf66a
      Stewart Brodie authored
        Fix for RISC_OSLib res() function.
      Detail:
        Version 4.89 featured an improved strcmp() routine that didn't actually
          work properly (bug #4085).  The return values had the wrong sign if this
          optimised code was used and the string contained top-bit set chars.
        Removed that rlib.s.asmdefs hack as the comment in the makefile suggested.
          Nothing needs it any more as the assembler sources that require it now
          get via a -PD argument.
        res_ prefix function was still wrong as it failed to detect valid but wrong
          filenames, hence the "Make$Path not defined" errors in the latest tools
          release.
      Admin:
        Fixes Bugzilla bug #4085
        Should fix BaseSW's build problems too.
      
      Version 5.29. Tagged as 'RISC_OSLib-5_29'
      9d5bf66a
  4. 22 Feb, 2001 1 commit
    • Stewart Brodie's avatar
      fwrite performance improved significantly. · 0bb3e26a
      Stewart Brodie authored
        Another getenv() bug fixed.
      Detail:
        stdio.c contains a vastly improved implementation of fwrite.
        hostsys.h declares _terminate_getenv to remove build warnings.
        armsys.c contains fix to getenv() to stop Omni dying.
      Admin:
        Tested on desktop machine for over a week without incident, including
          several heavy fwrite users (WebServe, C compiler)
        fwrite change is documented in Doc/fwrite
        getenv() bug is Bugzilla bug #28
      
      Version 5.27. Tagged as 'RISC_OSLib-5_27'
      0bb3e26a
  5. 19 Oct, 2000 1 commit
    • Paul Skirrow's avatar
      Changed getenv to ensure it always allocates a buffer before calling · 9076880f
      Paul Skirrow authored
        OS_ReadVarVal.
      
      Detail:
        getenv calls OS_ReadVarVal to read a system variable into a buffer.
        If the buffer is not big enough it increases the size of the buffer by
        256 bytes and tries again.
        However, the first time it was called, it would have no buffer and
        would call OS_ReadVarVal with r2=-1. The PRM says this "may" return an error
        which should be ignored, but if it did not return an error then getenv
        would not allocate a buffer and the call would fail.
        This change allocates a 256 byte buffer before OS_ReadVarVal is called.
      
      Admin:
        Untested.
      
      Version 5.20. Tagged as 'RISC_OSLib-5_20'
      9076880f
  6. 03 Oct, 2000 1 commit
  7. 02 Oct, 2000 2 commits
    • Stewart Brodie's avatar
      Uses SYMDEFS files to avoid xtentries(app) and symgen. · 5810d878
      Stewart Brodie authored
        Fixed bug in getenv() relating to macro and numeric system variables.
      Detail:
        Uses SYMDEFS file to avoid messing around with generating little text
          files, generating assembler source, assembling it etc.  abssym et al
          are construct as symbol definition template files and then updated
          directly by the linker ready for export.  The linker can use these
          files directly without needing them to be assembled into AOF format.
        Fixed getenv so that it can read macro and numeric variables.  With these
          variable types, R2 does not equal -length of the variable value, so
          trying to obtain a variable with a larger value than any previously
          read variable would fail.  This is now fixed.
        This module will refuse to build without link 5.19 or later.
      Admin:
        Requires Library 0.54 or later.
      
        This component will not build with Library 0.53 or earlier.
      
      Version 5.16. Tagged as 'RISC_OSLib-5_16'
      5810d878
    • Kevin Bracey's avatar
      * Trailing garbage no longer appears after some perror() calls. · dddff229
      Kevin Bracey authored
      * Correction to static base location in modulewrap - was affecting some
        DSL 4000 video software.
      
      Version 5.15. Tagged as 'RISC_OSLib-5_15'
      dddff229
  8. 14 Sep, 2000 1 commit
    • Stewart Brodie's avatar
      Fixed minor printf bug. · 8b52f983
      Stewart Brodie authored
      Detail:
        %#x shows a leading 0x (and %#X leads with 0X) only when the value
          to be displayed is NOT zero.
      Admin:
        Cross-verified against: C89 standard; C9X standard; gcc 2.95 implementation.
        Built.
      
      Version 5.14. Tagged as 'RISC_OSLib-5_14'
      8b52f983
  9. 09 May, 2000 1 commit
  10. 07 Mar, 2000 1 commit
  11. 22 Sep, 1999 1 commit
    • Stewart Brodie's avatar
      Fix for strcoll · e6cf1730
      Stewart Brodie authored
      Detail:
        Somebody had modified the SWI call to Territory_Collate to be done
          via _swix instead of _kernel_swi, but didn't remove the _kernel_swi_regs
          variable (r) and didn't change the function return value to return the
          new "ret" variable instead of r.r[0] which gives arbitrary results - in
          particular it confuses qsort.
      Admin:
        Tested that it builds.
      
      Version 4.97. Tagged as 'RISC_OSLib-4_97'
      e6cf1730
  12. 21 Sep, 1999 1 commit
    • Stewart Brodie's avatar
      Fix for qsort to stop aborts. · 71094b4e
      Stewart Brodie authored
      Detail:
        If qsort is passed an invalid base pointer and the number of entries
          is zero, then due to some pointer artihmetic going wrong, it aborts.
          The fix is to trap zero length arrays and exit quickly.
      Admin:
        Required by cmhg prior to version 5.20 which had an explicit fix to
          prevent triggering this bug.
        Reportedly this fix is required by PhotoDesk prior to version 3.03.
      
      Version 4.96. Tagged as 'RISC_OSLib-4_96'
      71094b4e
  13. 01 Oct, 1998 1 commit
    • Kevin Bracey's avatar
      Ursula branch merged. · 9081a0dc
      Kevin Bracey authored
      StrongARMfudge flag removed.
      StrongARM compatibility set according to AMBKernel flag in Hdr:RISCOS
      strftime %U and %W specifiers fixed for week 0.
      
      Version 4.89. Tagged as 'RISC_OSLib-4_89'
      9081a0dc
  14. 27 Aug, 1998 1 commit
  15. 21 Aug, 1998 1 commit
    • Richard Manby's avatar
      Fixed an RMA leak. · 31ab84f2
      Richard Manby authored
      If a module written in C uses function getenv, buffer space
      is allocated in the RMA. This buffer was never freed, leading
      to RMA leakage when the module was 'RMKill'ed or 'RMReInit'ed.
      
      Changes
      
       c.armsys
         added function _terminate_getenv to free the buffer
      
       c.stdlib
         added flag getenv_finalised to the exit_s structure
      
         initialised getenv_finalised in function _exit_init
      
         atexit tests getenv_finalised, calls _terminate_getenv
      
       s.version
         version string changed to 4.86 (27 Jul 1998)
      31ab84f2
  16. 21 Jan, 1997 1 commit
  17. 05 Nov, 1996 2 commits