home *** CD-ROM | disk | FTP | other *** search
- *** 39.1 1993/10/27 13:40:30
- --- utime.c 1993/10/27 15:00:12
- ***************
- *** 79,94 ****
- settime.acdate = (unsigned short) (actime & 0xFFFF);
- settime.modtime = (unsigned short) ((modtime >> 16) & 0xFFFF);
- settime.moddate = (unsigned short) (modtime & 0xFFFF);
- fh = (int) Fopen(filename, 2);
- if (fh < 0) {
- /* Kludge: return success for dirs even though we failed */
- if ((fh == -ENOENT) && (Fattrib(filename, 0, 0) == FA_DIR))
- return 0;
- errno = -fh;
- return -1;
- }
-
- - res = -EINVAL;
- if (__mint > 90) {
- if (tset)
- res = Fcntl(fh, (long)&settime, FUTIME);
- --- 79,109 ----
- settime.acdate = (unsigned short) (actime & 0xFFFF);
- settime.modtime = (unsigned short) ((modtime >> 16) & 0xFFFF);
- settime.moddate = (unsigned short) (modtime & 0xFFFF);
- + res = -EINVAL;
- + if (__mint > 92) {
- + if (tset)
- + res = Dcntl(FUTIME, (long) filename, (long) &settime);
- + else
- + res = Dcntl(FUTIME, (long) filename, (long) 0);
- + }
- + if (res != -EINVAL) {
- + if (res < 0) {
- + errno = (int) -res;
- + return -1;
- + }
- + return 0;
- + }
- fh = (int) Fopen(filename, 2);
- if (fh < 0) {
- + #if 0
- /* Kludge: return success for dirs even though we failed */
- if ((fh == -ENOENT) && (Fattrib(filename, 0, 0) == FA_DIR))
- return 0;
- + #endif
- errno = -fh;
- return -1;
- }
-
- if (__mint > 90) {
- if (tset)
- res = Fcntl(fh, (long)&settime, FUTIME);
- *** 39.1 1993/10/27 13:32:26
- --- Changelog 1993/10/28 23:19:12
- ***************
- *** 4,9 ****
- --- 4,43 ----
- Changes are listed in *reverse* order, most recent changes being
- first.
-
- + PATCHLEVEL40::
- +
- + ***** abort.c
- + ----------------------------
- + revision 39.2
- + date: 1993/10/28 17:54:14; author: entropy; state: Exp; lines: +20 -2
- + Fix for the TOS lib, and also remove a POSIX violation.
- + =============================================================================
- + ***** utime.c
- + ----------------------------
- + revision 39.2
- + date: 1993/10/27 15:01:02; author: entropy; state: Exp; lines: +16 -1
- + Implement the Dcntl() versionof FUTIME in utime(). Comment out the
- + kludge for directories in the Fcntl() version.
- + =============================================================================
- + ***** include/PatchLev.h
- + ----------------------------
- + revision 39.2
- + date: 1993/10/27 14:20:24; author: entropy; state: Exp; lines: +1 -1
- + -
- + =============================================================================
- + ***** include/support.h
- + ----------------------------
- + revision 39.2
- + date: 1993/10/27 15:06:44; author: jrb; state: Exp; lines: +2 -2
- + Correct the protos for __exit() and _exit().
- + =============================================================================
- + ***** truncate.c
- + ----------------------------
- + revision 39.2
- + date: 1993/10/28 17:27:30; author: entropy; state: Exp; lines: +10 -1
- + Implement the Dcntl() version of FTRUNCATE in truncate().
- + =============================================================================
- +
- PATCHLEVEL39::
-
- ***** include/PatchLev.h
- *** 39.1 1993/10/27 13:32:26
- --- Files 1993/10/28 18:09:38
- ***************
- *** 37,45 ****
- wcscpy.c wcslen.c wnull.c \
-
- MINTLIB= \
- ! Bugs Changelog Copyright Files GMakefile.16 \
- ! GMakefile.32 GNUGPL2 MKLOG Makefile Makefile.adm \
- ! OChangelog PatchLev.h README Version alarm.c \
- atexit.c cfspeed.c clock.c close.c console.c \
- crt0.cpp crtinit.c dirent.c dup.c exec.c \
- execp.c fcntl.c fopenp.c fork.c fscanf.c \
- --- 37,43 ----
- wcscpy.c wcslen.c wnull.c \
-
- MINTLIB= \
- ! GMakefile.16 GMakefile.32 GNUGPL2 Makefile alarm.c \
- atexit.c cfspeed.c clock.c close.c console.c \
- crt0.cpp crtinit.c dirent.c dup.c exec.c \
- execp.c fcntl.c fopenp.c fork.c fscanf.c \
- ***************
- *** 57,62 ****
- --- 55,65 ----
- times.c truncate.c ttyname.c uname.c unlink.c \
- unx2dos.c utmp.c vfork.cpp wait.c wait3.c \
- waitpid.c write.c wtmp.c \
- +
- + MINTLIB_NOCL= \
- + Bugs Changelog Copyright Files MKDIFFS \
- + MKLOG Makefile.adm OChangelog PatchLev.h README \
- + Version \
-
- CRUFT= \
- gnuaux.c gnulib2.c \
- *** 39.1 1993/10/27 13:32:26
- --- Makefile.adm 1993/10/29 00:31:00
- ***************
- *** 8,13 ****
- --- 8,26 ----
- include Files
- include Version
-
- + incdir=/usr/include
- + srcdir=/src/mntlib
- + dist=/src/mntlib/dist
- + c=$(dist)/Changelog.$V.jrb
- + m=$(dist)/Changelog.$V
- + t=$(dist)/change.tmp
- + h=$(dist)/diffh
- + s=$(dist)/diffc
- + b=$(dist)/diffc.jrb
- + f=/tmp/Files.tmp
- + r=/tmp/rcsFiles.tmp
- + d=/tmp/diffFiles.tmp
- +
- all: nothing
-
- FIXUPCMD=tr ' ' '\012' | sort -u | pr -5 -t -l1 | sed 's/$$/ \\/'
- ***************
- *** 18,42 ****
- ppfiles:
- chmod u+w Files
- cp Files /tmp
- ! echo "" > Files
- ! echo "COMMON= \\" >> Files
- ! echo $(COMMON) | $(FIXUPCMD) >> Files
- ! echo "" >> Files
- ! echo "MINTLIB= \\" >> Files
- ! echo $(MINTLIB) | $(FIXUPCMD) >> Files
- ! echo "" >> Files
- ! echo "CRUFT= \\" >> Files
- ! echo $(CRUFT) | $(FIXUPCMD) >> Files
- ! echo "" >> Files
-
- #
- # Compare the Files list to the actual files to catch discrepancies.
- #
- - f=/tmp/Files.tmp
- - r=/tmp/rcsFiles.tmp
- - d=/tmp/diffFiles.tmp
- checkfiles:
- ! echo $(COMMON) $(MINTLIB) $(CRUFT) | tr ' ' '\012' \
- | sort -u > $f
- rlog -R RCS/* | sed -e 's;^RCS/;;' -e 's;,v$$;;' > $r
- -diff -u $f $r > $d
- --- 31,55 ----
- ppfiles:
- chmod u+w Files
- cp Files /tmp
- ! echo "" > Files
- ! echo "COMMON= \\" >> Files
- ! echo $(COMMON) | $(FIXUPCMD) >> Files
- ! echo "" >> Files
- ! echo "MINTLIB= \\" >> Files
- ! echo $(MINTLIB) | $(FIXUPCMD) >> Files
- ! echo "" >> Files
- ! echo "MINTLIB_NOCL= \\" >> Files
- ! echo $(MINTLIB_NOCL) | $(FIXUPCMD) >> Files
- ! echo "" >> Files
- ! echo "CRUFT= \\" >> Files
- ! echo $(CRUFT) | $(FIXUPCMD) >> Files
- ! echo "" >> Files
-
- #
- # Compare the Files list to the actual files to catch discrepancies.
- #
- checkfiles:
- ! echo $(COMMON) $(MINTLIB) $(MINTLIB_NOCL) $(CRUFT) | tr ' ' '\012' \
- | sort -u > $f
- rlog -R RCS/* | sed -e 's;^RCS/;;' -e 's;,v$$;;' > $r
- -diff -u $f $r > $d
- ***************
- *** 44,54 ****
- less $d
- rm $d
-
- - c=/tmp/change.common.tmp
- - m=/tmp/change.mint.tmp
- - t=/tmp/change.tmp
- - incdir=/usr/include
- - srcdir=/src/mntlib
- changelogs:
- rlog -r`expr $V - 1`.2:$V.1 $(COMMON) | MKLOG \
- | sed 's;DIRECTORY_NAME/;;' > $c
- --- 57,62 ----
- ***************
- *** 71,91 ****
- < $m > $t
- mv $t $m
-
- - h=/tmp/diffh
- - s=/tmp/diffc
- - b=/tmp/diffc.jrb
- distrib:
- ! MKDIFFS `expr $V - 1` $(COMMON) > $b
- cp $b $s
- ! MKDIFFS `expr $V - 1` $(MINTLIB) >> $s
- for dir in crlf lattice purec purec/unixname sozobon ;\
- do \
- ! MKDIFFS `expr $V - 1` $$dir/RCS/* >> $s ; \
- done
- rm -f $h
- cd /usr/include ; for dir in . sys ;\
- do \
- ! $(srcdir)/MKDIFFS `expr $V - 1` $$dir/RCS/* >> $h ; \
- done
-
-
- --- 79,97 ----
- < $m > $t
- mv $t $m
-
- distrib:
- ! MKDIFFS `expr $V - 1` $(dist)/src $(COMMON) > $b
- cp $b $s
- ! MKDIFFS `expr $V - 1` $(dist)/src $(MINTLIB_NOCL) >> $s
- ! MKDIFFS `expr $V - 1` $(dist)/src $(MINTLIB) >> $s
- for dir in crlf lattice purec purec/unixname sozobon ;\
- do \
- ! MKDIFFS `expr $V - 1` $(dist)/src $$dir/RCS/* >> $s ; \
- done
- rm -f $h
- cd /usr/include ; for dir in . sys ;\
- do \
- ! $(srcdir)/MKDIFFS `expr $V - 1` $(dist)/include $$dir/RCS/* >> $h ; \
- done
-
-
- *** 39.1 1993/10/27 13:32:26
- --- PatchLev.h 1993/10/27 14:19:34
- ***************
- *** 3,6 ****
- * directory.
- */
-
- ! #define PatchLevel "39"
- --- 3,6 ----
- * directory.
- */
-
- ! #define PatchLevel "40"
- *** 39.1 1993/10/27 13:32:26
- --- Version 1993/10/27 14:19:18
- ***************
- *** 1 ****
- ! V=39
- --- 1 ----
- ! V=40
- *** 39.1 1993/10/27 13:40:30
- --- truncate.c 1993/10/28 17:25:46
- ***************
- *** 35,47 ****
- char filename[PATH_MAX];
-
- (void) _unx2dos (_filename, filename);
- fh = (int)Fopen (filename, 2);
- if (fh < 0)
- {
- errno = -fh;
- return -1;
- }
- - res = -EINVAL;
- if (__mint > 90)
- res = Fcntl (fh, (long) &length, FTRUNCATE);
- Fclose (fh);
- --- 35,56 ----
- char filename[PATH_MAX];
-
- (void) _unx2dos (_filename, filename);
- + res = -EINVAL;
- + if (__mint > 92)
- + {
- + res = Dcntl(FTRUNCATE, (long) filename, (long) &length);
- + if (res != -EINVAL)
- + {
- + errno = (int) -res;
- + return -1;
- + }
- + }
- fh = (int)Fopen (filename, 2);
- if (fh < 0)
- {
- errno = -fh;
- return -1;
- }
- if (__mint > 90)
- res = Fcntl (fh, (long) &length, FTRUNCATE);
- Fclose (fh);
-