home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-07-06 | 46.3 KB | 1,828 lines |
- diff -cr ../mntlib32/Bugs ./Bugs
- *** ../mntlib32/Bugs Tue Jun 15 11:32:26 1993
- --- ./Bugs Sun Jun 20 09:02:40 1993
- ***************
- *** 111,116 ****
- --- 111,122 ----
- descriptors are closed. I don't know what POSIX says, but System V
- wants stdin, stdout and stderr to be closed too.
-
- + mknod.c: ++entropy
- + The current "emulation" of mknod() is really silly, it does nothing at
- + all and indicates that an error occurred. We could at least try to
- + emulate properly for the kinds of files we know how to make (directories,
- + regular files, etc).
- +
- mktemp.c: ++entropy
- Produces different sorts of filenames than UNIX does.
-
- diff -cr ../mntlib32/Changes ./Changes
- *** ../mntlib32/Changes Thu Jun 17 07:32:16 1993
- --- ./Changes Sun Jul 4 05:53:22 1993
- ***************
- *** 4,9 ****
- --- 4,119 ----
- Changes are listed in *reverse* order, most recent changes being
- first.
-
- + PATCHLEVEL33::
- +
- + getgroup.c: ++Ole_Arndt@f.maus.de, ++entropy
- + Completely rewritten getgroups() function to replace the bogus one.
- + grp.c:
- + Ignore spaces preceeding usernames in /etc/group.
- + main.c: ++Wolfgang
- + Remove the non-macro versions of stdin, stdout, stderr. It causes
- + problems for some programs. People doing debugging should know
- + about _iob[] anyway.
- + setjmp.h: ++Wolfgang
- + Fix some brain-damage in the BSD setjmp/longjmp from PL32.
- + types.h:
- + Rearrange major() macro.
- + cuserid.c, stdio.h:
- + NEW file, cuserid() function for SysV compatibility.
- + Prototype and L_cuserid definition in stdio.h.
- + regexp.c: ++pvt1-117
- + Don't nul-terminate inserted operand twice in reginsert().
- + regsup.c: ++pvt1-117
- + Eliminate a useless increment.
- + falcon.h: ++Markus_Kilbinger@ac.maus.de, ++entropy
- + Fix a typo in trap_14_wwwwww. Add trap_14_wllll and trap_14_wlllll
- + macros for DSP calls (UNTESTED). Cast Dsp_Lock() to short instead
- + of long.
- + chmod.c:
- + For chown(), ignore EINVAL error so we don't get annoying errors
- + on the TOS filesystem.
- + Makefile:
- + Synch up with parts of jrb's TOS-library Makefile.
- + purec/install.bin: ++hohmuth
- + Documentation update.
- + purec/makefile: ++hohmuth
- + Fix a bug which could have caused problems in a binary distribution
- + for Turbo C.
- + mincl:
- + Don't compile libgcc2 with -mshort.
- + Copyright:
- + Add copyright notice for libgcc2.c.
- + GNUGPL2:
- + NEW file, GNU General Public License version 2. Modules covered by
- + this license are noted in the file Copyright.
- + isatty.c: ++nox
- + Fix _isctty() for much better performance.
- + compiler.h: ++pvt1-117
- + Add correct definition for __CDECL for Lattice C.
- + stat.h: ++nox@jelal.north.de
- + Use mode_t instead of u_short for type of st_mode.
- + types.h: ++nox
- + Do typedef time_t if _POSIX_SOURCE. [I think my O'Reilly POSIX book
- + mislead me on this one. -entropy]
- + sigactio.c:
- + Give sigpending() a return value. Oops.
- + ioctl.c:
- + Include appropriate headers.
- + linea.c:
- + Explicitly return the value for linea2() instead of magically
- + using d0.
- + ffs.c, support.h:
- + NEW file for BSD function ffs(). Proto in support.h.
- + sysvar.c: ++pvt1-117, ++entropy
- + Add some typecasts to (hopefully) make Lattice C happy.
- + [The patch I got did this differently, and in my opinion,
- + in a more messy way. Hopefully this is good enough -entropy]
- + lib.h: ++pvt1-117
- + Remove findfile() proto, it is in support.h.
- + getrusag.c: ++pvt1-117, ++entropy
- + Add a prototype _add_tval().
- + scandir.c: ++pvt1-117
- + Bug fix: don't use names[0] as argument to sizeof() before names
- + is initialized.
- + chdir.c: ++pvt1-117
- + Remove some dead code.
- + thread.c: ++pvt1-117
- + Add proto for startup().
- + calloc.c, random.c, spawn.c, ttyname.c: ++pvt1-117
- + Remove extern function declarations in favor of prototypes.
- + fopenp.c, textio.c, utmp.c, wtmp.c: ++pvt1-117
- + Make parameters const where appropriate.
- + a64l.c, alarm.c, close.c, console.c, eprintf.c, fork.c, getbuf.c, getcwd.c,
- + getdtabl.c, initsig.c, mkdir.c, mknod.c, pipe.c, psignal.c, putenv.c,
- + raise.c, rmdir.c, strlwr.c, strrev.c, strupr.c, unx2dos.c: ++pvt1-117
- + Include appropriate headers for protos.
- + dirent.c, sscanf.c, stat.c, timeoday.c: ++pvt1-117
- + A few typecasts here and there to keep Lattice C happy.
- + stdio.h: ++pvt1-117, ++entropy
- + Add prototypes for setlinebuf(), vscanf(), vfscanf().
- + Cleaned up a bit for POSIX.
- + signal.h, unistd.h: ++pvt1-117, ++entropy
- + Add prototypes for kill() and killpg() to signal.h.
- + Remove kill() prototype from unistd.h.
- + getgroup.c, unistd.h: ++pvt1-117, ++entropy
- + Use correct parameters for getgroups().
- + Add prototype to unistd.h.
- + pause.c: ++pvt1-117, ++entropy
- + Always return -1 with errno set to EINTR if MiNT's Pause() call
- + returns without a longjmp() out of a signal handler.
- + support.h: ++pvt1-117, ++entropy
- + Add protos for putenv(), _console_read_byte(),
- + _console_write_byte(), _text_read(), _text_write(), getdtablesize(),
- + write_utmp(), write_wtmp(), nice(), mknod(), fopenp().
- + mintbind.h: ++pvt1-117@nada.kth.se
- + Fixes for Lattice C.
- + GMakefile.16, GMakefile.32:
- + Renamed gmakefil.16 and gmakefil.32 to GMakefile.16 and GMakefile.32.
- + Copyright:
- + Renamed copyrigh.t to Copyright.
- + Files:
- + Renamed common to Files.
- +
- PATCHLEVEL32::
-
- sozobon/linea.s: ++dsb
- diff -cr ../mntlib32/Copyright ./Copyright
- *** ../mntlib32/Copyright Sat Oct 3 20:48:56 1992
- --- ./Copyright Wed Jun 23 05:40:06 1993
- ***************
- *** 62,65 ****
- --- 62,92 ----
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
- +
- +
- + libgcc2 is:
- +
- + /* Copyright (C) 1989, 1992 Free Software Foundation, Inc.
- +
- + This file is part of GNU CC.
- +
- + GNU CC is free software; you can redistribute it and/or modify
- + it under the terms of the GNU General Public License as published by
- + the Free Software Foundation; either version 2, or (at your option)
- + any later version.
- +
- + GNU CC is distributed in the hope that it will be useful,
- + but WITHOUT ANY WARRANTY; without even the implied warranty of
- + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- + GNU General Public License for more details.
- +
- + You should have received a copy of the GNU General Public License
- + along with GNU CC; see the file COPYING. If not, write to
- + the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
- +
- + /* As a special exception, if you link this library with files
- + compiled with GCC to produce an executable, this does not cause
- + the resulting executable to be covered by the GNU General Public License.
- + This exception does not however invalidate any other reasons why
- + the executable file might be covered by the GNU General Public License. */
-
- diff -cr ../mntlib32/Files ./Files
- *** ../mntlib32/Files Fri Jun 4 02:13:32 1993
- --- ./Files Tue Jul 6 05:34:54 1993
- ***************
- *** 1,12 ****
- Common files:
-
- atof.c fputs.c lseek.c strcoll.c
- ! fread.c ltoa.c strcpy.c
- atol.c frexp.cpp malloc.c strcspn.c
- _addsubd.cpp bblink.c frwbin.c memccpy.c strdup.c
- _addsubs.cpp bcmp.c fseek.c memchr.c strerror.c
- ! _cmpdf2.s bcopy.cpp fsetpos.c memcmp.c strftime.c
- ! _cmpsf2.s binmode.c ftw.c mktemp.c stricmp.c
- _divdf3.cpp bsearch.c fungetc.c modf.cpp strlen.c
- _divmods.s bzero.cpp fwrite.c strlwr.c
- gbl-ctors.h
- --- 1,12 ----
- Common files:
-
- atof.c fputs.c lseek.c strcoll.c
- ! Files fread.c ltoa.c strcpy.c
- atol.c frexp.cpp malloc.c strcspn.c
- _addsubd.cpp bblink.c frwbin.c memccpy.c strdup.c
- _addsubs.cpp bcmp.c fseek.c memchr.c strerror.c
- ! _cmpdf2.cpp bcopy.cpp fsetpos.c memcmp.c strftime.c
- ! _cmpsf2.cpp binmode.c ftw.c mktemp.c stricmp.c
- _divdf3.cpp bsearch.c fungetc.c modf.cpp strlen.c
- _divmods.s bzero.cpp fwrite.c strlwr.c
- gbl-ctors.h
- ***************
- *** 13,21 ****
- _divsf3.cpp calloc.c getbuf.c strncat.c
- _extends.cpp chdir.c getenv.c obstack.c strncmp.c
- _fixdfsi.cpp chmod.c getlogin.c perror.c strncpy.c
- ! common pgrp.c
- _fixsfsi.cpp ctime.c getopt.c psignal.c strnicmp.c
- _fltsi.cpp ctype.c getpass.c putenv.c strpbrk.c
- _fltsisf.cpp defmode.c getpid.c qsort.c strrchr.c
- _fxunsd.cpp difftime.c getpw.c raise.c strrev.c
- _isnan.s div.c gets.c rand.c strspn.c
- --- 13,22 ----
- _divsf3.cpp calloc.c getbuf.c strncat.c
- _extends.cpp chdir.c getenv.c obstack.c strncmp.c
- _fixdfsi.cpp chmod.c getlogin.c perror.c strncpy.c
- ! ctermid.c pgrp.c
- _fixsfsi.cpp ctime.c getopt.c psignal.c strnicmp.c
- _fltsi.cpp ctype.c getpass.c putenv.c strpbrk.c
- + cuserid.c
- _fltsisf.cpp defmode.c getpid.c qsort.c strrchr.c
- _fxunsd.cpp difftime.c getpw.c raise.c strrev.c
- _isnan.s div.c gets.c rand.c strspn.c
- ***************
- *** 28,33 ****
- --- 29,35 ----
- _normdf.cpp fclose.c ic.c setbuf.c sysvar.c
- _normsf.cpp fdopen.c setjmp.cpp textio.c
- _truncdf.cpp fflush.c ig.c setlocal.c time.c
- + ffs.c
- _udivmod.s fgetc.c il.c setvbuf.c timeoday.c
- _umulsi3.s fgets.c ip.c sgtty.c tmpfile.c
- a64l.c
- ***************
- *** 40,52 ****
- alphasor.c fputc.c localtim.c strcmp.c
- longlong.h
-
- TOS library:
-
- clock.c getcwd.c null.c spawnvp.c
- Changelo close.c gmakefil.16 open.c sscanf.c
- DMakefile console.c gmakefil.32 osbind.c stat.c
- ! GMakefile crt0.c gnulib2.c@ pipe.c symdir.c
- ! ident.c
- Makefile ioctl.c popen.c symdir.h
- Makefile.hp device.c isatty.c read.c symlink.c
- PatchLev.h dirent.c link.c rename.c tchars.c
- --- 42,79 ----
- alphasor.c fputc.c localtim.c strcmp.c
- longlong.h
-
- + MiNT library:
- +
- + Bugs
- + Changes fscanf.c popen.c statfs.c
- + Copyright
- + GMakefile.16
- + GMakefile.32
- + Makefile getcwd.c read.c symlink.c
- + PatchLev.h getdtabl.c link.c readme sysconf.c
- + alarm.c getgroup.c lockf.c rename.c
- + atexit.c gethostn.c main.c rmdir.c thread.c
- + getpages.c scandir.c times.c
- + clock.c getrusag.c scanf.c ttyname.c
- + close.c select.c uname.c
- + console.c mincl setrlimi.c unlink.c
- + sigactio.c unx2dos.c
- + crt0.cpp heapbase.c mkdir.c sigblock.c utmp.c
- + crtinit.c ident.c mknod.c signal.c vfork.cpp
- + dirent.c inistack.c nice.c sleep.c wait.c
- + dup.c initsig.c open.c spawn.c wait3.c
- + exec.c ioctl.c osbind.cpp spawnve.c waitpid.c
- + execp.c
- + fcntl.c isatty.c spawnvp.c write.c
- + fopenp.c kill.c pause.c sscanf.c wtmp.c
- + fork.c killpg.c pipe.c stat.c
- +
- TOS library:
-
- clock.c getcwd.c null.c spawnvp.c
- Changelo close.c gmakefil.16 open.c sscanf.c
- DMakefile console.c gmakefil.32 osbind.c stat.c
- ! GMakefile crt0.c ident.c pipe.c symdir.c
- Makefile ioctl.c popen.c symdir.h
- Makefile.hp device.c isatty.c read.c symlink.c
- PatchLev.h dirent.c link.c rename.c tchars.c
- ***************
- *** 58,82 ****
- fork.h new_pipe.c sleep.c
- catch.c fscanf.c spawnve.c
-
- ! MiNT lib:
- !
- ! fscanf.c popen.c statfs.c
- ! Makefile getcwd.c read.c symlink.c
- ! getdtabl.c link.c readme sysconf.c
- ! alarm.c getgroup.c lockf.c rename.c
- ! atexit.c gethostn.c main.c rmdir.c thread.c
- ! bugs
- ! changes getpages.c makefile.l16 scandir.c times.c
- ! clock.c getrusag.c makefile.l32 scanf.c ttyname.c
- ! close.c gmakefil.16 makefile.lcc select.c uname.c
- ! console.c gmakefil.32 mincl setrlimi.c unlink.c
- ! copyrigh.t gnulib2.c@ mincl.lcc sigactio.c unx2dos.c
- ! crt0.cpp heapbase.c mkdir.c sigblock.c utmp.c
- ! crtinit.c ident.c mknod.c signal.c vfork.cpp
- ! dirent.c inistack.c nice.c sleep.c wait.c
- ! dup.c initsig.c open.c spawn.c wait3.c
- ! exec.c ioctl.c osbind.cpp spawnve.c waitpid.c
- ! fcntl.c isatty.c PatchLev.h spawnvp.c write.c
- ! fopenp.c kill.c pause.c sscanf.c wtmp.c
- ! fork.c killpg.c pipe.c stat.c
-
- --- 85,91 ----
- fork.h new_pipe.c sleep.c
- catch.c fscanf.c spawnve.c
-
- ! To be deleted RSN:
-
- + gnuaux.c
- + gnulib2.c
- Only in .: GNUGPL2
- diff -cr ../mntlib32/Makefile ./Makefile
- *** ../mntlib32/Makefile Thu Jun 17 05:24:12 1993
- --- ./Makefile Fri Jun 25 14:27:06 1993
- ***************
- *** 5,15 ****
- # GCC configuration info...
-
- # Leave the next line undefined for native compilation setup.
- ! #CROSSDIR := /net/acae127/home/bammi/atari/cross-gcc
-
- # Define MINTFLAG if you want to use the "normal"
- # gcc libraries, too
- ! #MINTFLAG := -mint
-
- ifdef MINTFLAG
- MINTOPT := -mint
- --- 5,15 ----
- # GCC configuration info...
-
- # Leave the next line undefined for native compilation setup.
- ! # CROSSDIR := /net/acae127/home/bammi/atari/cross-gcc
-
- # Define MINTFLAG if you want to use the "normal"
- # gcc libraries, too
- ! # MINTFLAG := -mint
-
- ifdef MINTFLAG
- MINTOPT := -mint
- ***************
- *** 27,33 ****
- AR := $(CROSSBIN)/car
- AS := cgcc $(MINTOPT)
- CC := cgcc $(MINTOPT)
- - C++ := cgcc $(MINTOPT)
- LIB := $(CROSSLIB)
- VPATH := ../co
- CP := cp
- --- 27,32 ----
- ***************
- *** 39,45 ****
- AR := gcc-ar
- AS := gcc $(MINTOPT)
- CC := gcc $(MINTOPT)
- - C++ := gcc $(MINTOPT)
- LIB := c:\gnu\lib
- CP := mv
-
- --- 38,43 ----
- ***************
- *** 50,61 ****
- ifndef CROSSDIR
- AR := ar
- LIB := /src/newlib
- else
- MINTFLAG := -mint
- MINTOPT := $(MINTFLAG)
- ! XPFLAGS := -nostdinc -I../minclude
- ! XFLAGS := $(XPFLAGS)
- endif
- endif
-
- # Additional options for compiling C code
- --- 48,61 ----
- ifndef CROSSDIR
- AR := ar
- LIB := /src/newlib
- + INCLUDE_DIR := /usr/include
- else
- MINTFLAG := -mint
- MINTOPT := $(MINTFLAG)
- ! INCLUDE_DIR := ../minclude
- endif
- + XPFLAGS := -nostdinc -I$(INCLUDE_DIR)
- + XFLAGS := $(XPFLAGS) -Wall
- endif
-
- # Additional options for compiling C code
- ***************
- *** 87,93 ****
- endif
-
- ifneq (,$(findstring 68020,$(TARGET)))
- ! CC := $(CC) -m68020
- endif
-
- ifneq (,$(findstring baserel,$(TARGET)))
- --- 87,93 ----
- endif
-
- ifneq (,$(findstring 68020,$(TARGET)))
- ! CC := $(CC) -m68020 -m68881
- endif
-
- ifneq (,$(findstring baserel,$(TARGET)))
- ***************
- *** 140,147 ****
- ALL= $(CLIB) $(IIOLIB) $(STARTO)
- ALL020 = $(CLIB020) $(STARTO)
-
- top: lshort llong lbshort lblong
- ! #all: lshort llong lbshort lblong lgshort lglong
-
- lshort:
- $(MAKE) clean
- --- 140,148 ----
- ALL= $(CLIB) $(IIOLIB) $(STARTO)
- ALL020 = $(CLIB020) $(STARTO)
-
- + #all: lshort llong lgshort lglong
- top: lshort llong lbshort lblong
- ! #top: l020short l020long l020bshort l020blong
-
- lshort:
- $(MAKE) clean
- ***************
- *** 149,155 ****
-
- llong:
- $(MAKE) clean
- ! $(MAKE) install TARGET=long-int
-
- lgshort:
- $(MAKE) clean
- --- 150,156 ----
-
- llong:
- $(MAKE) clean
- ! $(MAKE) install TARGET="long-int"
-
- lgshort:
- $(MAKE) clean
- ***************
- *** 161,171 ****
-
- l020short:
- $(MAKE) clean
- ! $(MAKE) install020 TARGET=68020
-
- l020long:
- $(MAKE) clean
- ! $(MAKE) install020 TARGET="68020 long-int"
-
- lbshort:
- $(MAKE) clean
- --- 162,174 ----
-
- l020short:
- $(MAKE) clean
- ! $(MAKE) install TARGET=68020
- ! # $(MAKE) install020 TARGET=68020
-
- l020long:
- $(MAKE) clean
- ! $(MAKE) install TARGET="68020 long-int"
- ! # $(MAKE) install020 TARGET="68020 long-int"
-
- lbshort:
- $(MAKE) clean
- ***************
- *** 175,183 ****
- $(MAKE) clean
- $(MAKE) install TARGET="long-int baserel"
-
- ! realclean:
- ! rm -f *.o *.olb *~ *#
- rm -f core report nohup.out
-
- distclean: realclean
-
- --- 178,205 ----
- $(MAKE) clean
- $(MAKE) install TARGET="long-int baserel"
-
- ! l020bshort:
- ! $(MAKE) clean
- ! $(MAKE) install TARGET="68020 baserel"
- !
- ! l020blong:
- ! $(MAKE) clean
- ! $(MAKE) install TARGET="68020 long-int baserel"
- !
- ! bakclean:
- ! rm -f *~ *#
- ! rm -f */*~ */*#
- ! rm -f *.orig *.rej
- ! rm -f */*.orig */*.rej
- ! rm -f $(INCLUDE_DIR)/*~ $(INCLUDE_DIR)/*#
- ! rm -f $(INCLUDE_DIR)/*/*~ $(INCLUDE_DIR)/*/*#
- ! rm -f $(INCLUDE_DIR)/*.orig $(INCLUDE_DIR)/*.rej
- ! rm -f $(INCLUDE_DIR)/*/*.orig $(INCLUDE_DIR)/*/*.rej
- !
- ! realclean: bakclean
- ! rm -f *.o *.olb *.tmp
- rm -f core report nohup.out
- + rm -f foo bar baz
-
- distclean: realclean
-
- diff -cr ../mntlib32/PatchLev.h ./PatchLev.h
- *** ../mntlib32/PatchLev.h Fri Jun 4 02:15:38 1993
- --- ./PatchLev.h Thu Jun 17 09:25:02 1993
- ***************
- *** 3,6 ****
- * directory.
- */
-
- ! #define PatchLevel "32"
- --- 3,6 ----
- * directory.
- */
-
- ! #define PatchLevel "33"
- diff -cr ../mntlib32/README ./README
- *** ../mntlib32/README Fri Jun 4 07:37:02 1993
- --- ./README Wed Jun 23 05:53:30 1993
- ***************
- *** 13,20 ****
- Pure C: hohmuth@freia.inf.tu-dresden.de (Michael Hohmuth)
- Lattice C: ???
-
- ! Be sure to read the "changes" file so that you know what's new in this
- release of the library.
-
- My priorities for the library (in approximately this order) are:
-
- --- 13,25 ----
- Pure C: hohmuth@freia.inf.tu-dresden.de (Michael Hohmuth)
- Lattice C: ???
-
- ! Be sure to read the "Changes" file so that you know what's new in this
- release of the library.
- +
- + Also, please read the "Copyright" file for important copyright information
- + concerning some modules in this library. Some modules, as noted in
- + "Copyright", are covered by the GNU General Public License, which you will
- + find in the file "GNUGPL2".
-
- My priorities for the library (in approximately this order) are:
-
- Only in .: README.33d
- diff -cr ../mntlib32/a64l.c ./a64l.c
- *** ../mntlib32/a64l.c Sat Feb 13 02:45:54 1993
- --- ./a64l.c Sat Jun 19 12:46:40 1993
- ***************
- *** 56,61 ****
- --- 56,62 ----
- Hildo Biersma, with the help of a UN*X System V man page.
- */
-
- + #include <support.h>
- #include <errno.h>
- extern int errno;
-
- diff -cr ../mntlib32/alarm.c ./alarm.c
- *** ../mntlib32/alarm.c Fri Feb 19 08:25:30 1993
- --- ./alarm.c Sun Jun 20 08:56:46 1993
- ***************
- *** 5,10 ****
- --- 5,11 ----
- #include <errno.h>
- #include <mintbind.h>
- #include <limits.h>
- + #include <unistd.h>
-
- extern int __mint;
-
- diff -cr ../mntlib32/calloc.c ./calloc.c
- *** ../mntlib32/calloc.c Sat Sep 5 23:04:04 1992
- --- ./calloc.c Sat Jun 19 12:32:26 1993
- ***************
- *** 21,27 ****
- {
- void *r;
- unsigned long total;
- - extern void _bzero();
-
- total = n * sz;
- if ((r = _malloc(total)) != NULL) {
- --- 21,26 ----
- diff -cr ../mntlib32/chdir.c ./chdir.c
- *** ../mntlib32/chdir.c Sun Oct 20 02:13:06 1991
- --- ./chdir.c Sat Jun 19 12:17:58 1993
- ***************
- *** 30,37 ****
- d+=2;
- (void)Dsetdrv(drv);
- }
- - else
- - drv = old;
-
- if (!*d) { /* empty path means root directory */
- *d = '\\';
- --- 30,35 ----
- diff -cr ../mntlib32/chmod.c ./chmod.c
- *** ../mntlib32/chmod.c Sat Sep 5 20:03:10 1992
- --- ./chmod.c Sat Jun 26 07:05:06 1993
- ***************
- *** 70,76 ****
- if (__mint >= 9) {
- (void)_unx2dos(_name, name);
- r = (int)Fchown(name, uid, gid);
- ! if (r) {
- errno = -r;
- return -1;
- }
- --- 70,76 ----
- if (__mint >= 9) {
- (void)_unx2dos(_name, name);
- r = (int)Fchown(name, uid, gid);
- ! if (r && (r != -EINVAL)) {
- errno = -r;
- return -1;
- }
- diff -cr ../mntlib32/close.c ./close.c
- *** ../mntlib32/close.c Sun Feb 28 13:07:22 1993
- --- ./close.c Sun Jun 20 09:04:00 1993
- ***************
- *** 6,11 ****
- --- 6,12 ----
- #include <osbind.h>
- #include <fcntl.h>
- #include <errno.h>
- + #include <unistd.h>
- #include "lib.h"
-
- int
- diff -cr ../mntlib32/console.c ./console.c
- *** ../mntlib32/console.c Sat Sep 5 20:04:08 1992
- --- ./console.c Sun Jun 20 12:21:06 1993
- ***************
- *** 7,17 ****
-
- #include <osbind.h>
- #include <mintbind.h>
- #define CTRL(x) (x & 0x1f)
-
- extern int __mint;
- -
- - #define CBUFSIZ 80
-
- int
- _console_read_byte(fd)
- --- 7,18 ----
-
- #include <osbind.h>
- #include <mintbind.h>
- + #include <support.h>
- +
- #define CTRL(x) (x & 0x1f)
- + #define CBUFSIZ 80
-
- extern int __mint;
-
- int
- _console_read_byte(fd)
- Only in .: cuserid.c
- Only in .: diffc
- Only in .: diffh
- diff -cr ../mntlib32/dirent.c ./dirent.c
- *** ../mntlib32/dirent.c Sat Jan 30 07:33:22 1993
- --- ./dirent.c Sat Jun 19 12:30:22 1993
- ***************
- *** 119,125 ****
- }
- dd->d_ino = dbuf.ino;
- dd->d_off++;
- ! dd->d_reclen = strlen(dbuf.name);
- strcpy(dd->d_name, dbuf.name);
- return dd;
- }
- --- 119,125 ----
- }
- dd->d_ino = dbuf.ino;
- dd->d_off++;
- ! dd->d_reclen = (short)strlen(dbuf.name);
- strcpy(dd->d_name, dbuf.name);
- return dd;
- }
- ***************
- *** 147,153 ****
- dd->d_ino = __inode++;
- dd->d_off++;
- _dos2unx(d->dta.dta_name, dd->d_name);
- ! dd->d_reclen = strlen(dd->d_name);
- return dd;
- }
-
- --- 147,153 ----
- dd->d_ino = __inode++;
- dd->d_off++;
- _dos2unx(d->dta.dta_name, dd->d_name);
- ! dd->d_reclen = (short)strlen(dd->d_name);
- return dd;
- }
-
- diff -cr ../mntlib32/eprintf.c ./eprintf.c
- *** ../mntlib32/eprintf.c Tue May 25 11:36:32 1993
- --- ./eprintf.c Sat Jun 19 07:29:24 1993
- ***************
- *** 1,6 ****
- - #include <stdio.h>
- #include <stdarg.h>
- #include <string.h>
- #include "lib.h"
-
- /* new file 4/15/92 sb
- --- 1,6 ----
- #include <stdarg.h>
- #include <string.h>
- + #include <assert.h>
- #include "lib.h"
-
- /* new file 4/15/92 sb
- ***************
- *** 17,28 ****
- Threw away a static buffer.
- */
-
- -
- - #if 0
- - /* why here? to waste space? */
- - static char buf[20]; /* big enough for any value of a long */
- - #endif
- -
- static void _say __PROTO((const char *s));
-
- static void _say(s)
- --- 17,22 ----
- Only in .: ffs.c
- diff -cr ../mntlib32/fopenp.c ./fopenp.c
- *** ../mntlib32/fopenp.c Tue May 25 11:40:00 1993
- --- ./fopenp.c Sat Jun 19 07:36:36 1993
- ***************
- *** 10,20 ****
-
- FILE *
- fopenp(name, mode)
- ! char *name, *mode;
- {
- char *fullname;
- ! char buffer[PATH_MAX];
- ! fullname = buffindfile(name, getenv("PATH"), (char **)0,buffer);
- if (!fullname) {
- errno = ENOENT;
- return NULL;
- --- 10,21 ----
-
- FILE *
- fopenp(name, mode)
- ! const char *name, *mode;
- {
- char *fullname;
- ! char buffer[PATH_MAX];
- !
- ! fullname = buffindfile(name, getenv("PATH"), (char **)0, buffer);
- if (!fullname) {
- errno = ENOENT;
- return NULL;
- diff -cr ../mntlib32/fork.c ./fork.c
- *** ../mntlib32/fork.c Mon Feb 22 09:54:02 1993
- --- ./fork.c Sat Jun 19 12:06:24 1993
- ***************
- *** 1,5 ****
- --- 1,6 ----
- /* public domain fork() for MiNT */
-
- + #include <unistd.h>
- #include <errno.h>
- #include <mintbind.h>
-
- diff -cr ../mntlib32/getbuf.c ./getbuf.c
- *** ../mntlib32/getbuf.c Sat Sep 5 20:55:22 1992
- --- ./getbuf.c Sun Jun 20 08:22:04 1993
- ***************
- *** 3,8 ****
- --- 3,9 ----
- #include <stdio.h>
- #include <stdlib.h>
- #include <unistd.h>
- + #include "lib.h"
-
- extern size_t __DEFAULT_BUFSIZ__;
-
- diff -cr ../mntlib32/getcwd.c ./getcwd.c
- *** ../mntlib32/getcwd.c Tue May 25 08:33:02 1993
- --- ./getcwd.c Sun Jun 20 08:24:30 1993
- ***************
- *** 5,10 ****
- --- 5,11 ----
- #include <errno.h>
- #include <osbind.h>
- #include <mintbind.h>
- + #include <unistd.h>
- #include "lib.h"
-
- /*******************************************************************
- ***************
- *** 14,21 ****
-
- extern int __mint;
- extern char _rootdir; /* in main.c: user's preferred root directory */
- -
- - char *getcwd __PROTO((char *, int));
-
- char *getcwd(buf, size)
- char *buf; int size;
- --- 15,20 ----
- diff -cr ../mntlib32/getdtabl.c ./getdtabl.c
- *** ../mntlib32/getdtabl.c Sat Sep 5 20:58:18 1992
- --- ./getdtabl.c Sun Jun 20 09:09:16 1993
- ***************
- *** 1,5 ****
- --- 1,6 ----
- #include <stdio.h>
- #include <mintbind.h>
- + #include <unistd.h>
-
- extern int __mint;
-
- diff -cr ../mntlib32/getgroup.c ./getgroup.c
- *** ../mntlib32/getgroup.c Wed Nov 7 02:01:34 1990
- --- ./getgroup.c Fri Jul 2 11:13:46 1993
- ***************
- *** 1,7 ****
- ! /* getgroups: this is entirely bogus */
-
- int
- ! getgroups()
- {
- ! return 0;
- }
- --- 1,140 ----
- ! /*
- ! * FILE
- ! * getgroup.c
- ! *
- ! * PURPOSE
- ! * get the groups the current user is in
- ! *
- ! * AUTHORS
- ! * written by Ole Arndt and placed in the public domain :-)
- ! *
- ! * BUGS
- ! * under BSD user has access to all groups he is in at the same time
- ! * under MiNT there is only one valid group at a time.
- ! * so for suid programs this function gives you the groups you can
- ! * switch to for your real user.
- ! *
- ! * $Revision$ $Date$ $Author$
- ! * 1 01JUL1993 entropy@terminator.rs.itd.umich.edu
- ! *
- ! * $Log$
- ! * Rev. 1: Allow for querying number of groups with
- ! * getgroups(0, (gid_t *) NULL) for POSIX compilance.
- ! * Only return alternate groups if the user could really
- ! * change groups (user has effective uid or gid of 0).
- ! * Use getpwuid(getuid()) instead of getlogin().
- ! * Act reasonably for TOS.
- ! */
-
- + #include <stdio.h>
- + #include <string.h>
- + #include <types.h>
- + #include <errno.h>
- + #include <unistd.h>
- + #include <grp.h>
- + #include <pwd.h>
- + #ifdef TEST
- + #include <stdlib.h> /* for calloc() */
- + #endif
- +
- + extern int __mint;
- +
- + int
- + getgroups(gsetlen, grpset)
- + int gsetlen;
- + gid_t *grpset;
- + {
- + struct group *gentry;
- + int numgroups;
- + struct passwd *userpw;
- + int i;
- + gid_t currgid;
- +
- + if (!__mint)
- + return 0;
- +
- + currgid = getgid();
- + if (gsetlen) {
- + if (gsetlen < 0 || !grpset) {
- + errno = EINVAL;
- + return -1;
- + }
- + *grpset++ = currgid;
- + }
- +
- + if (geteuid() && getegid())
- + return 1;
- +
- + userpw = getpwuid(getuid());
- + if (!userpw) {
- + return -1;
- + }
- +
- + numgroups = 1;
- + setgrent();
- + while ((gentry = getgrent()) != NULL) {
- + for (i = 0; gentry->gr_mem[i]; i++) {
- + if (!strcmp(userpw->pw_name, gentry->gr_mem[i])
- + && (gentry->gr_gid != currgid)) {
- + ++numgroups;
- + if (gsetlen) {
- + if (numgroups > gsetlen) {
- + errno = EINVAL;
- + return -1;
- + }
- + *grpset++ = gentry->gr_gid;
- + break;
- + }
- + }
- + }
- + }
- + endgrent();
- + return numgroups;
- + }
- +
- + #ifdef TEST
- +
- int
- ! main(void)
- {
- ! int ngroups;
- ! int num, i;
- ! gid_t *grps;
- ! struct passwd *userpw;
- !
- ! ngroups = getgroups(0, (gid_t *) NULL);
- ! if (ngroups < 0) {
- ! perror("getgroups() first call failed");
- ! exit(2);
- ! }
- ! printf("first call to getgroups(): %d\n", ngroups);
- ! grps = (gid_t *) calloc(ngroups, sizeof(gid_t));
- ! if (!grps) {
- ! perror("calloc() failed");
- ! exit(2);
- ! }
- ! num = getgroups(ngroups, grps);
- ! if (num < 0) {
- ! perror("getgroups() second call failed");
- ! exit(2);
- ! }
- ! printf("second call to getgroups(): %d\n", num);
- ! if (ngroups != num) {
- ! printf("getgroups() results do not match\n");
- ! exit(2);
- ! }
- !
- ! userpw = getpwuid(getuid());
- ! printf("User %s is in the following groups: ", userpw->pw_name);
- !
- ! if (num == 0)
- ! printf("none");
- ! else
- ! for( i = 0; i < num; i++)
- ! printf("%d ", grps[i]);
- ! printf(".\n");
- !
- ! return 0;
- }
- +
- + #endif
- diff -cr ../mntlib32/getrusag.c ./getrusag.c
- *** ../mntlib32/getrusag.c Wed Feb 17 13:09:36 1993
- --- ./getrusag.c Mon Jun 21 13:43:04 1993
- ***************
- *** 11,16 ****
- --- 11,17 ----
- extern long _childtime;
-
- void _ms2tval __PROTO((unsigned long, struct timeval *));
- + void _add_tval __PROTO((struct timeval *, struct timeval *));
-
- void
- _ms2tval(milliseconds, tval)
- diff -cr ../mntlib32/grp.c ./grp.c
- *** ../mntlib32/grp.c Mon May 17 05:55:34 1993
- --- ./grp.c Fri Jul 2 11:10:10 1993
- ***************
- *** 136,141 ****
- --- 136,143 ----
- {
- if (i >= MAX_MEMBERS-1)
- break;
- + for (; *cp == ' '; cp++)
- + ;
- memb[i++] = cp;
- for(; *cp && *cp != ',' && *cp != '\n'; cp++)
- ;
- diff -cr ../mntlib32/initsig.c ./initsig.c
- *** ../mntlib32/initsig.c Fri May 15 21:42:14 1992
- --- ./initsig.c Sun Jun 20 08:32:22 1993
- ***************
- *** 2,7 ****
- --- 2,8 ----
-
- #include <errno.h>
- #include <signal.h>
- + #include "lib.h"
-
- /* vector of signal handlers (for TOS, or for MiNT with -mshort) */
- __Sigfunc _sig_handler[NSIG];
- diff -cr ../mntlib32/ioctl.c ./ioctl.c
- *** ../mntlib32/ioctl.c Mon Jun 7 11:58:38 1993
- --- ./ioctl.c Sun Jun 20 14:11:32 1993
- ***************
- *** 9,14 ****
- --- 9,15 ----
- #include <fcntl.h>
- #include <unistd.h>
- #include <linea.h> /* for TIOCGWINSZ under TOS */
- + #include <support.h>
- #include "lib.h" /* for __open_stat */
-
- extern int __mint; /* MiNT version */
- diff -cr ../mntlib32/isatty.c ./isatty.c
- *** ../mntlib32/isatty.c Sun Jun 6 08:53:16 1993
- --- ./isatty.c Tue Jun 22 03:21:26 1993
- ***************
- *** 9,14 ****
- --- 9,16 ----
- #include <unistd.h>
- #include <string.h>
- #include <support.h>
- + #include <stat.h>
- + #include <mintbind.h>
- #include "lib.h"
-
- struct __open_file __open_stat[__NHANDLES];
- ***************
- *** 51,61 ****
- --- 53,73 ----
- {
- char ctty_name[L_ctermid];
- char ftty_name[L_ctermid];
- + struct stat st, tt;
- + extern int __mint;
-
- if (!(isatty(fd)) || !(isatty(-1)))
- return 0;
- if (fd == -1)
- return 1;
- + #if 1
- + if (__mint >= 9 && !Fcntl (fd, &st, FSTAT) && !Fcntl (-1, &tt, FSTAT)) {
- + /* shouldn't this be as good? the stuff below takes ages...
- + (still loses on /dev/aux etc but ttyname can't be much better)
- + */
- + return (st.st_dev == tt.st_dev && st.st_ino == tt.st_ino);
- + }
- + #endif
- (void) ctermid(ctty_name);
- (void) strncpy(ftty_name, ttyname(fd), L_ctermid);
- return !(strncmp(ctty_name, ftty_name, L_ctermid));
- diff -cr ../mntlib32/lib.h ./lib.h
- *** ../mntlib32/lib.h Sun May 23 08:47:24 1993
- --- ./lib.h Sun Jun 20 09:23:26 1993
- ***************
- *** 41,48 ****
- __EXTERN time_t _dostime __PROTO((time_t));
- __EXTERN time_t _unixtime __PROTO((unsigned int, unsigned int));
-
- - __EXTERN char * findfile __PROTO((char *, char *, char **));
- -
- __EXTERN char * _itoa __PROTO((int, char *, int));
- __EXTERN char * _ltoa __PROTO((long, char *, int));
- __EXTERN char * _ultoa __PROTO((unsigned long, char *, int));
- --- 41,46 ----
- diff -cr ../mntlib32/linea.c ./linea.c
- *** ../mntlib32/linea.c Sat Feb 13 06:23:50 1993
- --- ./linea.c Sun Jun 20 11:38:10 1993
- ***************
- *** 35,47 ****
-
- int linea2()
- {
- __asm__ volatile
- ("
- .word 0xA002"
- ! : /* outputs */
- : /* inputs */
- : "d0", "d1", "d2", "a0", "a1", "a2" /* clobbered regs */
- );
- }
-
- void linea3()
- --- 35,50 ----
-
- int linea2()
- {
- + register long retvalue __asm__("d0");
- +
- __asm__ volatile
- ("
- .word 0xA002"
- ! : "=r"(retvalue) /* outputs */
- : /* inputs */
- : "d0", "d1", "d2", "a0", "a1", "a2" /* clobbered regs */
- );
- + return (int) retvalue;
- }
-
- void linea3()
- diff -cr ../mntlib32/main.c ./main.c
- *** ../mntlib32/main.c Thu Jun 10 03:23:34 1993
- --- ./main.c Thu Jul 1 06:36:40 1993
- ***************
- *** 246,259 ****
- exit(main((int) _argc, _argv, _envp));
- }
-
- - /* For debuggers: non-macro versions of std{in,out,err}. */
- - #undef stdin
- - #undef stdout
- - #undef stderr
- - FILE *stdin = &_iob[0];
- - FILE *stdout = &_iob[1];
- - FILE *stderr = &_iob[2];
- -
- __EXITING exit(status)
- int status;
- {
- --- 246,251 ----
- diff -cr ../mntlib32/mincl ./mincl
- *** ../mntlib32/mincl Sun Jun 6 15:20:50 1993
- --- ./mincl Sun Jun 27 06:11:22 1993
- ***************
- *** 39,49 ****
-
- #
- # other miscellaneous stuff
- ! PORT = alphasor.o abs.o findfile.o fopenp.o frwbin.o ftw.o getpw.o gethostn.o \
- getlogin.o getopt.o getpages.o getpass.o grp.o ident.o mktemp.o \
- ! regexp.o regsup.o scandir.o strlwr.o strupr.o strrev.o textio.o random.o \
- obstack.o utmp.o wtmp.o \
- ! il.o ic.o iw.o ig.o ip.o a64l.o ctermid.o
-
- #
- # the string library
- --- 39,52 ----
-
- #
- # other miscellaneous stuff
- ! PORT = a64l.o alphasor.o abs.o ctermid.o cuserid.o \
- ! ffs.o findfile.o fopenp.o frwbin.o \
- ! ftw.o getpw.o gethostn.o \
- getlogin.o getopt.o getpages.o getpass.o grp.o ident.o mktemp.o \
- ! regexp.o regsup.o scandir.o strlwr.o strupr.o strrev.o \
- ! textio.o random.o \
- obstack.o utmp.o wtmp.o \
- ! il.o ic.o iw.o ig.o ip.o
-
- #
- # the string library
- ***************
- *** 157,163 ****
- # libgcc2 stuff (works for both -mshort and -mnoshort)
-
- $(GLIB2): %.o: libgcc2.c longlong.h
- ! $(CC) $(CFLAGS) -DL$* -c $< -o $@
-
- .PHONY: install install020 clean realclean all all020 top
-
- --- 160,166 ----
- # libgcc2 stuff (works for both -mshort and -mnoshort)
-
- $(GLIB2): %.o: libgcc2.c longlong.h
- ! $(CC) $(CLFLAGS) -DL$* -c $< -o $@
-
- .PHONY: install install020 clean realclean all all020 top
-
- diff -cr ../mntlib32/mkdir.c ./mkdir.c
- *** ../mntlib32/mkdir.c Wed Feb 12 02:42:22 1992
- --- ./mkdir.c Sat Jun 19 12:15:30 1993
- ***************
- *** 8,13 ****
- --- 8,14 ----
- #include <osbind.h>
- #include <mintbind.h>
- #include <stat.h>
- + #include <unistd.h>
- #include "lib.h"
-
- extern int errno;
- diff -cr ../mntlib32/mknod.c ./mknod.c
- *** ../mntlib32/mknod.c Mon Oct 21 20:09:14 1991
- --- ./mknod.c Sun Jun 20 08:59:54 1993
- ***************
- *** 1,6 ****
- --- 1,7 ----
- /* fake mknod -- this always fails */
-
- #include <errno.h>
- + #include <unistd.h>
-
- int
- mknod(path, mode, dev)
- diff -cr ../mntlib32/pause.c ./pause.c
- *** ../mntlib32/pause.c Sat May 2 06:25:28 1992
- --- ./pause.c Sun Jun 20 09:05:48 1993
- ***************
- *** 3,17 ****
- #include <mintbind.h>
- #include <signal.h>
- #include <errno.h>
-
- extern int __mint;
-
- ! void
- pause()
- {
- if (__mint)
- (void)Pause();
- /* do nothing for TOS */
- }
-
- /* Public domain sigpause() - AGK */
- --- 3,20 ----
- #include <mintbind.h>
- #include <signal.h>
- #include <errno.h>
- + #include <unistd.h>
-
- extern int __mint;
-
- ! int
- pause()
- {
- if (__mint)
- (void)Pause();
- /* do nothing for TOS */
- + errno = EINTR;
- + return -1;
- }
-
- /* Public domain sigpause() - AGK */
- diff -cr ../mntlib32/pipe.c ./pipe.c
- *** ../mntlib32/pipe.c Mon Feb 22 09:56:56 1993
- --- ./pipe.c Sat Jun 19 12:40:50 1993
- ***************
- *** 6,11 ****
- --- 6,12 ----
- #include <osbind.h>
- #include <errno.h>
- #include <mintbind.h>
- + #include <unistd.h>
-
- int
- pipe(fd)
- diff -cr ../mntlib32/psignal.c ./psignal.c
- *** ../mntlib32/psignal.c Thu Sep 17 20:02:46 1992
- --- ./psignal.c Sun Jun 20 08:30:38 1993
- ***************
- *** 6,11 ****
- --- 6,12 ----
- #include <signal.h>
- #include <siglist.h>
- #include <string.h>
- + #include <unistd.h>
- #include "lib.h"
-
- void
- diff -cr ../mntlib32/purec/install.bin ./purec/install.bin
- *** ../mntlib32/purec/install.bin Sun May 23 11:59:00 1993
- --- ./purec/install.bin Fri Jun 25 03:29:58 1993
- ***************
- *** 9,15 ****
-
- This file is shipped with both the Pure C and the Turbo C binary
- distributions. If you have the distribution for Pure C, ignore
- ! everything which refers to Turbo C, and vice versa.)
-
- --------------------------------------------------------------------------
-
- --- 9,15 ----
-
- This file is shipped with both the Pure C and the Turbo C binary
- distributions. If you have the distribution for Pure C, ignore
- ! everything which refers to Turbo C, and vice versa.
-
- --------------------------------------------------------------------------
-
- ***************
- *** 20,25 ****
- --- 20,43 ----
- The binary distribution consists of at least the following files:
- makefile, tosify.mak, mintlib.lib, d_flt.lib, crt0.o and alloca.o. The
- Pure C distribution additionally contains d_881.lib and falloca.o.
- +
- + There are several ways to build the math libraries:
- +
- + (a) You could do it using Make and the supplied makefile, as described
- + below.
- +
- + (b) You could also issue the one or two nessecary commands by hand using
- + your favourite shell; this is probably the easiest way:
- +
- + Pure C: plink.ttp -J -G -O=mintflt.lib d_flt.lib pcfltlib.lib
- + plink.ttp -J -G -O=mint881.lib d_881.lib pc881lib.lib
- +
- + Turbo C: tlink.ttp -J -G -O=mintflt.lib d_flt.lib tcfltlib.lib
- +
- + (c) You could write yourself a Pure/Turbo C Project file that links the
- + parts together.
- +
- + The rest of this file describes option (a) in more detail:
-
- You need the following tools to build the library:
-
- diff -cr ../mntlib32/purec/makefile ./purec/makefile
- *** ../mntlib32/purec/makefile Fri Jun 11 05:08:14 1993
- --- ./purec/makefile Fri Jun 25 03:30:04 1993
- ***************
- *** 271,276 ****
- --- 271,278 ----
-
- ### which OS bindings library to link
-
- + BUILD_MYTOSLIB_DEP :=
- +
- # the osbind library replaces our tos library.
- ifdef OSBINDLIB
- TOSLIB := $(OSBINDLIB)
- ***************
- *** 278,285 ****
- ifdef TURBOC
- TOSLIB := $(MYTOSLIB)
-
- ! # file dependency
- ! $(MINTLIB): $(MYTOSLIB)
- else
- TOSLIB :=
- endif
- --- 280,287 ----
- ifdef TURBOC
- TOSLIB := $(MYTOSLIB)
-
- ! # used as a file dependency for $(MINTLIB)
- ! BUILD_MYTOSLIB_DEP := $(MYTOSLIB)
- else
- TOSLIB :=
- endif
- ***************
- *** 357,363 ****
- endif
-
- ifneq (,$(wildcard $(firstword $(MINTSRC))))
- ! $(MINTLIB): $(MINTLIB_DEP)
- $(LD) $(MAKEOBJ) $(LDFLAGS) -O=$@ $(MINTLIB_PARAM) $(TOSLIBSPEC)
- else
- # if the source is not present (binary distribution), we just check for
- --- 359,365 ----
- endif
-
- ifneq (,$(wildcard $(firstword $(MINTSRC))))
- ! $(MINTLIB): $(MINTLIB_DEP) $(BUILD_MYTOSLIB_DEP)
- $(LD) $(MAKEOBJ) $(LDFLAGS) -O=$@ $(MINTLIB_PARAM) $(TOSLIBSPEC)
- else
- # if the source is not present (binary distribution), we just check for
- diff -cr ../mntlib32/putenv.c ./putenv.c
- *** ../mntlib32/putenv.c Sat Sep 5 22:26:26 1992
- --- ./putenv.c Sat Jun 19 12:37:58 1993
- ***************
- *** 45,51 ****
-
- int
- putenv(strng)
- ! char *strng;
- {
- int i = 0;
- char **e;
- --- 45,51 ----
-
- int
- putenv(strng)
- ! const char *strng;
- {
- int i = 0;
- char **e;
- ***************
- *** 68,74 ****
- return -1;
-
- environ = e;
- ! environ[i] = strng;
- environ[i+1] = 0;
- return 0;
- }
- --- 68,74 ----
- return -1;
-
- environ = e;
- ! environ[i] = (char *)strng;
- environ[i+1] = 0;
- return 0;
- }
- diff -cr ../mntlib32/raise.c ./raise.c
- *** ../mntlib32/raise.c Thu Sep 17 04:10:14 1992
- --- ./raise.c Sat Jun 19 12:04:22 1993
- ***************
- *** 3,8 ****
- --- 3,9 ----
- */
-
- #include <unistd.h>
- + #include <signal.h>
-
- int
- raise(sig)
- diff -cr ../mntlib32/random.c ./random.c
- *** ../mntlib32/random.c Sat Sep 5 22:00:00 1992
- --- ./random.c Sat Jun 19 12:34:38 1993
- ***************
- *** 189,195 ****
- unsigned x;
- {
- register int i /* , j */ ;
- - long random();
-
- if( rand_type == TYPE_0 ) {
- state[ 0 ] = x;
- --- 189,194 ----
- diff -cr ../mntlib32/regexp.c ./regexp.c
- *** ../mntlib32/regexp.c Sat Jan 30 07:40:36 1993
- --- ./regexp.c Sat Jun 26 21:32:38 1993
- ***************
- *** 591,598 ****
-
- place = opnd; /* Op node, where operand used to be. */
- *place++ = op;
- ! *place++ = '\0';
- ! *place++ = '\0';
- }
-
- /*
- --- 591,597 ----
-
- place = opnd; /* Op node, where operand used to be. */
- *place++ = op;
- ! *place = '\0';
- }
-
- /*
- diff -cr ../mntlib32/regsup.c ./regsup.c
- *** ../mntlib32/regsup.c Thu Sep 17 04:10:58 1992
- --- ./regsup.c Sat Jun 26 21:32:20 1993
- ***************
- *** 86,90 ****
- }
- }
- }
- ! *dst++ = '\0';
- }
- --- 86,90 ----
- }
- }
- }
- ! *dst = '\0';
- }
- diff -cr ../mntlib32/rmdir.c ./rmdir.c
- *** ../mntlib32/rmdir.c Sun Oct 20 02:16:20 1991
- --- ./rmdir.c Sat Jun 19 12:01:16 1993
- ***************
- *** 4,9 ****
- --- 4,10 ----
- #include <limits.h>
- #include <osbind.h>
- #include <errno.h>
- + #include <unistd.h>
- #include "lib.h"
-
- int rmdir(_path)
- diff -cr ../mntlib32/scandir.c ./scandir.c
- *** ../mntlib32/scandir.c Sat Sep 5 22:00:20 1992
- --- ./scandir.c Sun Jun 20 08:27:46 1993
- ***************
- *** 40,46 ****
-
- /* Get initial list space and open directory. */
- size = INITIAL_SIZE;
- ! names = (struct direct **)malloc(size * sizeof names[0]);
- if (names == NULL)
- return -1;
- dirp = opendir(name);
- --- 40,46 ----
-
- /* Get initial list space and open directory. */
- size = INITIAL_SIZE;
- ! names = (struct direct **)malloc(size * sizeof(struct direct *));
- if (names == NULL)
- return -1;
- dirp = opendir(name);
- diff -cr ../mntlib32/sigactio.c ./sigactio.c
- *** ../mntlib32/sigactio.c Wed Jun 9 06:09:30 1993
- --- ./sigactio.c Sun Jun 20 14:26:08 1993
- ***************
- *** 189,195 ****
- return -1;
- }
- (void) sigemptyset(set);
- ! set->_sigset_data[0] = Psigpending();
- }
-
- int
- --- 189,196 ----
- return -1;
- }
- (void) sigemptyset(set);
- ! set->_sigset_data[0] = Psigpending();
- ! return 0;
- }
-
- int
- diff -cr ../mntlib32/spawn.c ./spawn.c
- *** ../mntlib32/spawn.c Tue May 25 11:59:50 1993
- --- ./spawn.c Sat Jun 19 12:20:58 1993
- ***************
- *** 47,53 ****
- char **argv;
- char **envp;
- {
- - extern void _exit();
- char path[MAXPATHLEN];
- char cmd[TOS_ARGS + 1];
- size_t cmlen;
- --- 47,52 ----
- diff -cr ../mntlib32/sscanf.c ./sscanf.c
- *** ../mntlib32/sscanf.c Thu Jan 21 15:16:10 1993
- --- ./sscanf.c Sat Jun 19 10:36:08 1993
- ***************
- *** 33,39 ****
- va_list args;
-
- va_start (args, fmt);
- ! retval = _scanf(&buf, (gettype) sgetc, (ungettype) sungetc,
- (unsigned char *) fmt, args);
- va_end (args);
- return retval;
- --- 33,39 ----
- va_list args;
-
- va_start (args, fmt);
- ! retval = _scanf((void *)&buf, (gettype) sgetc, (ungettype) sungetc,
- (unsigned char *) fmt, args);
- va_end (args);
- return retval;
- ***************
- *** 57,62 ****
- char *arg;
- #endif /* __STDC__ */
- {
- ! return(_scanf(&buf, (gettype) sgetc, (ungettype) sungetc,
- (unsigned char *) fmt, arg));
- }
- --- 57,62 ----
- char *arg;
- #endif /* __STDC__ */
- {
- ! return(_scanf((void *)&buf, (gettype) sgetc, (ungettype) sungetc,
- (unsigned char *) fmt, arg));
- }
- diff -cr ../mntlib32/stat.c ./stat.c
- *** ../mntlib32/stat.c Fri Jun 11 02:00:06 1993
- --- ./stat.c Sat Jun 19 07:08:52 1993
- ***************
- *** 253,259 ****
- short magic;
-
- if (__mint >= 9) { /* use FSTAT Fcntl */
- ! r = Fcntl(fd, st, FSTAT);
- if (r) {
- errno = (int) -r;
- return -1;
- --- 253,259 ----
- short magic;
-
- if (__mint >= 9) { /* use FSTAT Fcntl */
- ! r = Fcntl(fd, (long)st, FSTAT);
- if (r) {
- errno = (int) -r;
- return -1;
- diff -cr ../mntlib32/strlwr.c ./strlwr.c
- *** ../mntlib32/strlwr.c Sun May 23 10:34:44 1993
- --- ./strlwr.c Sat Jun 19 12:26:38 1993
- ***************
- *** 1,4 ****
- --- 1,5 ----
- #include <ctype.h>
- + #include <string.h>
-
- char *strlwr(string)
- register char *string;
- diff -cr ../mntlib32/strrev.c ./strrev.c
- *** ../mntlib32/strrev.c Sat Sep 5 08:45:48 1992
- --- ./strrev.c Sat Jun 19 12:24:48 1993
- ***************
- *** 4,9 ****
- --- 4,11 ----
- * please change mktemp.c too (it assumes rev is in-place)
- */
-
- + #include <string.h>
- +
- char *strrev(string)
- char *string;
- {
- diff -cr ../mntlib32/strupr.c ./strupr.c
- *** ../mntlib32/strupr.c Sun May 23 10:34:50 1993
- --- ./strupr.c Sat Jun 19 12:25:56 1993
- ***************
- *** 1,5 ****
- --- 1,6 ----
- /* hohmuth 1-Nov-92, derived from strlwr.c */
- #include <ctype.h>
- + #include <string.h>
-
- char *strupr(string)
- register char *string;
- diff -cr ../mntlib32/sysvar.c ./sysvar.c
- *** ../mntlib32/sysvar.c Sat Sep 5 22:01:16 1992
- --- ./sysvar.c Sun Jun 20 09:39:46 1993
- ***************
- *** 8,14 ****
- long ret;
- long save_ssp;
-
- ! save_ssp = Super(0L);
- /* note: dont remove volatile, otherwise gcc will reorder these
- statements and we get bombs
- */
- --- 8,14 ----
- long ret;
- long save_ssp;
-
- ! save_ssp = (long) Super((void *) 0L);
- /* note: dont remove volatile, otherwise gcc will reorder these
- statements and we get bombs
- */
- ***************
- *** 24,30 ****
- {
- long save_ssp;
-
- ! save_ssp = Super(0L);
- *((volatile long *)var) = val;
- (void)Super((void *) save_ssp);
- }
- --- 24,30 ----
- {
- long save_ssp;
-
- ! save_ssp = (long) Super((void *) 0L);
- *((volatile long *)var) = val;
- (void)Super((void *) save_ssp);
- }
- diff -cr ../mntlib32/textio.c ./textio.c
- *** ../mntlib32/textio.c Thu Sep 17 05:48:40 1992
- --- ./textio.c Sun Jun 20 08:50:18 1993
- ***************
- *** 11,16 ****
- --- 11,17 ----
-
- #include <stdio.h>
- #include <unistd.h>
- + #include <support.h>
-
- int
- _text_read(fd, buf, nbytes)
- ***************
- *** 39,45 ****
- int
- _text_write(fd, from, nbytes)
- int fd;
- ! char *from;
- int nbytes;
- {
- #ifdef __SOZOBON__
- --- 40,46 ----
- int
- _text_write(fd, from, nbytes)
- int fd;
- ! const char *from;
- int nbytes;
- {
- #ifdef __SOZOBON__
- diff -cr ../mntlib32/thread.c ./thread.c
- *** ../mntlib32/thread.c Mon May 17 06:24:28 1993
- --- ./thread.c Sat Jun 19 12:12:04 1993
- ***************
- *** 38,43 ****
- --- 38,45 ----
- /* and this is used to retrieve the child's time */
- long __waittime = 0;
-
- + __EXTERN static void __CDECL startup __PROTO((BASEPAGE *));
- +
- static void __CDECL
- startup(b)
- register BASEPAGE *b;
- diff -cr ../mntlib32/timeoday.c ./timeoday.c
- *** ../mntlib32/timeoday.c Sat Sep 5 22:01:26 1992
- --- ./timeoday.c Sun Jun 20 08:53:46 1993
- ***************
- *** 51,57 ****
-
- tp->time = t;
- tp->millitm = 0;
- ! tp->timezone = _timezone / 60;
- tp->dstflag = (_dst) ? 1 : 0;
-
- return 0;
- --- 51,57 ----
-
- tp->time = t;
- tp->millitm = 0;
- ! tp->timezone = (int)(_timezone / 60);
- tp->dstflag = (_dst) ? 1 : 0;
-
- return 0;
- diff -cr ../mntlib32/ttyname.c ./ttyname.c
- *** ../mntlib32/ttyname.c Sun Jun 6 07:27:22 1993
- --- ./ttyname.c Sat Jun 19 10:39:30 1993
- ***************
- *** 61,67 ****
- {
- char *name;
- struct stat sb;
- - extern int isatty();
-
- if (!isatty(fd)) return (char *)0;
-
- --- 61,66 ----
- diff -cr ../mntlib32/unx2dos.c ./unx2dos.c
- *** ../mntlib32/unx2dos.c Sun May 23 08:47:54 1993
- --- ./unx2dos.c Sun Jun 20 09:20:34 1993
- ***************
- *** 5,10 ****
- --- 5,11 ----
- #include <types.h>
- #include <param.h>
- #include <support.h>
- + #include "lib.h"
-
- extern int __mint;
- extern char _rootdir; /* in main.c: user's preferred root directory */
- diff -cr ../mntlib32/utmp.c ./utmp.c
- *** ../mntlib32/utmp.c Sat Sep 5 22:01:52 1992
- --- ./utmp.c Sat Jun 19 12:48:48 1993
- ***************
- *** 11,19 ****
- #define UTMP_FILE "/etc/utmp"
-
- void write_utmp(line, name, host, time)
- ! char *line;
- ! char *name;
- ! char *host;
- unsigned long time;
- {
- register int returned_val;
- --- 11,17 ----
- #define UTMP_FILE "/etc/utmp"
-
- void write_utmp(line, name, host, time)
- ! const char *line, *name, *host;
- unsigned long time;
- {
- register int returned_val;
- diff -cr ../mntlib32/wtmp.c ./wtmp.c
- *** ../mntlib32/wtmp.c Fri Oct 9 07:47:48 1992
- --- ./wtmp.c Sat Jun 19 12:49:00 1993
- ***************
- *** 11,19 ****
- #define WTMP_FILE "/var/adm/wtmp"
-
- void write_wtmp(line, name, host, time)
- ! char *line;
- ! char *name;
- ! char *host;
- unsigned long time;
- {
- int fd;
- --- 11,17 ----
- #define WTMP_FILE "/var/adm/wtmp"
-
- void write_wtmp(line, name, host, time)
- ! const char *line, *name, *host;
- unsigned long time;
- {
- int fd;
-