home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / lib / mlib34d.zoo / diffc < prev    next >
Encoding:
Text File  |  1993-07-09  |  20.9 KB  |  806 lines

  1. diff -cr ../mntlib33/Bugs ./Bugs
  2. *** ../mntlib33/Bugs    Sun Jun 20 09:02:40 1993
  3. --- ./Bugs    Tue Jul  6 09:45:30 1993
  4. ***************
  5. *** 30,39 ****
  6.     The parameter -I/usr/include could be added in the GNU Makefile.
  7.     For you to decide upon the correct action!
  8.   
  9. !   [I'm not sure I understand this.  It sounds like it could happen if you
  10. !   put the Mint library header files in a directory such as /usr/lib, and then
  11. !   compile some GNU program in a dir such as /usr/gnu.  Solution:  name your
  12. !   include directory something else (e.g. /usr/include) -entropy]
  13.   
  14.   abort.c: ++entropy
  15.     Should fclose() all streams in the same way of exit().  Also, if my
  16. --- 30,40 ----
  17.     The parameter -I/usr/include could be added in the GNU Makefile.
  18.     For you to decide upon the correct action!
  19.   
  20. !   [I just read this for the 90th time and I finally understand what's being
  21. !   said (I can be pretty dense sometimes. <grin>) I guess making symbolic
  22. !   links for the sys/ files is the best solution but I'm reluctant to
  23. !   distribute the library that way as I'm not sure how ZOO would unpack the
  24. !   links on a TOS filesystem.  -entropy]
  25.   
  26.   abort.c: ++entropy
  27.     Should fclose() all streams in the same way of exit().  Also, if my
  28. ***************
  29. *** 65,73 ****
  30.     change only CLOCKS_PER_SEC.  CLK_TCK is used in times.c.  CLOCKS_PER_SEC
  31.     is used in sleep.c.
  32.   
  33. - fcntl.c: ++entropy
  34. -   Need emulation for POSIX-required F_SETLKW.  Should be trivial.
  35.   getopt.c, unistd.h: ++boender
  36.     The three externally usable variables defined in getopt.c should be
  37.     included in <unistd.h>, where getopt() is declared too.  These
  38. --- 66,71 ----
  39. ***************
  40. *** 195,207 ****
  41.   
  42.   types.h: ++entropy
  43.     Need ssize_t for POSIX compliance.
  44. - unistd.h: ++entropy 
  45. -   The following should be #ifndef _POSIX_SOURCE:  abort(), chmod(), creat(),
  46. -   getwd(), kill(), mkdir(), mktemp(), open(), psignal(), _read(),
  47. -   setlinebuf(), setegid(), seteuid(), setregid(), setreuid(), stime(),
  48. -   tell(), umask(), _write(), system(), getpass().  Some of them should be in
  49. -   a different header when _POSIX_SOURCE is defined (or always?).
  50.   
  51.   unlink.c: ++nox@jelal.north.de
  52.     When a file is still open on a GEMDOS filesystem MiNT already sets some
  53. --- 193,198 ----
  54. Only in .: Changelog
  55. diff -cr ../mntlib33/Copyright ./Copyright
  56. *** ../mntlib33/Copyright    Wed Jun 23 05:40:06 1993
  57. --- ./Copyright    Tue Jul  6 07:58:02 1993
  58. ***************
  59. *** 64,70 ****
  60.   Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  61.   
  62.   
  63. ! libgcc2 is:
  64.   
  65.   /* Copyright (C) 1989, 1992 Free Software Foundation, Inc.
  66.   
  67. --- 64,70 ----
  68.   Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  69.   
  70.   
  71. ! libgcc2.c is:
  72.   
  73.   /* Copyright (C) 1989, 1992 Free Software Foundation, Inc.
  74.   
  75. ***************
  76. *** 89,92 ****
  77. --- 89,114 ----
  78.      the resulting executable to be covered by the GNU General Public License.
  79.      This exception does not however invalidate any other reasons why
  80.      the executable file might be covered by the GNU General Public License.  */
  81.   
  82. + stab.h and stab.def (in the include directory) are:
  83. + /* Table of DBX symbol codes for the GNU system.
  84. +    Copyright (C) 1988 Free Software Foundation, Inc.
  85. +    This program is free software; you can redistribute it and/or modify
  86. +    it under the terms of the GNU General Public License as published by
  87. +    the Free Software Foundation; either version 1, or (at your option)
  88. +    any later version.
  89. +    This program is distributed in the hope that it will be useful,
  90. +    but WITHOUT ANY WARRANTY; without even the implied warranty of
  91. +    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  92. +    GNU General Public License for more details.
  93. +    You should have received a copy of the GNU General Public License
  94. +    along with this program; if not, write to the Free Software
  95. +    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  96. + /* This contains contribution from Cygnus Support.  */
  97. diff -cr ../mntlib33/Files ./Files
  98. *** ../mntlib33/Files    Tue Jul  6 05:34:54 1993
  99. --- ./Files    Thu Jul  8 08:37:26 1993
  100. ***************
  101. *** 1,7 ****
  102.   Common files:
  103.   
  104.           atof.c        fputs.c        lseek.c        strcoll.c
  105. ! Files                fread.c        ltoa.c        strcpy.c
  106.           atol.c        frexp.cpp    malloc.c    strcspn.c
  107.   _addsubd.cpp    bblink.c    frwbin.c    memccpy.c    strdup.c
  108.   _addsubs.cpp    bcmp.c        fseek.c        memchr.c    strerror.c
  109. --- 1,7 ----
  110.   Common files:
  111.   
  112.           atof.c        fputs.c        lseek.c        strcoll.c
  113. !                 fread.c        ltoa.c        strcpy.c
  114.           atol.c        frexp.cpp    malloc.c    strcspn.c
  115.   _addsubd.cpp    bblink.c    frwbin.c    memccpy.c    strdup.c
  116.   _addsubs.cpp    bcmp.c        fseek.c        memchr.c    strerror.c
  117. ***************
  118. *** 9,28 ****
  119.   _cmpsf2.cpp    binmode.c    ftw.c        mktemp.c    stricmp.c
  120.   _divdf3.cpp    bsearch.c    fungetc.c    modf.cpp    strlen.c
  121.   _divmods.s    bzero.cpp    fwrite.c            strlwr.c
  122. !                 gbl-ctors.h
  123. ! _divsf3.cpp    calloc.c    getbuf.c            strncat.c
  124. ! _extends.cpp    chdir.c        getenv.c    obstack.c    strncmp.c
  125. ! _fixdfsi.cpp    chmod.c        getlogin.c    perror.c    strncpy.c
  126. !         ctermid.c            pgrp.c
  127.   _fixsfsi.cpp    ctime.c        getopt.c    psignal.c    strnicmp.c
  128.   _fltsi.cpp    ctype.c        getpass.c    putenv.c    strpbrk.c
  129. !         cuserid.c
  130. ! _fltsisf.cpp    defmode.c    getpid.c    qsort.c        strrchr.c
  131. ! _fxunsd.cpp    difftime.c    getpw.c        raise.c        strrev.c
  132. ! _isnan.s    div.c        gets.c        rand.c        strspn.c
  133. ! _muldf3.cpp    div.cpp        getuid.c    random.c    strstr.c
  134. ! _mulsf3.cpp    doprnt.c    getw.c        realloc.c    strtok.c
  135. ! _mulsi3.s            gmon.c        regexp.c    strtol.c
  136.   _negdf2.s    eprintf.c    gnulib2.c    regsup.c    strtoul.c
  137.                                   strupr.c
  138.   _negsf2.s    errbase.h    grp.c        sbrk.c        system.c
  139. --- 9,26 ----
  140.   _cmpsf2.cpp    binmode.c    ftw.c        mktemp.c    stricmp.c
  141.   _divdf3.cpp    bsearch.c    fungetc.c    modf.cpp    strlen.c
  142.   _divmods.s    bzero.cpp    fwrite.c            strlwr.c
  143. ! _divsf3.cpp    calloc.c    gbl-ctors.h            strncat.c
  144. ! _extends.cpp    chdir.c        getbuf.c    obstack.c    strncmp.c
  145. ! _fixdfsi.cpp    chmod.c        getenv.c    perror.c    strncpy.c
  146. !         ctermid.c    getlogin.c    pgrp.c
  147.   _fixsfsi.cpp    ctime.c        getopt.c    psignal.c    strnicmp.c
  148.   _fltsi.cpp    ctype.c        getpass.c    putenv.c    strpbrk.c
  149. ! _fltsisf.cpp    cuserid.c    getpid.c    qsort.c        strrchr.c
  150. ! _fxunsd.cpp    defmode.c    getpw.c        raise.c        strrev.c
  151. ! _isnan.s    difftime.c    gets.c        rand.c        strspn.c
  152. ! _muldf3.cpp    div.c        getuid.c    random.c    strstr.c
  153. ! _mulsf3.cpp    div.cpp        getw.c        realloc.c    strtok.c
  154. ! _mulsi3.s    doprnt.c    gmon.c        regexp.c    strtol.c
  155.   _negdf2.s    eprintf.c    gnulib2.c    regsup.c    strtoul.c
  156.                                   strupr.c
  157.   _negsf2.s    errbase.h    grp.c        sbrk.c        system.c
  158. ***************
  159. *** 29,38 ****
  160.   _normdf.cpp    fclose.c    ic.c        setbuf.c    sysvar.c
  161.   _normsf.cpp    fdopen.c            setjmp.cpp    textio.c
  162.   _truncdf.cpp    fflush.c    ig.c        setlocal.c    time.c
  163. !         ffs.c
  164. ! _udivmod.s    fgetc.c        il.c        setvbuf.c    timeoday.c
  165. ! _umulsi3.s    fgets.c        ip.c        sgtty.c        tmpfile.c
  166. ! a64l.c
  167.   abort.c        filbuf.c    iw.c        siglist.c    tmpnam.c
  168.   abs.c        findfile.c    ldexp.cpp    sprintf.c    toxxx.c
  169.   access.c    flonum.h    lib.h        stksiz.c    utime.c
  170. --- 27,35 ----
  171.   _normdf.cpp    fclose.c    ic.c        setbuf.c    sysvar.c
  172.   _normsf.cpp    fdopen.c            setjmp.cpp    textio.c
  173.   _truncdf.cpp    fflush.c    ig.c        setlocal.c    time.c
  174. ! _udivmod.s    ffs.c        il.c        setvbuf.c    timeoday.c
  175. ! _umulsi3.s    fgetc.c        ip.c        sgtty.c        tmpfile.c
  176. ! a64l.c        fgets.c
  177.   abort.c        filbuf.c    iw.c        siglist.c    tmpnam.c
  178.   abs.c        findfile.c    ldexp.cpp    sprintf.c    toxxx.c
  179.   access.c    flonum.h    lib.h        stksiz.c    utime.c
  180. ***************
  181. *** 45,73 ****
  182.   MiNT library:
  183.   
  184.   Bugs
  185. ! Changes        fscanf.c            popen.c        statfs.c
  186. ! Copyright
  187. ! GMakefile.16
  188. ! GMakefile.32
  189. ! Makefile    getcwd.c            read.c        symlink.c
  190. ! PatchLev.h    getdtabl.c    link.c        readme        sysconf.c
  191. ! alarm.c        getgroup.c    lockf.c        rename.c
  192. ! atexit.c    gethostn.c    main.c        rmdir.c        thread.c
  193. !         getpages.c            scandir.c    times.c
  194. ! clock.c        getrusag.c            scanf.c        ttyname.c
  195. ! close.c                        select.c    uname.c
  196. ! console.c            mincl        setrlimi.c    unlink.c
  197. !                         sigactio.c    unx2dos.c
  198. ! crt0.cpp    heapbase.c    mkdir.c        sigblock.c    utmp.c
  199. ! crtinit.c    ident.c        mknod.c        signal.c    vfork.cpp
  200. ! dirent.c    inistack.c    nice.c        sleep.c        wait.c
  201. ! dup.c        initsig.c    open.c        spawn.c        wait3.c
  202. ! exec.c        ioctl.c        osbind.cpp    spawnve.c    waitpid.c
  203. ! execp.c
  204. ! fcntl.c        isatty.c            spawnvp.c    write.c
  205. ! fopenp.c    kill.c        pause.c        sscanf.c    wtmp.c
  206. ! fork.c        killpg.c    pipe.c        stat.c
  207.   TOS library:
  208.   
  209.           clock.c        getcwd.c    null.c        spawnvp.c
  210. --- 42,68 ----
  211.   MiNT library:
  212.   
  213.   Bugs
  214. ! Changelog
  215. ! Copyright    execp.c        isatty.c            spawnvp.c
  216. ! Files        fcntl.c        kill.c        pause.c        sscanf.c
  217. ! GMakefile.16    fopenp.c                    stat.c
  218. ! GMakefile.32    fork.c        killpg.c    pipe.c        statfs.c
  219. ! GNUGPL2        fscanf.c            popen.c        symlink.c
  220. ! Makefile    getcwd.c            read.c        sysconf.c
  221. ! OChangelog                    rename.c    thread.c
  222. ! PatchLev.h    getdtabl.c    link.c        rmdir.c        times.c
  223. ! README        getgroup.c    lockf.c        scandir.c    ttyname.c
  224. ! alarm.c        gethostn.c    main.c        scanf.c        uname.c
  225. ! atexit.c    getpages.c            select.c    unlink.c
  226. ! clock.c        getrusag.c            setrlimi.c    unx2dos.c
  227. ! close.c                                utmp.c
  228. ! console.c            mincl        sigactio.c    vfork.cpp
  229. ! crt0.cpp    heapbase.c    mkdir.c        sigblock.c    wait.c
  230. ! crtinit.c    ident.c        mknod.c        signal.c    wait3.c
  231. ! dirent.c    inistack.c    nice.c        sleep.c        waitpid.c
  232. ! dup.c        initsig.c    open.c        spawn.c        write.c
  233. ! exec.c        ioctl.c        osbind.cpp    spawnve.c    wtmp.c    
  234. !                             
  235.   TOS library:
  236.   
  237.           clock.c        getcwd.c    null.c        spawnvp.c
  238. diff -cr ../mntlib33/Makefile ./Makefile
  239. *** ../mntlib33/Makefile    Fri Jun 25 14:27:06 1993
  240. --- ./Makefile    Thu Jul  8 06:06:56 1993
  241. ***************
  242. *** 97,104 ****
  243.   b=
  244.   endif
  245.   
  246.   # common subset of options; no int size or omit-frame-pointer:
  247. ! COPTS= $(DEBUG) $(OPTIM) $(XFLAGS)
  248.   
  249.   # Base options CC; includes int size but not omit-frame-pointer
  250.   CFFLAGS = $(SHORT) $(COPTS)
  251. --- 97,112 ----
  252.   b=
  253.   endif
  254.   
  255. + ifneq (,$(findstring sfp004,$(TARGET)))
  256. + SFPFLAG = -Dsfp004
  257. + SFP=sfp
  258. + else
  259. + SFPFLAG=
  260. + SFP=
  261. + endif
  262.   # common subset of options; no int size or omit-frame-pointer:
  263. ! COPTS= $(DEBUG) $(OPTIM) $(XFLAGS) $(SFPFLAG)
  264.   
  265.   # Base options CC; includes int size but not omit-frame-pointer
  266.   CFFLAGS = $(SHORT) $(COPTS)
  267. ***************
  268. *** 113,134 ****
  269.   ASFLAGS= -c
  270.   
  271.   # flags to $(CC) when running preprocessor and assembler
  272. ! PPFLAGS= $(XPFLAGS) $(SHORT) -P -c
  273.   
  274.   # library targets
  275.   ifdef MINTFLAG
  276.   
  277. ! CLIB= $bmint$g$(ST).olb
  278. ! CLIB020=$bmint$g$(ST)020.olb
  279. ! IIOLIB= $bmiio$g$(ST).olb
  280.   CRT0=$bmcrt0.o
  281.   GCRT0=$bmgcrt0.o
  282.   
  283.   else
  284.   
  285. ! CLIB= $bgnu$g$(ST).olb
  286. ! CLIB020=$bgnu$g$(ST)020.olb
  287. ! IIOLIB= $biio$g$(ST).olb
  288.   CRT0=$bcrt0.o
  289.   GCRT0=$bgcrt0.o
  290.   
  291. --- 121,142 ----
  292.   ASFLAGS= -c
  293.   
  294.   # flags to $(CC) when running preprocessor and assembler
  295. ! PPFLAGS= $(XPFLAGS) $(SHORT) $(SFPFLAG) -P -c
  296.   
  297.   # library targets
  298.   ifdef MINTFLAG
  299.   
  300. ! CLIB= $bmint$g$(SFP)$(ST).olb
  301. ! CLIB020=$bmint$g$(SFP)$(ST)020.olb
  302. ! IIOLIB= $bmiio$g$(SFP)$(ST).olb
  303.   CRT0=$bmcrt0.o
  304.   GCRT0=$bmgcrt0.o
  305.   
  306.   else
  307.   
  308. ! CLIB= $bgnu$g$(SFP)$(ST).olb
  309. ! CLIB020=$bgnu$g$(SFP)$(ST)020.olb
  310. ! IIOLIB= $biio$g$(SFP)$(ST).olb
  311.   CRT0=$bcrt0.o
  312.   GCRT0=$bgcrt0.o
  313.   
  314. ***************
  315. *** 185,190 ****
  316. --- 193,214 ----
  317.   l020blong:
  318.       $(MAKE) clean
  319.       $(MAKE) install TARGET="68020 long-int baserel"
  320. + lsfpshort:
  321. +     $(MAKE) clean
  322. +     $(MAKE) install TARGET="sfp004"
  323. + lsfplong:
  324. +     $(MAKE) clean
  325. +     $(MAKE) install TARGET="long-int sfp004"
  326. + lbsfpshort:
  327. +     $(MAKE) clean
  328. +     $(MAKE) install TARGET="baserel sfp004"
  329. + lbsfplong:
  330. +     $(MAKE) clean
  331. +     $(MAKE) install TARGET="long-int baserel sfp004"
  332.   
  333.   bakclean:
  334.       rm -f *~ *#
  335. diff -cr ../mntlib33/PatchLev.h ./PatchLev.h
  336. *** ../mntlib33/PatchLev.h    Thu Jun 17 09:25:02 1993
  337. --- ./PatchLev.h    Tue Jul  6 07:50:46 1993
  338. ***************
  339. *** 3,6 ****
  340.    *    directory.
  341.    */
  342.   
  343. ! #define PatchLevel "33"
  344. --- 3,6 ----
  345.    *    directory.
  346.    */
  347.   
  348. ! #define PatchLevel "34"
  349. Only in .: README.34d
  350. diff -cr ../mntlib33/_fixsfsi.cpp ./_fixsfsi.cpp
  351. *** ../mntlib33/_fixsfsi.cpp    Sun Jun  6 05:13:54 1993
  352. --- ./_fixsfsi.cpp    Thu Jul  8 06:00:26 1993
  353. ***************
  354. *** 28,33 ****
  355. --- 28,34 ----
  356.   1:    cmpiw    #0x8900,a0@(resp)
  357.       beq    1b
  358.       movel    a0@,d0
  359. +     rts
  360.   
  361.   #else /* !sfp004 */
  362.   
  363. diff -cr ../mntlib33/_fltsisf.cpp ./_fltsisf.cpp
  364. *** ../mntlib33/_fltsisf.cpp    Sun Jun  6 05:14:04 1993
  365. --- ./_fltsisf.cpp    Thu Jul  8 06:00:30 1993
  366. ***************
  367. *** 23,29 ****
  368.       movew    #0x4000,a0@(comm)    | load long int to fp0
  369.       cmpiw    #0x8900,a0@(resp)    | check
  370.       movel    a7@(4),a0@
  371. !     movew    #0x7400,a0@(comm)    | get double from fp0
  372.   | wait loop is NOT coded directly
  373.   1:    cmpw    #0x8900,a0@(resp)
  374.       beq    1b
  375. --- 23,29 ----
  376.       movew    #0x4000,a0@(comm)    | load long int to fp0
  377.       cmpiw    #0x8900,a0@(resp)    | check
  378.       movel    a7@(4),a0@
  379. !     movew    #0x6400,a0@(comm)    | get single from fp0
  380.   | wait loop is NOT coded directly
  381.   1:    cmpw    #0x8900,a0@(resp)
  382.       beq    1b
  383. diff -cr ../mntlib33/doprnt.c ./doprnt.c
  384. *** ../mntlib33/doprnt.c    Fri Jun 11 01:59:58 1993
  385. --- ./doprnt.c    Thu Jul  8 05:52:50 1993
  386. ***************
  387. *** 524,534 ****
  388.                * fieldsz excludes decimal prec; realsz includes it
  389.                */
  390.               fieldsz = size + fpprec;
  391.               if (sign)
  392. !                 fieldsz++;
  393.               if (flags & HEXPREFIX)
  394. !                 fieldsz += 2;
  395. !             realsz = dprec > fieldsz ? dprec : fieldsz;
  396.   
  397.               /* right-adjusting blank padding */
  398.               if ((flags & (LADJUST|ZEROPAD)) == 0 && width)
  399. --- 524,534 ----
  400.                * fieldsz excludes decimal prec; realsz includes it
  401.                */
  402.               fieldsz = size + fpprec;
  403. +             realsz = dprec > fieldsz ? dprec : fieldsz;
  404.               if (sign)
  405. !                 realsz++;
  406.               if (flags & HEXPREFIX)
  407. !                 realsz += 2;
  408.   
  409.               /* right-adjusting blank padding */
  410.               if ((flags & (LADJUST|ZEROPAD)) == 0 && width)
  411. diff -cr ../mntlib33/fcntl.c ./fcntl.c
  412. *** ../mntlib33/fcntl.c    Sat Sep  5 20:22:40 1992
  413. --- ./fcntl.c    Tue Jul  6 10:08:48 1993
  414. ***************
  415. *** 7,12 ****
  416. --- 7,13 ----
  417.   #include <mintbind.h>
  418.   #include <fcntl.h>
  419.   #include <stdarg.h>
  420. + #include <unistd.h>
  421.   
  422.   extern int __mint;    /* MiNT version */
  423.   
  424. ***************
  425. *** 25,30 ****
  426. --- 26,33 ----
  427.   
  428.       if (__mint) {
  429.           r = Fcntl(f, va_arg(argp, void *), cmd);
  430. +         if (r == -ELOCKED)
  431. +             r = -EACCES;
  432.       }
  433.       else
  434.           r = -EINVAL;
  435. diff -cr ../mntlib33/ffs.c ./ffs.c
  436. *** ../mntlib33/ffs.c    Sun Jul  4 06:02:20 1993
  437. --- ./ffs.c    Thu Jul  8 07:46:18 1993
  438. ***************
  439. *** 1,5 ****
  440. ! /* Find first set bit.  By entropy@terminator.rs.itd.umich.edu.
  441. !    Public domain.
  442.   */
  443.   
  444.   #include <support.h>
  445. --- 1,7 ----
  446. ! /*
  447. !   ffs.c - find first set bit
  448. !   Carmine T. Guida
  449. !   7 - 7 - 93 Public Domain
  450.   */
  451.   
  452.   #include <support.h>
  453. ***************
  454. *** 9,22 ****
  455.     int bits;
  456.   {
  457.     register int i;
  458. -   register int mask;
  459.   
  460.     if (!bits)
  461.       return 0;
  462. !   mask = 0xFF;
  463. !   for (i = 1; !(bits & mask); i += 8)
  464. !     mask <<= 8;
  465. !   for (mask = (1 << (i - 1)); !(bits & mask); i++)
  466. !     mask <<= 1;
  467.     return i;
  468.   }
  469. --- 11,47 ----
  470.     int bits;
  471.   {
  472.     register int i;
  473.   
  474.     if (!bits)
  475.       return 0;
  476. !   i = 1;
  477. ! #ifndef __MSHORT__
  478. !   if (!(bits & 0x0000FFFF))    /* Check word */
  479. !   {
  480. !     bits >>= 16;
  481. !     i += 16;
  482. !   }
  483. ! #endif
  484. !   if (!(bits & 0x00FF))        /* Check byte */
  485. !   {
  486. !     bits >>= 8;
  487. !     i += 8;
  488. !   }
  489. !   if (!(bits & 0x0F))        /* Check nybble */
  490. !   {
  491. !     bits >>= 4;
  492. !     i += 4;
  493. !   }
  494. !   if (!(bits & 0x3))        /* Check 2 bits */
  495. !   {
  496. !     bits >>= 2;
  497. !     i += 2;
  498. !   }
  499. !   if (!(bits & 0x1))        /* Check bit */
  500. !     i += 1;
  501.     return i;
  502.   }
  503. diff -cr ../mntlib33/frexp.cpp ./frexp.cpp
  504. *** ../mntlib33/frexp.cpp    Sun Jun  6 05:14:52 1993
  505. --- ./frexp.cpp    Thu Jul  8 06:00:36 1993
  506. ***************
  507. *** 174,179 ****
  508. --- 174,180 ----
  509.   
  510.   .globl _frexp
  511.   
  512. + _frexp:
  513.       tstl    sp@(4)        | 1st arg == 0 ?
  514.       bne    nonzero
  515.       tstl    sp@(8)
  516. ***************
  517. *** 210,216 ****
  518.       .long    0x0c688900, 0xfff067f8
  519.       movew    a0@,a1@            | return exp
  520.   #else
  521. !     movew    #0x7880,a0@(comm)    | fetch exp (fmovel from fp1)
  522.       .long    0x0c688900, 0xfff067f8
  523.       movel    a0@,a1@            | return exp
  524.   #endif
  525. --- 211,217 ----
  526.       .long    0x0c688900, 0xfff067f8
  527.       movew    a0@,a1@            | return exp
  528.   #else
  529. !     movew    #0x6080,a0@(comm)    | fetch exp (fmovel from fp1)
  530.       .long    0x0c688900, 0xfff067f8
  531.       movel    a0@,a1@            | return exp
  532.   #endif
  533. diff -cr ../mntlib33/modf.cpp ./modf.cpp
  534. *** ../mntlib33/modf.cpp    Sun Jun  6 05:15:16 1993
  535. --- ./modf.cpp    Thu Jul  8 06:00:42 1993
  536. ***************
  537. *** 124,140 ****
  538.       .globl _modf
  539.   .even
  540.   _modf:
  541. -     movel    a1,a7@-            | save a1 (necessary?)
  542.       lea    0xfffffa50:w,a0
  543.       movew    #0x5403,a0@(comm)    | fintrz X -> fp0
  544.       cmpiw    #0x8900,a0@(resp)    | check
  545. !     movel    a7@(8),a0@        | load X_hi
  546. !     movel    a7@(12),a0@        | load X_low
  547.   
  548.       movew    #0x5480,a0@(comm)    | X -> fp1
  549.       .long    0x0c688900, 0xfff067f8
  550. !     movel    a7@(8),a0@        | load X_hi
  551. !     movel    a7@(12),a0@        | load X_low
  552.   
  553.   |    000 000 001 0101000        | sub fp0 -> fp1
  554.       movew    #0x00a8,a0@(comm)    | sub fp0 -> fp1
  555. --- 124,139 ----
  556.       .globl _modf
  557.   .even
  558.   _modf:
  559.       lea    0xfffffa50:w,a0
  560.       movew    #0x5403,a0@(comm)    | fintrz X -> fp0
  561.       cmpiw    #0x8900,a0@(resp)    | check
  562. !     movel    a7@(4),a0@        | load X_hi
  563. !     movel    a7@(8),a0@        | load X_low
  564.   
  565.       movew    #0x5480,a0@(comm)    | X -> fp1
  566.       .long    0x0c688900, 0xfff067f8
  567. !     movel    a7@(4),a0@        | load X_hi
  568. !     movel    a7@(8),a0@        | load X_low
  569.   
  570.   |    000 000 001 0101000        | sub fp0 -> fp1
  571.       movew    #0x00a8,a0@(comm)    | sub fp0 -> fp1
  572. ***************
  573. *** 141,147 ****
  574.       .word    0x4a68,0xfff0,0x6bfa    | test
  575.   
  576.       movew    #0x7400,a0@(comm)    | fp0 to IntPart
  577. !     moveal    a7@(16),a1        | address of IntPart while the fpu is active
  578.   | wait
  579.       .long    0x0c688900, 0xfff067f8
  580.       movel    a0@,a1@+
  581. --- 140,146 ----
  582.       .word    0x4a68,0xfff0,0x6bfa    | test
  583.   
  584.       movew    #0x7400,a0@(comm)    | fp0 to IntPart
  585. !     moveal    a7@(12),a1        | address of IntPart while the fpu is active
  586.   | wait
  587.       .long    0x0c688900, 0xfff067f8
  588.       movel    a0@,a1@+
  589. ***************
  590. *** 151,157 ****
  591.       .long    0x0c688900, 0xfff067f8
  592.       movel    a0@,d0
  593.       movel    a0@,d1
  594. -     movel    a7@+,a1            | restore a1
  595.        rts
  596.   
  597.   #endif    sfp004
  598. --- 150,155 ----
  599. diff -cr ../mntlib33/select.c ./select.c
  600. *** ../mntlib33/select.c    Mon Feb 22 09:57:22 1993
  601. --- ./select.c    Wed Jul  7 09:22:12 1993
  602. ***************
  603. *** 5,15 ****
  604.   
  605.   #include <errno.h>
  606.   #include <mintbind.h>
  607. ! struct timeval {
  608. !     long    tv_sec;
  609. !     long    tv_usec;
  610. ! };
  611.   
  612.   int
  613.   select(junk, rfds, wfds, xfds, timeout)
  614. --- 5,11 ----
  615.   
  616.   #include <errno.h>
  617.   #include <mintbind.h>
  618. ! #include <time.h>
  619.   
  620.   int
  621.   select(junk, rfds, wfds, xfds, timeout)
  622. diff -cr ../mntlib33/sigactio.c ./sigactio.c
  623. *** ../mntlib33/sigactio.c    Sun Jun 20 14:26:08 1993
  624. --- ./sigactio.c    Tue Jul  6 08:04:36 1993
  625. ***************
  626. *** 109,115 ****
  627.     }
  628.     idx = _SIGSET_INDEX(signo);
  629.     pos = _SIGSET_BITPOS(signo);
  630. !   set->_sigset_data[idx] |= sigmask(pos);
  631.     return 0;  
  632.   }
  633.   
  634. --- 109,115 ----
  635.     }
  636.     idx = _SIGSET_INDEX(signo);
  637.     pos = _SIGSET_BITPOS(signo);
  638. !   set->__sigset_data[idx] |= sigmask(pos);
  639.     return 0;  
  640.   }
  641.   
  642. ***************
  643. *** 127,133 ****
  644.     }
  645.     idx = _SIGSET_INDEX(signo);
  646.     pos = _SIGSET_BITPOS(signo);
  647. !   set->_sigset_data[idx] &= ~(sigmask(pos));
  648.     return 0;  
  649.   }
  650.   
  651. --- 127,133 ----
  652.     }
  653.     idx = _SIGSET_INDEX(signo);
  654.     pos = _SIGSET_BITPOS(signo);
  655. !   set->__sigset_data[idx] &= ~(sigmask(pos));
  656.     return 0;  
  657.   }
  658.   
  659. ***************
  660. *** 142,148 ****
  661.       return -1;
  662.     }
  663.     for (idx = _SIGSET_MAX_INDEX; idx >= 0; idx--) {
  664. !     set->_sigset_data[idx] = 0UL;
  665.     }
  666.     return 0;  
  667.   }
  668. --- 142,148 ----
  669.       return -1;
  670.     }
  671.     for (idx = _SIGSET_MAX_INDEX; idx >= 0; idx--) {
  672. !     set->__sigset_data[idx] = 0UL;
  673.     }
  674.     return 0;  
  675.   }
  676. ***************
  677. *** 158,164 ****
  678.       return -1;
  679.     }
  680.     for (idx = _SIGSET_MAX_INDEX; idx >= 0; idx--) {
  681. !     set->_sigset_data[idx] = ~0UL;
  682.     }
  683.     return 0;  
  684.   }
  685. --- 158,164 ----
  686.       return -1;
  687.     }
  688.     for (idx = _SIGSET_MAX_INDEX; idx >= 0; idx--) {
  689. !     set->__sigset_data[idx] = ~0UL;
  690.     }
  691.     return 0;  
  692.   }
  693. ***************
  694. *** 177,183 ****
  695.     }
  696.     idx = _SIGSET_INDEX(signo);
  697.     pos = _SIGSET_BITPOS(signo);
  698. !   return (set->_sigset_data[idx] & sigmask(pos)) ? 1 : 0;
  699.   }
  700.   
  701.   int
  702. --- 177,183 ----
  703.     }
  704.     idx = _SIGSET_INDEX(signo);
  705.     pos = _SIGSET_BITPOS(signo);
  706. !   return (set->__sigset_data[idx] & sigmask(pos)) ? 1 : 0;
  707.   }
  708.   
  709.   int
  710. ***************
  711. *** 189,195 ****
  712.       return -1;
  713.     }
  714.     (void) sigemptyset(set);
  715. !   set->_sigset_data[0] = Psigpending();
  716.     return 0;
  717.   }
  718.   
  719. --- 189,195 ----
  720.       return -1;
  721.     }
  722.     (void) sigemptyset(set);
  723. !   set->__sigset_data[0] = Psigpending();
  724.     return 0;
  725.   }
  726.   
  727. ***************
  728. *** 208,235 ****
  729.     }
  730.     switch (how) {
  731.       case SIG_BLOCK:
  732. !       omask = Psigblock(set->_sigset_data[0]);
  733.         break;
  734.       case SIG_UNBLOCK:
  735.         omask = Psigblock(0L);
  736. !       (void) Psigsetmask(omask & ~(set->_sigset_data[0]));
  737.         break;
  738.       case SIG_SETMASK:
  739. !       omask = Psigsetmask(set->_sigset_data[0]);
  740.         break;
  741.       default:
  742.         errno = EINVAL;
  743.         rv = -1;
  744.     }
  745. !   if (oset) oset->_sigset_data[0] = omask;
  746.     return rv;
  747.   }
  748.   
  749.   int
  750. ! sigsuspend(sigmask)
  751. !   const sigset_t *sigmask;
  752.   {
  753. !   Psigpause(sigmask->_sigset_data[0]);
  754.     errno = EINTR;
  755.     return -1;
  756.   }
  757. --- 208,235 ----
  758.     }
  759.     switch (how) {
  760.       case SIG_BLOCK:
  761. !       omask = Psigblock(set->__sigset_data[0]);
  762.         break;
  763.       case SIG_UNBLOCK:
  764.         omask = Psigblock(0L);
  765. !       (void) Psigsetmask(omask & ~(set->__sigset_data[0]));
  766.         break;
  767.       case SIG_SETMASK:
  768. !       omask = Psigsetmask(set->__sigset_data[0]);
  769.         break;
  770.       default:
  771.         errno = EINVAL;
  772.         rv = -1;
  773.     }
  774. !   if (oset) oset->__sigset_data[0] = omask;
  775.     return rv;
  776.   }
  777.   
  778.   int
  779. ! sigsuspend(signalmask)
  780. !   const sigset_t *signalmask;
  781.   {
  782. !   Psigpause(signalmask->__sigset_data[0]);
  783.     errno = EINTR;
  784.     return -1;
  785.   }
  786.