home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / lib / mlib33d.zoo / diffc < prev    next >
Encoding:
Text File  |  1993-07-06  |  46.3 KB  |  1,828 lines

  1. diff -cr ../mntlib32/Bugs ./Bugs
  2. *** ../mntlib32/Bugs    Tue Jun 15 11:32:26 1993
  3. --- ./Bugs    Sun Jun 20 09:02:40 1993
  4. ***************
  5. *** 111,116 ****
  6. --- 111,122 ----
  7.     descriptors are closed. I don't know what POSIX says, but System V
  8.     wants stdin, stdout and stderr to be closed too.
  9.   
  10. + mknod.c: ++entropy
  11. +   The current "emulation" of mknod() is really silly, it does nothing at
  12. +   all and indicates that an error occurred.  We could at least try to
  13. +   emulate properly for the kinds of files we know how to make (directories,
  14. +   regular files, etc).
  15.   mktemp.c: ++entropy
  16.     Produces different sorts of filenames than UNIX does.
  17.   
  18. diff -cr ../mntlib32/Changes ./Changes
  19. *** ../mntlib32/Changes    Thu Jun 17 07:32:16 1993
  20. --- ./Changes    Sun Jul  4 05:53:22 1993
  21. ***************
  22. *** 4,9 ****
  23. --- 4,119 ----
  24.   Changes are listed in *reverse* order, most recent changes being
  25.   first.
  26.   
  27. + PATCHLEVEL33::
  28. + getgroup.c: ++Ole_Arndt@f.maus.de, ++entropy
  29. +     Completely rewritten getgroups() function to replace the bogus one.
  30. + grp.c:
  31. +     Ignore spaces preceeding usernames in /etc/group.
  32. + main.c: ++Wolfgang
  33. +     Remove the non-macro versions of stdin, stdout, stderr.  It causes
  34. +     problems for some programs.  People doing debugging should know
  35. +     about _iob[] anyway.
  36. + setjmp.h: ++Wolfgang
  37. +     Fix some brain-damage in the BSD setjmp/longjmp from PL32.
  38. + types.h:
  39. +     Rearrange major() macro.
  40. + cuserid.c, stdio.h:
  41. +     NEW file, cuserid() function for SysV compatibility.
  42. +     Prototype and L_cuserid definition in stdio.h.
  43. + regexp.c: ++pvt1-117
  44. +     Don't nul-terminate inserted operand twice in reginsert().
  45. + regsup.c: ++pvt1-117
  46. +     Eliminate a useless increment.
  47. + falcon.h: ++Markus_Kilbinger@ac.maus.de, ++entropy
  48. +     Fix a typo in trap_14_wwwwww.  Add trap_14_wllll and trap_14_wlllll
  49. +     macros for DSP calls (UNTESTED).  Cast Dsp_Lock() to short instead
  50. +     of long.
  51. + chmod.c:
  52. +     For chown(), ignore EINVAL error so we don't get annoying errors
  53. +     on the TOS filesystem.
  54. + Makefile:
  55. +     Synch up with parts of jrb's TOS-library Makefile.
  56. + purec/install.bin: ++hohmuth
  57. +     Documentation update.
  58. + purec/makefile: ++hohmuth
  59. +     Fix a bug which could have caused problems in a binary distribution
  60. +     for Turbo C.
  61. + mincl:
  62. +     Don't compile libgcc2 with -mshort.
  63. + Copyright:
  64. +     Add copyright notice for libgcc2.c.
  65. + GNUGPL2:
  66. +     NEW file, GNU General Public License version 2.  Modules covered by
  67. +     this license are noted in the file Copyright.
  68. + isatty.c: ++nox
  69. +     Fix _isctty() for much better performance.
  70. + compiler.h: ++pvt1-117
  71. +     Add correct definition for __CDECL for Lattice C.
  72. + stat.h: ++nox@jelal.north.de
  73. +     Use mode_t instead of u_short for type of st_mode.
  74. + types.h: ++nox
  75. +     Do typedef time_t if _POSIX_SOURCE.  [I think my O'Reilly POSIX book
  76. +     mislead me on this one. -entropy]
  77. + sigactio.c:
  78. +     Give sigpending() a return value.  Oops.
  79. + ioctl.c:
  80. +     Include appropriate headers.
  81. + linea.c:
  82. +     Explicitly return the value for linea2() instead of magically
  83. +     using d0.
  84. + ffs.c, support.h:
  85. +     NEW file for BSD function ffs().  Proto in support.h.
  86. + sysvar.c: ++pvt1-117, ++entropy
  87. +     Add some typecasts to (hopefully) make Lattice C happy.
  88. +     [The patch I got did this differently, and in my opinion,
  89. +     in a more messy way.  Hopefully this is good enough -entropy]
  90. + lib.h: ++pvt1-117
  91. +     Remove findfile() proto, it is in support.h.
  92. + getrusag.c: ++pvt1-117, ++entropy
  93. +     Add a prototype _add_tval().
  94. + scandir.c: ++pvt1-117
  95. +     Bug fix:  don't use names[0] as argument to sizeof() before names
  96. +     is initialized.
  97. + chdir.c: ++pvt1-117
  98. +     Remove some dead code.
  99. + thread.c: ++pvt1-117
  100. +     Add proto for startup().
  101. + calloc.c, random.c, spawn.c, ttyname.c: ++pvt1-117
  102. +     Remove extern function declarations in favor of prototypes.
  103. + fopenp.c, textio.c, utmp.c, wtmp.c: ++pvt1-117
  104. +     Make parameters const where appropriate.
  105. + a64l.c, alarm.c, close.c, console.c, eprintf.c, fork.c, getbuf.c, getcwd.c,
  106. + getdtabl.c, initsig.c, mkdir.c, mknod.c, pipe.c, psignal.c, putenv.c,
  107. + raise.c, rmdir.c, strlwr.c, strrev.c, strupr.c, unx2dos.c: ++pvt1-117
  108. +     Include appropriate headers for protos.
  109. + dirent.c, sscanf.c, stat.c, timeoday.c: ++pvt1-117
  110. +     A few typecasts here and there to keep Lattice C happy.
  111. + stdio.h: ++pvt1-117, ++entropy
  112. +     Add prototypes for setlinebuf(), vscanf(), vfscanf().
  113. +     Cleaned up a bit for POSIX.
  114. + signal.h, unistd.h: ++pvt1-117, ++entropy
  115. +     Add prototypes for kill() and killpg() to signal.h.
  116. +     Remove kill() prototype from unistd.h.
  117. + getgroup.c, unistd.h: ++pvt1-117, ++entropy
  118. +     Use correct parameters for getgroups().
  119. +     Add prototype to unistd.h.
  120. + pause.c: ++pvt1-117, ++entropy
  121. +     Always return -1 with errno set to EINTR if MiNT's Pause() call
  122. +     returns without a longjmp() out of a signal handler.
  123. + support.h: ++pvt1-117, ++entropy
  124. +     Add protos for putenv(), _console_read_byte(),
  125. +     _console_write_byte(), _text_read(), _text_write(), getdtablesize(),
  126. +     write_utmp(), write_wtmp(), nice(), mknod(), fopenp().
  127. + mintbind.h: ++pvt1-117@nada.kth.se
  128. +     Fixes for Lattice C.
  129. + GMakefile.16, GMakefile.32:
  130. +     Renamed gmakefil.16 and gmakefil.32 to GMakefile.16 and GMakefile.32.
  131. + Copyright:
  132. +     Renamed copyrigh.t to Copyright.
  133. + Files:
  134. +     Renamed common to Files.
  135.   PATCHLEVEL32::
  136.   
  137.   sozobon/linea.s: ++dsb
  138. diff -cr ../mntlib32/Copyright ./Copyright
  139. *** ../mntlib32/Copyright    Sat Oct  3 20:48:56 1992
  140. --- ./Copyright    Wed Jun 23 05:40:06 1993
  141. ***************
  142. *** 62,65 ****
  143. --- 62,92 ----
  144.   You should have received a copy of the GNU General Public License
  145.   along with this program; if not, write to the Free Software
  146.   Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  147. + libgcc2 is:
  148. + /* Copyright (C) 1989, 1992 Free Software Foundation, Inc.
  149. + This file is part of GNU CC.
  150. + GNU CC is free software; you can redistribute it and/or modify
  151. + it under the terms of the GNU General Public License as published by
  152. + the Free Software Foundation; either version 2, or (at your option)
  153. + any later version.
  154. + GNU CC is distributed in the hope that it will be useful,
  155. + but WITHOUT ANY WARRANTY; without even the implied warranty of
  156. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  157. + GNU General Public License for more details.
  158. + You should have received a copy of the GNU General Public License
  159. + along with GNU CC; see the file COPYING.  If not, write to
  160. + the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  161. + /* As a special exception, if you link this library with files
  162. +    compiled with GCC to produce an executable, this does not cause
  163. +    the resulting executable to be covered by the GNU General Public License.
  164. +    This exception does not however invalidate any other reasons why
  165. +    the executable file might be covered by the GNU General Public License.  */
  166.   
  167. diff -cr ../mntlib32/Files ./Files
  168. *** ../mntlib32/Files    Fri Jun  4 02:13:32 1993
  169. --- ./Files    Tue Jul  6 05:34:54 1993
  170. ***************
  171. *** 1,12 ****
  172.   Common files:
  173.   
  174.           atof.c        fputs.c        lseek.c        strcoll.c
  175. !                 fread.c        ltoa.c        strcpy.c
  176.           atol.c        frexp.cpp    malloc.c    strcspn.c
  177.   _addsubd.cpp    bblink.c    frwbin.c    memccpy.c    strdup.c
  178.   _addsubs.cpp    bcmp.c        fseek.c        memchr.c    strerror.c
  179. ! _cmpdf2.s    bcopy.cpp    fsetpos.c    memcmp.c    strftime.c
  180. ! _cmpsf2.s    binmode.c    ftw.c        mktemp.c    stricmp.c
  181.   _divdf3.cpp    bsearch.c    fungetc.c    modf.cpp    strlen.c
  182.   _divmods.s    bzero.cpp    fwrite.c            strlwr.c
  183.                   gbl-ctors.h
  184. --- 1,12 ----
  185.   Common files:
  186.   
  187.           atof.c        fputs.c        lseek.c        strcoll.c
  188. ! Files                fread.c        ltoa.c        strcpy.c
  189.           atol.c        frexp.cpp    malloc.c    strcspn.c
  190.   _addsubd.cpp    bblink.c    frwbin.c    memccpy.c    strdup.c
  191.   _addsubs.cpp    bcmp.c        fseek.c        memchr.c    strerror.c
  192. ! _cmpdf2.cpp    bcopy.cpp    fsetpos.c    memcmp.c    strftime.c
  193. ! _cmpsf2.cpp    binmode.c    ftw.c        mktemp.c    stricmp.c
  194.   _divdf3.cpp    bsearch.c    fungetc.c    modf.cpp    strlen.c
  195.   _divmods.s    bzero.cpp    fwrite.c            strlwr.c
  196.                   gbl-ctors.h
  197. ***************
  198. *** 13,21 ****
  199.   _divsf3.cpp    calloc.c    getbuf.c            strncat.c
  200.   _extends.cpp    chdir.c        getenv.c    obstack.c    strncmp.c
  201.   _fixdfsi.cpp    chmod.c        getlogin.c    perror.c    strncpy.c
  202. !         common                pgrp.c
  203.   _fixsfsi.cpp    ctime.c        getopt.c    psignal.c    strnicmp.c
  204.   _fltsi.cpp    ctype.c        getpass.c    putenv.c    strpbrk.c
  205.   _fltsisf.cpp    defmode.c    getpid.c    qsort.c        strrchr.c
  206.   _fxunsd.cpp    difftime.c    getpw.c        raise.c        strrev.c
  207.   _isnan.s    div.c        gets.c        rand.c        strspn.c
  208. --- 13,22 ----
  209.   _divsf3.cpp    calloc.c    getbuf.c            strncat.c
  210.   _extends.cpp    chdir.c        getenv.c    obstack.c    strncmp.c
  211.   _fixdfsi.cpp    chmod.c        getlogin.c    perror.c    strncpy.c
  212. !         ctermid.c            pgrp.c
  213.   _fixsfsi.cpp    ctime.c        getopt.c    psignal.c    strnicmp.c
  214.   _fltsi.cpp    ctype.c        getpass.c    putenv.c    strpbrk.c
  215. +         cuserid.c
  216.   _fltsisf.cpp    defmode.c    getpid.c    qsort.c        strrchr.c
  217.   _fxunsd.cpp    difftime.c    getpw.c        raise.c        strrev.c
  218.   _isnan.s    div.c        gets.c        rand.c        strspn.c
  219. ***************
  220. *** 28,33 ****
  221. --- 29,35 ----
  222.   _normdf.cpp    fclose.c    ic.c        setbuf.c    sysvar.c
  223.   _normsf.cpp    fdopen.c            setjmp.cpp    textio.c
  224.   _truncdf.cpp    fflush.c    ig.c        setlocal.c    time.c
  225. +         ffs.c
  226.   _udivmod.s    fgetc.c        il.c        setvbuf.c    timeoday.c
  227.   _umulsi3.s    fgets.c        ip.c        sgtty.c        tmpfile.c
  228.   a64l.c
  229. ***************
  230. *** 40,52 ****
  231.   alphasor.c    fputc.c        localtim.c    strcmp.c
  232.                   longlong.h
  233.   
  234.   TOS library:
  235.   
  236.           clock.c        getcwd.c    null.c        spawnvp.c
  237.   Changelo    close.c        gmakefil.16    open.c        sscanf.c
  238.   DMakefile    console.c    gmakefil.32    osbind.c    stat.c
  239. ! GMakefile    crt0.c        gnulib2.c@    pipe.c        symdir.c
  240. !                 ident.c
  241.   Makefile            ioctl.c        popen.c        symdir.h
  242.   Makefile.hp    device.c    isatty.c    read.c        symlink.c
  243.   PatchLev.h    dirent.c    link.c        rename.c    tchars.c
  244. --- 42,79 ----
  245.   alphasor.c    fputc.c        localtim.c    strcmp.c
  246.                   longlong.h
  247.   
  248. + MiNT library:
  249. + Bugs
  250. + Changes        fscanf.c            popen.c        statfs.c
  251. + Copyright
  252. + GMakefile.16
  253. + GMakefile.32
  254. + Makefile    getcwd.c            read.c        symlink.c
  255. + PatchLev.h    getdtabl.c    link.c        readme        sysconf.c
  256. + alarm.c        getgroup.c    lockf.c        rename.c
  257. + atexit.c    gethostn.c    main.c        rmdir.c        thread.c
  258. +         getpages.c            scandir.c    times.c
  259. + clock.c        getrusag.c            scanf.c        ttyname.c
  260. + close.c                        select.c    uname.c
  261. + console.c            mincl        setrlimi.c    unlink.c
  262. +                         sigactio.c    unx2dos.c
  263. + crt0.cpp    heapbase.c    mkdir.c        sigblock.c    utmp.c
  264. + crtinit.c    ident.c        mknod.c        signal.c    vfork.cpp
  265. + dirent.c    inistack.c    nice.c        sleep.c        wait.c
  266. + dup.c        initsig.c    open.c        spawn.c        wait3.c
  267. + exec.c        ioctl.c        osbind.cpp    spawnve.c    waitpid.c
  268. + execp.c
  269. + fcntl.c        isatty.c            spawnvp.c    write.c
  270. + fopenp.c    kill.c        pause.c        sscanf.c    wtmp.c
  271. + fork.c        killpg.c    pipe.c        stat.c
  272.   TOS library:
  273.   
  274.           clock.c        getcwd.c    null.c        spawnvp.c
  275.   Changelo    close.c        gmakefil.16    open.c        sscanf.c
  276.   DMakefile    console.c    gmakefil.32    osbind.c    stat.c
  277. ! GMakefile    crt0.c        ident.c        pipe.c        symdir.c
  278.   Makefile            ioctl.c        popen.c        symdir.h
  279.   Makefile.hp    device.c    isatty.c    read.c        symlink.c
  280.   PatchLev.h    dirent.c    link.c        rename.c    tchars.c
  281. ***************
  282. *** 58,82 ****
  283.           fork.h        new_pipe.c    sleep.c
  284.   catch.c        fscanf.c            spawnve.c
  285.   
  286. ! MiNT lib:
  287. !         fscanf.c            popen.c        statfs.c
  288. ! Makefile    getcwd.c            read.c        symlink.c
  289. !         getdtabl.c    link.c        readme        sysconf.c
  290. ! alarm.c        getgroup.c    lockf.c        rename.c
  291. ! atexit.c    gethostn.c    main.c        rmdir.c        thread.c
  292. ! bugs
  293. ! changes        getpages.c    makefile.l16    scandir.c    times.c
  294. ! clock.c        getrusag.c    makefile.l32    scanf.c        ttyname.c
  295. ! close.c        gmakefil.16    makefile.lcc    select.c    uname.c
  296. ! console.c    gmakefil.32    mincl        setrlimi.c    unlink.c
  297. ! copyrigh.t    gnulib2.c@    mincl.lcc    sigactio.c    unx2dos.c
  298. ! crt0.cpp    heapbase.c    mkdir.c        sigblock.c    utmp.c
  299. ! crtinit.c    ident.c        mknod.c        signal.c    vfork.cpp
  300. ! dirent.c    inistack.c    nice.c        sleep.c        wait.c
  301. ! dup.c        initsig.c    open.c        spawn.c        wait3.c
  302. ! exec.c        ioctl.c        osbind.cpp    spawnve.c    waitpid.c
  303. ! fcntl.c        isatty.c    PatchLev.h    spawnvp.c    write.c
  304. ! fopenp.c    kill.c        pause.c        sscanf.c    wtmp.c
  305. ! fork.c        killpg.c    pipe.c        stat.c
  306.   
  307. --- 85,91 ----
  308.           fork.h        new_pipe.c    sleep.c
  309.   catch.c        fscanf.c            spawnve.c
  310.   
  311. ! To be deleted RSN:
  312.   
  313. + gnuaux.c
  314. + gnulib2.c
  315. Only in .: GNUGPL2
  316. diff -cr ../mntlib32/Makefile ./Makefile
  317. *** ../mntlib32/Makefile    Thu Jun 17 05:24:12 1993
  318. --- ./Makefile    Fri Jun 25 14:27:06 1993
  319. ***************
  320. *** 5,15 ****
  321.   # GCC configuration info...
  322.   
  323.   # Leave the next line undefined for native compilation setup.
  324. ! #CROSSDIR := /net/acae127/home/bammi/atari/cross-gcc
  325.   
  326.   # Define MINTFLAG if you want to use the "normal"
  327.   # gcc libraries, too
  328. ! #MINTFLAG := -mint
  329.   
  330.   ifdef MINTFLAG
  331.   MINTOPT := -mint
  332. --- 5,15 ----
  333.   # GCC configuration info...
  334.   
  335.   # Leave the next line undefined for native compilation setup.
  336. ! # CROSSDIR := /net/acae127/home/bammi/atari/cross-gcc
  337.   
  338.   # Define MINTFLAG if you want to use the "normal"
  339.   # gcc libraries, too
  340. ! # MINTFLAG := -mint
  341.   
  342.   ifdef MINTFLAG
  343.   MINTOPT := -mint
  344. ***************
  345. *** 27,33 ****
  346.   AR    := $(CROSSBIN)/car
  347.   AS     := cgcc $(MINTOPT)
  348.   CC    := cgcc $(MINTOPT)
  349. - C++    := cgcc $(MINTOPT)
  350.   LIB     := $(CROSSLIB)
  351.   VPATH   := ../co
  352.   CP    := cp
  353. --- 27,32 ----
  354. ***************
  355. *** 39,45 ****
  356.   AR    := gcc-ar
  357.   AS    := gcc $(MINTOPT)
  358.   CC    := gcc $(MINTOPT)
  359. - C++    := gcc $(MINTOPT)
  360.   LIB    := c:\gnu\lib
  361.   CP    := mv
  362.   
  363. --- 38,43 ----
  364. ***************
  365. *** 50,61 ****
  366.   ifndef CROSSDIR
  367.   AR    := ar
  368.   LIB    := /src/newlib
  369.   else
  370.   MINTFLAG := -mint
  371.   MINTOPT := $(MINTFLAG)
  372. ! XPFLAGS :=  -nostdinc -I../minclude
  373. ! XFLAGS := $(XPFLAGS)
  374.   endif
  375.   endif
  376.   
  377.   # Additional options for compiling C code
  378. --- 48,61 ----
  379.   ifndef CROSSDIR
  380.   AR    := ar
  381.   LIB    := /src/newlib
  382. + INCLUDE_DIR := /usr/include
  383.   else
  384.   MINTFLAG := -mint
  385.   MINTOPT := $(MINTFLAG)
  386. ! INCLUDE_DIR := ../minclude
  387.   endif
  388. + XPFLAGS :=  -nostdinc -I$(INCLUDE_DIR)
  389. + XFLAGS := $(XPFLAGS) -Wall
  390.   endif
  391.   
  392.   # Additional options for compiling C code
  393. ***************
  394. *** 87,93 ****
  395.   endif
  396.   
  397.   ifneq (,$(findstring 68020,$(TARGET)))
  398. ! CC := $(CC) -m68020
  399.   endif
  400.   
  401.   ifneq (,$(findstring baserel,$(TARGET)))
  402. --- 87,93 ----
  403.   endif
  404.   
  405.   ifneq (,$(findstring 68020,$(TARGET)))
  406. ! CC := $(CC) -m68020 -m68881
  407.   endif
  408.   
  409.   ifneq (,$(findstring baserel,$(TARGET)))
  410. ***************
  411. *** 140,147 ****
  412.   ALL= $(CLIB) $(IIOLIB) $(STARTO)
  413.   ALL020 = $(CLIB020) $(STARTO)
  414.   
  415.   top: lshort llong lbshort lblong
  416. ! #all: lshort llong lbshort lblong lgshort lglong
  417.   
  418.   lshort:
  419.       $(MAKE) clean
  420. --- 140,148 ----
  421.   ALL= $(CLIB) $(IIOLIB) $(STARTO)
  422.   ALL020 = $(CLIB020) $(STARTO)
  423.   
  424. + #all: lshort llong lgshort lglong
  425.   top: lshort llong lbshort lblong
  426. ! #top: l020short l020long l020bshort l020blong
  427.   
  428.   lshort:
  429.       $(MAKE) clean
  430. ***************
  431. *** 149,155 ****
  432.   
  433.   llong:
  434.       $(MAKE) clean
  435. !     $(MAKE) install TARGET=long-int
  436.   
  437.   lgshort:
  438.       $(MAKE) clean
  439. --- 150,156 ----
  440.   
  441.   llong:
  442.       $(MAKE) clean
  443. !     $(MAKE) install TARGET="long-int"
  444.   
  445.   lgshort:
  446.       $(MAKE) clean
  447. ***************
  448. *** 161,171 ****
  449.   
  450.   l020short:
  451.       $(MAKE) clean
  452. !     $(MAKE) install020 TARGET=68020
  453.   
  454.   l020long:
  455.       $(MAKE) clean
  456. !     $(MAKE) install020 TARGET="68020 long-int"
  457.   
  458.   lbshort:
  459.       $(MAKE) clean
  460. --- 162,174 ----
  461.   
  462.   l020short:
  463.       $(MAKE) clean
  464. !     $(MAKE) install TARGET=68020
  465. ! #    $(MAKE) install020 TARGET=68020
  466.   
  467.   l020long:
  468.       $(MAKE) clean
  469. !     $(MAKE) install TARGET="68020 long-int"
  470. ! #    $(MAKE) install020 TARGET="68020 long-int"
  471.   
  472.   lbshort:
  473.       $(MAKE) clean
  474. ***************
  475. *** 175,183 ****
  476.       $(MAKE) clean
  477.       $(MAKE) install TARGET="long-int baserel"
  478.   
  479. ! realclean:
  480. !     rm -f *.o *.olb *~ *#
  481.       rm -f core report nohup.out
  482.   
  483.   distclean: realclean
  484.   
  485. --- 178,205 ----
  486.       $(MAKE) clean
  487.       $(MAKE) install TARGET="long-int baserel"
  488.   
  489. ! l020bshort:
  490. !     $(MAKE) clean
  491. !     $(MAKE) install TARGET="68020 baserel"
  492. ! l020blong:
  493. !     $(MAKE) clean
  494. !     $(MAKE) install TARGET="68020 long-int baserel"
  495. ! bakclean:
  496. !     rm -f *~ *#
  497. !     rm -f */*~ */*#
  498. !     rm -f *.orig *.rej
  499. !     rm -f */*.orig */*.rej
  500. !     rm -f $(INCLUDE_DIR)/*~ $(INCLUDE_DIR)/*#
  501. !     rm -f $(INCLUDE_DIR)/*/*~ $(INCLUDE_DIR)/*/*#
  502. !     rm -f $(INCLUDE_DIR)/*.orig $(INCLUDE_DIR)/*.rej
  503. !     rm -f $(INCLUDE_DIR)/*/*.orig $(INCLUDE_DIR)/*/*.rej
  504. ! realclean: bakclean
  505. !     rm -f *.o *.olb *.tmp
  506.       rm -f core report nohup.out
  507. +     rm -f foo bar baz
  508.   
  509.   distclean: realclean
  510.   
  511. diff -cr ../mntlib32/PatchLev.h ./PatchLev.h
  512. *** ../mntlib32/PatchLev.h    Fri Jun  4 02:15:38 1993
  513. --- ./PatchLev.h    Thu Jun 17 09:25:02 1993
  514. ***************
  515. *** 3,6 ****
  516.    *    directory.
  517.    */
  518.   
  519. ! #define PatchLevel "32"
  520. --- 3,6 ----
  521.    *    directory.
  522.    */
  523.   
  524. ! #define PatchLevel "33"
  525. diff -cr ../mntlib32/README ./README
  526. *** ../mntlib32/README    Fri Jun  4 07:37:02 1993
  527. --- ./README    Wed Jun 23 05:53:30 1993
  528. ***************
  529. *** 13,20 ****
  530.   Pure C:  hohmuth@freia.inf.tu-dresden.de (Michael Hohmuth)
  531.   Lattice C:  ???
  532.   
  533. ! Be sure to read the "changes" file so that you know what's new in this
  534.   release of the library.
  535.   
  536.   My priorities for the library (in approximately this order) are:
  537.   
  538. --- 13,25 ----
  539.   Pure C:  hohmuth@freia.inf.tu-dresden.de (Michael Hohmuth)
  540.   Lattice C:  ???
  541.   
  542. ! Be sure to read the "Changes" file so that you know what's new in this
  543.   release of the library.
  544. + Also, please read the "Copyright" file for important copyright information
  545. + concerning some modules in this library.  Some modules, as noted in
  546. + "Copyright", are covered by the GNU General Public License, which you will
  547. + find in the file "GNUGPL2".
  548.   
  549.   My priorities for the library (in approximately this order) are:
  550.   
  551. Only in .: README.33d
  552. diff -cr ../mntlib32/a64l.c ./a64l.c
  553. *** ../mntlib32/a64l.c    Sat Feb 13 02:45:54 1993
  554. --- ./a64l.c    Sat Jun 19 12:46:40 1993
  555. ***************
  556. *** 56,61 ****
  557. --- 56,62 ----
  558.       Hildo Biersma, with the help of a UN*X System V man page.
  559.   */
  560.   
  561. + #include <support.h>
  562.   #include <errno.h>
  563.   extern int errno;
  564.   
  565. diff -cr ../mntlib32/alarm.c ./alarm.c
  566. *** ../mntlib32/alarm.c    Fri Feb 19 08:25:30 1993
  567. --- ./alarm.c    Sun Jun 20 08:56:46 1993
  568. ***************
  569. *** 5,10 ****
  570. --- 5,11 ----
  571.   #include <errno.h>
  572.   #include <mintbind.h>
  573.   #include <limits.h>
  574. + #include <unistd.h>
  575.   
  576.   extern int __mint;
  577.   
  578. diff -cr ../mntlib32/calloc.c ./calloc.c
  579. *** ../mntlib32/calloc.c    Sat Sep  5 23:04:04 1992
  580. --- ./calloc.c    Sat Jun 19 12:32:26 1993
  581. ***************
  582. *** 21,27 ****
  583.   {
  584.     void *r;
  585.     unsigned long total;
  586. -   extern void _bzero();
  587.   
  588.     total = n * sz;
  589.     if ((r = _malloc(total)) != NULL) {
  590. --- 21,26 ----
  591. diff -cr ../mntlib32/chdir.c ./chdir.c
  592. *** ../mntlib32/chdir.c    Sun Oct 20 02:13:06 1991
  593. --- ./chdir.c    Sat Jun 19 12:17:58 1993
  594. ***************
  595. *** 30,37 ****
  596.           d+=2;
  597.           (void)Dsetdrv(drv);
  598.       }
  599. -     else
  600. -         drv = old;
  601.   
  602.       if (!*d) {        /* empty path means root directory */
  603.           *d = '\\';
  604. --- 30,35 ----
  605. diff -cr ../mntlib32/chmod.c ./chmod.c
  606. *** ../mntlib32/chmod.c    Sat Sep  5 20:03:10 1992
  607. --- ./chmod.c    Sat Jun 26 07:05:06 1993
  608. ***************
  609. *** 70,76 ****
  610.       if (__mint >= 9) {
  611.           (void)_unx2dos(_name, name);
  612.           r = (int)Fchown(name, uid, gid);
  613. !         if (r) {
  614.               errno = -r;
  615.               return -1;
  616.           }
  617. --- 70,76 ----
  618.       if (__mint >= 9) {
  619.           (void)_unx2dos(_name, name);
  620.           r = (int)Fchown(name, uid, gid);
  621. !         if (r && (r != -EINVAL)) {
  622.               errno = -r;
  623.               return -1;
  624.           }
  625. diff -cr ../mntlib32/close.c ./close.c
  626. *** ../mntlib32/close.c    Sun Feb 28 13:07:22 1993
  627. --- ./close.c    Sun Jun 20 09:04:00 1993
  628. ***************
  629. *** 6,11 ****
  630. --- 6,12 ----
  631.   #include <osbind.h>
  632.   #include <fcntl.h>
  633.   #include <errno.h>
  634. + #include <unistd.h>
  635.   #include "lib.h"
  636.   
  637.   int
  638. diff -cr ../mntlib32/console.c ./console.c
  639. *** ../mntlib32/console.c    Sat Sep  5 20:04:08 1992
  640. --- ./console.c    Sun Jun 20 12:21:06 1993
  641. ***************
  642. *** 7,17 ****
  643.   
  644.   #include <osbind.h>
  645.   #include <mintbind.h>
  646.   #define CTRL(x) (x & 0x1f)
  647.   
  648.   extern int __mint;
  649. - #define CBUFSIZ 80
  650.   
  651.   int
  652.   _console_read_byte(fd)
  653. --- 7,18 ----
  654.   
  655.   #include <osbind.h>
  656.   #include <mintbind.h>
  657. + #include <support.h>
  658.   #define CTRL(x) (x & 0x1f)
  659. + #define CBUFSIZ 80
  660.   
  661.   extern int __mint;
  662.   
  663.   int
  664.   _console_read_byte(fd)
  665. Only in .: cuserid.c
  666. Only in .: diffc
  667. Only in .: diffh
  668. diff -cr ../mntlib32/dirent.c ./dirent.c
  669. *** ../mntlib32/dirent.c    Sat Jan 30 07:33:22 1993
  670. --- ./dirent.c    Sat Jun 19 12:30:22 1993
  671. ***************
  672. *** 119,125 ****
  673.           }
  674.           dd->d_ino = dbuf.ino;
  675.           dd->d_off++;
  676. !         dd->d_reclen = strlen(dbuf.name);
  677.           strcpy(dd->d_name, dbuf.name);
  678.           return dd;
  679.       }
  680. --- 119,125 ----
  681.           }
  682.           dd->d_ino = dbuf.ino;
  683.           dd->d_off++;
  684. !         dd->d_reclen = (short)strlen(dbuf.name);
  685.           strcpy(dd->d_name, dbuf.name);
  686.           return dd;
  687.       }
  688. ***************
  689. *** 147,153 ****
  690.       dd->d_ino = __inode++;
  691.       dd->d_off++;
  692.       _dos2unx(d->dta.dta_name, dd->d_name);
  693. !     dd->d_reclen = strlen(dd->d_name);
  694.       return dd;
  695.   }
  696.   
  697. --- 147,153 ----
  698.       dd->d_ino = __inode++;
  699.       dd->d_off++;
  700.       _dos2unx(d->dta.dta_name, dd->d_name);
  701. !     dd->d_reclen = (short)strlen(dd->d_name);
  702.       return dd;
  703.   }
  704.   
  705. diff -cr ../mntlib32/eprintf.c ./eprintf.c
  706. *** ../mntlib32/eprintf.c    Tue May 25 11:36:32 1993
  707. --- ./eprintf.c    Sat Jun 19 07:29:24 1993
  708. ***************
  709. *** 1,6 ****
  710. - #include <stdio.h>
  711.   #include <stdarg.h>
  712.   #include <string.h>
  713.   #include "lib.h"
  714.   
  715.   /* new file 4/15/92 sb
  716. --- 1,6 ----
  717.   #include <stdarg.h>
  718.   #include <string.h>
  719. + #include <assert.h>
  720.   #include "lib.h"
  721.   
  722.   /* new file 4/15/92 sb
  723. ***************
  724. *** 17,28 ****
  725.      Threw away a static buffer.
  726.   */
  727.     
  728. -   
  729. - #if 0
  730. -       /* why here? to waste space? */
  731. -   static char buf[20];  /* big enough for any value of a long */
  732. - #endif
  733.   static void _say __PROTO((const char *s));
  734.   
  735.   static void _say(s)
  736. --- 17,22 ----
  737. Only in .: ffs.c
  738. diff -cr ../mntlib32/fopenp.c ./fopenp.c
  739. *** ../mntlib32/fopenp.c    Tue May 25 11:40:00 1993
  740. --- ./fopenp.c    Sat Jun 19 07:36:36 1993
  741. ***************
  742. *** 10,20 ****
  743.   
  744.   FILE *
  745.   fopenp(name, mode)
  746. !     char *name, *mode;
  747.   {
  748.       char *fullname;
  749. !       char buffer[PATH_MAX];
  750. !       fullname = buffindfile(name, getenv("PATH"), (char **)0,buffer);
  751.       if (!fullname) {
  752.           errno = ENOENT;
  753.           return NULL;
  754. --- 10,21 ----
  755.   
  756.   FILE *
  757.   fopenp(name, mode)
  758. !     const char *name, *mode;
  759.   {
  760.       char *fullname;
  761. !     char buffer[PATH_MAX];
  762. !     fullname = buffindfile(name, getenv("PATH"), (char **)0, buffer);
  763.       if (!fullname) {
  764.           errno = ENOENT;
  765.           return NULL;
  766. diff -cr ../mntlib32/fork.c ./fork.c
  767. *** ../mntlib32/fork.c    Mon Feb 22 09:54:02 1993
  768. --- ./fork.c    Sat Jun 19 12:06:24 1993
  769. ***************
  770. *** 1,5 ****
  771. --- 1,6 ----
  772.   /* public domain fork() for MiNT */
  773.   
  774. + #include <unistd.h>
  775.   #include <errno.h>
  776.   #include <mintbind.h>
  777.   
  778. diff -cr ../mntlib32/getbuf.c ./getbuf.c
  779. *** ../mntlib32/getbuf.c    Sat Sep  5 20:55:22 1992
  780. --- ./getbuf.c    Sun Jun 20 08:22:04 1993
  781. ***************
  782. *** 3,8 ****
  783. --- 3,9 ----
  784.   #include <stdio.h>
  785.   #include <stdlib.h>
  786.   #include <unistd.h>
  787. + #include "lib.h"
  788.   
  789.   extern size_t __DEFAULT_BUFSIZ__;
  790.   
  791. diff -cr ../mntlib32/getcwd.c ./getcwd.c
  792. *** ../mntlib32/getcwd.c    Tue May 25 08:33:02 1993
  793. --- ./getcwd.c    Sun Jun 20 08:24:30 1993
  794. ***************
  795. *** 5,10 ****
  796. --- 5,11 ----
  797.   #include <errno.h>
  798.   #include <osbind.h>
  799.   #include <mintbind.h>
  800. + #include <unistd.h>
  801.   #include "lib.h"
  802.   
  803.   /*******************************************************************
  804. ***************
  805. *** 14,21 ****
  806.   
  807.   extern int __mint;
  808.   extern char _rootdir;    /* in main.c: user's preferred root directory */
  809. - char *getcwd __PROTO((char *, int));
  810.   
  811.   char *getcwd(buf, size)
  812.   char *buf; int size;
  813. --- 15,20 ----
  814. diff -cr ../mntlib32/getdtabl.c ./getdtabl.c
  815. *** ../mntlib32/getdtabl.c    Sat Sep  5 20:58:18 1992
  816. --- ./getdtabl.c    Sun Jun 20 09:09:16 1993
  817. ***************
  818. *** 1,5 ****
  819. --- 1,6 ----
  820.   #include <stdio.h>
  821.   #include <mintbind.h>
  822. + #include <unistd.h>
  823.   
  824.   extern int __mint;
  825.   
  826. diff -cr ../mntlib32/getgroup.c ./getgroup.c
  827. *** ../mntlib32/getgroup.c    Wed Nov  7 02:01:34 1990
  828. --- ./getgroup.c    Fri Jul  2 11:13:46 1993
  829. ***************
  830. *** 1,7 ****
  831. ! /* getgroups: this is entirely bogus */
  832.   
  833.   int
  834. ! getgroups()
  835.   {
  836. !     return 0;
  837.   }
  838. --- 1,140 ----
  839. ! /*
  840. !  * FILE
  841. !  *    getgroup.c
  842. !  *
  843. !  * PURPOSE
  844. !  *    get the groups the current user is in
  845. !  *
  846. !  * AUTHORS
  847. !  *    written by Ole Arndt and placed in the public domain :-)
  848. !  *
  849. !  * BUGS
  850. !  *    under BSD user has access to all groups he is in at the same time
  851. !  *    under MiNT there is only one valid group at a time.
  852. !  *  so for suid programs this function gives you the groups you can
  853. !  *    switch to for your real user.
  854. !  *
  855. !  * $Revision$   $Date$    $Author$
  856. !  * 1        01JUL1993 entropy@terminator.rs.itd.umich.edu
  857. !  *
  858. !  * $Log$
  859. !  *    Rev. 1: Allow for querying number of groups with
  860. !  *         getgroups(0, (gid_t *) NULL) for POSIX compilance.
  861. !  *        Only return alternate groups if the user could really
  862. !  *        change groups (user has effective uid or gid of 0).
  863. !  *        Use getpwuid(getuid()) instead of getlogin().
  864. !  *        Act reasonably for TOS.
  865. !  */
  866.   
  867. + #include <stdio.h>
  868. + #include <string.h>
  869. + #include <types.h>
  870. + #include <errno.h>
  871. + #include <unistd.h>
  872. + #include <grp.h>
  873. + #include <pwd.h>
  874. + #ifdef TEST
  875. + #include <stdlib.h> /* for calloc() */
  876. + #endif
  877. + extern int __mint;
  878. + int
  879. + getgroups(gsetlen, grpset)
  880. +   int     gsetlen;
  881. +   gid_t   *grpset;
  882. + {
  883. +   struct group    *gentry;
  884. +   int             numgroups;
  885. +   struct passwd   *userpw;
  886. +   int             i;
  887. +   gid_t           currgid;
  888. +   if (!__mint)
  889. +     return 0;
  890. +   currgid = getgid();
  891. +   if (gsetlen) {
  892. +     if (gsetlen < 0 || !grpset) {
  893. +       errno = EINVAL;
  894. +       return -1;
  895. +     }
  896. +     *grpset++ = currgid;
  897. +   }
  898. +   if (geteuid() && getegid())
  899. +     return 1;
  900. +   userpw = getpwuid(getuid());
  901. +   if (!userpw) {
  902. +     return -1;
  903. +   }
  904. +   numgroups = 1;
  905. +   setgrent();
  906. +   while ((gentry = getgrent()) != NULL) {
  907. +     for (i = 0; gentry->gr_mem[i]; i++) {
  908. +       if (!strcmp(userpw->pw_name, gentry->gr_mem[i])
  909. +           && (gentry->gr_gid != currgid)) {
  910. +         ++numgroups;
  911. +         if (gsetlen) {
  912. +           if (numgroups > gsetlen) {
  913. +             errno = EINVAL;
  914. +             return -1;
  915. +       }
  916. +           *grpset++ = gentry->gr_gid;
  917. +           break;
  918. +         }
  919. +       }
  920. +     }
  921. +   }
  922. +   endgrent();
  923. +   return numgroups;
  924. + }
  925. + #ifdef TEST
  926.   int
  927. ! main(void)
  928.   {
  929. !   int ngroups;
  930. !   int num, i;
  931. !   gid_t *grps;
  932. !   struct passwd *userpw;
  933. !   ngroups = getgroups(0, (gid_t *) NULL);
  934. !   if (ngroups < 0) {
  935. !     perror("getgroups() first call failed");
  936. !     exit(2);
  937. !   }
  938. !   printf("first call to getgroups(): %d\n", ngroups);
  939. !   grps = (gid_t *) calloc(ngroups, sizeof(gid_t));
  940. !   if (!grps) {
  941. !     perror("calloc() failed");
  942. !     exit(2);
  943. !   }
  944. !   num = getgroups(ngroups, grps);
  945. !   if (num < 0) {
  946. !     perror("getgroups() second call failed");
  947. !     exit(2);
  948. !   }
  949. !   printf("second call to getgroups(): %d\n", num);
  950. !   if (ngroups != num) {
  951. !     printf("getgroups() results do not match\n");
  952. !     exit(2);
  953. !   }
  954. !   userpw = getpwuid(getuid());
  955. !   printf("User %s is in the following groups: ", userpw->pw_name);
  956. !   if (num == 0)
  957. !     printf("none");
  958. !   else
  959. !     for( i = 0; i < num; i++)
  960. !       printf("%d ", grps[i]);
  961. !   printf(".\n");
  962. !   return 0;
  963.   }
  964. + #endif
  965. diff -cr ../mntlib32/getrusag.c ./getrusag.c
  966. *** ../mntlib32/getrusag.c    Wed Feb 17 13:09:36 1993
  967. --- ./getrusag.c    Mon Jun 21 13:43:04 1993
  968. ***************
  969. *** 11,16 ****
  970. --- 11,17 ----
  971.   extern long _childtime;
  972.   
  973.   void _ms2tval __PROTO((unsigned long, struct timeval *));
  974. + void _add_tval __PROTO((struct timeval *, struct timeval *));
  975.   
  976.   void
  977.   _ms2tval(milliseconds, tval)
  978. diff -cr ../mntlib32/grp.c ./grp.c
  979. *** ../mntlib32/grp.c    Mon May 17 05:55:34 1993
  980. --- ./grp.c    Fri Jul  2 11:10:10 1993
  981. ***************
  982. *** 136,141 ****
  983. --- 136,143 ----
  984.       {
  985.         if (i >= MAX_MEMBERS-1)
  986.           break;
  987. +       for (; *cp == ' '; cp++)
  988. +         ;
  989.         memb[i++] = cp;
  990.         for(; *cp && *cp != ',' && *cp != '\n'; cp++)
  991.           ;
  992. diff -cr ../mntlib32/initsig.c ./initsig.c
  993. *** ../mntlib32/initsig.c    Fri May 15 21:42:14 1992
  994. --- ./initsig.c    Sun Jun 20 08:32:22 1993
  995. ***************
  996. *** 2,7 ****
  997. --- 2,8 ----
  998.   
  999.   #include <errno.h>
  1000.   #include <signal.h>
  1001. + #include "lib.h"
  1002.   
  1003.   /* vector of signal handlers (for TOS, or for MiNT with -mshort) */
  1004.   __Sigfunc _sig_handler[NSIG];
  1005. diff -cr ../mntlib32/ioctl.c ./ioctl.c
  1006. *** ../mntlib32/ioctl.c    Mon Jun  7 11:58:38 1993
  1007. --- ./ioctl.c    Sun Jun 20 14:11:32 1993
  1008. ***************
  1009. *** 9,14 ****
  1010. --- 9,15 ----
  1011.   #include <fcntl.h>
  1012.   #include <unistd.h>
  1013.   #include <linea.h>    /* for TIOCGWINSZ under TOS */
  1014. + #include <support.h>
  1015.   #include "lib.h"    /* for __open_stat */
  1016.   
  1017.   extern int __mint;    /* MiNT version */
  1018. diff -cr ../mntlib32/isatty.c ./isatty.c
  1019. *** ../mntlib32/isatty.c    Sun Jun  6 08:53:16 1993
  1020. --- ./isatty.c    Tue Jun 22 03:21:26 1993
  1021. ***************
  1022. *** 9,14 ****
  1023. --- 9,16 ----
  1024.   #include <unistd.h>
  1025.   #include <string.h>
  1026.   #include <support.h>
  1027. + #include <stat.h>
  1028. + #include <mintbind.h>
  1029.   #include "lib.h"
  1030.   
  1031.   struct __open_file __open_stat[__NHANDLES];
  1032. ***************
  1033. *** 51,61 ****
  1034. --- 53,73 ----
  1035.   {
  1036.     char ctty_name[L_ctermid];
  1037.     char ftty_name[L_ctermid];
  1038. +   struct stat st, tt;
  1039. +   extern int __mint;
  1040.   
  1041.     if (!(isatty(fd)) || !(isatty(-1)))
  1042.       return 0;
  1043.     if (fd == -1)
  1044.       return 1;
  1045. + #if 1
  1046. +   if (__mint >= 9 && !Fcntl (fd, &st, FSTAT) && !Fcntl (-1, &tt, FSTAT)) {
  1047. +     /* shouldn't this be as good?  the stuff below takes ages...
  1048. +        (still loses on /dev/aux etc but ttyname can't be much better)
  1049. +     */
  1050. +     return (st.st_dev == tt.st_dev && st.st_ino == tt.st_ino);
  1051. +   }
  1052. + #endif
  1053.     (void) ctermid(ctty_name);
  1054.     (void) strncpy(ftty_name, ttyname(fd), L_ctermid);
  1055.     return !(strncmp(ctty_name, ftty_name, L_ctermid));
  1056. diff -cr ../mntlib32/lib.h ./lib.h
  1057. *** ../mntlib32/lib.h    Sun May 23 08:47:24 1993
  1058. --- ./lib.h    Sun Jun 20 09:23:26 1993
  1059. ***************
  1060. *** 41,48 ****
  1061.   __EXTERN time_t        _dostime __PROTO((time_t));
  1062.   __EXTERN time_t        _unixtime __PROTO((unsigned int, unsigned int));
  1063.   
  1064. - __EXTERN char *        findfile __PROTO((char *, char *, char **));
  1065.   __EXTERN char *        _itoa __PROTO((int, char *, int));
  1066.   __EXTERN char *        _ltoa __PROTO((long, char *, int));
  1067.   __EXTERN char *        _ultoa __PROTO((unsigned long, char *, int));
  1068. --- 41,46 ----
  1069. diff -cr ../mntlib32/linea.c ./linea.c
  1070. *** ../mntlib32/linea.c    Sat Feb 13 06:23:50 1993
  1071. --- ./linea.c    Sun Jun 20 11:38:10 1993
  1072. ***************
  1073. *** 35,47 ****
  1074.   
  1075.   int linea2()                             
  1076.   {                                    
  1077.       __asm__ volatile                        
  1078.       ("
  1079.           .word   0xA002"
  1080. !     :                           /* outputs */    
  1081.       :                           /* inputs  */    
  1082.       : "d0", "d1", "d2", "a0", "a1", "a2"       /* clobbered regs */    
  1083.       );                                
  1084.   }
  1085.   
  1086.   void linea3()                             
  1087. --- 35,50 ----
  1088.   
  1089.   int linea2()                             
  1090.   {                                    
  1091. +     register long retvalue __asm__("d0");
  1092.       __asm__ volatile                        
  1093.       ("
  1094.           .word   0xA002"
  1095. !     : "=r"(retvalue)                  /* outputs */    
  1096.       :                           /* inputs  */    
  1097.       : "d0", "d1", "d2", "a0", "a1", "a2"       /* clobbered regs */    
  1098.       );                                
  1099. +     return (int) retvalue;
  1100.   }
  1101.   
  1102.   void linea3()                             
  1103. diff -cr ../mntlib32/main.c ./main.c
  1104. *** ../mntlib32/main.c    Thu Jun 10 03:23:34 1993
  1105. --- ./main.c    Thu Jul  1 06:36:40 1993
  1106. ***************
  1107. *** 246,259 ****
  1108.       exit(main((int) _argc, _argv, _envp));
  1109.   }
  1110.   
  1111. - /* For debuggers: non-macro versions of std{in,out,err}. */
  1112. - #undef stdin
  1113. - #undef stdout
  1114. - #undef stderr
  1115. - FILE *stdin = &_iob[0];
  1116. - FILE *stdout = &_iob[1];
  1117. - FILE *stderr = &_iob[2];
  1118.   __EXITING exit(status)
  1119.       int status;
  1120.   {
  1121. --- 246,251 ----
  1122. diff -cr ../mntlib32/mincl ./mincl
  1123. *** ../mntlib32/mincl    Sun Jun  6 15:20:50 1993
  1124. --- ./mincl    Sun Jun 27 06:11:22 1993
  1125. ***************
  1126. *** 39,49 ****
  1127.   
  1128.   #
  1129.   # other miscellaneous stuff
  1130. ! PORT =  alphasor.o abs.o findfile.o fopenp.o frwbin.o ftw.o getpw.o gethostn.o \
  1131.       getlogin.o getopt.o getpages.o getpass.o grp.o ident.o mktemp.o \
  1132. !     regexp.o regsup.o scandir.o strlwr.o strupr.o strrev.o textio.o random.o \
  1133.       obstack.o utmp.o wtmp.o \
  1134. !     il.o ic.o iw.o ig.o ip.o a64l.o ctermid.o
  1135.   
  1136.   #
  1137.   # the string library
  1138. --- 39,52 ----
  1139.   
  1140.   #
  1141.   # other miscellaneous stuff
  1142. ! PORT =  a64l.o alphasor.o abs.o ctermid.o cuserid.o \
  1143. !     ffs.o findfile.o fopenp.o frwbin.o \
  1144. !     ftw.o getpw.o gethostn.o \
  1145.       getlogin.o getopt.o getpages.o getpass.o grp.o ident.o mktemp.o \
  1146. !     regexp.o regsup.o scandir.o strlwr.o strupr.o strrev.o \
  1147. !     textio.o random.o \
  1148.       obstack.o utmp.o wtmp.o \
  1149. !     il.o ic.o iw.o ig.o ip.o
  1150.   
  1151.   #
  1152.   # the string library
  1153. ***************
  1154. *** 157,163 ****
  1155.   # libgcc2 stuff (works for both -mshort and -mnoshort)
  1156.   
  1157.   $(GLIB2): %.o: libgcc2.c longlong.h
  1158. !     $(CC) $(CFLAGS) -DL$* -c $< -o $@
  1159.   
  1160.   .PHONY:    install install020 clean realclean all all020 top
  1161.   
  1162. --- 160,166 ----
  1163.   # libgcc2 stuff (works for both -mshort and -mnoshort)
  1164.   
  1165.   $(GLIB2): %.o: libgcc2.c longlong.h
  1166. !     $(CC) $(CLFLAGS) -DL$* -c $< -o $@
  1167.   
  1168.   .PHONY:    install install020 clean realclean all all020 top
  1169.   
  1170. diff -cr ../mntlib32/mkdir.c ./mkdir.c
  1171. *** ../mntlib32/mkdir.c    Wed Feb 12 02:42:22 1992
  1172. --- ./mkdir.c    Sat Jun 19 12:15:30 1993
  1173. ***************
  1174. *** 8,13 ****
  1175. --- 8,14 ----
  1176.   #include <osbind.h>
  1177.   #include <mintbind.h>
  1178.   #include <stat.h>
  1179. + #include <unistd.h>
  1180.   #include "lib.h"
  1181.   
  1182.   extern int errno;
  1183. diff -cr ../mntlib32/mknod.c ./mknod.c
  1184. *** ../mntlib32/mknod.c    Mon Oct 21 20:09:14 1991
  1185. --- ./mknod.c    Sun Jun 20 08:59:54 1993
  1186. ***************
  1187. *** 1,6 ****
  1188. --- 1,7 ----
  1189.   /* fake mknod -- this always fails */
  1190.   
  1191.   #include <errno.h>
  1192. + #include <unistd.h>
  1193.   
  1194.   int
  1195.   mknod(path, mode, dev)
  1196. diff -cr ../mntlib32/pause.c ./pause.c
  1197. *** ../mntlib32/pause.c    Sat May  2 06:25:28 1992
  1198. --- ./pause.c    Sun Jun 20 09:05:48 1993
  1199. ***************
  1200. *** 3,17 ****
  1201.   #include <mintbind.h>
  1202.   #include <signal.h>
  1203.   #include <errno.h>
  1204.   
  1205.   extern int __mint;
  1206.   
  1207. ! void
  1208.   pause()
  1209.   {
  1210.       if (__mint)
  1211.           (void)Pause();
  1212.       /* do nothing for TOS */
  1213.   }
  1214.   
  1215.   /* Public domain sigpause() - AGK */
  1216. --- 3,20 ----
  1217.   #include <mintbind.h>
  1218.   #include <signal.h>
  1219.   #include <errno.h>
  1220. + #include <unistd.h>
  1221.   
  1222.   extern int __mint;
  1223.   
  1224. ! int
  1225.   pause()
  1226.   {
  1227.       if (__mint)
  1228.           (void)Pause();
  1229.       /* do nothing for TOS */
  1230. +     errno = EINTR;
  1231. +     return -1;
  1232.   }
  1233.   
  1234.   /* Public domain sigpause() - AGK */
  1235. diff -cr ../mntlib32/pipe.c ./pipe.c
  1236. *** ../mntlib32/pipe.c    Mon Feb 22 09:56:56 1993
  1237. --- ./pipe.c    Sat Jun 19 12:40:50 1993
  1238. ***************
  1239. *** 6,11 ****
  1240. --- 6,12 ----
  1241.   #include <osbind.h>
  1242.   #include <errno.h>
  1243.   #include <mintbind.h>
  1244. + #include <unistd.h>
  1245.   
  1246.   int
  1247.   pipe(fd)
  1248. diff -cr ../mntlib32/psignal.c ./psignal.c
  1249. *** ../mntlib32/psignal.c    Thu Sep 17 20:02:46 1992
  1250. --- ./psignal.c    Sun Jun 20 08:30:38 1993
  1251. ***************
  1252. *** 6,11 ****
  1253. --- 6,12 ----
  1254.   #include <signal.h>
  1255.   #include <siglist.h>
  1256.   #include <string.h>
  1257. + #include <unistd.h>
  1258.   #include "lib.h"
  1259.     
  1260.   void
  1261. diff -cr ../mntlib32/purec/install.bin ./purec/install.bin
  1262. *** ../mntlib32/purec/install.bin    Sun May 23 11:59:00 1993
  1263. --- ./purec/install.bin    Fri Jun 25 03:29:58 1993
  1264. ***************
  1265. *** 9,15 ****
  1266.   
  1267.   This file is shipped with both the Pure C and the Turbo C binary 
  1268.   distributions.  If you have the distribution for Pure C, ignore 
  1269. ! everything which refers to Turbo C, and vice versa.)
  1270.   
  1271.   --------------------------------------------------------------------------
  1272.   
  1273. --- 9,15 ----
  1274.   
  1275.   This file is shipped with both the Pure C and the Turbo C binary 
  1276.   distributions.  If you have the distribution for Pure C, ignore 
  1277. ! everything which refers to Turbo C, and vice versa.
  1278.   
  1279.   --------------------------------------------------------------------------
  1280.   
  1281. ***************
  1282. *** 20,25 ****
  1283. --- 20,43 ----
  1284.   The binary distribution consists of at least the following files:  
  1285.   makefile, tosify.mak, mintlib.lib, d_flt.lib, crt0.o and alloca.o.  The 
  1286.   Pure C distribution additionally contains d_881.lib and falloca.o.
  1287. + There are several ways to build the math libraries:
  1288. + (a) You could do it using Make and the supplied makefile, as described 
  1289. +     below.
  1290. + (b) You could also issue the one or two nessecary commands by hand using 
  1291. +     your favourite shell; this is probably the easiest way:
  1292. +     Pure C:     plink.ttp -J -G -O=mintflt.lib d_flt.lib pcfltlib.lib
  1293. +                 plink.ttp -J -G -O=mint881.lib d_881.lib pc881lib.lib
  1294. +     Turbo C:    tlink.ttp -J -G -O=mintflt.lib d_flt.lib tcfltlib.lib
  1295. + (c) You could write yourself a Pure/Turbo C Project file that links the 
  1296. +     parts together.
  1297. + The rest of this file describes option (a) in more detail:
  1298.   
  1299.   You need the following tools to build the library:
  1300.   
  1301. diff -cr ../mntlib32/purec/makefile ./purec/makefile
  1302. *** ../mntlib32/purec/makefile    Fri Jun 11 05:08:14 1993
  1303. --- ./purec/makefile    Fri Jun 25 03:30:04 1993
  1304. ***************
  1305. *** 271,276 ****
  1306. --- 271,278 ----
  1307.   
  1308.   ### which OS bindings library to link
  1309.   
  1310. + BUILD_MYTOSLIB_DEP :=
  1311.   # the osbind library replaces our tos library.
  1312.   ifdef OSBINDLIB
  1313.     TOSLIB :=    $(OSBINDLIB)
  1314. ***************
  1315. *** 278,285 ****
  1316.     ifdef TURBOC
  1317.       TOSLIB :=    $(MYTOSLIB)
  1318.   
  1319. !     # file dependency
  1320. !     $(MINTLIB):    $(MYTOSLIB)
  1321.     else
  1322.       TOSLIB :=
  1323.     endif
  1324. --- 280,287 ----
  1325.     ifdef TURBOC
  1326.       TOSLIB :=    $(MYTOSLIB)
  1327.   
  1328. !     # used as a file dependency for $(MINTLIB)
  1329. !     BUILD_MYTOSLIB_DEP :=    $(MYTOSLIB)
  1330.     else
  1331.       TOSLIB :=
  1332.     endif
  1333. ***************
  1334. *** 357,363 ****
  1335.   endif
  1336.   
  1337.   ifneq (,$(wildcard $(firstword $(MINTSRC))))
  1338. !   $(MINTLIB):    $(MINTLIB_DEP)
  1339.       $(LD) $(MAKEOBJ) $(LDFLAGS) -O=$@ $(MINTLIB_PARAM) $(TOSLIBSPEC)
  1340.   else
  1341.   # if the source is not present (binary distribution), we just check for
  1342. --- 359,365 ----
  1343.   endif
  1344.   
  1345.   ifneq (,$(wildcard $(firstword $(MINTSRC))))
  1346. !   $(MINTLIB):    $(MINTLIB_DEP) $(BUILD_MYTOSLIB_DEP)
  1347.       $(LD) $(MAKEOBJ) $(LDFLAGS) -O=$@ $(MINTLIB_PARAM) $(TOSLIBSPEC)
  1348.   else
  1349.   # if the source is not present (binary distribution), we just check for
  1350. diff -cr ../mntlib32/putenv.c ./putenv.c
  1351. *** ../mntlib32/putenv.c    Sat Sep  5 22:26:26 1992
  1352. --- ./putenv.c    Sat Jun 19 12:37:58 1993
  1353. ***************
  1354. *** 45,51 ****
  1355.   
  1356.   int
  1357.   putenv(strng)
  1358. !     char *strng;
  1359.   {
  1360.       int i = 0;
  1361.       char **e;
  1362. --- 45,51 ----
  1363.   
  1364.   int
  1365.   putenv(strng)
  1366. !     const char *strng;
  1367.   {
  1368.       int i = 0;
  1369.       char **e;
  1370. ***************
  1371. *** 68,74 ****
  1372.           return -1;
  1373.   
  1374.       environ = e;
  1375. !     environ[i] = strng;
  1376.       environ[i+1] = 0;
  1377.       return 0;
  1378.   }
  1379. --- 68,74 ----
  1380.           return -1;
  1381.   
  1382.       environ = e;
  1383. !     environ[i] = (char *)strng;
  1384.       environ[i+1] = 0;
  1385.       return 0;
  1386.   }
  1387. diff -cr ../mntlib32/raise.c ./raise.c
  1388. *** ../mntlib32/raise.c    Thu Sep 17 04:10:14 1992
  1389. --- ./raise.c    Sat Jun 19 12:04:22 1993
  1390. ***************
  1391. *** 3,8 ****
  1392. --- 3,9 ----
  1393.   */
  1394.   
  1395.   #include <unistd.h>
  1396. + #include <signal.h>
  1397.   
  1398.   int
  1399.   raise(sig)
  1400. diff -cr ../mntlib32/random.c ./random.c
  1401. *** ../mntlib32/random.c    Sat Sep  5 22:00:00 1992
  1402. --- ./random.c    Sat Jun 19 12:34:38 1993
  1403. ***************
  1404. *** 189,195 ****
  1405.       unsigned        x;
  1406.   {
  1407.           register  int        i /* , j */ ;
  1408. -     long random();
  1409.   
  1410.       if(  rand_type  ==  TYPE_0  )  {
  1411.           state[ 0 ] = x;
  1412. --- 189,194 ----
  1413. diff -cr ../mntlib32/regexp.c ./regexp.c
  1414. *** ../mntlib32/regexp.c    Sat Jan 30 07:40:36 1993
  1415. --- ./regexp.c    Sat Jun 26 21:32:38 1993
  1416. ***************
  1417. *** 591,598 ****
  1418.   
  1419.     place = opnd;            /* Op node, where operand used to be. */
  1420.     *place++ = op;
  1421. !   *place++ = '\0';
  1422. !   *place++ = '\0';
  1423.   }
  1424.   
  1425.   /*
  1426. --- 591,597 ----
  1427.   
  1428.     place = opnd;            /* Op node, where operand used to be. */
  1429.     *place++ = op;
  1430. !   *place = '\0';
  1431.   }
  1432.   
  1433.   /*
  1434. diff -cr ../mntlib32/regsup.c ./regsup.c
  1435. *** ../mntlib32/regsup.c    Thu Sep 17 04:10:58 1992
  1436. --- ./regsup.c    Sat Jun 26 21:32:20 1993
  1437. ***************
  1438. *** 86,90 ****
  1439.           }
  1440.       }
  1441.     }
  1442. !   *dst++ = '\0';
  1443.   }
  1444. --- 86,90 ----
  1445.           }
  1446.       }
  1447.     }
  1448. !   *dst = '\0';
  1449.   }
  1450. diff -cr ../mntlib32/rmdir.c ./rmdir.c
  1451. *** ../mntlib32/rmdir.c    Sun Oct 20 02:16:20 1991
  1452. --- ./rmdir.c    Sat Jun 19 12:01:16 1993
  1453. ***************
  1454. *** 4,9 ****
  1455. --- 4,10 ----
  1456.   #include <limits.h>
  1457.   #include <osbind.h>
  1458.   #include <errno.h>
  1459. + #include <unistd.h>
  1460.   #include "lib.h"
  1461.   
  1462.   int rmdir(_path)
  1463. diff -cr ../mntlib32/scandir.c ./scandir.c
  1464. *** ../mntlib32/scandir.c    Sat Sep  5 22:00:20 1992
  1465. --- ./scandir.c    Sun Jun 20 08:27:46 1993
  1466. ***************
  1467. *** 40,46 ****
  1468.   
  1469.       /* Get initial list space and open directory. */
  1470.       size = INITIAL_SIZE;
  1471. !     names = (struct direct **)malloc(size * sizeof names[0]);
  1472.       if (names == NULL)
  1473.       return -1;
  1474.       dirp = opendir(name);
  1475. --- 40,46 ----
  1476.   
  1477.       /* Get initial list space and open directory. */
  1478.       size = INITIAL_SIZE;
  1479. !     names = (struct direct **)malloc(size * sizeof(struct direct *));
  1480.       if (names == NULL)
  1481.       return -1;
  1482.       dirp = opendir(name);
  1483. diff -cr ../mntlib32/sigactio.c ./sigactio.c
  1484. *** ../mntlib32/sigactio.c    Wed Jun  9 06:09:30 1993
  1485. --- ./sigactio.c    Sun Jun 20 14:26:08 1993
  1486. ***************
  1487. *** 189,195 ****
  1488.       return -1;
  1489.     }
  1490.     (void) sigemptyset(set);
  1491. !   set->_sigset_data[0] = Psigpending();  
  1492.   }
  1493.   
  1494.   int
  1495. --- 189,196 ----
  1496.       return -1;
  1497.     }
  1498.     (void) sigemptyset(set);
  1499. !   set->_sigset_data[0] = Psigpending();
  1500. !   return 0;
  1501.   }
  1502.   
  1503.   int
  1504. diff -cr ../mntlib32/spawn.c ./spawn.c
  1505. *** ../mntlib32/spawn.c    Tue May 25 11:59:50 1993
  1506. --- ./spawn.c    Sat Jun 19 12:20:58 1993
  1507. ***************
  1508. *** 47,53 ****
  1509.       char    **argv;
  1510.       char    **envp;
  1511.   {
  1512. -     extern void _exit();
  1513.       char        path[MAXPATHLEN];
  1514.       char        cmd[TOS_ARGS + 1];
  1515.       size_t        cmlen;
  1516. --- 47,52 ----
  1517. diff -cr ../mntlib32/sscanf.c ./sscanf.c
  1518. *** ../mntlib32/sscanf.c    Thu Jan 21 15:16:10 1993
  1519. --- ./sscanf.c    Sat Jun 19 10:36:08 1993
  1520. ***************
  1521. *** 33,39 ****
  1522.       va_list args;
  1523.       
  1524.       va_start (args, fmt);
  1525. !     retval = _scanf(&buf, (gettype) sgetc, (ungettype) sungetc,
  1526.        (unsigned char *) fmt, args);
  1527.       va_end (args);
  1528.       return retval;
  1529. --- 33,39 ----
  1530.       va_list args;
  1531.       
  1532.       va_start (args, fmt);
  1533. !     retval = _scanf((void *)&buf, (gettype) sgetc, (ungettype) sungetc,
  1534.        (unsigned char *) fmt, args);
  1535.       va_end (args);
  1536.       return retval;
  1537. ***************
  1538. *** 57,62 ****
  1539.       char *arg;
  1540.   #endif /* __STDC__ */
  1541.       {
  1542. !     return(_scanf(&buf, (gettype) sgetc, (ungettype) sungetc,
  1543.        (unsigned char *) fmt, arg));
  1544.       }
  1545. --- 57,62 ----
  1546.       char *arg;
  1547.   #endif /* __STDC__ */
  1548.       {
  1549. !     return(_scanf((void *)&buf, (gettype) sgetc, (ungettype) sungetc,
  1550.        (unsigned char *) fmt, arg));
  1551.       }
  1552. diff -cr ../mntlib32/stat.c ./stat.c
  1553. *** ../mntlib32/stat.c    Fri Jun 11 02:00:06 1993
  1554. --- ./stat.c    Sat Jun 19 07:08:52 1993
  1555. ***************
  1556. *** 253,259 ****
  1557.       short magic;
  1558.   
  1559.       if (__mint >= 9) {        /* use FSTAT Fcntl */
  1560. !         r = Fcntl(fd, st, FSTAT);
  1561.           if (r) {
  1562.               errno = (int) -r;
  1563.               return -1;
  1564. --- 253,259 ----
  1565.       short magic;
  1566.   
  1567.       if (__mint >= 9) {        /* use FSTAT Fcntl */
  1568. !         r = Fcntl(fd, (long)st, FSTAT);
  1569.           if (r) {
  1570.               errno = (int) -r;
  1571.               return -1;
  1572. diff -cr ../mntlib32/strlwr.c ./strlwr.c
  1573. *** ../mntlib32/strlwr.c    Sun May 23 10:34:44 1993
  1574. --- ./strlwr.c    Sat Jun 19 12:26:38 1993
  1575. ***************
  1576. *** 1,4 ****
  1577. --- 1,5 ----
  1578.   #include <ctype.h>
  1579. + #include <string.h>
  1580.   
  1581.   char *strlwr(string)
  1582.   register char *string;
  1583. diff -cr ../mntlib32/strrev.c ./strrev.c
  1584. *** ../mntlib32/strrev.c    Sat Sep  5 08:45:48 1992
  1585. --- ./strrev.c    Sat Jun 19 12:24:48 1993
  1586. ***************
  1587. *** 4,9 ****
  1588. --- 4,11 ----
  1589.    * please change mktemp.c too (it assumes rev is in-place)
  1590.    */
  1591.   
  1592. + #include <string.h>
  1593.   char *strrev(string)
  1594.       char *string;
  1595.       {
  1596. diff -cr ../mntlib32/strupr.c ./strupr.c
  1597. *** ../mntlib32/strupr.c    Sun May 23 10:34:50 1993
  1598. --- ./strupr.c    Sat Jun 19 12:25:56 1993
  1599. ***************
  1600. *** 1,5 ****
  1601. --- 1,6 ----
  1602.   /* hohmuth 1-Nov-92, derived from strlwr.c */
  1603.   #include <ctype.h>
  1604. + #include <string.h>
  1605.   
  1606.   char *strupr(string)
  1607.   register char *string;
  1608. diff -cr ../mntlib32/sysvar.c ./sysvar.c
  1609. *** ../mntlib32/sysvar.c    Sat Sep  5 22:01:16 1992
  1610. --- ./sysvar.c    Sun Jun 20 09:39:46 1993
  1611. ***************
  1612. *** 8,14 ****
  1613.       long ret;
  1614.       long save_ssp;
  1615.       
  1616. !     save_ssp = Super(0L);
  1617.       /* note: dont remove volatile, otherwise gcc will reorder these
  1618.          statements and we get bombs
  1619.        */
  1620. --- 8,14 ----
  1621.       long ret;
  1622.       long save_ssp;
  1623.       
  1624. !     save_ssp = (long) Super((void *) 0L);
  1625.       /* note: dont remove volatile, otherwise gcc will reorder these
  1626.          statements and we get bombs
  1627.        */
  1628. ***************
  1629. *** 24,30 ****
  1630.   {
  1631.       long save_ssp;
  1632.       
  1633. !     save_ssp = Super(0L);
  1634.       *((volatile long *)var) = val;
  1635.       (void)Super((void *) save_ssp);
  1636.   }
  1637. --- 24,30 ----
  1638.   {
  1639.       long save_ssp;
  1640.       
  1641. !     save_ssp = (long) Super((void *) 0L);
  1642.       *((volatile long *)var) = val;
  1643.       (void)Super((void *) save_ssp);
  1644.   }
  1645. diff -cr ../mntlib32/textio.c ./textio.c
  1646. *** ../mntlib32/textio.c    Thu Sep 17 05:48:40 1992
  1647. --- ./textio.c    Sun Jun 20 08:50:18 1993
  1648. ***************
  1649. *** 11,16 ****
  1650. --- 11,17 ----
  1651.   
  1652.   #include <stdio.h>
  1653.   #include <unistd.h>
  1654. + #include <support.h>
  1655.   
  1656.   int
  1657.   _text_read(fd, buf, nbytes)
  1658. ***************
  1659. *** 39,45 ****
  1660.   int
  1661.   _text_write(fd, from, nbytes)
  1662.       int fd;
  1663. !     char *from;
  1664.       int nbytes;
  1665.   {
  1666.   #ifdef __SOZOBON__
  1667. --- 40,46 ----
  1668.   int
  1669.   _text_write(fd, from, nbytes)
  1670.       int fd;
  1671. !     const char *from;
  1672.       int nbytes;
  1673.   {
  1674.   #ifdef __SOZOBON__
  1675. diff -cr ../mntlib32/thread.c ./thread.c
  1676. *** ../mntlib32/thread.c    Mon May 17 06:24:28 1993
  1677. --- ./thread.c    Sat Jun 19 12:12:04 1993
  1678. ***************
  1679. *** 38,43 ****
  1680. --- 38,45 ----
  1681.   /* and this is used to retrieve the child's time */
  1682.   long __waittime = 0;
  1683.   
  1684. + __EXTERN static void __CDECL startup __PROTO((BASEPAGE *));
  1685.   static void __CDECL
  1686.   startup(b)
  1687.       register BASEPAGE *b;
  1688. diff -cr ../mntlib32/timeoday.c ./timeoday.c
  1689. *** ../mntlib32/timeoday.c    Sat Sep  5 22:01:26 1992
  1690. --- ./timeoday.c    Sun Jun 20 08:53:46 1993
  1691. ***************
  1692. *** 51,57 ****
  1693.   
  1694.       tp->time = t;
  1695.       tp->millitm = 0;
  1696. !     tp->timezone = _timezone / 60;
  1697.       tp->dstflag = (_dst) ? 1 : 0;
  1698.   
  1699.       return 0;
  1700. --- 51,57 ----
  1701.   
  1702.       tp->time = t;
  1703.       tp->millitm = 0;
  1704. !     tp->timezone = (int)(_timezone / 60);
  1705.       tp->dstflag = (_dst) ? 1 : 0;
  1706.   
  1707.       return 0;
  1708. diff -cr ../mntlib32/ttyname.c ./ttyname.c
  1709. *** ../mntlib32/ttyname.c    Sun Jun  6 07:27:22 1993
  1710. --- ./ttyname.c    Sat Jun 19 10:39:30 1993
  1711. ***************
  1712. *** 61,67 ****
  1713.   {
  1714.       char *name;
  1715.       struct stat sb;
  1716. -     extern int isatty();
  1717.   
  1718.       if (!isatty(fd)) return (char *)0;
  1719.   
  1720. --- 61,66 ----
  1721. diff -cr ../mntlib32/unx2dos.c ./unx2dos.c
  1722. *** ../mntlib32/unx2dos.c    Sun May 23 08:47:54 1993
  1723. --- ./unx2dos.c    Sun Jun 20 09:20:34 1993
  1724. ***************
  1725. *** 5,10 ****
  1726. --- 5,11 ----
  1727.   #include <types.h>
  1728.   #include <param.h>
  1729.   #include <support.h>
  1730. + #include "lib.h"
  1731.   
  1732.   extern int __mint;
  1733.   extern char _rootdir;    /* in main.c: user's preferred root directory */
  1734. diff -cr ../mntlib32/utmp.c ./utmp.c
  1735. *** ../mntlib32/utmp.c    Sat Sep  5 22:01:52 1992
  1736. --- ./utmp.c    Sat Jun 19 12:48:48 1993
  1737. ***************
  1738. *** 11,19 ****
  1739.   #define UTMP_FILE    "/etc/utmp"
  1740.   
  1741.   void write_utmp(line, name, host, time)
  1742. ! char *line;
  1743. ! char *name;
  1744. ! char *host;
  1745.   unsigned long time;
  1746.   {
  1747.       register int returned_val;
  1748. --- 11,17 ----
  1749.   #define UTMP_FILE    "/etc/utmp"
  1750.   
  1751.   void write_utmp(line, name, host, time)
  1752. ! const char *line, *name, *host;
  1753.   unsigned long time;
  1754.   {
  1755.       register int returned_val;
  1756. diff -cr ../mntlib32/wtmp.c ./wtmp.c
  1757. *** ../mntlib32/wtmp.c    Fri Oct  9 07:47:48 1992
  1758. --- ./wtmp.c    Sat Jun 19 12:49:00 1993
  1759. ***************
  1760. *** 11,19 ****
  1761.   #define WTMP_FILE    "/var/adm/wtmp"
  1762.   
  1763.   void write_wtmp(line, name, host, time)
  1764. ! char *line;
  1765. ! char *name;
  1766. ! char *host;
  1767.   unsigned long time;
  1768.   {
  1769.       int fd;
  1770. --- 11,17 ----
  1771.   #define WTMP_FILE    "/var/adm/wtmp"
  1772.   
  1773.   void write_wtmp(line, name, host, time)
  1774. ! const char *line, *name, *host;
  1775.   unsigned long time;
  1776.   {
  1777.       int fd;
  1778.